locust 2.34.2.dev2__py3-none-any.whl → 2.34.2.dev6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/argument_parser.py +5 -0
- locust/env.py +3 -0
- locust/html.py +1 -0
- locust/main.py +1 -0
- locust/webui/dist/report.html +24 -24
- {locust-2.34.2.dev2.dist-info → locust-2.34.2.dev6.dist-info}/METADATA +1 -1
- {locust-2.34.2.dev2.dist-info → locust-2.34.2.dev6.dist-info}/RECORD +11 -11
- {locust-2.34.2.dev2.dist-info → locust-2.34.2.dev6.dist-info}/WHEEL +0 -0
- {locust-2.34.2.dev2.dist-info → locust-2.34.2.dev6.dist-info}/entry_points.txt +0 -0
- {locust-2.34.2.dev2.dist-info → locust-2.34.2.dev6.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
@@ -17,5 +17,5 @@ __version__: str
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
18
18
|
version_tuple: VERSION_TUPLE
|
19
19
|
|
20
|
-
__version__ = version = '2.34.2.
|
21
|
-
__version_tuple__ = version_tuple = (2, 34, 2, '
|
20
|
+
__version__ = version = '2.34.2.dev6'
|
21
|
+
__version_tuple__ = version_tuple = (2, 34, 2, 'dev6')
|
locust/argument_parser.py
CHANGED
@@ -838,6 +838,11 @@ Typically ONLY these options (and --locustfile) need to be specified on workers,
|
|
838
838
|
dest="equal_weights",
|
839
839
|
help="Use equally distributed task weights, overriding the weights specified in the locustfile.",
|
840
840
|
)
|
841
|
+
other_group.add_argument(
|
842
|
+
"--profile",
|
843
|
+
type=str,
|
844
|
+
help="Set a profile to group the testruns together",
|
845
|
+
)
|
841
846
|
|
842
847
|
user_classes_group = parser.add_argument_group("User classes")
|
843
848
|
user_classes_group.add_argument(
|
locust/env.py
CHANGED
@@ -39,6 +39,7 @@ class Environment:
|
|
39
39
|
available_shape_classes: dict[str, LoadTestShape] | None = None,
|
40
40
|
available_user_tasks: dict[str, list[TaskSet | Callable]] | None = None,
|
41
41
|
dispatcher_class: type[UsersDispatcher] = UsersDispatcher,
|
42
|
+
profile: str | None = None,
|
42
43
|
):
|
43
44
|
self.runner: Runner | None = None
|
44
45
|
"""Reference to the :class:`Runner <locust.runners.Runner>` instance"""
|
@@ -76,6 +77,8 @@ class Environment:
|
|
76
77
|
"""Base URL of the target system"""
|
77
78
|
self.reset_stats = reset_stats
|
78
79
|
"""Determines if stats should be reset once all simulated users have been spawned"""
|
80
|
+
self.profile = profile
|
81
|
+
"""Profile name for the test run"""
|
79
82
|
if stop_timeout is not None:
|
80
83
|
self.stop_timeout = stop_timeout
|
81
84
|
elif parsed_options:
|
locust/html.py
CHANGED
@@ -105,6 +105,7 @@ def get_html_report(
|
|
105
105
|
"locustfile": escape(str(environment.locustfile)),
|
106
106
|
"tasks": task_data,
|
107
107
|
"percentiles_to_chart": stats_module.PERCENTILES_TO_CHART,
|
108
|
+
"profile": escape(str(environment.profile)) if environment.profile else None,
|
108
109
|
},
|
109
110
|
theme=theme,
|
110
111
|
)
|