我正试图在詹金斯金牛座的帮助下,用性能插件运行J抄测试。在我的yml文件中,我已经通过了运行jmx脚本的场景,在jenkins中,我使用了execute shell来运行我的测试。
bzt test_suite.yml -report我还在jenkins中将当前目录设置为我的工作区。因此,当我在构建控制台中构建项目时,我会得到以下输出
Running as SYSTEM
Building in workspace C:\Users\muhammad.taus\PycharmProjects\PerfAutomationFramework
[PerfAutomationFramework] $ sh -xe C:\Users\MUHAMM~1.TAU\AppData\Local\Temp\jenkins2737910596558040446.sh
+ bzt test_suite.yml -report
C:\Users\MUHAMM~1.TAU\AppData\Local\Temp\jenkins2737910596558040446.sh: line 2: bzt: command not found
Build step 'Execute shell' marked build as failure
Creating parser with percentiles:'0,50,90,100,' filterRegex:
Cannot detect file type because of error: Failed to copy C:\Users\muhammad.taus\PycharmProjects\PerfAutomationFramework\stats.xml to C:\Users\muhammad.taus\.jenkins\jobs\PerformanceAutomation\builds\36\temp\stats.xml
Finished: FAILURE但以前,测试在我的主机上运行良好。我用pip安装了金牛座,在CMD中输入bzt就可以得到金牛座,当我输入py时它会选择python,我也安装了JMETER_HOME,在cmd中,当我使用 Jmeter 时,它会打开cmd。我不知道发生了什么,但我不能再执行测试了。我只记得将python版本从32位更改为64位,但我确信这不会导致问题。如果有人能在这方面帮助我,那就太好了。
发布于 2020-10-15 15:47:45
您有一些Linux和Windows的奇怪组合,您的问题没有包含足够的详细信息来解决问题。
python可执行文件的完整路径bzt代替/path/to/python -m bzt.cli your_config.ymlNo module named bzt,请使用pip安装它:
python -m pip安装python可执行文件,请尝试python3更多信息:
https://stackoverflow.com/questions/64370325
复制相似问题