Test - Interview QA
Test - Interview QA
9. What are some challenges you have faced in your projects and how did you overcome them?
11. What are the differences between functional and non-functional testing?
12. What are the different types of testing you have performed?
16. Explain your experience with version control tools like Git.
17. Can you explain the Software Testing Life Cycle (STLC)?
24. Which automation tools have you used, and what are their advantages?
2. What are the various selenium components, and which components are you using?
4. What are the various locators you are using in your day-to-day life?
25. The difference between implicitly, explicitly, webdriver wait and thread.sleep.
32. How do you get to know if the developer has fixed the issues or not?
2nd round:
3. For which functionality module have you performed performance testing in your project?
5. Which language do you use for Appium testing? (I have mentioned this in my resume)
7. Can we use the same code in the Appium, the test script developed for a web app?
8. What is Jenkins?
I said , yes ofcourse a web page can have multiple HTML elements.
2. " How would you identify a particular HTML element on a web page? "
I said, there is a mechanism in Selenium called " Locators ". With the help of Locators , we can identify a
particular HTML element on a page.
I said, id, name, className, tagName, linkText, partialLinkText, xpath and cssSelector.
5. " Which 'Locator' would you give first preference to find a particular HTML element on a web page? "
6. " Why would you like to use "id" instead any other locators? "
7. " When you have only choice of two locators (name, className) to use so which one would be using
to find a particular HTML element on a web page ? ".
I said, "name" i will give second preference to "name" Locator.
I said , As class represents group of elements if we have a requirement to catch multiple HTML elements
associated with the class then we would use.
I said, yes we have two locators to work with link text : linkText & partialLinkText.
I said, yes we can but i won't be using because xpath/cssSelector is a customized way and customized
things always slowdown the process and when i have some specialized locators for linked text that
would be more compatible and will fast the script comparitively.
8. "Sometimes, you may not have any of these [ id, name, className, linkText, partialLinkText] locators
in your HTML so which locator would be using to identify a particular HTML element on a web page? "
I said, i would be using xpath/cssSelector (customized mechanism) when we don't have any one on one
locator in our HTML.
9. " If you are using xpath/cssSelector Sometimes, you will have some attribute value is too long or
sometime few part may be dynamic in some attribute values so don't you think that our code will look
so complex/lengthy ? "
I said, again we have a mechanism " Regular expressions " so syntactically we will make it short and
simple using xpath / cssSelector with regular expressions.
10. " Sometimes, you have only tags in your HTML then how would you identify a particular HTML
element on a webpage? "
Conclusion: Interviewer will check our smartness how smartly we are using Locators, how smartly we
are writing locators and we should study deep-dive this concept and implementation.
📍 Encapsulation allows to protect the data within a class from outside entities.
📍 Encapsulation helps to achieve hiding the internal information from outside entities.
📍 Data and methods (To access the data) are bundled together within a single unit .(class)
Providing public getter and setter methods to access and modify the private attributes.
Note :
Example - 1:
return empnm;
If we can notice the getter & setter for empnm , below points we can note:
1. getter method will return the variable which is private and it is non parameterized .
2. setter method is a parameterized method which we shall use to set the value for the private member
while calling , so only it is parameterized method.
return arr;
this.arr = brr;