Test Automation Interview Questions

3,206 test automation interview questions shared by candidates

1) Introduction 2) (Orange, apple, lemon, mango, Orange), Which collection do you use if I want to add the objects in insertion order? What if I want to add in alphabetical order, which collection will you use? 3(Orange, apple, lemon, mango) which collection do you use to store these, and why? how can we store in alphabetically order 4) (Fruit: Orange), (Vegetable : Onion) : Which collection will you use to store it, can we store it in order wise? if yes, why ? if not, why? 5)(Fruit: Orange, Mango,pear), (Vegetable: Onion, potato, cabbage): Which collection will you use to store it? can you write it with syntax ..How can we store it in alphabetical order? 6) What would be output String name = "Royal Challengers Bengaluru"; name.toLowerCase(); System.out.println(name); name.toUpperCase(); System.out.println(name); Explain the code as well 7) Give the logic and print it Input: "I Love Dogs"; Output Example: IL, Io, Iv, Ie, ID, Io, Ig, Is LI, Lo, Lv, Le, LD, Lo , Lg, Ls oI, oL, ov, oe, oD, og, os
avatar

Test Automation Engineer

Interviewed at Mphasis

3.4
Aug 30, 2024

1) Introduction 2) (Orange, apple, lemon, mango, Orange), Which collection do you use if I want to add the objects in insertion order? What if I want to add in alphabetical order, which collection will you use? 3(Orange, apple, lemon, mango) which collection do you use to store these, and why? how can we store in alphabetically order 4) (Fruit: Orange), (Vegetable : Onion) : Which collection will you use to store it, can we store it in order wise? if yes, why ? if not, why? 5)(Fruit: Orange, Mango,pear), (Vegetable: Onion, potato, cabbage): Which collection will you use to store it? can you write it with syntax ..How can we store it in alphabetical order? 6) What would be output String name = "Royal Challengers Bengaluru"; name.toLowerCase(); System.out.println(name); name.toUpperCase(); System.out.println(name); Explain the code as well 7) Give the logic and print it Input: "I Love Dogs"; Output Example: IL, Io, Iv, Ie, ID, Io, Ig, Is LI, Lo, Lv, Le, LD, Lo , Lg, Ls oI, oL, ov, oe, oD, og, os

1.Reverse a number 2. Reverse a string using HashMap 3. Oops concept 4. difference between protected and default 5. difference between throw and throws 6. Annotations used in Testng 7. Test case techniques 8. getwindowhandles 9. How to resolve merge conflicts in git hub
avatar

Senior Automation Test Engineer

Interviewed at Wipro

3.6
Jul 12, 2023

1.Reverse a number 2. Reverse a string using HashMap 3. Oops concept 4. difference between protected and default 5. difference between throw and throws 6. Annotations used in Testng 7. Test case techniques 8. getwindowhandles 9. How to resolve merge conflicts in git hub

Viewing 2101 - 2110 interview questions

Glassdoor has 3,206 interview questions and reports from Test automation interviews. Prepare for your interview. Get hired. Love your job.