January 2018
Beginner to intermediate
354 pages
7h 59m
English
Using the ITestResult class in the teardown method allows users to query the current test method result, and call a number of getter or setter methods on it that can be used in test listener and test reporter classes. Some of those include getName, getMethod, getParameters, getStartMillis, and getEndMillis. This is a very useful feature of TestNG and can be useful information in the listener or report! The ITestContext class also provides a means to get test results data for reporting.
Read now
Unlock full access