Imp Questions
Imp Questions
3. What is STLC?
It is the testing process which is executed in systematic and planned manner. In STLC process,
different activities are carried out to improve the quality of the product. Following steps are
involved in Software Testing Life Cycle (STLC).
1. Requirement Analysis (RTM)
2. Test Planning (Test Strategy, Test Plan, Test Bed Creation)
3. Test Case Development (Test Procedures, Test Scenarios, Test Cases)
4. Environment Setup
5. Test Execution
6. Defect Reporting
1. What is Test Plan Document?
g. 1 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Test plan document is a document which contains the plan for all the testing activities to be
done to deliver a quality product. Test Plan document is derived from the Product Description,
SRS, or Use Case documents for all future activities of the project. It is usually prepared by the
Test Lead or Test Manager
g. 2 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Test Artifacts handover: Tests and test environments should be handed over to those
responsible for maintenance testing. Known defects accepted or deferred should be
documented and communicated to those who will use and support the use of the system.
Lessons learned: Analysing lessons learned to determine changes needed for future releases
and projects. In retrospective meetings, plans are established to ensure that good practices can
be repeated, and poor practices are not repeated.
Result: Archiving results, logs, reports, and other documents and work products in the CMS
(configuration management system)
9. What is RTM?
Requirements Traceability Matrix (RTM) is used to trace the requirements to the tests that are
needed to verify whether the requirements are fulfilled. Requirement Traceability Matrix AKA
Traceability Matrix or Cross Reference Matrix.
g. 3 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
system, as well as programming skills, are used to design test cases. This testing usually was
done at the unit level.
2. What is Black Box Testing?
Black Box Testing is a software testing method in which testers evaluate the functionality of
the software under test without looking at the internal code structure. This can be applied to
every level of software testing such as Unit, Integration, System and Acceptance Testing.
g. 4 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
all the functionalities by providing appropriate input to verify whether the actual output is
matching the expected output or not. It falls within the scope of black box testing and the testers
need not concern about the source code of the application.
g. 5 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 6 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 7 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 8 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Ad-hoc testing is quite opposite to the formal testing. It is an informal testing type. In Adhoc
testing, testers randomly test the application without following any documents and test design
techniques. This testing is primarily performed if the knowledge of testers in the application
under test is very high. Testers randomly test the application without any test cases or any
business requirement document.
g. 9 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Example: 1. “Sign In” button is not working on Gmail App and Gmail users are blocked to
login to their accounts. 2. An error message pops up when a customer clicks on transfer money
button in a Banking website.
g. 10 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 11 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
(Or) How do you decide when you have tested enough? imp There are many factors involved
in the real-time projects to decide when to stop testing.
1. Testing deadlines or release deadlines
2. By reaching the decided pass percentage of test cases
3. The risk in the project is under acceptable limit
4. All the high priority bugs, blockers are fixed 5. When acceptance criteria are met.
g. 12 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 13 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 14 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
60. What is the difference between Epic, User stories & Tasks?
User Stories: It defines the actual business requirement. Generally created by the business
owner. Task: To accomplish the business requirements development team create tasks.
Epic: A group of related user stories is called an Epic.
g. 15 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
owner and the Scrum master. The goal of this meeting is to develop realistic Sprint backlog
and define the highest priority tasks which need to be done during the length of each Sprint.
Daily Scrum Meeting Daily Scrum meeting, or daily standups – as many people call them,
are short 15 minutes’ meetings which occur on daily basis. They are typically held at the same
time and same place every day and are strictly time boxed to no longer than 15 minutes. This
ensures the discussion to stay light, relevant, and quick.
• What did you accomplish yesterday?
• What are you working on today?
• Are there any impediments in your way?
Sprint Review Meeting At the end of each Sprint, a Sprint Review meeting is held. The core
objective of this meeting is to demonstrate the functionality of the product and what has been
achieved during a particular Sprint. Generally, product owner, Scrum Master, and other
stakeholders are present to review the product.
Sprint Retrospective Meeting A retrospective is a meeting held after a product ship to discuss
what happened during the product development and release process, with the goal of improving
things in the future based on those learnings and conversations.
g. 16 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
It is used to define the database structure such as tables. It includes three statements
such as CREATE, ALTER, DROP and TRUNCATE
ALTER: The ALTER table is used for modifying the existing table object in the
database.
The DISTINCT statement is used with the SELECT statement. If the record contains
duplicate values, then the DISTINCT statement is used to select different values among
duplicate records.
Syntax: SELECT DISTINCT column_name(s) FROM table_name
g. 17 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
WHERE Clause: This clause is used to define the condition, extract and display only
those records which fulfill the given condition.
Syntax: SELECT column_name(s) FROM table_name
HAVING clause: This clause is used in association with the GROUP BY clause. It is
applied to each group of results or the entire result as a single group. It is much similar
as WHERE clause but the only difference is you cannot use it without GROUP BY
clause
Syntax: SELECT column_name(s) FROM table_name GROUP BY column_name
HAVING condition;
ORDER BY clause: This clause is used to define the order of the query output either
in ascending (ASC) or in descending (DESC). Ascending (ASC) is set as the default
one but descending (DESC) is set explicitly.
Syntax: SELECT column_name(s) FROM table_name WHERE condition ORDER BY
column_name ASC|DESC;
USING clause: USING clause comes in use while working with SQL JOIN. It is used
to check equality based on columns when tables are joined. It can be used instead of
the ON clause in JOIN.
Syntax: SELECT column_name(s) FROM table_name JOIN table_name USING
(column_name)
g. 18 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
creating the database itself with the CREATE TABLE statement or even after the table
is created once with the ALTER TABLE statement.
g. 19 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
70. What is the difference between DELETE and TRUNCATE? The differences are:
• The basic difference in both is DELETE command is DML command and the
TRUNCATE command is DDL.
• DELETE command is used to delete a specific row from the table whereas the
TRUNCATE command is used to remove all rows from the table.
• We can use the DELETE command with WHERE clause but cannot use the
TRUNCATE command with it.
9.28. What is the difference between DROP and TRUNCATE? TRUNCATE removes
all rows from the table which cannot be retrieved back, DROP removes the entire table
from the database and it also cannot be retrieved back.
g. 20 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
71. How to write query for find the highest salary from employees table.
SELECT name, MAX(salary) as salary FROM employee
72. How to write query for find the second highest salary from employees table.
1 st Method
SELECT name, MAX(salary) AS salary
FROM employee
WHERE salary < (SELECT MAX(salary) FROM employee);
2 nd Method
For Second max salary
Select name, salary From Employee ORDER BY Salary DESC LIMIT 1,1;
73. How to write a query to show the details of a student from Students table whose
name start with K?
74. How to write the query to find the total no of columns in Table?
SELECT TABLE_NAME , count(COLUMN_NAME)
FROM information_schema.column
g. 21 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
API is a collection of routines, tools, protocols that together are required for building
the software application. Any system software or application software which consists
of multiple APIs can perform Application Programming Interface (API) testing. This
form of testing includes interaction between various or says multiple APIs as well as
the interaction between API and application program. The procedure mainly includes
making API calls using software and observing system response after receiving the
output.
76. Explain the API testing approach.
Mentioned below are the factors which determine the approach:
• Write appropriate test cases for the APIs and use testing techniques like boundary
value analysis, equivalence class, etc. for verifying the functionality.
• Verify the calls of the combination of two or more value-added parameters.
• Define the scope and basic functionality of the API program. • Define the accurate
input parameters.
• Test case execution and comparison of the results with expected results.
• Determining API behavior under conditions like the connection with files, etc.
g. 22 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
• Comparing SOAP vs REST API, SOAP only works with XML formats whereas
REST work with plain text, XML, HTML and JSON.
• SOAP cannot make use of REST whereas REST can make use of SOAP.
78. What are the testing methods that come under API testing?
API testing generally involves the following testing methods:
• Unit testing and Functional testing
• Load testing for testing the performance under load.
• Discovery testing for listing, creating and deleting the number of calls that have been
documented in API
. • Usability testing and Reliability testing for obtaining consistent results.
• Security testing and Penetration testing for validating all types of authentication.
• Automation testing for creating and executing scripts that require API calls execution
regularly.
• End to end Integration testing and Web UI testing.
• API documentation testing for determining its efficiency and effectiveness.
80. What are the types of issues observed while performing API testing?
g. 23 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
When testing is performed, then there have to be issues associated with them. Issues
observed while performing this form of testing are not new or much different but they
are common in this category.
GET: The HTTP GET method is used to **read** (or retrieve) a representation of a
resource.
g. 24 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
202 Accepted For a request that resulted in a scheduled task being created to perform
the actual request.
204 No Content For a successful request that produced no response (such as DELETE
requests).
301 Moved Permanently/Redirection When the API routes have changed (unlikely), or
if the incoming request is not secure ( http ), the request will be redirected to the secure
( https ) version.
304 Not Modified This response will be sent if the request included an If-Modified-
Since header, but the resource has not been modified since the specified date.
400 Bad Request Issued when a malformed request was sent.
401 Unauthorized This response is sent when your client failed to provide credentials
or its credentials were invalid.
403 Forbidden Returned when permissions do not allow the operation.
404 Not Found When a particular resource doesn’t exist or couldn’t be found.
405 Method Not Allowed The resource was found, but doesn’t support the request
method. 406 Not Acceptable When the client specifies a response content type in the
Accept header that is not supported.
409 Conflict A change requested by the client is being rejected, due to a condition
imposed by the server. The exact reasons for this response will vary from one resource
to the next
413 Request Entity Too Large When the client requests too many objects. For example,
the limit parameter exceeded the maximum.
415 Unsupported Media Type Returned due to issues with the Content-Type header.
422 Missing or Invalid Data The request cannot be processed either because it omitted
required fields or because it contained invalid data. See the response for more details.
429 Too Many Requests When an OAuth client exceeds the rate limit for API requests
to a store
500 Internal Server Error When an error has occurred within the API.
501 Not Implemented When a request method is sent that is not supported by the API
(e.g., TRACE , PATCH ).
503 Service Unavailable When the store is “Down for Maintenance,” being upgraded
to a new version, or is suspended due to administrative action or a billing issue.
507 Insufficient Storage When the store has reached a limitation for the resource.
g. 25 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
84. What are the testing types that can be supported by Selenium?
Selenium supports the following types of testing:
1. Functional Testing
2. Regression Testing
g. 26 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
1. Implicit Wait 2. Explicit Wait Implicit Wait: Implicit waits are used to provide a
default waiting time (say 30 seconds) between each consecutive test step/command
across the entire test script. Thus, the subsequent test step would only execute when
the 30 seconds have elapsed after executing the previous test step/command.
2. Explicit Wait: Explicit waits are used to halt the execution till the time a particular
condition is met, or the maximum time has elapsed. Unlike Implicit waits, explicit
waits are applied for a particular instance only. There are some common conditions
that are frequently of use when automating web browsers.
• title_is • title_contains • presence_of_element_located •
visibility_of_element_located • visibility_of • presence_of_all_elements_located
g. 27 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
findElement(): findElement() is used to find the first element in the current web
page matching to the specified locator value. Take a note that only first matching
element would be fetched.
Syntax:WebElement element =
driver.findElements(By.xpath(“//div[@id=’example’]//ul//li”)); findElements():
findElements() is used to find all the elements in the current web page matching
to the specified locator value. Take a note that all the matching elements would be
fetched and stored in the list of WebElements.
Syntax: List elementList =
driver.findElements(By.xpath(“//div[@id=’example’]//ul//li”))
g. 28 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
3. Data Driven Testing Framework: Data Driven Testing Framework helps the user
segregate the test script logic and the test data from each other. It lets the user store
the test data into an external database. The data is conventionally stored in “Key-
Value” pairs. Thus, the key can be used to access and populate the data within the
test scripts.
g. 29 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
. Example: Write the behaviour of the application for entering the username and
password. Scenario: Login check
Given I am on the login page
When I enter "username" username
And I enter "Password" password
And I click on the "Login" button
Then I am able to login successfully.
g. 30 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Test steps – steps to follow in order to test the scenario, manually or using script automatically
Test data used – valid test data created specific to the scenario e.g. username – admin and
password test123 to be used
Expected Result – what is expected from the feature being tested e.g., welcome page with
menus of other features should be displayed after user successfully logged in to the application.
Actual Result- what is actual output or result after testing application, this is to be filled in by
tester
Status – If there is difference between actual and expected result test will fail, else test will
pass
Remarks – In case test fails, bug report details can have mentioned her
g. 31 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Blocker Critical – There are some workarounds to accomplish the task, e.g., pdf format of file
type is not downloaded, whereas word type is possible.
Major – some error may lead to understanding the title or content by end user, e.g., software
display s title and content in English, but does not display some of the title in Arabic language
but display it in English only.
Minor – there are some defects which has very minor impact on functionality of application,
e.g., missing space between words, commas are missed in sentences. Low -These defects do
not impact at all, however if fixed it will be aesthetically pleasing, e.g., Size of button, form
border goes out of screen and need to scroll in order to view the content.
g. 32 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
Test Environment Setup – what hardware and software need to install or configure to build test
environment.
Test Execution – running the application in order to verify features as per test case designed,
reporting bugs, track the bugs and regression test till it gets resolved.
Test Closure – Creation of test reports, total bugs pending, critical bugs if any, justification for
releasing application to client.
g. 33 Bhagyashri Karankar.
INTERVIEW QUESTION _ SOFTWARE TESTING
g. 34 Bhagyashri Karankar.