Rerun skipped using TestNG

Hi All,
How can I rerun a skipped test using TestNG?
I use RetryAnalyzer to rerun failed tests,  how should I do it for skipped tests?
Your replies are greatly appreciated.

Default Asked on June 23, 2015 in Selenium WebDriver.
Add Comment
  • 2 Answer(s)

    Karthika,

    There is nothing called rerunning a skipped test, it wasnt run earlier so no re run. If you want to run a skipped test either you modify the annotation of the test @Test(enable = ??) or you change the annotation in code directly to not skip a test.

    Virender

    Professor Answered on June 29, 2015.
    Add Comment

    Thanks Virender,

    Can I use @Test(enabled =True) to run the skipped tests in the same run?
    If there is any other way, can you share sample code of it?

    Default Answered on June 29, 2015.
    Add Comment
  • Your Answer

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