How to use and implement TestNG Listeners for Automation Framework | TestNG Interview

preview_player
Показать описание
This video contains the selenium interview questions and their answers.

ITestListener is one of the type of TestNG Listener.
We implement ItestListener when we want to perform some logic based on testcase execution status.
ITestListener has following methods
OnStart- OnStart method is called when any test starts.
onTestSuccess- onTestSuccess method is called on the success of any test.
onTestFailure- onTestFailure method is called on the failure of any test.
onTestSkipped- onTestSkipped method is called on skipped of any test.
onTestFailedButWithinSuccessPercentage- method is called each time test fails but is within success percentage.
onFinish- onFinish method is called after all tests are executed.

1) Automation testing tutorial for beginners
2) Selenium Interview Questions and Answers | Selenium Tutorial | Selenium WebDriver Training

Please share, support and subscribe.
Follows us on:

Automation Framework Questions

Selenium Interview Questions

About Online Rostrum:

This is a tech channel and we are sharing knowledge and helping our community.
Рекомендации по теме
Комментарии
Автор

Turn the music off. It is a major distraction

reggy.williams
join shbcf.ru