selenium webdriver - I want to execute specific test cases say for Ex: TC5 and TC10 using TestNG? -
when have 10 automation test cases , want execute specific test case tc5 , tc10. how acheive using testng?
testng can invoked in different ways:
- command line
- ant
- eclipse
- intellij's idea
with 4 links should able appropriate documentation whichever way want run. each 1 documents how run select methods, classes, packages, , groups.
you can define testng.xml
file includes/excludes methods/classes/packages/groups want run. e.g.:
<!doctype suite system "http://testng.org/testng-1.0.dtd"> <suite name="partial-tc-suite"> <test name="tc5+tc10"> <classes> <class name="com.example.test.tc5"/> <class name="com.example.test.tc10"/> </classes> </test> </suite>
Comments
Post a Comment