TestNG Selenium Java

What is the purpose of TestNG in Selenium Java?
To generate test reports
To manage test dependencies
To perform parallel test execution
All of the above
Which annotation is used to mark a method as a test method in TestNG?
@BeforeTest
@AfterTest
@Test
@DataProvider
How can you prioritize the execution order of test methods in TestNG?
By using the priority attribute of the @Test annotation
By using the dependsOnMethods attribute of the @Test annotation
By using the order attribute of the tag in the testng.xml file
By using the dependsOnGroups attribute of the @Test annotation
Which assertion method is used to compare two values for equality in TestNG?
assertEquals
assertNotEquals
assertTrue
assertFalse
Which annotation is used to skip a test method in TestNG?
@Ignore
@SkipTest
@Disabled
@Test(enabled = false)
What is the purpose of @DataProvider annotation in TestNG?
To provide data for parameterized tests
To define test groups
To configure test dependencies
None of the above
Which attribute of the @Test annotation is used to specify the expected exception in TestNG?
expectedException
expectedError
expectedErrorType
expectedExceptions
What is the default thread pool size for parallel test execution in TestNG?
1
5
10
Unlimited
Which listener interface is used to customize the test execution behavior in TestNG?
ITestListener
ISuiteListener
IInvokedMethodListener
All of the above
Which annotation is used to configure the test suite in TestNG?
@TestSuite
@Suite
@TestConfig
@Configuration
0
{"name":"TestNG Selenium Java", "url":"https://www.quiz-maker.com/QBXR2ACYO","txt":"What is the purpose of TestNG in Selenium Java?, Which annotation is used to mark a method as a test method in TestNG?, How can you prioritize the execution order of test methods in TestNG?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker