1. Tell me about your automation experience.
2. Tell me about your framework experience.
3. What is a keyword in the BDD framework?
4. Have you created a BDD framework from scratch?
5. How do you write test cases like the first 4 methods run in a sequential manner and another 4 run in parallel?
6. What are the annotations you have used in TestNG?
7. What will happen if the dependent test case fails? Will the next test case run or not?
8. If the dependent test cases failed, but you still want to execute the next test case, how would you implement that?
(Hint: Answer is “Always run” annotation)
9. Asked about how strong you are in collections and strings? Based on that, they ask programming questions.
10. Program: Input string=”a3b12″ – Write a program to print a-3 times and b-12 times.
11. What is a constructor, and what are its usage and types?
12. Open Google.com search any word, and we get some suggestions under dropdown values. Asked to get the XPath of all elements.
13. What will happen if we don’t give the Background in the BDD framework?
14. What are Cucumber hooks?
15. Explain the TestNG XML file and what data will be there in it.
16. What is method overloading and method overriding? Explain.
17. How to call the WebDriver?
18. Is the BDD framework there already, or do we have to add it?
19. What are the waits you have used? Explain implicit and explicit waits.