使用 jenkins 中的参数选择要运行的测试套件

问题描述

我需要为一个测试套件运行一个构建(我想使用参数(选择参数),因为我希望能够在构建我的工作之前选择测试套件)。因此,我创建了一个参数并配置了下一个设置 watch the screen

但现在我不明白我需要在 Build section 中更新什么来配置我的工作。

这是我的 testng.xml 文件

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYstem "http://testng.org/testng-1.0.dtd">
<suite name="TestNG Listeners Suite">

    <test name= "Test">

        <classes>

             <class name="com.***.selenium.tests.LoginTest"/>
             <class name="com.***.selenium.tests.logoutTest"/>
             <class name="com.***.selenium.tests.AjaxTests"/>
             <class name="com.***.selenium.tests.ApplicationTests"/>
             <class name="com.***.selenium.tests.BasicAuthenticationTest"/>
             <class name="com.***.selenium.tests.JSPageTests"/>
             <class name="com.***.selenium.tests.RegistrationTests"/>
         </classes>
     </test>
 </suite>

请给我一些建议,因为我没有找到任何相关信息。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)