BAEL-701 updated the method argument

This commit is contained in:
dhruba619 2017-03-07 21:15:18 +05:30
parent b1063f8da9
commit 42ab317188

View File

@ -10,22 +10,22 @@ public class CustomisedListener implements ITestListener {
private static final Logger LOGGER = LoggerFactory.getLogger("TEST_REPORT"); private static final Logger LOGGER = LoggerFactory.getLogger("TEST_REPORT");
@Override @Override
public void onFinish(ITestContext arg0) { public void onFinish(ITestContext context) {
LOGGER.info("PASSED TEST CASES"); LOGGER.info("PASSED TEST CASES");
arg0.getPassedTests() context.getPassedTests()
.getAllResults() .getAllResults()
.stream() .stream()
.forEach(result -> { .forEach(result -> {
LOGGER.info(result.getName()); LOGGER.info(result.getName());
}); });
LOGGER.info("FAILED TEST CASES"); LOGGER.info("FAILED TEST CASES");
arg0.getFailedTests() context.getFailedTests()
.getAllResults() .getAllResults()
.stream() .stream()
.forEach(result -> { .forEach(result -> {
LOGGER.info(result.getName()); LOGGER.info(result.getName());
}); });
LOGGER.info("Test completed on: " + arg0.getEndDate().toString()); LOGGER.info("Test completed on: " + context.getEndDate().toString());
} }
@Override @Override