✅ 1. Basic & HR Questions
Q1. Tell me about yourself.
I am a [your profession/role] with experience in [industry/field]. I have worked on [type of projects or tasks] that helped me develop [skills/strengths]. I am passionate about [your interest or area of growth] and enjoy [a soft skill or quality, e.g., collaborating with teams, solving problems]. Currently, I am looking for an opportunity where I can contribute [what you want to contribute] and continue to grow professionally.
Q2. Why do you want to join this company?
Answer:
I am impressed with your focus on continuous quality and innovation. This role aligns with my experience in automation and manual testing and gives me a platform to grow in areas like security and API testing. I’m also eager to work in a collaborative, full-stack team environment as described in the job profile.
Q3. What are your strengths?
Answer:
-
Strong understanding of manual and automation testing
-
Proficient with Selenium, Java, TestNG
-
Quick learner and good in debugging and identifying root causes
-
Good collaboration in Agile teams
✅ 2. Manual Testing Questions
Q4. What is the difference between severity and priority?
Answer:
-
Severity is the impact of the defect on the application.
-
Priority is how soon the defect needs to be fixed.
Example: A spelling mistake on a homepage has low severity but high priority.
Q5. What are different types of testing you have performed?
Answer:
-
Smoke Testing
-
Regression Testing
-
Functional Testing
-
Integration Testing
-
UI Testing
-
API Testing (Basic)
-
Cross-browser Testing
Q6. How do you write test cases?
Answer:
I write test cases based on requirement documents, use cases, and user stories. Each test case includes test steps, expected results, preconditions, and postconditions. I follow the traceability matrix to ensure full coverage.
✅ 3. Automation Testing (Selenium + Java + TestNG)
Q7. What is your automation framework?
Answer:
I use a hybrid framework with Page Object Model and Data-Driven Testing. It includes Selenium WebDriver, Java, TestNG, Maven, and Extent Reports. Test scripts are modular, reusable, and maintainable. The test data is read from Excel using Apache POI.
Q8. How do you handle dynamic elements in Selenium?
Answer:
I use XPath with functions like contains(), starts-with(), or normalize-space() to handle dynamic elements. I also use WebDriverWait with ExpectedConditions to wait for elements.
Q9. How do you manage test execution using TestNG?
Answer:
I use testng.xml to organize and run test classes. I group tests, run tests in parallel, and use TestNG annotations like @BeforeClass, @AfterTest, and @DataProvider.
Q10. How do you handle exceptions in Selenium?
Answer:
I use try-catch blocks to handle exceptions and also use custom exception handling. I also use WebDriverWait to avoid ElementNotVisibleException or NoSuchElementException.
✅ 4. API Testing (Beginner)
Q11. What is API testing?
Answer:
API testing is verifying that APIs return correct responses for various requests. It includes checking status codes, response times, headers, and data. Tools like Postman or REST Assured are used for API automation.
Q12. What status codes do you commonly validate?
Answer:
-
200 OK – Success
-
201 Created – Resource created
-
400 Bad Request – Client-side error
-
401 Unauthorized – Auth required
-
403 Forbidden – Permission denied
-
404 Not Found – Resource not found
-
500 Internal Server Error – Server issue
Q13. How do you validate API response in Postman?
Answer:
I use assertions in the Tests tab. Example:
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
✅ 5. Agile & Process
Q14. What is your role in Agile?
Answer:
I attend daily stand-ups, sprint planning, and retrospectives. I collaborate with developers and BAs, write and execute test cases for each story, raise bugs, and ensure the story meets the Definition of Done before closure.
Q15. What is a regression suite and how do you maintain it?
Answer:
A regression suite is a set of test cases to verify that existing functionalities work after code changes. I regularly update the suite to include new test cases and automate critical flows to ensure fast feedback.
✅ 6. CI/CD, Jenkins, Git
Q16. Have you worked with CI tools like Jenkins?
Answer:
Yes, I have configured Jenkins jobs to trigger automated test runs after code commits. I’ve used Jenkins pipelines to integrate Maven and TestNG, and to generate reports.
Q17. How do you use Git in your project?
Answer:
I use Git for version control. I commit changes to feature branches, pull from the main branch, resolve conflicts, and raise merge/pull requests. I also maintain clean commit messages.
✅ 7. Coding (Java – Basic)
Q18. Write a Java program to reverse a string.
Answer:
public class ReverseString {
public static void main(String[] args) {
String input = "Swami";
StringBuilder reversed = new StringBuilder(input).reverse();
System.out.println("Reversed: " + reversed);
}
}
Q19. How do you read data from Excel using Apache POI?
Answer:
I use XSSFWorkbook, XSSFSheet, and XSSFRow classes to open the Excel file and loop through rows and cells.
✅ 8. Scenario-Based Questions
Q20. What will you do if a defect is not accepted by the developer?
Answer:
I would first revalidate the issue with proper steps and screenshots. If it’s reproducible, I’d discuss it with the developer and BA, show evidence, and escalate to the lead if unresolved.
Q21. How do you decide what to automate?
Answer:
I automate stable, frequently executed, high-priority test cases like smoke tests and regression tests. I avoid automating UI elements that change often or one-time test cases.
✅ 9. Code Review & Communication
Q22. Do you participate in code reviews?
Answer:
Yes. I review automated scripts for naming conventions, logic clarity, reusability, and proper exception handling. I give feedback for improvements and maintain coding standards.
✅ 10. Continuous Testing & Quality
Q23. What is continuous testing?
Answer:
Continuous testing is the process of executing automated tests as part of the CI/CD pipeline to get fast feedback. It helps catch defects early and ensures high quality in every build.
✅ Extras (If Asked)
Q24. What are some challenges you’ve faced?
Answer:
-
Handling unstable test environments
-
Managing flaky test cases due to dynamic elements
-
Getting late requirements changes during a sprint
I addressed these by using waits, stable locators, and maintaining clear communication with the team.
Q25. How do you ensure high-quality delivery?
Answer:
By writing clear test cases, using traceability matrices, automating regression, continuous testing with CI tools, and actively participating in Agile ceremonies.