簡體   English   中英

如何使用ant在tesng.xml中運行特定組?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM