Selenium RC Question:
Download Job Interview Questions and Answers PDF
How to run test cases with dependent in Selenium using TestNG?
Answer:
The @Test should be followed by (dependsOnMethods = "testLogin")
Note:- The test case will be executed after the testLogin case
Ex: @Test(dependsOnMethods = "testLogin")
Note:- The test case will be executed after the testLogin case
Ex: @Test(dependsOnMethods = "testLogin")
Download Selenium Remote Control Interview Questions And Answers
PDF
Previous Question | Next Question |
What are the basic annotations used to run TestNG tests in Selenium? | How to run the test cases in group in Selenium using TestNG? |