TestNG interview questions

TestNG interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 5

1. TestNG doesn’t make it mandatory to declare @BeforeClass and @AfterClass, which is present in JUnit. Is it true or false?

Correct Answer is : TRUE

2. What is the correct way to exclude a test in TestNG?

Correct Answer is : Using @Test(enabled = false) annotation.

3. Which of the following statements is false in the context of TestNG framework?

Correct Answer is : None

4. Which of the following statements is correctly defining the Time-out test in TestNG?

Correct Answer is : It's the time duration to wait for a test to finish its execution.

5. Which is not a valid setUp/tearDown level in TestNG framework?

Correct Answer is : @Before/AfterClass

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon