2015-05-11 167 views

回答

0

請嘗試以下操作testng.xml。如果你不知道的測試用例的數量運行您的代碼之前,只是要確保threadCount高於吧:)

<suite parallel="methods" threadCount="10">  
    <test name="MyTest"> 
     <groups> 
     <run> 
      <include name="up" /> 
     </run> 
     </groups> 

     <classes> 
     <class name="test.TestClass" /> 
     </classes> 
    </test> 
    </suite> 
+0

我的要求是,只運行一個特定的測試組的測試案例並行。使用上述方法,它將並行運行所有測試方法。套件將包含多個包,類,方法,組。在這種情況下,這不會以我想要的方式提供幫助。 – Sarath

相關問題