[英]How to run specific groups in tesng.xml using ant?
我必須根據testng.xml中的組運行測試。 以及哪個測試組必須包含要使用ant給出的條件。
例如。
<test name="Test1" preserve-order="true">
<groups>
<run>
<include name="Group1"/>
<include name="Group2"/>
</run>
</groups>
</test>
在這里我想給輸入Group1然后只有Group1應該運行。
如何做到這一點? 請幫我。 謝謝
如果您使用的是TestNG Ant插件,則可以直接將組指定為屬性:
groups:要運行的組的列表,以空格或逗號分隔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.