我已经在GitLab中放置了一个测试自动化套件,我可以使用eclipse中的testng.xml运行该测试套件。
我想设置一个日程表,每天从GitLab使用CI/CD运行,请帮助/建议我从GitLab实现持续测试的步骤。
我尝试创建.gitlab-ci.yml文件,但不知道运行testng.xml文件的脚本
如果有人尝试过这个场景,请帮助我
发布于 2019-06-27 16:48:36
从command line创建运行testng的作业,并使用Pipeline schedules gitlab功能计划作业执行
发布于 2019-11-07 19:59:29
设置项目的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>您可以在gitlab ci中定义一个环境变量来运行套件测试
https://stackoverflow.com/questions/56770352
复制相似问题