Following are the some basic and advanced Top TestNG Interview Question and answer for both beginner and experience Automation Tester. We have focused on Introduction to TestNG, Annotation , priority etc.
Before going ahead to TestNG Interview Question, please have a look on TestNG Tutorial to have some better understanding on the TestNG basic.
- What is TestNG?
- What is JUnit?
- What is Difference between TestNG and JUnit ?
- What is Annotation ?
- What is Exception Test ?
- What is Exception handling?
- What is Suite ?
- What is TimeOut ?
- What is Group Test?
- What is Parameterized Testing ?
- What is dependency test?
- What is @Before Annotation ?
- What is @After Annotation ?
- What is @BeforeMethod Annotation?
- What is @AfterMethod Annotation?
- What is @Test Annotation?
- What is @BeforeSuite Annotation?
- What is @AfterSuite Annotation?
- What is @BeforeTest Annotation?
- What is @AfterTest Annotation?
- What is @BeforeGroup Annotation?
- What is @AfterGroupWh Annotation?
- What is @DataProvider?
- What is Annotation Framework?
- What is Framework?
- What is TestNG XML file?
- What is Thread count ?
- What is Verbose?
- How to run test case parallel in TestNG?
- What is Time Out in TestNG XML File?
- What is IO Exception ?
- What is NullPointer Exception ?
- What is Arithmetic Exception?
- What is Priority ?
- Which one is the highest priority in TestNG?
- What is the sequence of execution is TestNG based on Priority?
- What is Groups in TestNG?
- How to exclude Test case in TestNG?
- How to Include specific test case in TestNG?
- What is Parallel Execution ?
- What is Session Handling ?
- What is TestNG dependency ?
- What is the use of dependsOnGroup?
- What is Listener?
- Is Listener Class or Interface?
- What are the method of ITestListener Interface ?
- What is IReporter ?
- How to run multiple Test suite in TestNG?
- What is report Generation in TestNG?
- How you will customize PDF in TestNG?
- What are the Annotation Attributes?
- What is Soft Assertion?
- What is Hard Assertion?
- What is the difference between soft and hard Assertion ?
- What is TestNG Testing framework?
- How to create custom Graph, Pi chart etc?