JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
TestNG interview questions
TestNG interview questions
Back
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?
A. FALSE
B. TRUE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. What is the correct way to exclude a test in TestNG?
A. Using @Test(enabled = false) annotation.
B. None
C. Using @Test(exclude = true) annotation.
D. Using @Test(include = false) annotation.
Show Correct Answer
Correct Answer is :
Using @Test(enabled = false) annotation.
3. Which of the following statements is false in the context of TestNG framework?
A. TestNG doesn't need to extend any class whereas JUnit does.
B. None
C. The @DataProvider annotation accepts single string attribute and yields back an array of objects.
D. TestNG permits to define the dependent test cases. Each test case is independent of other test cases.
Show Correct Answer
Correct Answer is :
None
4. Which of the following statements is correctly defining the Time-out test in TestNG?
A. It's the time duration to wait for a test suite to finish its execution.
B. None
C. It's the time duration to wait for a test to finish its execution.
D. It's the time duration to wait for a test group to finish its execution.
Show Correct Answer
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?
A. @Before/AfterClass
B. @Before/AfterGroup
C. @Before/AfterSuite
D. @Before/AfterTest
Show Correct Answer
Correct Answer is :
@Before/AfterClass
Similar Interview Questions
Search for latest jobs
Find Jobs