我越来越“ 并行运行testng测试用例时,无法在控制台日志中创建文件“错误。我是否遗漏了某些内容或者是否需要在pom.xml中添加内容?
观察到类似下面的错误:
[TestNG] Running:
C:\Users\askha2\git\sxyz.test\Copy of mnopqrst.xml
Test case: tigermania
Test case: applemania
Test case: potatomania
Failed to create file
Failed to create file
XML URL: JOB ...
我的xml文件如下所示:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="DEV XYZ Service Smoke Test Suite"
allow-return-values="true" verbose="1" parallel="tests" thread-count="2">
<test name="Test Context URL - 1">
<parameter name="sUrl" value="JOB" />
<classes>
<class
name="com.abc.tigermania"></class>
</classes>
</test>
<test name="Test Context URL - 2">
<parameter name="sUrl" value="JOB" />
<classes>
<class
name="com.abc.applemania"></class>
</classes>
</test>
<test name="Test Context URL - 3">
<parameter name="sUrl" value="JOB" />
<classes>
<class
name="com.abc.potatomania"></class>
</classes>
</test>
当我增加thread-count =“2”
时,我也会看到更多失败