Herramientas de usuario

Herramientas del sitio


fw:locust

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
fw:locust [2014/08/08 09:16]
alfred [The TaskSet class]
fw:locust [2020/05/09 09:25] (actual)
Línea 2: Línea 2:
 Is a load testing tool in which you define user behaviour and the system launches a lot of non-real users accessing your web page. Is a load testing tool in which you define user behaviour and the system launches a lot of non-real users accessing your web page.
  
 +  * Docs: [[http://​docs.locust.io/​en/​latest/​]]
 ===== Basic things ===== ===== Basic things =====
 ==== Install ==== ==== Install ====
Línea 18: Línea 19:
   * ''​host'',​ you can specify it on the command line using the –host option. It tells the host to be loaded.   * ''​host'',​ you can specify it on the command line using the –host option. It tells the host to be loaded.
   * ''​weight''​ tells the frequency of use, for example, ''​WebUserLocust''​ will be executed three times ''​MobileUserLocust''​.   * ''​weight''​ tells the frequency of use, for example, ''​WebUserLocust''​ will be executed three times ''​MobileUserLocust''​.
-<​code>​+<​code ​python>
 class WebUserLocust(Locust):​ class WebUserLocust(Locust):​
     weight = 3     weight = 3
Línea 57: Línea 58:
 </​code>​ </​code>​
 Is the same than... Is the same than...
-<​code>​+<​code ​python>
 from locust import HttpLocust, TaskSet, task from locust import HttpLocust, TaskSet, task
  
Línea 118: Línea 119:
 ==== The TaskSet class ==== ==== The TaskSet class ====
 === Declaring tasks with the task decorator === === Declaring tasks with the task decorator ===
-<​code>​+<​code ​python>
 from locust import Locust, TaskSet, task from locust import Locust, TaskSet, task
  
Línea 130: Línea 131:
 </​code>​ </​code>​
 Or defining weight (task2 will be executed twice than task): Or defining weight (task2 will be executed twice than task):
-<​code>​+<​code ​python>
 from locust import Locust, TaskSet, task from locust import Locust, TaskSet, task
  
fw/locust.1407489400.txt.gz · Última modificación: 2020/05/09 09:24 (editor externo)