QA Idea Interview Questions
QA Idea Interview Questions
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Most of the test automation interview questions are centered on the framework you develop, so it
is recommended that you create and understand your test framework thoroughly. When I am
interviewing, and the candidate has answered my question on the framework, I also prefer asking
a language-specific question (core java in my case).
The questions start from basics of java to write the logic of some basic scenario like:
● How would you extract a set of text from a given line?
● How would you extract the URL?
● In any web page, at any frame, the number of links and its content change dynamically,
how would you handle it?
● How do you handle images and flash objects?
● How do you find a word in a line?
Answers to all these test automation interview questions are very much specific to the
tool/language that you are using for automating. So before you go for the interview, brush up
your programming skills.
In case you did not get a chance to create your framework and someone else has created it, then
make some time to understand it thoroughly before sitting for the interview.
Some tips for automation testing interviews would be:
● Know your tool thoroughly.
● Learn the locator techniques used by your tool.
● Practice programming using the language which you use for automation testing.
● Learn your framework and its components.
● It’s always advantageous if you have been involved in the development of your
framework. So, be thorough with the modules in the framework which you have worked
on.
Hope these questions would be useful for you to prepare for a test automation interview.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
1.What is Postman?
Postman is a rest client software that started as an chrome extension but is now available as native
application only. Postman is basically used for API testing in which you can test your APIs with different
types of request method types like post, put etc and parameters, headers and cookies. Apart from
1 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
setting the query parameters and checking the response, postman also let us see different response stats
like time, status, headers, cookies etc. with some extra excellent features that can be used with ease.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
2.What is an API?
API stands for Application Programming Interface. Talking in technical terms an API is a set of
procedures, functions, and other points of access which an application, an operating system, a library
etc., makes available to programmers in order to allow it to interact with other software. It can be
considered as the waiter which acts as the middleman between your requests and the chef. Similarly API
refers as the middleman between a client and a server. (Refer tutorial)
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Postman
SoapUI
Katalon Studio
Tricentis Tosca
Apigee
Jmeter
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
4.In which type of encoding does postman accept authorization credentials? Why?
Postman accept authorization in Base64 encoding only. This is provided inbuilt in Postman or else you
can also refer third party websites to convert the credentials in base64. We use base64 particularly
because it transmits the data into textual form and send it in easier form such as HTML form data. We
use Base64 particularly because we can rely on the same 64 characters in any encoding language that we
use. (Refer tutorial)
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
2 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Postman, we can change the value of the key value pairs and the changes are reflected in our requests.
An environment just provides boundaries to variables.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
6.Can we have two global scope variables with the same name in Postman?
Since global variables are global i.e. without any environment, they cannot have duplicate names as it
creates confusion for the software. Local variables can have same name but in different environments.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
7.Which one has the higher priority in Postman? A global variable or a local variable?
In Postman, if two variables have same name (one being local and one being global) then the higher
priority is of the local variable. It will overwrite the global variable.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
10.What is the difference between Postman Monitors and Postman Collection Runner?
The postman Monitor is an automated way of running collections. Collections are triggered
automatically as per specified parameters whereas Postman Collections require some manual effort to
3 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
start and monitor the execution. A postman collection runner runs the collection for the iterations you
want to. It will be stopped when you stop the software and is not automated. A postman monitor will
run your collection at regular user defined intervals till the time you have specified. Your collection will
be run even if your system has shut down as it is connected through postman cloud.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Describe any four response things you receive from a response (Correct or Incorrect)
Status Code
Response Status
Response time
Response Size
Response Headers
Response Cookies
Response Date and Time
Response Session limit
Response Cookies
Response Server
Response type
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
Should we save our work in Postman cloud if we are working in a company? Why?
A Postman cloud is Postman company's repository like Microsoft has One Drive etc. In Postman cloud
you can save your work instantly after logging in and also retrieve it from anywhere you want. It is not
preferred to save your work in Postman cloud as company's work is often confidential and should not be
leaked out. Postman cloud needs signing in and hence security can be compromised, therefore team
workspace is preferred instead of saving the work in Postman Cloud.
**********************************************************************************
4 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Write a test code to check whether the response status is 200 or not.
A test code to check whether the response status is 200 or not is as follows
5 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Tests script
Pre-request script
(Refer tutorial)
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
**********************************************************************************
A simple code written in chai library which tests if number 3 is already in array or not.
Workbook wb = WorkbookFactory.create(fis);
Sheet s = wb.getSheet(“sheetName”);
6 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
If the return value of this method is true then it is checked else it is not.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
7 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Ans- To handle alert pop-ups, we need to 1st switch control to alert pop-ups then click on ok or cancle
then move control back to main page.
Syntax-
String mainPage = driver.getWindowHandle();
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
act.moveToElement(webElement).perform();
act.contextClick().perform();
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
8 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
WebElement source = driver.findElement(By.xpath(“ -----”)); //source ele which you want to drag
act.dragAndDrop(source,target).perform();
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 14) How do you click on a menu item in a drop down menu?
Ans- If that menu has been created by using select tag then we can use the methods selectByValue() or
selectByIndex() or selectByVisibleText(). These are the methods of the Select class.
If the menu has not been created by using the select tag then we can simply find the xpath of that
element and click on that to select.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
driver.navigate().forward();
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
9 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 20) Write the code for Reading and Writing to Excel through Selenium ?
FileInputStream fis = new FileInputStream(“path of excel file”);
Workbook wb = WorkbookFactory.create(fis);
Sheet s = wb.getSheet("sheetName");
10 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 22) What are the different exceptions you got when working with WebDriver ?
Ans- ElementNotVisibleException, ElementNotSelectableException, NoAlertPresentException,
NoSuchAttributeException, NoSuchWindowException, TimeoutException, WebDriverException etc.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
11 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Ans- JDK, Eclipse, WebDriver(selenium standalone jar file), browser, application to be tested.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
The main use of this is when we want to write code using both WebDriver and Selenium RC , we must
use above created object to use selenium commands.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
12 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
jsx.executeScript("window.scrollBy(0,4500)", ""); //scroll down, value 4500 you can change as per your
req
ex-
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("https://www.flipkart.com/womens-clothing/pr?sid=2oq,c1r&otracker=hp_nmenu_sub_wom
en_1_View%20all");
driver.manage().window().maximize();
Thread.sleep(3000);
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 33) What is the command line we have to write inside a .bat file to execute a selenium project
when we are using testng ?
Ans- java -cp bin;jars/* org.testng.TestNG testng.xml
13 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 34) Which is the package which is to be imported while working with WebDriver ?
Ans- org.openqa.selenium
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
System.out.println(color);
System.out.println(backcolor);
Here if both color and back color different then that means that element is in different color.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
14 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
driver.findElement(By.xpath("xpath of button")).isSelected();
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ans- driver.getElement(By.tagName("img")).getAttribute("src") will give you the src attribute of this tag.
Similarly, you can get the values of attributes such as title, alt etc.
Similarly you can get CSS properties of any tag by using getCssValue("some propety name").
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
ex- This is for when moving cursor over element that is going to be underlined or not-
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
15 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
driver.get("https://www.google.co.in/?gfe_rd=ctrl&ei=bXAwU8jYN4W6iAf8zIDgDA&gws_rd=cr");
System.out.println("value"+cssValue);
act.moveToElement(driver.findElement(By.xpath("//a[text()='Hindi']"))).perform();
System.out.println("value over"+cssValue1);
driver.close();
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 43) How to change the URL on a webpage using selenium web driver ?
driver.get(“url1”);
driver.get(“url2”);
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ans- getOptions() is used to get the selected option from the dropdown list.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
16 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
driver.executeScript("arguments[0].setAttribute(arguments[1],arguments[2])", element,
attributeName, value);
17 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
call the above method in the test script and pass the text field attribute and pass the text you want to
enter.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 2) There is a scenario whenever "Assert.assertEquals()" function fails automatically it has to take
screenshot. How can you achieve this ?
Ans- By using EventFiringWebDriver.
Syntax-EventFiringWebDriver eDriver=new EventFiringWebDriver(driver);
profile.setAcceptUntrustedCertificates(false);
driver.get("url");
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 4) How to login into any site if its showing any authetication popup for user name and pass ?
Ans - pass the username and password with url.
Syntax- http://username:password@url
ex- http://creyate:[email protected]
18 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Ques 6) Open a browser in memory means whenever it will try to open a browser the browser page
must not come and can perform the operation internally.
Ans- use HtmlUnitDriver.
ex-
public class Memory {
driver.setJavascriptEnabled(false);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("https://www.google.co.in/");
System.out.println(driver.getTitle());
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
19 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
For Tab-
act.sendKeys(Keys.ENTER);
Ques 11) While explaining the framework, what are points which should be covered ?
Ans-
a) What is the frame work.
b) Which frame work you are using.
c) Why This Frame work.
d) Architecture.
e) Explanation of every component of frame work.
f) Process followed in frame work.
g) How & when u execute the frame work.
h) Code (u must write code and explain).
i) Result and reporting .
20 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Ques 13) How to type text in a new line inside a text area ?
Ans- Use \n for new line.
ex- webelement.sendKeys(“Sanjay_Line1.\n Sanjay_Line2.”);
act.doubleClick(webelement);
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
webelement.sendKeys(press);
**********************************************************************************
21 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Ques 19) How do you accommodate project specific methods in your framework ?
Ans- 1st go through all the manual test cases and identify the steps which are repeating. Note down such
steps and make them as methods and write into ProjectSpecificLibrary.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
22 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
chkBox.get(i).click();
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 25) How do you identify the Xpath of element on your browser ? And- to find the xpath , we use
Firebug addons on firefox browser and to identify the xpath written we use Firepath addons.
Syntax- //htmltag[@attname='attvalue'] or //html[text()='textvalue'] or
//htmltag[contains(text(),'textvalue')] or //htmltag[contains(@attname,'attvalue')]
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
23 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Ans- Selenium IDE is a complete integrated development environment (IDE) for Selenium tests. It is
implemented as a Firefox Add-On, and allows recording, editing, and debugging tests. It was previously
known as Selenium Recorder.
Scripts may be automatically recorded and edited manually providing autocompletion support and the
ability to move commands around quickly.
Scripts are recorded in Selenese, a special test scripting language for Selenium. Selenese provides
commands for performing actions in a browser (click a link, select an option), and for retrieving data
from the resulting pages.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
24 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 35) what are the different assertions or check points used in your script ?
Ans- The common types of validations are:
a) Is the page title as expected,
b) Validations against an element on the page,
c) Does text exist on the page,
d) Does a javascript call return an expected value.
method used for validation – Assert.assertEquals();
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Ques 38) What are the different attributes for @Test annotation ?
Ans- alwaysRun, dataProvider, dependsOnMethods, enabled, expectedExceptions, timeOut etc.
ex- @Test(expectedExceptions = ArithmeticException.class)
@Test(timeOut = 2000)
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
25 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
*******************************************************************************************
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
26 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
int a = in.nextInt();
int b = in.nextInt();
int x = a;
a = b;
b = x;
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
27 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
num = num*i;
System.out.println(num);
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
28 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Assert.assertEquals(expUserName, actUserName);
}catch(Exception e){
Syste.out.println(“name is invalid”);
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
29 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
● Fifthly, TestNG provides the prioritization of methods. In other words, by defining the priorities
of the methods in TestNG, we can alter the default execution sequence of the test methods
according to our wish.
● In addition to the above, TestNG allows parallel testing, which increases efficiency and improves
the overall running time of test methods.
● With the TestNG framework, you can easily integrate with other tools such as Maven, Jenkins,
etc.
● Moreover, TestNG provides a feature to run multiple test methods on various browsers to test
for cross-browser compatibility issues on your website. It is cross-browser testing.
● Additionally, TestNG allows us to run the tests separately. So, if you run the tests and only one
test failed, you can run this test independently in the next execution.
● Moreover, TestNG allows the test methods to depend on each other. Its also called Test
Dependency in TestNG.
● Lastly, TestNG provides a bunch of assertion methods for testing more efficiently.
Subsequently, you can learn more about the benefits of the TestNG framework here.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #5) How do you identify the test cases which are suitable for automation?
Answer: Identifying the appropriate test cases for automation is the most important step towards
automation.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
30 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Q #7) How to decide the tool that one should use for Automation testing in their projects?
Answer: In order to identify the tool for Automation testing in your project:
a) Understand your project requirements thoroughly and identify the testing scenarios that you want to
automate.
b) Search for the list of tools that support your project’s requirements.
c) Identify your budget for the automation tool. Select the tools within your budget.
d) Identify if you already have skilled resources for the tools. If you don’t have the necessary skilled
resources then identify the cost for training the existing resources or hiring new resources.
e) Now compare each tool for key criteria like:
● How easy is it to develop and maintain the scripts for the tool?
● Can a non-technical person also execute the test cases with little training?
● Does the tool support different types of platforms like web, mobile, desktop, etc based on your
project requirements?
● Does the tool have a test reporting functionality? If not, is it easily configurable for the tool?
● How is the tool for cross-browser support for web-based applications?
● How many different testing types can this tool support?
● How many languages does the tool support?
f) Once you have compared the tools, select the tool which is within your budget and support your
project requirements, and gives you more advantages based on the key criteria mentioned above.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #8) Currently I do not have any automation in place in my project, but now I want to implement
automation, what would be my steps?
Answer:
● First, identify which type of testing/test cases you want to automate.
● Identify the tool
● Design the framework
● Create utility files and environment files.
● Start scripting
● Identify and work on reporting.
● Allocating time for enhancing and maintaining the scripts.
Steps required for getting Automation Testing in place for a project include:
● Understand the advantages and disadvantages of automation testing and identify the test
scenarios which are suitable for automation.
● Select the automation tool that is best suited for automating the identified scenarios
● Find the tool expert to help in setting up the tool and required environment for executing the
test cases using the tool.
31 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
● Train the team so that they can write scripts in the programming language that the tool
supports.
● Create the test framework or identify the already existing one that meets your requirements.
● Write an execution plan for OS, browsers, mobile devices, etc.
● Write programming scripts for manual test cases to convert them into automated test cases.
● Report the test case status by using the reporting feature of the tool.
● Maintain the scripts for ongoing changes or new features.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #10) Once you identify the tool what would be your next steps?
Answer: Once we finalize the tool, our next step would be to design the framework.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
32 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
● Independent: The scripts should be written in such a way that they are independent of each
other. In case one test fails, it should not hold back the remaining test cases (unless it is a login
page)
● Logger: It is good to have implemented the logging feature in the framework. This would help in
case our scripts run for longer hours (say nightly mode), if the script fails at any point of time,
having the log file will help us to detect the location along with the type of the error.
● Reporting: It is good to have the reporting feature automatically embedded into the framework.
Once the scripting is done, we can have the results and reports sent via email.
● Integration: Automation Framework should be such that it is easy to integrate with other
applications like continuous integration or triggering the automated script as soon as the build is
deployed.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #14) What are the different types of the Automation tool that you are aware of?
Answer: Open source tool like Selenium, JMeter, etc.
Paid tools like QTP, Load Runner, Ranorex, RFT, and Rational Robot.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #16) Where will you maintain information like URL, login, password?
Answer: This information should always be maintained in a separate file.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
33 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Q #17) Why do you want to keep this kind of information in a separate file and not directly in the code?
Answer: URL, Login, and passwords are the kind of fields that are used very often and these change as
per the environment and authorization. In case we hardcode it into our code, we have to change it in
every file which has its reference.
In case if there are more than 100 files, then it becomes very difficult to change all the 100 files and this,
in turn, can lead to errors. So this kind of information is maintained in a separate file so that updating
becomes easy.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #19) Can you tell some good coding practices while automation?
Answer: Some of the good coding practices include:
● Add appropriate comments.
● Identify the reusable methods and write it in a separate file.
● Follow the language-specific coding conventions.
● Maintain the test data in a separate file.
● Run your scripts regularly.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #20) Any kind of test which you think should not be automated?
Answer:
● Tests that are seldom executed.
● Exploratory testing
● Usability testing
● Test which is executed quickly when done manually.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #21) Do you think that testing can be done only at the UI level?
Answer: Today as we are moving to the Agile mode, testing is not limited to the UI layer. Early feedback is
imperial for an agile project. If we concentrate only on the UI layer, we are actually waiting until the UI is
developed and available to test.
Rather we can test even before the UI is actually developed. We can directly test the APIs or the
methods using tools like Cucumber and FitNesse.
34 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
In this way, we are giving the feedback much early and are testing even before the UI is developed.
Following this approach will help us to test only the GUI aspect of small cosmetic changes or some
validations on the UI and will help the developers by giving more time to fix the bugs.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #22) How do you select which automation tool is best suited for you?
Answer: Selecting the automation tool depends upon various factors like:
● The scope of the application which we want to automate.
● Management overhead like cost and budget.
● Time to learn and implement the tool.
● Type of support available for the tool.
● Limitation of the tool
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #23) What do you think holds the testers back to do automation? Is there a way to overcome it?
Answer: The major hurdle for testers is to learn programming/coding when they want to automate. Since
testers do not code, adapting to coding is a bit challenging for testers.
We can overcome it by:
● Collaborating with developers when automating.
● Considering that automation is the responsibility of the whole team and not only of the testers.
● Giving a dedicated time and focus on automation.
● Getting proper management support.
You can save these automation testing interview questions as a pdf and print for further reading.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
35 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
2. Data Setup: Each test case needs to take the user data either from the database or from a file or
embedded in the test script. Frameworks data module should take care of the data intake for
test scripts and the global variables.
3. Build Management Tool: Framework needs to be built and deployed for the use of creating test
scripts.
4. Continuous integration tool: With CICD (Continuous Integration and Continuous Development) in
place, continuous integration tool is required for integrating and deploying the changes done in
the framework at each iteration.
5. Reporting tool: A reporting tool is required to generate a readable report after the test cases are
executed for a better view of the steps, results, and failures.
6. Logging tool: The logging tool in framework helps in better debugging of the error and bugs.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
36 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Q #32) Can we do Automation testing without a framework? If yes, then why do we need a framework?
Answer: Yes, We can perform automation testing even without using a framework. We can just
understand the tool that we are using for automation and program the steps in the programming
language that tools support.
If we automate test cases without a framework then there won’t be any consistency in the programming
scripts for test cases.
A framework is required to give a set of guidelines that everyone has to follow to have maintained
readability, reusability, and consistency in the test scripts. A framework also provides one common
ground for reporting and logging functionality.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Q #33) How will you automate basic “login” functionality test cases for an application?
Answer: Assuming that the automation tool and framework is already in place of the test environment.
37 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Q #35) How many test cases have you automated per day?
Answer: Well, the number depends on the complexity of the test cases. When the complexity was
limited, I was able to automate 5 to 6 test cases per day. Sometimes, I was able to automate only one
test case for complex scenarios.
I have also broken down my test cases into different components like, take input, do the calculation,
verify the output etc. in case of very complex scenarios and have taken 2 or more days.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
38 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
39 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
This program when run, gives the test results as pass or fail to depend on if the application is as per the
expectations.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
1. Write steps to automate primary “login” functionality test cases for an application?
Here are the steps to automate basic login functionality:
Step 1) Understand the project requirement.
Step 2) Identify the Test scenarios
Step 3) Prepare a data input file with the data corresponding to each scenario
Step 4) Launch the tool from the program.
Step 5) Identify the username, password, and login buttons.
Step 6) Verify that the error message for negative scenarios is the same as the success message for
positive test -scenarios.
These interview questions will also help in your viva(orals)
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
2. Where will you maintain information like URL, login, and password?
URL, login, and password are important information used very often and change frequently. They should
always be maintained in a separate file. If not done, then the automation tester must change it in every
file with its reference.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
5. What is the average number of test cases you have automated per day?
40 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
The answer depends on the length and complexity of the test scenario. Generally, a QA tester can
automate 2-4 test scenarios daily when the complexity is limited. However, sometimes it might reduce to
1-2 when the complexity is high.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Date: 28/12/2022
41 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
● Children
● Siblings
● Ancestors
● Descendents
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Date: 29/12/2022
Framework Related questions:
6. Have you created any Framework in your project?
Ans: If you are a beginner or fresher or having below 2 years of experience, your answer should be No. I
didn’t get a chance to create a framework. I have used the framework in the project which is already
available in my organization.
If you are an experienced tester and having 2.5 years of experience, your answer should be Yes or No,
depending in your knowledge. I have created a framework. If your answer is No, but I have involved in
the creation of the framework.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
42 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Date: 30/12/2022
SDET Interview Questions
43 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
● Need to perform Test Automation and set up frameworks on platforms like Web and Mobile.
● Create & manage bug reports and constantly remain in touch with the development team.
● Communicate with clients
● You should also be able to set up and manage test automation frameworks independently.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Date: 02/01/2023
1. What is the difference between String and StringBuilder in Java?
Ans: A String is immutable in Java, while a StringBuilder is mutable in Java.
An immutable object is an object whose content cannot be changed after it is created.
When we try to concatenate two Java strings, a new String object is created in the string pool.
This can be demonstrated by comparing HashCode for String object after every concat operation.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
2. Write a program for swapping two numbers without using third variable?
Ans:
public class JavaSwapNumbers {
public static void main(String args[]){
int a = 5, b = 6;
System.out.print("Before swap:\na = " + a + "\nb = " + b);
a = a + b; //a becomes 11
b = a - b; //b becomes 5
a = a - b; //a becomes 6
44 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
System.out.println(revString);
}
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
45 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Example...
String s1="Java";
String s2="Java";
System.out.print(s1.equals(s2));//true because content is same.
System.out.print(s1.==s2);//true because both reference variable are refering to the same String.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Method Overriding
1) Method overriding is used to provide the specific implementation of the method that is already
provided by its super class.
2) Method overriding occurs in two classes that have IS-A (inheritance) relationship.
3) In case of method overriding, parameter must be same.
4) Method overriding is the example of run time polymorphism.
5) Return type must be same or covariant in method overriding.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
46 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
return anElement;
}
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
Selenium Automation Testing Testing Tools We can input text in the text box without the method
sendKeys with thehelp of the JavaScript Executor.
Selenium executes JavaScript commands with the help of the executeScript method. The JavaScript
command to be run is passed as parameter to the method.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
47 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
A horizontal scroll bar lets the user scroll towards the left or right to view all the content on the window.
JavascriptExecutor js = (JavascriptExecutor)dr;
js.executeScript("window.scrollBy(0,70)");
A vertical scroll bar lets the user scroll up-down or vice versa to view the complete content on the
window.
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
48 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
Root
Element
Text
Attribute
Comment
Processing Instruction
Namespace
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
49 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
ceiling()
floor()
round()
sum()
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
50 QA Idea
INTERVIEW QUESTIONS BY QA IDEA
**********************************************************************************
To Get Daily QA Job Alerts, Join Our WhatsApp / Telegram Group.
*******************************************************************************************
☸ Course Contents:-
Java, Selenium, TestNG, Maven, Git, Jenkins, BDD Cucumber, Selenium Grid, Page Object
Model, HTML, JavaScript, AutoIT, Log4j, Assertion, Project Explanation, Manual Testing, Agile,
JIRA, API Testing, etc.
✔Duration:- 3 Months
✔Monday to Thursday: - 2 Hours
✔Timing:- 9.30 PM to 11.30 PM IST
✔Fees:- 7000/-
✔Mode of Training: - Online
51 QA Idea