【发布时间】:2024-04-23 11:50:02
【问题描述】:
当前设置: Jenkins 指向 -> POM.xml [3 Profiles setup - 每个指向不同的 env] -> Profile 1 指向 ->testng1.xml,Profile 2 指向 ->testng2.xml,Profile 3 指向 ->testng3。 xml。
我希望到目前为止这是有道理的。
我想知道如何同时启动两个或多个作业而不会在控制台中出现此错误:
Executing Maven: -B -f C:/Users/user1/workspace/project1/pom.xml clean test site org.reportyng:reporty-ng:1.2:reportyng -Pbenen1
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project project1: Failed to clean project: Failed to delete
使用 XVFB 插件可以让我在同一台机器上同时运行多个测试吗?
我感觉这与所有这些 TestNG.xml 文件都位于同一个项目中并因此共享相同的目标、src 和测试输出文件夹这一事实有关。我不确定如何根据 testng.xml 测试套件将它们分开。
任何帮助将不胜感激。 谢谢!
【问题讨论】:
-
TestNG 是您在此设置中的测试经理。试试 TestNG 的文档。