neoload 1.3.19.dev4__py3-none-any.whl → 1.3.19.dev5__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.
- neoload/commands/checkvu.py +4 -6
- neoload/commands/validate.py +1 -1
- neoload/neoload_cli_lib/checkvu_runner.py +8 -51
- neoload/neoload_cli_lib/schema_validation.py +2 -2
- neoload/version.py +1 -1
- {neoload-1.3.19.dev4.dist-info → neoload-1.3.19.dev5.dist-info}/METADATA +2 -2
- {neoload-1.3.19.dev4.dist-info → neoload-1.3.19.dev5.dist-info}/RECORD +11 -11
- {neoload-1.3.19.dev4.dist-info → neoload-1.3.19.dev5.dist-info}/WHEEL +0 -0
- {neoload-1.3.19.dev4.dist-info → neoload-1.3.19.dev5.dist-info}/entry_points.txt +0 -0
- {neoload-1.3.19.dev4.dist-info → neoload-1.3.19.dev5.dist-info}/licenses/LICENSE +0 -0
- {neoload-1.3.19.dev4.dist-info → neoload-1.3.19.dev5.dist-info}/top_level.txt +0 -0
neoload/commands/checkvu.py
CHANGED
|
@@ -11,9 +11,9 @@ __yaml_extensions = (".yaml", ".yml")
|
|
|
11
11
|
|
|
12
12
|
@click.command()
|
|
13
13
|
@click.option('-e', '--engine-jar', '--jar',
|
|
14
|
-
help="
|
|
15
|
-
"
|
|
16
|
-
"
|
|
14
|
+
help="Skip the latest-JAR download and run this CheckVU engine: a local patched file "
|
|
15
|
+
"(hotfix / air-gapped) or a download URL. If omitted, the latest JAR for this OS "
|
|
16
|
+
"is downloaded and cached.",
|
|
17
17
|
metavar="PATH|URL")
|
|
18
18
|
@click.option('-j', '--java', help="Path to the java executable to use. "
|
|
19
19
|
"Defaults to JAVA_HOME/bin/java, then java on the PATH.", metavar="PATH")
|
|
@@ -25,7 +25,7 @@ __yaml_extensions = (".yaml", ".yml")
|
|
|
25
25
|
"Disabled by default. Equivalent to setting CHECKVU_CLI_PLAY_THINK_TIME=1.")
|
|
26
26
|
@click.option('-s', '--as-code-schema', default=None,
|
|
27
27
|
help="NeoLoad as-code schema (URL or local path) to validate PROJECT_FILE against. "
|
|
28
|
-
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models
|
|
28
|
+
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models (v3). "
|
|
29
29
|
"If schemaVersion is absent, use schemas/v3.0/as-code.schema.json.",
|
|
30
30
|
metavar="PATH|URL")
|
|
31
31
|
@click.option('--ssl-cert', default="",
|
|
@@ -106,8 +106,6 @@ def cli(engine_jar, java, user_path, play_think_time, as_code_schema, ssl_cert,
|
|
|
106
106
|
resolved_jar = checkvu_runner.resolve_jar(engine_jar, ssl_cert, java_executable,
|
|
107
107
|
verify_signature=not unsafe_skip_jar_verification)
|
|
108
108
|
logging.debug("Using CheckVU JAR at '%s'", os.path.abspath(resolved_jar))
|
|
109
|
-
if not engine_jar:
|
|
110
|
-
checkvu_runner.check_jar_build(java_executable, resolved_jar)
|
|
111
109
|
|
|
112
110
|
with checkvu_runner.prepare_controller_properties(
|
|
113
111
|
controller_properties) as resolved_controller_properties:
|
neoload/commands/validate.py
CHANGED
|
@@ -4,7 +4,7 @@ import neoload_cli_lib.schema_validation as schema_validation
|
|
|
4
4
|
@click.command()
|
|
5
5
|
@click.option('-s', '--as-code-schema', default=None,
|
|
6
6
|
help="NeoLoad as-code schema (URL or local path) to validate FILE against. "
|
|
7
|
-
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models
|
|
7
|
+
"When omitted, download schemas/v<schemaVersion>/as-code.schema.json from neoload-models (v3). "
|
|
8
8
|
"If schemaVersion is absent, use schemas/v3.0/as-code.schema.json.",
|
|
9
9
|
metavar="PATH|URL")
|
|
10
10
|
@click.option('--schema-url', 'schema_url', default=None, hidden=True,
|
|
@@ -33,11 +33,8 @@ SUPPORTED_OS = (OS_LINUX, OS_LINUX_ARM64, OS_MAC, OS_MAC_ARM64, OS_WIN32_X64)
|
|
|
33
33
|
|
|
34
34
|
CACHE_DIR_NAME = "checkvu"
|
|
35
35
|
FALLBACK_JAR_NAME = "checkvu.jar"
|
|
36
|
-
CHECKVU_JAR_DOWNLOAD_URL = "https://github.com/Tricentis-NeoLoad/neoload-root/actions/runs/39966419452"
|
|
37
|
-
EXPECTED_NLG_BUILD = "3747"
|
|
38
36
|
|
|
39
37
|
__java_version_pattern = re.compile(r'version "(\d+)(?:\.(\d+))?')
|
|
40
|
-
__nlg_build_pattern = re.compile(r"build=\d+-(\d+)")
|
|
41
38
|
__content_disposition_filename = re.compile(
|
|
42
39
|
r"filename\*?=(?:UTF-8\'\')?\"?([^\";]+)\"?", re.IGNORECASE)
|
|
43
40
|
__shipped_jar_version_pattern = re.compile(
|
|
@@ -205,43 +202,6 @@ def check_java_version(java):
|
|
|
205
202
|
return major
|
|
206
203
|
|
|
207
204
|
|
|
208
|
-
def parse_nlg_build(version_output):
|
|
209
|
-
"""Return the NLG build number from the first line of `java -jar … --version`.
|
|
210
|
-
|
|
211
|
-
Example: NeoLoad CheckVU CLI 2026.3.0;build=20260921-3747 -> 3747
|
|
212
|
-
"""
|
|
213
|
-
lines = (version_output or "").splitlines()
|
|
214
|
-
if not lines:
|
|
215
|
-
return None
|
|
216
|
-
match = __nlg_build_pattern.search(lines[0])
|
|
217
|
-
if match is None:
|
|
218
|
-
return None
|
|
219
|
-
return match.group(1)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
def check_jar_build(java, jar):
|
|
223
|
-
"""Run `java -jar <jar> --version` without printing it, and require the expected NLG build."""
|
|
224
|
-
try:
|
|
225
|
-
completed = subprocess.run(
|
|
226
|
-
[java, "-jar", jar, "--version"],
|
|
227
|
-
stdout=subprocess.PIPE,
|
|
228
|
-
stderr=subprocess.STDOUT,
|
|
229
|
-
universal_newlines=True)
|
|
230
|
-
except OSError as err:
|
|
231
|
-
raise cli_exception.CliException(
|
|
232
|
-
"Unable to read the CheckVU JAR version with '{0} -jar {1} --version': {2}".format(
|
|
233
|
-
java, jar, str(err)))
|
|
234
|
-
|
|
235
|
-
output = completed.stdout or ""
|
|
236
|
-
first_line = output.splitlines()[0].strip() if output.strip() else "unknown"
|
|
237
|
-
actual = parse_nlg_build(output)
|
|
238
|
-
if actual != EXPECTED_NLG_BUILD:
|
|
239
|
-
raise cli_exception.CliException(
|
|
240
|
-
"the JAR build version is not the correct one. Actual: {0} expected build: {1}".format(
|
|
241
|
-
first_line, EXPECTED_NLG_BUILD))
|
|
242
|
-
return actual
|
|
243
|
-
|
|
244
|
-
|
|
245
205
|
def is_url(spec):
|
|
246
206
|
return spec is not None and "://" in spec
|
|
247
207
|
|
|
@@ -253,7 +213,7 @@ def resolve_jar(engine_jar=None, ssl_cert="", java_executable=None, verify_signa
|
|
|
253
213
|
1. --jar / --engine-jar local file: skip download, run that JAR (hotfix).
|
|
254
214
|
2. --jar / --engine-jar URL: download that URL into the cache (1 JAR).
|
|
255
215
|
3. a cached JAR, if one exists: reused as-is, no network call.
|
|
256
|
-
4.
|
|
216
|
+
4. redirect.php latest for this OS, only when no JAR is cached yet.
|
|
257
217
|
"""
|
|
258
218
|
jar = _locate_jar(engine_jar, ssl_cert)
|
|
259
219
|
if verify_signature:
|
|
@@ -276,16 +236,12 @@ def _locate_jar(engine_jar, ssl_cert):
|
|
|
276
236
|
if cached:
|
|
277
237
|
return cached
|
|
278
238
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
"The CheckVU JAR can be downloaded here:\n"
|
|
286
|
-
"{1}\n"
|
|
287
|
-
"You can also download NeoLoad installers from there.\n".format(
|
|
288
|
-
cache_dir, CHECKVU_JAR_DOWNLOAD_URL))
|
|
239
|
+
try:
|
|
240
|
+
return download_jar(build_redirect_url(), ssl_cert)
|
|
241
|
+
except cli_exception.CliException as err:
|
|
242
|
+
raise cli_exception.CliException(
|
|
243
|
+
"{0}\nNo cached JAR to fall back on. Provide one with --jar <path|url> "
|
|
244
|
+
"for an air-gapped or hotfix run.".format(err))
|
|
289
245
|
|
|
290
246
|
|
|
291
247
|
def _keep_only_jar(cache_dir, keep_path):
|
|
@@ -365,6 +321,7 @@ def build_nlw_controller_properties(login_data):
|
|
|
365
321
|
url = login_data.get_url()
|
|
366
322
|
token = login_data.get_token()
|
|
367
323
|
if url.rstrip("/") == SAAS_API_URL.rstrip("/"):
|
|
324
|
+
# CheckVU treats only the US SaaS url as SaaS. The EU SaaS is still treated as on-premise by NeoLoad GUI.
|
|
368
325
|
return {
|
|
369
326
|
"neoload.web.deployment.type": "SAAS",
|
|
370
327
|
"neoload.web.saas.secretToken": token,
|
|
@@ -17,7 +17,7 @@ import gitignorefile
|
|
|
17
17
|
from neoload_cli_lib.neoLoad_project import is_not_to_be_included
|
|
18
18
|
|
|
19
19
|
YAML_NOT_CONFIRM_MESSAGE = "YAML does not confirm to NeoLoad DSL schema."
|
|
20
|
-
__models_raw_root = "https://raw.githubusercontent.com/Neotys-Labs/neoload-models/
|
|
20
|
+
__models_raw_root = "https://raw.githubusercontent.com/Neotys-Labs/neoload-models/v3"
|
|
21
21
|
__compatibility_url = __models_raw_root + "/schemas/compatibility.json"
|
|
22
22
|
__default_schema_version = "3.0"
|
|
23
23
|
|
|
@@ -139,7 +139,7 @@ def schema_url_for_version(version):
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
def load_supported_schema_versions(ssl_cert=''):
|
|
142
|
-
"""Supported versions are the keys of neoload-models schemas/compatibility.json (
|
|
142
|
+
"""Supported versions are the keys of neoload-models schemas/compatibility.json (v3)."""
|
|
143
143
|
compatibility_json, _etag, _not_modified = get_network_schema_by_spec(__compatibility_url, ssl_cert)
|
|
144
144
|
if compatibility_json is None:
|
|
145
145
|
raise cli_exception.CliException(
|
neoload/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.3.19.
|
|
1
|
+
__version__ = "1.3.19.dev5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: neoload
|
|
3
|
-
Version: 1.3.19.
|
|
3
|
+
Version: 1.3.19.dev5
|
|
4
4
|
Summary: A command-line native utility for launching and observing NeoLoad performance tests
|
|
5
5
|
Home-page: https://github.com/Neotys-Labs/neoload-cli
|
|
6
6
|
Author: Neotys
|
|
@@ -231,7 +231,7 @@ neoload checkvu -u myUser default.yaml
|
|
|
231
231
|
```
|
|
232
232
|
- `PROJECT_FILE` is a path to an as-code yaml file. The CLI validates it against the as-code schema first (same as `neoload validate`), using `-s, --as-code-schema` to override the default schema.
|
|
233
233
|
- `--play-think-time` plays think times defined on pages and delays marked as think time. Disabled by default (same as the CheckVU advanced setting).
|
|
234
|
-
- `-e, --engine-jar, --jar <path-or-url>` runs a local
|
|
234
|
+
- `-e, --engine-jar, --jar <path-or-url>` skips the JAR resolution below and runs a local patched file (hotfix) or an explicit download URL. If omitted: reuse the single cached JAR if one exists (no network call); otherwise detect the OS, call `redirect.php` (`version=latest`), follow the 302 to `files.tricentis.com`, and cache the JAR under the filename from the final `Content-Disposition` (e.g. `neoload-checkvu-cli-2026.3.0-linux.jar`). Clear the cache directory to force a fresh download after a new CheckVU release.
|
|
235
235
|
- `-j, --java` selects the java executable; by default `JAVA_HOME/bin/java` then `java` on the PATH. Java 21 is required and verified before running (other major versions such as 25 are rejected). The JAR is launched with `-XX:TieredStopAtLevel=1 -Xms256m -Xmx512m -XX:+UseSerialGC` to keep startup short, and `JAVA_TOOL_OPTIONS` is emptied for that process so these options always apply and do not reach the Load Generator it spawns. Use a JDK rather than a JRE: the JDK provides `jarsigner`, which the CLI uses to check that the JAR is made by Tricentis. With a JRE the command stops with an error, unless you bypass the check using `--unsafe-skip-jar-verification`
|
|
236
236
|
- `-o, --output <path>` sets the directory that receives `checkvu-result.json` and the `checkvu-content/` request and response dump. When omitted, nothing is written to disk and only the console output is produced. Relative paths resolve from the current directory, not from `PROJECT_FILE`. The dump is not redacted, so treat it as confidential.
|
|
237
237
|
- `-w, --work-dir <path>` sets the directory used for engine files and logs. Defaults to a temporary directory deleted afterwards unless `--keep-temp-work-dir` is set; a directory you supply yourself is never deleted.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
neoload/__init__.py,sha256=ppFbz9b3WzL6AcSU2aTGLdPe-5OMwfoDu1g-ZwErOYM,83
|
|
2
2
|
neoload/__main__.py,sha256=VC8eyTjuTMxUEOCDXCuT2DLR6dy_f6JC0Wv1MNVgVm8,2212
|
|
3
|
-
neoload/version.py,sha256=
|
|
3
|
+
neoload/version.py,sha256=MFjjuDj_Kx9hWihClHEvUUXCuWxBqwqypbsGg4J2yEk,27
|
|
4
4
|
neoload/version_manager.py,sha256=OoBdz8nKuhJigkDjAif_6S55TQsrAlutwCP1J8KyTGk,87
|
|
5
5
|
neoload/commands/__init__.py,sha256=WyP7zmk3HxcGie69Sd3YTWqbc_DTOqtcphnNrt1Fnf0,218
|
|
6
|
-
neoload/commands/checkvu.py,sha256=
|
|
6
|
+
neoload/commands/checkvu.py,sha256=U9-yaB1JDZCGgWvY3UK0nHLeSXyGVxWbqwTC-Quqhhc,7635
|
|
7
7
|
neoload/commands/config.py,sha256=NHOq7pHnLiSXyriwwBaD8gL_1W7FZDqnkJEqO_dvpCU,1139
|
|
8
8
|
neoload/commands/docker.py,sha256=a9ROmeLu38LY6nOUAKtdOiSXHbSRoxE8XT18FnuyQh0,1940
|
|
9
9
|
neoload/commands/fastfail.py,sha256=IwMjIdpuMETvn133XVg0Xy0kZtbH-ilHgh-sD6uJJO4,8443
|
|
@@ -18,13 +18,13 @@ neoload/commands/status.py,sha256=2rHLJAFCBNa_9zfWXlqnOZvE_qkU5sN1ldRhlafv9Ng,59
|
|
|
18
18
|
neoload/commands/stop.py,sha256=o_aSr03cACXvQmUAljK8luxFvZu_Jhw63HGfXS5Vks0,653
|
|
19
19
|
neoload/commands/test_results.py,sha256=K8m51Jvztt5pqNG7Fo3w98nfG7pCzyRjQMQJnw6EkEA,10969
|
|
20
20
|
neoload/commands/test_settings.py,sha256=BXt57t_UjTeRAO5FiOR8wPzYWlyO9Ed8RbKra8-gCcM,7234
|
|
21
|
-
neoload/commands/validate.py,sha256=
|
|
21
|
+
neoload/commands/validate.py,sha256=FdbSCC2hk7Rk-aohGGOVzBr1vZerGPp28DQjEvF5QEA,1222
|
|
22
22
|
neoload/commands/wait.py,sha256=YRygyhvhswqHSS2b_K7M8VbAQ3J6tABoQFZm8jJLEto,663
|
|
23
23
|
neoload/commands/workspaces.py,sha256=rs-f2wq1zFc1DxItWVkvyIt8jm1JUpJMNB94N8H8NJU,1521
|
|
24
24
|
neoload/commands/zones.py,sha256=vlpZW6-CRHH8-6SNtGqfWnzvyg_CkD10NReBInsVgjU,1681
|
|
25
25
|
neoload/neoload_cli_lib/__init__.py,sha256=0FViI4L9NiOG4IG_2w8Di_4Z5s_G3xBag5DIpIKUr_8,189
|
|
26
26
|
neoload/neoload_cli_lib/bad_as_code_exception.py,sha256=n_LQOPeBo0rteffVQMZ0Ux7I5YwLrWJA_R3rl_ed3zU,54
|
|
27
|
-
neoload/neoload_cli_lib/checkvu_runner.py,sha256=
|
|
27
|
+
neoload/neoload_cli_lib/checkvu_runner.py,sha256=2X9MeFmiHXZgG0lbY_JWkbk1g2m3Z4igznJ9j-VMlSs,16184
|
|
28
28
|
neoload/neoload_cli_lib/cli_exception.py,sha256=qGHDgh5LxmJ6B8bFGucFWhSmj8UIGccvayYN0IbZ2cI,562
|
|
29
29
|
neoload/neoload_cli_lib/config_global.py,sha256=MBUUgzLqnySzgVgwE3DNw-06seeF27h5YOcxcH0hwl8,1153
|
|
30
30
|
neoload/neoload_cli_lib/displayer.py,sha256=E9pCQ2U8X4HK-FA0kqAQfXOyJocB7q5YlQIgcGccBzY,5672
|
|
@@ -40,7 +40,7 @@ neoload/neoload_cli_lib/paths.py,sha256=O5-bR7Ywh46pVlLvQvyfyBvI6xpBsHB2Jec4r8gX
|
|
|
40
40
|
neoload/neoload_cli_lib/resources.py,sha256=hewA8HMWULTUHJSHCuqXfsYsrn38z6k9g9pFp2aINms,1006
|
|
41
41
|
neoload/neoload_cli_lib/rest_crud.py,sha256=2R1j9bSP8nDvmKpQdbThNS-e5tqhY93q4IQRTkb0pkI,7170
|
|
42
42
|
neoload/neoload_cli_lib/running_tools.py,sha256=o-20HZuDvKWFmTAlPUBooqdKiMR2wbSuDT_tvsIAOCk,4621
|
|
43
|
-
neoload/neoload_cli_lib/schema_validation.py,sha256=
|
|
43
|
+
neoload/neoload_cli_lib/schema_validation.py,sha256=xkyDR986p8C4XCrO4DlBqVPv1C0cwz8fdZlnjNXT0Bw,17912
|
|
44
44
|
neoload/neoload_cli_lib/tools.py,sha256=xqOClV2A1s10v-creFy7BRNl_1Zwe9ogU52kQ9UJA_k,6796
|
|
45
45
|
neoload/neoload_cli_lib/user_data.py,sha256=_jMrrBlRVrkxl2J_dRC6nrNXT1h-OKHe0ZzfbKDEgT0,10673
|
|
46
46
|
neoload/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,7 +66,7 @@ neoload/resources/jinja/trends/transaction_trends.html.j2,sha256=SUyv6dNuwxgOm8J
|
|
|
66
66
|
neoload/resources/jinja/trends/trends.js,sha256=-fg5rmaf6GizSmxNJRDzH4XKkPNtZMgAksyVodfgxAU,4301
|
|
67
67
|
neoload/resources/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
68
|
neoload/resources/templates/default.yaml,sha256=QofwyiMcjHX9evkbopTGBTLfxnrU8N4KhJQaAnccLCs,4327
|
|
69
|
-
neoload-1.3.19.
|
|
69
|
+
neoload-1.3.19.dev5.dist-info/licenses/LICENSE,sha256=i-CfWekEItJFCt9_bKrGowVoyI8FnXudiJMQVfAqQLM,1316
|
|
70
70
|
tests/helpers/__init__.py,sha256=PX7b5FCyCKBVvTL8wIQZw1G1dQv6Z93RwFZ-qVal89o,25
|
|
71
71
|
tests/helpers/test_utils.py,sha256=SOS1HSPo3bu3HC9DSdwxCVJNW5V0B5O_Vv7nmvdSaYM,4951
|
|
72
72
|
tests/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -85,8 +85,8 @@ tests/resources/report/expected_template_trends.html,sha256=bssvJ47IcvBdpvzEDDrI
|
|
|
85
85
|
tests/resources/report/expected_trends.json,sha256=rAMlxHfeA8nw8TUiyXpaPmgCJDbWV8oVcJRw8ak1xdM,1808078
|
|
86
86
|
tests/resources/report/raw_expected_custom_report.html,sha256=m2Ydbkca5h6Iekcrhwobz4uPLVsGPr8i57eQmDtzc0Q,51599
|
|
87
87
|
tests/resources/report/raw_expected_report.json,sha256=dVxw05cJ05DjhXFKlO55njABO3yHKN_9SLZ9ym4h2Yw,482528
|
|
88
|
-
neoload-1.3.19.
|
|
89
|
-
neoload-1.3.19.
|
|
90
|
-
neoload-1.3.19.
|
|
91
|
-
neoload-1.3.19.
|
|
92
|
-
neoload-1.3.19.
|
|
88
|
+
neoload-1.3.19.dev5.dist-info/METADATA,sha256=3afEdyqY6t68netwHHa9sKzf8jgtnux1anwWPfpnI-w,33232
|
|
89
|
+
neoload-1.3.19.dev5.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
90
|
+
neoload-1.3.19.dev5.dist-info/entry_points.txt,sha256=GNW-z2buvHrI63YHM8oI_5NVb4Muoqz8MX6FQO_cwkU,49
|
|
91
|
+
neoload-1.3.19.dev5.dist-info/top_level.txt,sha256=mNWJq4fq22w4_6bsS4xAVbZJrzcsiRM8K0nJwQHlkgg,14
|
|
92
|
+
neoload-1.3.19.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|