Extent Reports - Exclude Skip tests from Pass Percentage calculation | Selenium Forum
V
Valerie Kollmann Posted on 20/02/2019

Hello, I am using the Hybrid framework with Java and generating Extent Reports. Is there a way to exclude Skipped tests (tests with run mode = 'N') from the Pass Percentage calculation on the Extent Report? For example, my test suite is setup to run 2 tests. When both tests run successful, the Pass Percentage is 100%. One test script only needs to run occassionally so the majority of the time, the Runmode for that test script is N. When this test script is Skipped, the Pass Percentage is 50%. Is there a way to exclude the Skipped test when calculating the Pass Percentage so that the Pass Percentage is 100%?


A
Ashish Thakur Replied on 20/02/2019

You need to set the status to skip in extent reports to mark the test as skipped 


V
Valerie Kollmann Replied on 07/03/2019

This is my ExtentManager.java code and ReportsConfig.xml. Where do I add logic to eleminate Skipped tests from the Test Passed Percentage?

 


A
Ashish Thakur Replied on 07/03/2019

THis cannot be done in current version of extent reports