Maven-Part 7: Integrate TestNG Listeners in Maven project || How to update testng.xml file

Опубликовано: 29 Сентябрь 2024
на канале: Codenbox AutomationLab
558
10

#selenium #seleniumWendriver #ITestListener #testng
+What is Listeners in TestNG?
+How to create TestNG Listener class and Integrate to Maven project
+Types of Listeners in TestNG
▬▬▬▬▬▬ In this Video ▶️ ▬▬▬▬▬▬
What is Listeners in TestNG?
Listener is defined as interface that modifies the default TestNG’s behavior. As the name suggests Listeners “listen” to the event defined in the selenium script and behave accordingly. It is used in selenium by implementing Listeners Interface. It allows customizing TestNG reports or logs. There are many types of TestNG listeners available.

Below are the few TestNG listeners:

IAnnotationTransformer ,
IAnnotationTransformer2 ,
IConfigurable ,
IConfigurationListener ,
IExecutionListener,
IHookable ,
IInvokedMethodListener ,
IInvokedMethodListener2 ,
IMethodInterceptor ,
IReporter,
ISuiteListener,
ITestListener .

Maven documents in details: http://codenboxautomationlab.com/maven/

▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬
Blog ► http://codenboxautomationlab.com/​​
GitHub Repo ► https://github.com/codenbox​​/

▬▬▬▬▬▬ Connect with us 👋 ▬▬▬▬▬▬
~~~Subscribe to this channel, and press bell icon to get all updated videos on Selenium and Cypress Automation:
   / codenboxautomationlab  

~~~ Follow us on Facebook & Twitter to get more updates:
  / ​​  
  / codenboxteam