QA Automation Interview Questions
With more and more QA Automation Jobs emerging in the market we as job seeking candidates need to understand the concepts better then 1000’s others. But learning without understanding cannot lead you to a successful job.
Job interviews are getting challenging day by day starting from core Testing concepts, leading to questions in Automation libraries and then variety of coding questions. If your goal is to get into Top Tier organizations then there is no better way to learn and master the basics first and get in-depth understanding of core concepts for the skills which you are applying the job for.
Recently I have compiled list of questions from the interviews I have been giving in past 6 months. Also these questions are discussed with my mentees, so they have shared with me the problems. So below I have attached the list of Top 30 questions which you can expect in your interviews.
Be sure, that these questions can act as a reference point for judging your current skills and then progress your learning journey accordingly! If you need answers for these questions then you can look and purchase my E-Book for Java and QA Automation Interview Prep.
Questions:
- Brief me about your experience
2) What tools and technologies have you worked on?
3) What’s your favorite programming language? And rate yourself
Note — If you rate yourself 6 or above then get ready to face challenging coding questions.
4) Find the longest substrings of these three strings:
Example 1 — aab
Example 2 — pwwkew
Example 3 — abcbcabcda
5) Have you created a dynamic Xpath? If yes then give examples.
How to automate the elements which sometimes pass or fail?
6) How to send only lowercase text where data is derived from external source, without using any java functions or libraries.
7) What is the difference in keyword driven vs data driven vs behavior driven frameworks?
8) What is Hashmap?
9) If hashmap is available then why do you need HashSet?
10) How to handle exceptions? 11) Why do you need finally block?
12) Why do you use Array when ArrayList is available?
13) What are different ways to execute parallel tests in selenium?
14) How to execute different suites using Maven and TestNG?
15) Create a dynamic XPath which can find all headlines on Amazon.com
Steps —
Go to Amazon.com
Search for Smart TV
Create Xpath to retrieve the name of all products and store in List
16) Why strings are immutable?
17) What is string constant pool?
18) When int a = 20;
int b = a ;
System.out.println(a); -> o/p — 20
System.out.println(b); -> o/p — 20
a=30;
System.out.println(a); -> o/p — 30
System.out.println(b); -> o/p — 20
But when we do same operation in HashMaps
Map<String, Integer> map1 = new HashMap<>();
map1.put(“value”, 25);
Map<String, Integer> map2 = new HashMap<>();
map1=map2;
System.out.println(map1); -> o/p — value,25
System.out.println(map2); -> o/p — 20 — value,25
Now if we update this to —
map1.put(“value”, 42)
System.out.println(map1); -> o/p — value,42
System.out.println(map2); -> o/p — 20 — value,42
Why does this happen??
19) Why do you need Throw and Throws keyword when we have Try,catch and finally?
20) What are different locators? Why id locator is preferred?
21) Explain Smoke vs Sanity vs Regression differences?
22) What do you understand by git rebase?
If you are looking for more such Interview Prep Material then you can refer my Courses and E-Books here: Link
Schedule a One on One Meeting with me here: Link
-x-x-
#japneetsachdeva