Commit Graph

21 Commits

Author SHA1 Message Date
Lars Holmberg c69316d4a9 Remove superflous None parameter from example 2024-03-14 17:55:35 +01:00
Lars Holmberg ee175acae1 Fix use as lib example 2024-02-27 11:10:33 +01:00
tdadela f99e9df700 sort imports 2024-01-17 00:07:29 +01:00
Lars Holmberg 5b18214005 make use-as-lib.py example executable 2024-01-06 11:07:25 +01:00
keegoo 592d47c416 add events when initialize Environment 2023-01-11 21:38:47 +08:00
Lars Holmberg 1b3faaa675 Update use-as-lib documentation and example. add init event firing. 2022-11-11 14:40:38 +01:00
Jonatan Heyman 03b6df4fab Re-add info on wait_time to Quickstart documentation and examples 2020-11-18 14:20:49 +01:00
Lars Holmberg 7676b5389c Make wait_time = constant(0) the default instead of forcing our users to specify it. Makes a big difference in readability of small User classes and reduces the cognitive overhead for locust beginners. Fixes #1308 2020-11-11 22:14:20 +01: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
taojy123 f8b69b5cc8
fix example for issue #1542
see from https://github.com/locustio/locust/issues/1542
2020-08-25 22:13:30 +08:00
taojy123 fc55d05d82
Merge branch 'master' into master 2020-08-18 22:25:10 +08:00
Lars Holmberg eb15f2bf38 Renamed hatch rate to spawn rate. Fixes #1405 2020-08-18 09:18:53 +02:00
taojy123 2e575a1b82 update example, add stats_history when use locust as a lib 2020-08-13 16:49:43 +08:00
anuj_ 07ff3482ee Rename the locust_classes to user_classes. Updated relevant documentation. 2020-04-21 15:57:58 +12:00
anuj_ 530db29ad7 More renaming. Includes renaming in test and example files as well. 2020-04-20 13:52:22 +12:00
Jonatan Heyman e32332de3d Access runner and web_ui through Environment instance instead of using return value 2020-04-16 20:39:52 +02:00
Jonatan Heyman 3a2ba2e5d0 Remove unused imports 2020-04-14 16:54:35 +02:00
Jonatan Heyman 542ef71a8d Fix typo 2020-04-14 16:20:51 +02:00
Jonatan Heyman c5f84c2982 Update examples/use_as_lib.py, and include that file on "Use as lib" documentation page 2020-04-14 14:37:14 +02:00
Jonatan Heyman 175bd8a825 Remove runner argument from WebUI constructor, and instead get the reference from the Environment instance 2020-03-16 17:31:02 +01:00
Jonatan Heyman 0858e7f662 Update example on using Locust as a library
Add lib example in examples/ dir
2020-03-15 15:14:19 +01:00