---Advertisement---

 Automation Interview Questions from “Infosys” (2–6y) Exp

By Manisha

Published On:

---Advertisement---

1. Tell me about yourself and your current project.

2. What automation tools and frameworks have you worked with?

3. Explain how you’ve implemented inheritance and polymorphism in your framework.

4. How do you manage exception handling in automation scripts?

5. What is the difference between throw and throws in Java?

6. How do you avoid NullPointerException?

7. What is method overloading vs method overriding? Examples?

8. Can we create an object of an abstract class? Why or why not?

9. Difference between HashMap and TreeMap?

10. What is the use of final, finally, and finalize in Java?

11. How do you write reusable methods in Selenium?

12. How do you implement Page Object Model (POM)?

13. What are the different waits in Selenium?

14. What is FluentWait and how is it different from WebDriverWait?

15. How do you write dynamic XPath?

16. How to handle stale element reference exception?

17. How do you handle dropdowns in Selenium?

18. What is the use of JavaScriptExecutor?

19. How do you switch between multiple windows?

20. How do you run your test cases using TestNG or JUnit?

21. How to run parallel tests using TestNG?

22. Explain your CI/CD integration with Jenkins?

23. What is the difference between soft assert and hard assert?

24. How do you parameterize your tests using Excel or JSON?

25. How do you manage test data in your framework?

Second Round Questions:

1. What are your contributions to framework development?

2. Can you take ownership of a feature end-to-end testing?

3. Git scenario: You committed a bug and pushed it. How do you revert it?

4. Coding Challenge:

Given an array {10, 20, 30, 40, 50, 20, 10}, write a program to print the first duplicate element and its index.

5. Deep dive into your recent automation challenges and how you resolved them.

6. How do you handle API testing in your current project? Which tools have you used?

7. How do you ensure your automation suite is maintainable and scalable?

8. What is your approach to debugging flaky tests?

9. How do you perform database validation in automation tests?

10. Have you worked with Docker or any containerized environments in your CI pipeline?

---Advertisement---

Leave a Comment