How to run a group of test cases using testng?



How to run a group of test cases using testng?..

Answer / Kedar Gautam

In TestNG, you can use the @Test(groups = {"groupName"}) annotation on the test methods that you want to include in a particular group. Then, you can run the tests for a specific group by using the command line option -groups or in the IDE.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

Write a code snippet to perform mouse hover in webdriver.

1 Answers  


What is the difference between find elements () and find element ()?

1 Answers  


What the webdriver supported mobile testing drivers do you know?

1 Answers  


How do u get the attribute of the web element?

1 Answers  


How does testng allow you to state dependencies?

1 Answers  


Write a code snippet to launch chrome browser in webdriver.

1 Answers  


What is Dynamic xpath in selenium ?

1 Answers   Infogain,


What is the hybrid framework?

1 Answers  


In which format does source view shows your script in selenium ide?

1 Answers  


What is the difference between driver.get() and driver.navigate.to()

1 Answers  


How to insert a comment in selenium ide?

1 Answers  


What do you know about Selenese?

1 Answers  


Categories