Wiki
Versión 6 (Emilio Penna, Martes, 27 de Setiembre de 2022 17:41:00 -0300) → Versión 7/13 (Emilio Penna, Martes, 27 de Setiembre de 2022 17:49:42 -0300)
h1. Wiki
Currently, this page has information about moodle quiz load tests.
h2. Files for load tests
Attached, in the end of this page, there are the following files:
* Moodle quiz backup
* Test users file, for enrollment in the test course
* Jmeter script for load test (jmx)
* Users file for jmeter script
* Image with upload options for users import in moodle
h2. Configuration of the jmeter script
(The script was tested with jmeter 5.4.1)
The script uses plugins, so the plugins-manager.jar is required. It can be downloaded from https://jmeter-plugins.org/install/Install/ and put in the lib/ext directory of jmeter (jmeter restart required).
The parameters for the test are:
1. In "Configuracion del CSV dataset" you have to set the path and name of the users file (usuarios5000.csv)
2. In "plan de pruebas", you have to configure the course id, quiz id and server url.
3. In "valores por defecto para peticion HTTP" set the server url
servidor
In "grupo de hilos original" the threads number and ramp up time can be specified. Start with only 1 thread until the test run with no errors, then try more threads, in an incremental way. In our test we used, up to 2500 threads with a 180 seconds ramp up.
TO DO: The script has "Assertions" for controlling that the server response is what we expect in a successful execution, it works inspecting the html in the response with a pre-defined pre defined text. We used, for example "Pagina 1 de 8", a text that appears in the bottom of the quiz pages. This text is in spanish, so it works if the language for the users is spanish. You
For doing that you can change that assertion text, or set lang=es lang="es" in the mdl_user table, with an
<pre>
update mdl_user set lang='es' where username like 'prueba%';
</pre>
h2. Tips for running the tests: Comentarios sobre las pruebas
* We ran the Para correr el script, hemos observado que el máximo son unos 1500-2000uv por cliente (pc que ejecuta el script with y envia los pedidos), si la exigen demasiado les va a maximum of 1500 threads per client (generator). If more is used, is probable that errors appear but they are because the client cant support that load, in that case, you can run more than one client at the same time, or use the jmeter capabilities to do a distributed load test. dar errores pero puede ser porque el cliente no lo soporta, en ese caso hay que ejecutar en más de un cliente.
Running from command line:
Para correr por linea de comando:
<pre>
$ ./jmeter -n -t /home/epenna/moodle-quiz3-v1.jmx -l /home/epenna/jmeterout.jtl
</pre>
h2. PENDIENTES
* tema assertion, ver alternativa independiente del idioma