Top 150 Software Testing Interview Questions
Top 150 Software Testing Interview Questions
Top 150 Software Testing Interview Questions
The relationship between test cases and requirements is shown with the
help of a document. This document is known as a traceability matrix.
6. What is white box testing and list the types of white box testing?
White box testing technique involves selection of test cases based on an
analysis of the internal structure (Code coverage, branches coverage,
paths coverage, condition coverage, etc.) of a component or system. It is
also known as Code-Based testing or Structural testing. Different types of
white box testing are
1. Statement Coverage
2. Decision Coverage
8. What is black box testing? What are the different black box testing
techniques?
Black box testing is the software testing method which is used to test the
software without knowing the internal structure of code or program. This
testing is usually done to check the functionality of an application. The
different black box testing techniques are
1. Equivalence Partitioning
2. Boundary value analysis
3. Cause-effect graphing
Static testing: During Static testing method, the code is not executed, and it
is performed using the software documentation.
1. Unit/component/program/module testing
2. Integration testing
3. System testing
4. Acceptance testing
Test design, scope, test strategies, approach are various details that Test
plan document consists of.
Data Driven Testing (DDT): In data driven testing process, the application
is tested with multiple test data. The application is tested with a different set
of values.
16. What are the valuable steps to resolve issues while testing?
17. What is the difference between test scenarios, test cases, and test
script?
19. What are the two parameters which can be useful to know the
quality of test execution?
Test Deliverables are a set of documents, tools and other components that
have to be developed and maintained in support of testing.
Before Testing
During Testing
After the Testing
Technical Feasibility
Complexity level
Application stability
Test data
Application size
Re-usability of automated scripts
Execution across environment
When the presence of one defect hides the presence of another defect in
the system, it is known as fault masking.
27. Explain what Test Plan is? What is the information that should be
covered in Test Plan?
A test plan can be defined as a document describing the scope, approach,
resources, and schedule of testing activities and a test plan should cover
the following details.
Test Strategy
Test Objective
Exit/Suspension Criteria
Resource Planning
Test Deliverables
28. How can you eliminate the product risk in your project?
It helps you to eliminate product risk in your project, and there is a simple
yet crucial step that can reduce the product risk in your project.
30. On what basis you can arrive at an estimation for your project?
Task Member
32.
Explain what is testing type and what are the commonly used testing
type?
33. While monitoring your project what all things you have to
consider?
35. What does a typical test report contain? What are the benefits of
test reports?
Project Information
Test Objective
Test Summary
Defect
The benefits of test reports are:
37. What are the best practices for software quality assurance?
Continuous Improvement
Documentation
Tool Usage
Metrics
Responsibility by team members
Experienced SQA auditors
Test Matrix: Test matrix is used to capture actual quality, effort, the plan,
resources and time required to capture all phases of software testing
41. What is the step you would follow once you find the defect?
42. Explain what is "Test Plan Driven" or "Key Word Driven" method
of testing?
This technique uses the actual test case document developed by testers
using a spreadsheet containing special "key Words". The key words control
the processing.
LCSAJ stands for 'linear code sequence and jump.' It consists of the
following three items
c) The target line to which control flow is transferred at the end of the linear
sequence
45. Explain what N+1 testing is?
a) It does not require processing source code and can be applied directly to
object code
b) Bugs are distributed evenly through the code, due to which percentage
of executable statements covered reflects the percentage of faults
discovered
d) String should be replaced only for the first occurrence of the string
49. How will you handle a conflict amongst your team members?
The code coverage testing tool runs parallel while performing testing on the
actual product. The code coverage tool monitors the executed statements
of the source code. When the final testing is done, we get a complete
report of the pending statements and also get the coverage percentage.
53. Explain how to test documents in a project that span across the
software development lifecycle?
The project span across the software development lifecycle in the following
manner
Central/Project test plan: It is the main test plan that outlines the
complete test strategy of the project. This plan is used till the end of
the software development lifecycle
Acceptance test plan: This document begins during the requirement
phase and is completed at the final delivery
System test plan: This plan starts during the design plan and
proceeds until the end of the project
Integration and Unit test plan: Both these test plans start during the
execution phase and last until the final delivery
54. Explain which test cases are written first black boxes or white
boxes?
Black box test cases are written first as to write black box test cases; it
requires project plan and requirement document all these documents are
easily available at the beginning of the project. While writing white box test
cases requires more architectural understanding and is not available at the
start of the project.
55. Explain what the difference between latent and masked defects is?
57. Mention what the different types of test coverage techniques are?
Breath testing is a test suite that exercises the full functionality of a product
but does not test features in detail
Code Walk Through is the informal analysis of the program source code to
find defects and verify coding techniques
60. Mention what the basic components of defect report format are?
Project Name
Module Name
Defect detected on
Defect detected by
Defect ID and Name
Snapshot of the defect
Priority and Severity status
Defect resolved by
Defect resolved on
61. Mention what the purpose behind doing end-to-end testing is?
64. What is the MAIN benefit of designing tests early in the life cycle?
Preventative tests are designed early; reactive tests are designed after the
software has been produced.
The likelihood of an adverse event and the impact of the event determine
the level of risk.
72. Which of the following defines the expected results of a test? Test
case specification or test design specification.
74. As part of which test process do you determine the exit criteria?
77. Mention what the difference between Pilot and Beta testing is?
The difference between a pilot and beta testing is that pilot testing is
actually done using the product by the group of users before the final
deployment, and in beta testing, we do not input real data, but it is installed
at the end customer to validate if the product can be used in production.
78. Given the following fragment of code, how many tests are required
for 100% decision coverage?
79. You have designed test cases to provide 100% statement and
100% decision coverage for the following fragment of code. if width >
length then biggest_dimension = width else biggest_dimension =
length end_if The following has been added to the bottom of the code
fragment above. print "Biggest dimension is "
&biggest_dimensionprint "Width: " & width print "Length: " & length
How many more test cases are required?
Regression Testing
4, 5, 99
Independent testers are unbiased and identify different defects at the same
time.
The bulk of the test design work begun after the software or system has
been produced.
There are currently seven different agile methodologies that I am aware of:
90. What is typically the MOST important reason to use risk to drive
testing efforts?
92. Which of the following are valid objectives for incident reports?
93. Consider the following techniques. Which are static and which are
dynamic techniques?
1. Equivalence Partitioning.
2. Use Case Testing.
3. Data Flow Analysis.
4. Exploratory Testing.
5. Decision Testing.
6. Inspections.
Because they share the aim of identifying defects but differ in the types of
defect they find.
1. Planning
2. Kick-off
3. Preparation
4. Review meeting
5. Rework
6. Follow-up.
The moderator (or review leader) leads the review process. He or she
determines, in co-operation with the author, the type of review, approach
and the composition of the review team. The moderator performs the entry
check and the follow-up on the rework, in order to control the quality of the
input and output of the review process. The moderator also schedules the
meeting, disseminates documents before the meeting, coaches other team
members, paces the meeting, leads possible discussions and stores the
data that is collected.
An input or output ranges of values such that only one value in the range
becomes a test case.
Security Testing
Load Testing
Re-testing ensures the original fault has been removed; regression testing
looks for unexpected side effects.
previous experience with similar systems, they may have insights into what
could go wrong, which is very useful for testing.
109. What type of review requires formal entry and exit criteria,
including metrics?
Inspection
111. An input field takes the year of birth between 1900 and 2004 what
the boundary values for testing this field are?
1899,1900,2004,2005
112. Which of the following tools would be involved in the automation
of regression test? a. Data tester b. Boundary tester c.
Capture/Playback d. Output comparator.
d. Output comparator
Driver
114. What is the one Key reason why developers have difficulty
testing their own work?
Lack of Objectivity
The answer depends on the risk for your industry, contract and special
requirements.
It depends on the risks for the system being tested. There are some criteria
based on which you can stop testing.
Semi-random test cases are nothing, but when we perform random test
cases and do equivalence partitioning to those test cases, it removes
redundant test cases, thus giving us semi-random test cases.
119. Given the following code, which statement is true about the
minimum number of test cases required for full statement and branch
coverage?
Read p
Read q
IF p+q> 100
ENDIF
IF p > 50
ENDIF
Technical Review.
By testers.
123. Which of the following is the review participant who has created
the item to be reviewed?
Author
124. A number of critical bugs are fixed in software. All the bugs are
in one module, related to reports. The test manager decides to do
regression testing only on the reports module.
Regression testing should be done on other modules as well because fixing
one module may affect other modules.
125. Why does the boundary value analysis provide good test cases?
It is led by a trained leader, uses formal entry and exit criteria and
checklists.
132. What is called the process starting with the terminal modules?
Bottom-up integration
133. During which test activity could fault be found most cost-
effectively?
137. Which of the following is likely to benefit most from the use of
test tools providing test capture and replay facilities? a) Regression
testing b) Integration testing c) System testing d) User acceptance
testing
Regression testing
Is it really a test if you put some inputs into some software, but never look
to see whether the software produces the correct result? The essence of
testing is to check whether the software produces the correct result and to
do that, and we must compare what the software produces to what it
should produce. A test comparator helps to automate aspects of that
comparison.
142. Who is responsible for document all the issues, problems and
open point that were identified during the review meeting
Scribe
Equivalence partitioning
146. A test manager wants to use the resources available for the
automated testing of a web application. The best choice is Tester, test
automation, web specialist, DBA
147. During the testing of a module tester, 'X' found a bug and
assigned it to a developer. But developer rejects the same, saying
that it's not a bug. What 'X' should do?
Send the detailed information of the bug encountered and check the
reproducibility
149. In practice, which Life Cycle model may have more, fewer or
different levels of development and testing, depending on the project
and the software product. For example, there may be component
integration testing after component testing, and system integration
testing after system testing.
V-Model
Equivalence partitioning
151. "This life cycle model is driven by schedule and budget risks"
This statement is best suited for.
V-Model
153. The later in the development life cycle a fault is discovered, the
more expensive it is to fix. Why?
The fault has been built into more documentation, code, tests, etc
Test boundary conditions on, below and above the edges of input and
output equivalence classes. For instance, let say a bank application where
you can withdraw maximum Rs.20,000 and a minimum of Rs.100, so in
boundary value testing we test only the exact boundaries, rather than
hitting in the middle. That means we test above the maximum limit and
below the minimum limit.
Test Environment
158. What can be thought of as being based on the project plan, but
with greater amounts of detail?