1.1. BDD with Cucumber
• Explain the difference between a Scenario and a Scenario Outline.
• Describe the role of a Step Definition file in Cucumber.
• How are Tags used to organize or control test execution in Cucumber?
• Explain the purpose of Data Tables in Cucumber scenarios.
2. Selenium Concepts
• Describe how pop-ups can be handled using Selenium.
• Explain different ways to perform page scrolling during automation.
• What is Fluent Wait and when is it used?
3.Framework & Tools
• Explain the purpose of the pom.xml file in a Maven project.
• What is Parallel Testing and why is it useful in automation?
• Describe JSON Schema Validation and its importance.
4. Coding Problems
• Write a program to remove duplicate elements from an array and calculate the frequency of characters.
• Provide an XPath expression to fetch values from the second column of a web table.
5. API Testing
• Explain common HTTP status codes returned by APIs.
• Differentiate between Path Parameters and Query Parameters.
• How can nested JSON responses be handled?
6. Automation Framework Concepts
• What is an Automation Framework? Explain its structure.
• Describe Object-Oriented Programming (OOP) concepts and how they are applied in automation frameworks.
• Explain the usage of Java collections.
1.1. What is the difference between HashMap and ConcurrentHashMap?
2. Can you explain how HashMap works internally in Java?
3. What is the difference between Comparable and Comparator interfaces?
4. What is the Java 8 Stream API? Can you give a real-time example of how it is used?
5. What is the difference between Checked Exceptions and Unchecked Exceptions?
6. What is the difference between Method Overloading and Method Overriding?
7. Can you explain the lifecycle of a thread in Java multithreading?
8. What is ExecutorService and why is it used?
9. What is a Deadlock in Java, and how can it be prevented?
10. What is the difference between final, finally, and finalize?
1.How do you handle frames and iframes in Selenium?
What is the Page Object Model (POM)? Why is it used?
Write a Page Object class for a login page.
How do you take screenshots in Selenium?
What is TestNG? How is it different from JUnit?
Explain TestNG annotations (@Test, @BeforeTest, @AfterTest, etc.).
How do you run tests in parallel using Selenium Grid?
How do you handle dynamic elements in Selenium (elements with changing attributes)?
What is the difference between findElement() and findElements()?
How do you perform mouse hover actions in Selenium? Use Actions class.
How do you perform drag and drop in Selenium?
What is data-driven testing? How do you implement it using Excel or CSV?
How do you handle SSL certificate errors in Selenium?
What are the challenges you faced in Selenium automation? How did you overcome them?
How do you integrate Selenium with CI/CD tools like Jenkins?