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?

from running tests in testng

testng can invoked in different ways:

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -