2015-12-15 24 views
0

我能够顺序执行上述套件,但我想要并行执行这些套件。如何与TestNG并行执行多个套件

please find the xml 
<suite name="Main suite" > <!--commenting parallel="suite-file" thread-count="2"--> 
    <suite-files> 
     <suite-file path="suite1.xml" /> 
    <suite-file path="suite2.xml" /> 
     </suite-files> 
    </suite> 
+0

<! - commenting parallel =“suite-file”thread-count =“2” - > vinay

+1

您应该将代码放在问题的下方,而不是注释。 –

回答

0

我对类似问题here的回答可能对您有所帮助。您正在使用suite套件XML配置进入正确的轨道。

自从我使用这种类型的配置已经有相当长的一段时间了,但是我在该答案中发布的内容是我如何才能使其并行工作。其他方法可能存在,但希望这会让你开始。