Answer the question
In order to leave comments, you need to log in
How to implement output of the following text to the console in TestNG?
Need help with TestNg
We need to create xml suites and 4 classes, after running which we will get the following output to the console:
BeforeSuite
BeforeClass
Test
AfterMethod
Test
Test data: 1 2
AfterMethod
AfterMethod
Test
Test data: three four
AfterMethod
Test
Test data: true false
AfterMethod
BeforeClass
Test
Test
Test
Test data: 1 2
AfterMethod
Test
Test data: three four
Test
Test data: true false
AfterClass
AfterClass
AfterTest
BeforeTest
Test
AfterMethod
AfterTest
AfterSuite
Conditions:
1. Each method must contain only 1 print that matches its annotation.
2. Can't use cycles
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question