[英]Maven/TestNG/Selenium - Can I set up multiple tests suites in one testng.xml and run different ones at different times?
I am using Maven/TestNG/Selenium. 我正在使用Maven / TestNG / Selenium。 I have about 50 tests in one suite and one file right now what I want to do is separate tests into several suites:
我现在在一个套件中有大约50个测试,并且现在有一个文件,我要做的就是将测试分成几个套件:
Acceptance - Will have the five tests to accept the build Full Pass - The other forty-five tests Debug - The one testing I am currently coding and debugging 接受-将有五项测试来接受构建的完整通过-另一四十五项测试调试-我目前正在编码和调试的一项测试
I want to be able to run a particular suite as needed. 我希望能够根据需要运行特定的套件。 Can I do this from one testng.xml file or do I need multiple files?
我可以从一个testng.xml文件执行此操作,还是需要多个文件?
I think my testng.xml file will look something like: 我认为我的testng.xml文件如下所示:
<suite name="ACCEPT">
<test name="blah"> </test>
<test name="foo"> </test>
</suite>
<suite name="FULLPASS">
<test name="T1"> </test>
<test name="T2"> </test>
<test name="T3"> </test>
</suite>
suiteXmlFiles
tag or by passing system property -Dsurefire.suiteXmlFiles=suite.xml
like shown here suiteXmlFiles
标签或传递系统属性-Dsurefire.suiteXmlFiles=suite.xml
一样显示在这里
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.