QA Engineer
1000+ QA Engineer Interview Questions and Answers
Q1. 80 pairs of socks in a dark room, 40 black, 40 white, how many minimum number of socks need to be taken out to get 15 pairs of socks
Minimum 31 socks need to be taken out to get 15 pairs of socks
To get 15 pairs of socks, you need to have 30 socks of different colors
After taking out 30 socks, the next sock you take out will complete the 15 pairs
So, minimum 31 socks need to be taken out to get 15 pairs of socks
Q2. Suppose your manager gave you one task which has to be complete in 1 week and but it takes 2 weeks from your view.how would you justify your view with manager and how you will get acceptance from your manager w...
read moreTo justify my view, I would communicate the reasons for the extended timeline and propose alternative solutions.
Explain the complexity of the task and the potential risks involved
Provide a detailed breakdown of the required steps and estimated time for each
Highlight any dependencies or constraints that may impact the timeline
Suggest alternative approaches or resources to expedite the task
Discuss the potential consequences of rushing the task and the impact on quality
QA Engineer Interview Questions and Answers for Freshers
Q3. how to access amazon page directly directly with out using driver.get how to get the last secong window in selenium (get window handles) how to select mulptiple values in drop downs swap numbers between without...
read moreA list of questions asked in a QA Engineer interview covering topics such as Selenium, Java, and TestNG.
Accessing Amazon page without using driver.get
Getting the last second window in Selenium using getWindowHandles()
Selecting multiple values in drop downs
Swapping numbers without using a third variable
Working with collections and strings
Removing spaces in a string
Printing words in a sentence on separate lines
Understanding exceptions and using throw vs throws
Working with inter...read more
Q4. 100 apples in 5 consecutive days, each day 6 more than the previous day, how many apples were eaten on the first day
The number of apples eaten on the first day can be calculated by working backwards from the total number of apples eaten over 5 days.
Calculate the total number of apples eaten over 5 days: 100 apples
Subtract the apples eaten on the 2nd day (6 more than the 1st day), 3rd day (6 more than the 2nd day), and so on until the 5th day to find the apples eaten on the 1st day
Example: 1st day = x, 2nd day = x + 6, 3rd day = x + 12, 4th day = x + 18, 5th day = x + 24. Total = 100 apples
Q5. 7)how do you drive your data in automation , how do you validate whether your data is accurate and precise?
Data is driven in automation through input files or databases. Validation is done through assertions and comparing expected vs actual results.
Data can be driven through input files like CSV, Excel or databases like MySQL, Oracle
Assertions can be used to validate data accuracy and precision
Expected vs actual results can be compared to ensure data correctness
Data can also be validated through manual inspection or using tools like SQL queries
Q6. pen weight = 2 kg + 1/2 of its own weight -> what is the weight of pen?
The weight of the pen is 4 kg.
To find the weight of the pen, we can set up the equation: pen weight = 2 kg + 1/2 of its own weight
Let x be the weight of the pen. The equation becomes: x = 2 + 1/2 * x
Solving for x, we get x = 4 kg
Share interview questions and help millions of jobseekers 🌟
Q7. 6)What do you do when your automation script fails , debug process?
When automation script fails, debug process involves identifying the root cause and fixing it.
Check the error logs and identify the line of code where the script failed
Verify the test data and environment setup
Re-run the script with debug mode enabled to identify the issue
Fix the issue and re-run the script to ensure it passes
Update the test case and report the issue to the development team if necessary
Q8. When designing an online carrom game, if the game is paused in between and then resumed again, what all things need to be saved?
When designing an online carrom game, the saved data when the game is paused and resumed should include player scores, positions of coins, game state, and timer status.
Player scores should be saved to ensure continuity.
Positions of coins on the board should be saved to resume the game accurately.
Game state (such as whose turn it is) should be saved to maintain the flow.
Timer status should be saved to resume the game with the correct time remaining.
QA Engineer Jobs
Q9. Which Bug tracking tool and test management tool are using in your organization?
We use JIRA as our bug tracking tool and TestRail as our test management tool.
JIRA is a widely used bug tracking tool that helps us track and manage software defects.
TestRail is a comprehensive test management tool that allows us to plan, track, and organize our testing efforts.
Both tools integrate well with our development and testing processes, providing us with a seamless workflow.
JIRA offers features like issue tracking, customizable workflows, and extensive reporting cap...read more
Q10. 3 boxes with apples, oranges, apples + oranges --> labels are jumbled that is each box is labeled incorrectly, least number of steps required to correct the labels, considering each fruit we pick out is one ste...
read moreTo correct the labels on 3 boxes with jumbled fruit labels, the least number of steps required is 2.
Pick a fruit from the box labeled 'apples + oranges', since it must contain both fruits.
Then pick a fruit from the box labeled 'oranges', as it cannot contain apples.
Q11. Java: oops concepts in java? how do you initialise private elements of a class? Ways to define strings in java? exceptions in java? difference between exception and error? checked and unchecked exception? API t...
read moreQuestions on Java, API testing, Selenium, and SQL
Java: OOPs concepts, initializing private elements, defining strings, exceptions, difference between exception and error, checked and unchecked exceptions
API testing: Testing POST query, drawbacks, response codes
Selenium: Assert vs verify, drawbacks, implicit and dynamic wait, types of testing supported, types of x-path
SQL: Select query
What’s the difference between manual testing and automated testing?
Q13. What do you understand by Quality Management System?
Quality Management System (QMS) is a set of policies, processes, and procedures implemented to ensure that products or services meet customer requirements and quality standards.
QMS is designed to establish and maintain a systematic approach to quality management.
It includes activities such as quality planning, quality control, quality assurance, and continuous improvement.
QMS helps in identifying and addressing quality issues, reducing defects, and improving overall customer ...read more
Q14. How do you test your application in remote server/Local Machine?
To test an application on a remote server, use remote access tools like SSH or RDP. For local testing, use a local machine.
For testing on a remote server, use remote access tools like SSH (Secure Shell) or RDP (Remote Desktop Protocol).
Connect to the remote server using the appropriate credentials.
Install the application on the remote server and perform the necessary tests.
For local testing, set up a local machine with the required environment.
Install the application on the l...read more
What is the difference between the commands "type" and "typeAndWait" in the context of Selenium?
Q16. 11 mins hourglass and 7 mins hourglass, use them both to calculate 15 mins
To calculate 15 mins using 11 mins and 7 mins hourglasses, start both hourglasses together. When the 7 mins hourglass runs out, flip it. When the 11 mins hourglass runs out, flip the 7 mins hourglass. When the 7 mins hourglass runs out again, 15 mins have passed.
Start both hourglasses together
When the 7 mins hourglass runs out, flip it
When the 11 mins hourglass runs out, flip the 7 mins hourglass
When the 7 mins hourglass runs out again, 15 mins have passed
Q17. When we perform sanity , smoke and regression testing
Sanity, smoke, and regression testing are performed at different stages of software development to ensure quality and stability.
Sanity testing is performed after a small change or bug fix to ensure that the core functionality of the software is still intact.
Smoke testing is performed to check the basic functionality of the software after a build or release.
Regression testing is performed to ensure that the existing functionality of the software is not affected by new changes ...read more
Q18. 1. What is software testing 2. What is manual testing 3. Regression testing and types 4. Re testing 5. Test cases for e commerce website 6 find bugs in e commerce website Difference between test cases and scena...
read moreAnswers to common questions asked in a QA Engineer interview
Software testing is the process of evaluating a software application or system to find defects or bugs
Manual testing is the process of testing software manually without the use of automated tools
Regression testing is the process of testing changes made to a software application to ensure that existing functionality still works
Retesting is the process of testing a defect that has been fixed to ensure that it has been ...read more
Q19. 2)How do you solve the problem of any defect on line?
Defects on line can be solved by identifying the root cause, implementing corrective actions, and conducting thorough testing.
Identify the root cause of the defect
Implement corrective actions to fix the issue
Conduct thorough testing to ensure the defect has been resolved
Document the defect and the steps taken to resolve it for future reference
Q20. How would you test without specification requirement document?
Testing without a specification requirement document requires a creative and exploratory approach.
Analyze the available information and gather requirements from stakeholders.
Create test scenarios and test cases based on assumptions and common usage patterns.
Perform exploratory testing to uncover any unexpected behavior.
Use risk-based testing to prioritize areas of the application that are critical or prone to defects.
Leverage past experience and knowledge of similar systems t...read more
Q21. Write a query to get the second highest salary of an employee(DB testing)
Query to get the second highest salary of an employee in DB testing.
Use the SELECT statement to retrieve the salary column from the employee table.
Order the results in descending order using the ORDER BY clause.
Use the LIMIT clause to limit the result to the second row.
Combine the above steps in a single query to get the second highest salary.
Q22. What is selenium ,how to fix frame work,how to write Navigation tools..?
Selenium is a tool used for automating web browsers. Framework can be fixed by identifying and resolving issues. Navigation tools can be written using Selenium commands.
Selenium is a popular open-source tool for automating web browsers
To fix a framework, identify and resolve issues with the code
Navigation tools can be written using Selenium commands like 'get', 'click', 'sendKeys', etc.
Q23. 1.selenium code from scratch 2. Rest api code from scratch 3. Java collection 4. programs based on ds like count each element of string. 5. Duplicate in string 6. use algorithm with o(n) not o(n2). 7. core java...
read moreInterview questions for QA Engineer including Selenium, Rest API, Java collection, and programming based on data structures.
Demonstrate ability to write Selenium code from scratch
Show proficiency in writing Rest API code from scratch
Exhibit knowledge of Java collection and its implementation
Be able to write programs based on data structures like counting each element of a string and finding duplicates
Use algorithms with O(n) complexity instead of O(n^2)
Have a strong understan...read more
Q24. two jugs -> 5L and 3L -> fill 4L using only them, while wasting the least amount of water
Fill 4L using 5L and 3L jugs with minimum water wastage
Fill the 3L jug and pour it into the 5L jug, leaving 1L in the 3L jug
Empty the 5L jug, then pour the 1L from the 3L jug into the 5L jug
Fill the 3L jug again and pour it into the 5L jug, now you have 4L in the 5L jug
What is meant by a locator and name a few different types of locators present in Selenium.
Q26. What are the different bodies which certify the Quality of the System
Different bodies that certify the quality of a system include ISO, CMMI, IEEE, and FDA.
ISO (International Organization for Standardization) provides certification for various quality management systems.
CMMI (Capability Maturity Model Integration) certifies the maturity level of an organization's processes.
IEEE (Institute of Electrical and Electronics Engineers) sets standards for software quality assurance.
FDA (Food and Drug Administration) certifies the quality of medical de...read more
Q27. What is the difference between quality assurance, quality control and testing?
Quality assurance ensures quality in the entire software development process, quality control ensures quality in the product, and testing is the process of finding defects.
Quality assurance focuses on preventing defects by establishing processes and standards.
Quality control focuses on identifying defects in the product through inspections and testing.
Testing is the process of executing the software to find defects and ensure it meets requirements.
Quality assurance and qualit...read more
What are the different parts of a test automation framework?
Q29. What is ETL, Layers of ETL, Do you know any ETL automation tool
ETL stands for Extract, Transform, Load. It is a process used to extract data from various sources, transform it into a consistent format, and load it into a target database.
ETL involves three main layers: Extraction, Transformation, and Loading.
Extraction: Data is extracted from various sources such as databases, files, APIs, etc.
Transformation: Data is cleaned, validated, and transformed into a consistent format.
Loading: Transformed data is loaded into a target database or ...read more
Q30. What is ISO, IATF, EMS, OH&S and their latest revision details along with clauses
ISO, IATF, EMS, OH&S are international standards for quality management, environmental management, and occupational health and safety.
ISO (International Organization for Standardization) sets standards for quality management systems (QMS) and has revised its latest version to ISO 9001:2015
IATF (International Automotive Task Force) sets standards for quality management systems in the automotive industry and has revised its latest version to IATF 16949:2016
EMS (Environmental Ma...read more
Q31. how many ways we can find the element on page in selenium
There are multiple ways to find elements on a page in Selenium, including by ID, name, class name, tag name, link text, partial link text, XPath, and CSS selector.
By ID: driver.findElement(By.id("elementId"))
By name: driver.findElement(By.name("elementName"))
By class name: driver.findElement(By.className("className"))
By tag name: driver.findElement(By.tagName("tagName"))
By link text: driver.findElement(By.linkText("linkText"))
By partial link text: driver.findElement(By.partia...read more
What is cross-browser testing?
Q33. How do you click/interact with an element, if the basic click does not work?
Use alternative methods like JavaScript executor or actions class to interact with the element.
Try using JavaScript executor to click the element
Use actions class to perform a click action on the element
Check if there are any alternative ways to interact with the element, like triggering a hover event before clicking
Inspect the element and verify if it has any other clickable areas or child elements that can be clicked instead
What is an XPath?
Q35. Write test cases (negative and positive) on Recruit CRM application (Sign up/login page)
Test cases for Recruit CRM sign up/login page
Positive test case: Enter valid email and password to sign up/login
Negative test case: Enter invalid email and password to sign up/login
Negative test case: Leave email or password field blank and try to sign up/login
Negative test case: Enter email and password in wrong format and try to sign up/login
Q36. What about Selenium IDE Difference between Manual and Automation
Selenium IDE is a record and playback tool for automating web applications. Manual testing is done by humans, while automation is done by machines.
Selenium IDE is a browser extension that records user actions and generates automated test scripts.
Manual testing involves human testers executing test cases and verifying results.
Automation testing involves using tools to execute test cases and compare actual results with expected results.
Manual testing is time-consuming and prone...read more
Q37. What is Calibration instrument . Ans_ calibration mean any errors between instrument . remove error and provide NABL certificate
Calibration instrument is a process of removing errors between instruments and providing NABL certificate.
Calibration is the process of adjusting an instrument to provide accurate results.
It involves comparing the readings of the instrument with a known standard.
The errors are then removed by adjusting the instrument accordingly.
NABL (National Accreditation Board for Testing and Calibration Laboratories) certificate is provided to ensure the accuracy of the instrument.
Calibra...read more
Q38. What is process & how to handle a line without any breakdowns or defects. How to take a containment, corrective , preventive action.
Process is a set of steps to achieve a desired outcome. To handle a line without breakdowns or defects, take containment, corrective and preventive actions.
Identify potential issues and establish preventive measures
Implement quality control checks at each stage of the process
Train employees on proper procedures and provide ongoing support
Conduct regular audits to identify areas for improvement
Take immediate corrective action when issues arise
Implement a containment plan to pr...read more
Q39. in range of [1-40] kgs, select minimum number of weight to cover the complete range of weights.
To cover the range of weights from 1-40 kgs, select weights in powers of 2.
Select weights in powers of 2: 1, 2, 4, 8, 16, 32
These weights can cover the complete range from 1-40 kgs
Example: 1 kg + 2 kg + 4 kg + 8 kg + 16 kg + 32 kg = 63 kgs
Q40. If the api has pagination then what would you pass as a query parameters
Pass page number and page size as query parameters for pagination in API.
Pass 'page' parameter to specify the page number
Pass 'pageSize' parameter to specify the number of items per page
Q41. What is the framework used in your company for UI and API automation
Our company uses Selenium for UI automation and RestAssured for API automation.
Selenium is used for UI automation
RestAssured is used for API automation
Q42. 3)how do you respond and handle customer complaint?
I listen to their complaint, apologize for the inconvenience caused, and work towards finding a solution to their problem.
Listen attentively to the customer's complaint
Apologize for the inconvenience caused
Ask questions to understand the issue better
Offer a solution or escalate the issue to the appropriate team
Follow up with the customer to ensure their issue has been resolved
Q43. How will you buy particular vehicle?
I will buy a particular vehicle by considering my budget, researching different models, test driving them, and negotiating the price.
Determine my budget for the vehicle
Research different vehicle models that meet my requirements
Test drive the shortlisted vehicles to assess their performance and comfort
Compare prices from different sellers and negotiate for the best deal
Q44. Reverse string, find second highest number , string vs string buffer , hash map vs hash set, instance & local variable, primitive and non primitive data type, overloading vs overriding , explain framework
Interview questions for QA Engineer
Reverse a string using StringBuilder or StringBuffer
Find second highest number by sorting the array and accessing the second last element
String is immutable while StringBuffer is mutable
HashMap stores key-value pairs while HashSet stores only keys
Instance variables are declared inside a class while local variables are declared inside a method
Primitive data types are int, float, double, etc. while non-primitive data types are arrays, classes,...read more
Q45. 2. What is test case format and write test case at lift and login page. Positive and negative.
Test case format and examples for lift and login page
Test case format includes test case ID, description, preconditions, test steps, expected results, and actual results
Positive test case for lift page: ID-001, description-Verify if the lift goes up when the up button is pressed, preconditions-Lift is on the ground floor, test steps-Press the up button, expected results-Lift goes up, actual results-Lift goes up
Negative test case for lift page: ID-002, description-Verify if th...read more
Q46. Which of the following is NOT a type of Software Testing?
Unit Testing
Unit Testing is a type of testing where individual components or units of a software are tested.
It focuses on verifying the functionality of each unit in isolation.
It is usually performed by developers during the development process.
Examples of unit testing frameworks include JUnit for Java and NUnit for .NET.
Q47. What are the steps you took to improve the CSAT of your previous process?
I implemented several steps to improve the CSAT of my previous process.
Conducted thorough analysis of customer feedback
Identified common pain points and areas of improvement
Collaborated with cross-functional teams to implement necessary changes
Implemented regular training sessions for support agents
Introduced automated testing to ensure product quality
Established a proactive approach to customer support
Q48. What is difference between severity and priority
Severity refers to the impact of a defect on the system, while priority determines the order in which defects should be fixed.
Severity is about the seriousness of a defect, while priority is about the order of fixing it.
Severity is often categorized as high, medium, or low, while priority is typically assigned as high, medium, or low.
For example, a critical defect that causes the system to crash would have high severity and high priority, while a cosmetic defect with low impa...read more
Explain the difference between driver.close() and driver.quit() command in Selenium?
Q50. What is DQL and what are the functionalities provide by DQL?
DQL stands for Document Query Language. It is used to query documents in a document-oriented database like MongoDB.
DQL is used to retrieve documents from a MongoDB database.
It supports a wide range of query operators and expressions.
DQL can be used to perform complex queries on nested documents.
It also supports aggregation pipeline for advanced data processing.
Examples of DQL queries include find(), findOne(), and aggregate().
Interview Questions of Similar Designations
Top Interview Questions for QA Engineer Related Skills
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month