Do you know how can we make one test method dependent on other using testng?



Do you know how can we make one test method dependent on other using testng?..

Answer / Balvinder Singh

In TestNG, you can make one test method dependent on another using the `dependsOnMethods` annotation. You need to specify the name of the method that needs to be executed before the current method as follows: @Test(dependsOnMethods = {"methodToBeExecutedFirst"})

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

What are the drawbacks of test automation?

1 Answers  


Can any one give me the script for drag and drop or setselection functions ?like in a not pad i want to select 5 lines

1 Answers  


What are the points that are covered while planning phase of automation ?

1 Answers  


What automating testing tools are you familiar with?

2 Answers  


WHAT IS TEST SCRIPT AND HOW DO YOU CREATE IT?

1 Answers  


Explain me how to check if an element is visible on the page?

1 Answers  


if i want to use different values in datatable with each iteration of for loop what would i do ??/

1 Answers  


How do you select which automation tool is best suited for you?

1 Answers  


I want to test a mobile software by an automation tool which is a IP telephony based software designed for both ios and android phone, basically this apps is develop for make call though few low cost audio codecs from Aircraft to Ground and Ground to Aircraft so anyone can suggest me which testing tool we can use for it

1 Answers   Tech Mahindra,


whether flash selenium supports to test Gaming application? like follows: identifying the images, dynamic animations, Dynamic value changes field and win conditions etcc..,

1 Answers  


what is the command for identifing the color of the object. please help me ? my numberis 9916800532

3 Answers   TCS,


How could you explain the main difference between webdriver and rc?

1 Answers  


Categories