Retry failed test automatically up to 2 times
Preconditions (3)
Step 1: Create a RetryAnalyzer class implementing IRetryAnalyzer
Step 2: Override retry method to retry test up to 2 times on failure
Step 3: Annotate the test method with @Test and set retryAnalyzer to the created class
Step 4: Run the test suite
Step 5: Observe that if the test fails, it retries automatically up to 2 times
✅ Expected Result: The failed test is retried automatically up to 2 times before final failure is reported