【问题标题】:how to add multiple test cases in a test suite inside jenkinsfile for jenkins?如何在 jenkins 的 jenkinsfile 内的测试套件中添加多个测试用例?
【发布时间】:2018-04-09 12:04:37
【问题描述】:

我在 jenkins 上有一个阶段,它必须执行挤压测试。在我的詹金斯文件中:

step([$class: 'SquishBuilder',
               squishConfig: 'Default',
               testSuite: env.WORKSPACE +"/test_suites/suite_sample_module2"])

实际上,我在 test_suites 中进行了各种测试,试图将其添加到舞台上:

step([$class: 'SquishBuilder',
               squishConfig: 'Default',
               testSuite: '''env.WORKSPACE + "/test_suites/suite_sample_module2" env.WORKSPACE + "/test_suites/suite_sample_module2"'''])

但它并没有将其作为单独的套件阅读,因此建议如何针对 test_suites 字段添加多个测试用例。

【问题讨论】:

    标签: jenkins groovy automated-tests squish


    【解决方案1】:

    testSuite 条目必须用换行符分隔。如果不确定,可以考虑使用“Pipeline Syntax”>“Sample Step”>“step: General Build Step”和“Build Step”>“Squish”(需要Jenkins专用的Squish插件,不是支持Hudson的那个和詹金斯)。

    【讨论】:

      猜你喜欢
      • 2018-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-03
      • 2011-03-10
      • 2017-11-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多