Skip to content

Instantly share code, notes, and snippets.

View Virako's full-sized avatar

Victor Ramirez de la Corte Virako

View GitHub Profile
import hmac
from time import time
import hashlib
shared_secret = b'SHARED' # Change this shared_secret by your shared_secret
users = 50000
usersIni = 1
def get_hmac(userId, objType, objId, perm):
secret = shared_secret
@Virako
Virako / Pruebas Agora Voting.jmx
Last active December 30, 2015 14:04
Fichero de configuración Jmeter con pruebas de carga y estrés para Agora Voting
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.6" jmeter="2.11.20140918">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Pruebas Agora Voting" enabled="true">
<stringProp name="TestPlan.comments">Las dos primeras variables son el servidor de agora y el authevent que se va a utilizar para las pruebas.
Todas las demas variables son para la cantidad de usuarios y los tiempos de las pruebas, de los diferentes
hilos, las cuales siguien el siguiente formato:
users|seg + el|st|vo + carga|estres
el --&gt; election
set nocompatible " be iMproved, required
filetype off " required
"filetype on
filetype plugin on
syntax on
filetype plugin indent on
set smartindent
set ruler
set showcmd