How to rerun failed test from where they instead of from beginning? (TestNG)



  • Is there any way to re run the failed testcase from the page where it got failed instead of running the testcase from beginning in Selenium Java ?



  • No, not by default. It could be possible, but you need to store which code can be skipped and somehow put this logic in your tests. This would create a pretty complex test-framework.

    Make your tests shorter 🙂 WebDriver tests should run in seconds, not minutes.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2