novice
novice

Reputation: 43

How to get the passed and failed test cases count from Extent Report html

How to get the passed and failed test cases count from Extent Report html and display the counts in the Console after Selenium test execution

screenshot

Upvotes: 0

Views: 1648

Answers (1)

Neagu V
Neagu V

Reputation: 480

In your TestLister you can set on methods:

  1. onTestFailure
  2. onTestSuccess

the next variables:

  1. int failTC = 0;
  2. int passTC = 0

and then in the methods add +1 and onFinish print the results.

Upvotes: 0

Related Questions