RE: What is the difference between prioritize and dependsMethos

Hi Lakshya,

I am just confused about what is the difference between Prioritize and Dependsmethods attribute of Test annotation. Because what i am thinking that we can use either one of them for executing the test cases in a sequence.

Please suggest.

mohitit09 Default Asked on January 12, 2015 in Selenium WebDriver.
Add Comment
2 Answers



In the above scenario, the “sendEmail” method gets executed only when “login” method is executed and passed. If “login” method fails then the “sendEmail” method is skipped, i.e. it is not executed and is NOT marked as failed.

Train Answered on January 22, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.