2015-12-15 23 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配置進入正確的軌道。

自從我使用這種類型的配置已經有相當長的一段時間了,但是我在該答案中發佈的內容是我如何才能使其並行工作。其他方法可能存在,但希望這會讓你開始。