Selenium Java - TestNG Integration
You want to run a setup method once before all tests in a TestNG class and a cleanup method after each test method. Which annotations should you use for these methods?
@BeforeClass runs once before any test methods in the class.@AfterMethod runs after each test method to clean up.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions