简体   繁体   中英

Re-running failed TestNG tests programmatically

I was wondering if there was any easy way to re-run failed TestNG tests programmatically? I know TestNG provides a testng-failed.xml which is easy to run as a testng test. Should I just read in the testng-failed.xml file and run it that way or is there a simpler way to do it? Thanks!

这可能是最简单的方法,因为该文件已经包含了仅重新运行失败的测试所需的所有信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM