Taurus - 在 运行 jmx 测试和 yml 测试中出错

Taurus - Getting error on running jmx test and yml test

我已经安装了JMeter5.X,不知道为什么bzt还要重新下载。 我编辑了 .bzt-rc 文件。提供的已安装 JMeter 的路径。下面的代码来自 .bzt-rc 文件。

path: C:[=11=]1_team\apache-jmeter-5.2.1\bin  # path to local jmeter installation ~/.bzt/jmeter-taurus/{version}/bin/jmeter

没有找到设置已安装 JMeter 的现有路径的方法。 尝试在 cmd 中使用现有的 JMETER:

bzt -o modules.jmeter.path=C:[=12=]1_Team\apache-jmeter-5.2.1\bin InContact.jmx

C:[=13=]1_TeamPlatinum>bzt InContact.jmx
13:29:30 INFO: Taurus CLI Tool v1.14.1[0m
13:29:30 INFO: Starting with configs: ['C:\Users\teams\AppData\Local\Temp\jmx_u679qs83.json'][0m
13:29:30 INFO: Configuring...[0m
13:29:30 INFO: Artifacts dir: C:[=13=]1_Team20-02-21_13-29-30.812601[0m
13:29:30 INFO: Preparing...[0m
[33m13:29:31 WARNING: Failed to check for updates[0m
13:29:31 INFO: Will install JMeter into C:\Users\teams\.bzt\jmeter-taurus.2.1[0m
[31m13:29:31 ERROR: Can't fetch https://jmeter.apache.org/download_jmeter.cgi[0m
13:29:31 INFO: Downloading: https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.2.1.zip[0m
[31m13:29:32 ERROR: Error while downloading https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.2.1.zip: Unsuccessful download from https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.2.1.zip[0m
100% [                                                         ] ETA:  --:--:--
[31m13:29:32 ERROR: Internal Error: JMeter download failed: No more links to try[0m
13:29:32 INFO: Post-processing...[0m
13:29:32 INFO: Artifacts dir: C:[=13=]1_TeamPlatinum20-02-21_13-29-30.812601[0m
[33m13:29:32 WARNING: Done performing with code: 1[0m

path 设置必须指向 JMeter 安装的根文件夹,而不是 "bin" 子文件夹

所以将您的配置更改为:

path: C:[=10=]1_team\apache-jmeter-5.2.1

或 bzt -o modules.jmeter.path=C:[=31=]1_Team\apache-jmeter-5.2.1

Taurus 应该安装您本地的 JMeter。

参考文献: