I have test automation framework with a page object model.
Scenario:
In my testng.xml I mentioned 3 tests (Test1, Test2, Test3) which are in same package. Each Test contains 3 methods
I ran my testng.xml file and say like in Test1 only 3rd method failed. So when I'm running testng-failed.xml it tries to run only 3rd method.
But in my case I need to run complete Test i.e Test1 again.
I ran testng-failed.xml from test-output folder and verified the result but no luck.
Expected:
If any method fails (from a Test) then complete Test should be executed
Actual:
After running testng-failed.xml only failed method from a class is executed.