Skip to content

haojiwu/testng-retry-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TestNG Retry Example

This is an example to show how to write test with TestNG that will retry when test is failed. It is useful when the behavior of tested code is not 100% consistent.

Test case that sepcified retryAnalyzer with MyRetryAnalyzer in the annotation will re-run test at most 3 times when test is failed. Also, MyTestListenerAdapter will only keep last test result and re-write other test results to SKIP. When generating report we don't want to count failed test case multiple times.

To run this project, just clone it and run

mvn clean test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages