Testng listener: MyTestNGListener error -The type MyTestNGListener must implement the inherited abstract method ITestLi | Selenium Forum
S
Shilpa Posted on 13/06/2021

public class MyTestNGListener implements ITestListener{
public void ontestfailure(ITestResult result){
System.out.println(" test failed");
System.out.println(result.getName());
System.out.println(result.getStatus());
System.out.println(result.getThrowable().getMessage());

}
public void ontestsuccess(ITestResult result){
System.out.println("test passed" +result.getName());


A
Ashish Thakur Replied on 15/06/2021

Which version of testng are you using?


S
Shilpa Replied on 17/06/2021

Im using 6.9.10


S
Shilpa Replied on 24/06/2021

Please can u update me on this issue


A
Ashish Thakur Replied on 30/06/2021

Please use 7.0

Sorry for delay