October 2018
Intermediate to advanced
192 pages
5h 12m
English
For this, let's understand a very simple program. We create a very simple listener first.
We have implemented the ITestListener and four of the methods, which are:
The following code shows the implementation of ITestListener:
public class SampleListener implements ITestListener { @Override public void onTestStart(ITestResult result) { System.out.println("The test that has started is: " + result.getName()); } @Override public void onTestSuccess(ITestResult result) { System.out.println("The test that has passed is: " + result.getName()); } @Override public void onTestFailure(ITestResult result) { System.out.println("The test that has failed is: ...Read now
Unlock full access