Skip to content
CodeKruPro

Which TestNG annotation runs first?

QuizEasyJava onlyAsked in: Accenture, BrowserStack, Capgemini, Cognizant, Infosys, TCS, Wipro

A testng.xml suite file runs one test class. The class has four set-up methods: one with @BeforeSuite, one with @BeforeTest, one with @BeforeClass and one with @BeforeMethod. Which of the four runs first?

Choose one answer.

to answer and keep your progress. Reading is free for everyone.