Reputation: 331
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
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