在从属(unix)机器上运行挤压测试,使用来自master(windows)的jenkins



我正在尝试使用主机器中的 Jenkins 在从属机器上运行挤压测试。从我的主机器运行构建作业时,我收到以下错误:-

Exception: com.froglogic.squish.SquishException: com.froglogic.squish.execute.TestCaseNotFoundException: 找不到 tst_/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt

/addressbook/suite_py/tst_general/test.py in suite/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py

(尝试使用和不使用tst_前缀)

同样在从属服务器 squish 配置下的相同控制台输出中,它显示了我的 Jenkins 主机器的 IP 地址。

免责声明:我不使用 squish jenkins 集成。

您遇到的问题是使用绝对路径。squishrunner 将在套件目录中查找测试用例名称。

其次,测试用例应该指向文件夹,而不是里面的.py文件。

在本例中,它正在寻找一个文件夹:

tst_/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py/tst_general/test.py

文件夹内:

/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py

这是行不通的。

正如我所提到的,我不使用 jenkins,所以我将概述您将使用的 cmdline,我希望这可以帮助您解决问题?

squishrunner --testsuite 
/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py 
--testcase tst_general

您似乎还有第二个问题,即它显示错误的IP地址。这似乎是 jenkins 集成独有的问题,很抱歉我无法对此进行任何说明。除非在挤压服务器设置或类似的东西中?

最新更新