user1787641
user1787641

Reputation: 331

How to get the count of test suites run in TestNG?

Hi All am trying to customize the testng execution results output in console using TestNG Listeners, i have got different test suites under parent test suite, am stuck in getting the count of testsuites run at the time of test execution.Any suggestions??

Upvotes: 3

Views: 1712

Answers (1)

niharika_neo
niharika_neo

Reputation: 8531

One of the options to track at runtime ... You can implement ISuiteListener and increment the counts of suites started. You can maintain a counter for the suites completed as well and output to your console. Say in onstart, increment the global counter for started suites and in onfinish, increment the finished ones. You can maintain a running suites counter as well.

Upvotes: 2

Related Questions