Skills101
← All practice quizzes

Quiz: TestNG

5 questionsNo time limitPass: 60%+10 XP on first pass

Organise automation with TestNG: the annotation lifecycle, hard and soft assertions, data-driven tests with @DataProvider, groups for smoke and regression runs, suites in testng.xml, listeners, and parallel runs.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which annotation runs before EVERY test method?

  2. Question 2

    A @DataProvider returns 3 rows. How many times does the linked @Test run?

  3. Question 3

    What happens if you forget soft.assertAll()?

  4. Question 4

    How do you run only the smoke group from Maven?

  5. Question 5

    Why use @AfterMethod(alwaysRun = true) for driver.quit()?