Capgemini Interview Questions for #Automation Engineer (4+ Years)
1. Explain the automation framework you have worked on and its components.
2. What are the different types of waits in Selenium? Provide examples.
3. How do you handle dynamic web elements in Selenium?
4. Write a program to check if a given string is a palindrome.
5. What is the Page Object Model (POM), and why is it used?
6. Write a program to merge two sorted arrays without using inbuilt functions.
7. What is the difference between implicit wait, explicit wait, and fluent wait?
8. How can you rerun failed test cases in TestNG?
9. How do you manage test data in your automation scripts?
10. Explain the difference between Selenium WebDriver and Selenium Grid.
11. How would you handle pop-ups and alerts in Selenium?
12. Write a SQL query to fetch the second-highest salary from a table.
13. Write a Java program to swap two numbers without using a temporary variable.
14. What is the difference between abstraction and encapsulation?
15. What are RESTful APIs? How would you test them using Postman or RestAssured?
16. Write a program to count the number of vowels in a string.
17. Write a Java program to reverse a string without using inbuilt functions.
18. How do you prioritize and plan test automation?
19. Explain the difference between
@BeforeTest,
@BeforeClass, and
@BeforeMethod annotations in TestNG.
20. What is continuous integration? Which CI tools have you worked with?
21. Tricky: Write a Java program to check if a number is prime without using inbuilt functions.
22. Explain the differences between HashMap and ConcurrentHashMap.
23. How do you avoid deadlocks in a multithreaded program?
24. Write a Java program to reverse the digits of a number.
25. What is XPath? Explain the difference between absolute and relative XPath.
26. How do you ensure cross-browser compatibility in Selenium scripts?
27. What are the common challenges faced in automation testing, and how do you overcome them?