Q1.What is TestNG?
Interviewers open with "TestNG" to confirm you can define the concept in one crisp line before going deeper. In TestNG rounds this filters out candidates who only remember syntax and can't articulate the underlying idea to a non-expert teammate.
TestNG is a Java testing framework inspired by JUnit but designed for a wider range of test categories — unit, integration, end-to-end, and functional. It's the default runner for enterprise Selenium suites in 2026.
- Open with a one-sentence definition of TestNG, then a concrete TestNG example — never start with history or theory.
- Keep the answer to 60–90 seconds; anything longer signals you can't summarise TestNG cleanly.
- Know the annotation execution order cold — it's the follow-up in almost every TestNG round.