如何从gitlab运行/计划testng.xml
我在GitLab中放置了一个测试自动化套件,我能够使用eclipse中的testng.xml运行测试套件 我想使用如何从gitlab运行/计划testng.xml,gitlab,Gitlab,我在GitLab中放置了一个测试自动化套件,我能够使用eclipse中的testng.xml运行测试套件 我想使用CI/CD从GitLab设置每天运行的时间表,请帮助/建议我从GitLab实现持续测试的步骤 我试图创建.gitlab ci.yml文件,但不知道运行testng.xml文件的脚本 如果有人尝试了此方案,请帮助我创建一个运行testng的作业,并使用gitlab功能计划作业执行设置项目的pom.xml: <properties> <testng> <
CI/CD
从GitLab
设置每天运行的时间表,请帮助/建议我从GitLab实现持续测试的步骤
我试图创建.gitlab ci.yml
文件,但不知道运行testng.xml
文件的脚本
如果有人尝试了此方案,请帮助我创建一个运行
testng
的作业,并使用gitlab功能计划作业执行设置项目的pom.xml:
<properties>
<testng> </testng>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>path_suite/${testng}.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
org.apache.maven.plugins
maven surefire插件
3.0.0-M3
path_suite/${testng}.xml
您可以在gitlab ci中定义一个环境变量来运行套件测试