3. TestNG Framework || LISTENERS || ITestResult Interface.

preview_player
Показать описание

#testng #java #apacheant #automationtesting #ant

The complete playlist is available here

#Udemy Courses with Discounts

Рекомендации по теме
Комментарии
Автор

Hi Rahul,

Thanks for Sharing . It was helpfull for me in automation .

prabhakar.yyeswanthraj
Автор

The main thing to note from this video is that ITestResult is NOT a listener. It is an interface implemented by TestNG to contain information regarding tests.

towhidskynet
Автор

Thank you, it is very helpful.

Have a query, here we can see in the afterMethod function two confitions PASS & FAIL respectively, and not added case for SKIP, which tried running but it does not work, kindly confirm on this. thanks.

santoshbhinge
Автор

Since ITestResult is an interface so it must be implemented by some we must be initializing ITestResult reference variable ie result:
ITestResult result = new TestResult();
And then calling the methods:
result.getStatus();
But its works fine without that initialization also. How?? Can anybody explain??

monica
Автор

Could you explain how the value is getting passed to ITestResult reference

SowjanyaRasetty