Foren

Executing a TestNG File with several classes

micah williams, geändert vor 6 Jahren.

Executing a TestNG File with several classes

New Member Beitrag: 1 Beitrittsdatum: 28.09.17 Neueste Beiträge
Move the initialization logic as part of either:

org.testng.ITestListener – If you would like the setup to be executed only once per <test> tag ( i.e., instead of using @BeforeTest)
org.testng.ISuiteListener – If you would like the setup to be executed only once per <suite> tag ( i.e., instead of using @BeforeSuite)
Use the setAttribute() method to persist the initialized data as an attribute of either the ITestContext (this represents a <test> tag ) or ISuite (this represents a <suite> tag).
Wire in this listener into TestNG via :
the <listeners> tag (or)
the @Listeners annotation (or)
Service loaders.</listeners></suite></test></suite></test>

Learn more about Mobile Automation Platform Appium!!