【问题标题】:Running squish test on slave (unix) machine using jenkins from master (windows)使用来自master(windows)的jenkins在slave(unix)机器上运行squish测试
【发布时间】:2016-03-16 04:28:27
【问题描述】:

我正在尝试使用来自主机的 Jenkins 在从机上运行 squish 测试。 从我的主机运行构建作业时,出现以下错误:-

异常:com.froglogic.squish.SquishException:com.froglogic.squish.execute.TestCaseNotFoundException:找不到 tst_/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/套件中的地址簿/suite_py/tst_general/test.py /home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py

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

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

【问题讨论】:

    标签: jenkins squish


    【解决方案1】:

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

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

    其次,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 地址。这似乎是詹金斯集成独有的问题,很抱歉我无法对此有所了解。除非在 squishserver 设置或类似的设置中?

    【讨论】:

    • 即使在提供路径之后,直到文件夹出现此错误:>> 异常: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_js/tst_general 在套件 /home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/ suite_js(尝试使用和不使用 tst_ 前缀)
    猜你喜欢
    • 2015-01-29
    • 2013-03-26
    • 1970-01-01
    • 2016-07-20
    • 2017-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-27
    相关资源
    最近更新 更多