Commit Graph

9 Commits

Author SHA1 Message Date
tdadela f99e9df700 sort imports 2024-01-17 00:07:29 +01:00
Lars Holmberg 19b1ed08ba SequentialTaskSet: Clarify documentation to indicate you can do multiple requests in a task without a SequentialTask. Support task weights (repetitions) instead of silently ignoring them. 2020-09-30 08:50:57 +02:00
Lars Holmberg 7c0fcc213d Auto format using Black (20.8b1, which includes the magic trailing commas fix). Added black --check to build. 2020-08-27 09:17:42 +02:00
anuj_ 530db29ad7 More renaming. Includes renaming in test and example files as well. 2020-04-20 13:52:22 +12:00
Jonatan Heyman 6727a3152e Update documentation and examples
(Replace TaskSequence and @seq_task with SequentialTaskSet class that executes tasks in order of declaration)
2020-04-05 22:03:01 +02:00
Jonatan Heyman 02ce1665b4 Change how tasks and TaskSets are declared on Locust classes.
* Let users specify tasks directly under a Locust class, just as one would do it on a TaskSet class. These tasks will get the Locust instance as argument when executed.
* Removed Locust.task_set from the public API, and instead let users use either the tasks attribute or the @task decorator.
* Introduce a Locust.abstract boolean attribute. If it's set to True the Locust class is meant to be used as a base class, and users of that type can not be spawned directly from it.
2020-04-01 01:08:07 +02:00
Jonatan Heyman 10d7856880 Updated example files with with new wait_time API 2019-10-24 17:50:19 +02:00
Realsid ff7fddd1ff Update browse_docs_sequence_test (#904)
Corrected class name for 'TaskSequence' and initialised self.toc_url and self.urls_on_current_page to None
2018-10-29 10:43:05 -04:00
Ramshell 30275af9f2 Add tasks sequence support (#827)
* Add support for tasks sequence

* Add TaskSequence documentation

* Add TaskSequence and seq_task to the __init__.py
2018-06-28 11:48:48 -04:00