简体   繁体   中英

How to merge all the testng emailable report into single report through programatically

I have 100 test cases and retry logic will execute if there are any failed test scripts and the emailable report had only status of failed test scripts alone. I just want to merge the first and retry run test reports as single one in the form of emailable report in testng after execution completed. Probably in Jenkins post build activity I just want to perform merge activity. I just need suggestions, and efficient way to achieve this.

Screenshot:

在此处输入图片说明 The above screenshot had 3 emailable.html report. I just want to create another emailable report which has the consolidate details of all three html files.

Same answer for this as well :)

As HTML is basically an XML. We can merge it with xlst. Using xpath, we can easily isolate which section had to extracted from each html and merge them to single html Refer this post for better idea. Merging html files using XSLT?

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