Common Software Testing Interview Questions & Answers
Q: What is Selenium WebDriver?
A: Selenium WebDriver is an open-source automation tool used for automating web application
testing to verify they work as expected. It interacts with the browser directly.
Q: What is the difference between findElement() and findElements()?
A: findElement() returns a single WebElement, while findElements() returns a list of WebElements
matching the locator.
Q: What are HTTP status codes like 200, 400, 401, 403, 500?
A: 200: OK, 400: Bad Request, 401: Unauthorized, 403: Forbidden, 500: Internal Server Error.
Q: What is the difference between PUT and POST?
A: PUT is idempotent and used to update a resource, while POST is used to create a new resource.
Q: What is an API?
A: An API (Application Programming Interface) allows communication between two software
applications.
Q: What are joins in SQL?
A: Joins are used to combine rows from two or more tables based on a related column. Types
include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Q: How do you validate response in REST Assured?
A: Using assertions like statusCode(), body(), header(), etc., for example:
[Link]().statusCode(200).body("name", equalTo("John"));
Q: What is Page Object Model (POM)?
A: POM is a design pattern in Selenium that creates an object repository for web UI elements to
make tests more maintainable and reusable.
Q: What is Cucumber and BDD?
A: Cucumber is a testing framework for Behavior Driven Development (BDD). It allows writing tests
in a human-readable Gherkin format.
Q: What is Jenkins?
A: Jenkins is a CI/CD tool used to automate the build, test, and deployment processes in software
development.
Q: What is severity and priority in testing?
A: Severity defines the impact of the defect, while priority defines the urgency to fix it.
Q: What is Agile methodology?
A: Agile is an iterative approach to software development where requirements and solutions evolve
through collaboration between cross-functional teams.