Using ITestResult instead of inheritance | Selenium Forum
N
Nikita Agrawal Posted on 19/09/2022

Hello Sir,

I have attached the screen shot of my query, can you please eleborate why here instance of test in listener class will be different than instance in test case if CustomListener class will extend TestBase class

As per my understanding, Child class can access parent class object instance then why we cant access test in this scenerio.


N
Nikita Agrawal Replied on 19/09/2022

Can we make make it as static and use test in listener class