使用来自主(windows)的jenkins在从(unix)计算机上运行squish测试

使用来自主(windows)的jenkins在从(unix)计算机上运行squish测试,jenkins,squish,Jenkins,Squish,我正在尝试使用来自主机的Jenkins在从机上运行挤压测试。 从主计算机运行生成作业时,我遇到以下错误:- 异常:com.froglogic.squish.squishe异常:com.froglogic.squish.execute.TestCaseNotFoundException:在suite/home/admin/Desktop/squish\u setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite\u py/tst\

我正在尝试使用来自主机的Jenkins在从机上运行挤压测试。 从主计算机运行生成作业时,我遇到以下错误:-

异常:com.froglogic.squish.squishe异常:com.froglogic.squish.execute.TestCaseNotFoundException:在suite/home/admin/Desktop/squish\u setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite\u py/tst\u general/test.py in suite/home/admin/Desktop/squish\u setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite\u py

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


同样在slave中squish配置下的同一控制台输出中,显示我的Jenkins主机的ip地址。

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

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

其次,testcase应该指向文件夹,而不是里面的.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集成的一个独特问题,很抱歉,我无法解释这一点。除非在squishserver设置或类似设置中使用此功能?

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

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

其次,testcase应该指向文件夹,而不是里面的.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集成的一个独特问题,很抱歉,我无法解释这一点。除非在squishserver设置或类似设置中出现此错误?

即使在提供路径直到文件夹后,也会出现此错误:>>异常:com.froglogic.squish.SquishException:com.froglogic.squish.execute.TestCaseNotFoundException:找不到tst\u/home/admin/Desktop/sqush\u setup/sqush-6.0.1-qt47x-linux64/examples/qt/addressbook/suite\u js/tst\u general in suite/home/admin/Desktop/sqush\u setup/sqush-6.0.1-qt47x-linux64/examples/qt/addressbook/suite\u js(尝试使用和不使用tst\u前缀)即使在提供路径后,直到文件夹出现此错误:>>异常:com.froglogic.squish.SquishException:com.froglogic.squish.execute.TestCaseNotFoundException:在套件中找不到tst\home/admin/Desktop/squish\u setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite\u js/tst\u general/home/admin/Desktop/Squish_setup/Squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_js(尝试使用和不使用tst_u前缀)