2.lecture Notes
2.lecture Notes
2 8
No No
Topic The Goal of Test Planning, High Level Expectations
Bloom’sKnowledge
Learning Outcome (LO) At the end of this lecture, students will be able to
Level
LO1 Identify the objective of Test planning. K2
LO2 Analyse the need for Test plan. K2
LO3 Describe the expectations of test planning. K2
The following are some of the key benefits of making a test plan:
Quick guide for the testing process: The test plan serves as a quick guide for the testing
process as it offers a clear guide for QA engineers to conduct testing activities.
Helps to avoid out-of-scope functionalities: The test plan offers detailed aspects such as test
scope, test estimation, strategy, etc.
Helps to determine the time, cost, and effort: The Test serves as the blueprint to conduct
testing activities thus it helps to deduce an estimate of time, cost, and effort for the testing
activities.
Provide a schedule for testing activities: A test plan is like a rule book that needs to be
followed, it thus helps to schedule activities that can be followed by all the team members.
Test plan can be reused: The test plan documents important aspects like test estimation, test
scope, and test strategy which are reviewed by the Management Team and thus can be reused
for other projects.
Objectives of the Test Plan:
1. Overview of testing activities: The test plan provides an overview of the testing activities
and where to start and stop the work.
2. Provides timeline: The test plan helps to create the timeline for the testing activities based on
the number of hours and the workers needed.
3. Helps to estimate resources: The test plan helps to create an estimate of the number of
resources needed to finish the work.
4. Serves as a blueprint: The test plan serves as a blueprint for all the testing activities, it has
every detail from beginning to end.
5. Helps to identify solutions: A test plan helps the team members They consider the project’s
challenges and identify the solutions.
6. Serves as a rulebook: The test plan serves as a rulebook for following rules when the project
is completed phase by phase.
Types of Test Plans:
The following are the three types of test plans:
Master Test Plan: In this type of test plan, includes multiple test strategies and has multiple
levels of testing. It goes into great depth on the planning and management of testing at the
various test levels and thus provides a bird’s eye view of the important decisions made, tactics
used, etc. It includes a list of tests that must be executed, test coverage, the connection
between various test levels, etc.
Phase Test Plan: In this type of test plan, emphasis is on any one phase of testing. It includes
further information on the levels listed in the master testing plan. Information like testing
schedules, benchmarks, activities, templates, and other information that is not included in the
master test plan is included in the phase test plan.
Specific Test Plan: This type of test plan, is designed for specific types of testing especially
non-functional testing for example plans for conducting performance tests or security tests.
Bloom’s
Qn. No. Question Answer Knowledge
Level
The test plan serves as the _________that changes
according to the progressions in the project and stays
1 blueprint K2
current at all times.
Students have to prepare answers for the following questions at the end of the lecture
Bloom’s
Mark
Qn. No Question CO Knowledge
s
Level
1 What are the objectives of test plan? 2 1 K1
2 List the types of test plan. 2 1 K1
3 When is defect tracking needed? 2 1 K2
4 Describe the goal of test planning in detail. 13 1 K2
Reference Book
Unit Lecture
2 9
No No
Topic Intergroup Responsibilities, Test Phases
Bloom’sKnowledge
Learning Outcome (LO) At the end of this lecture, students will be able to
Level
LO1 Identify the members and responsibilities of testing group. K2
LO2 Describe the phases of testing. K2
Test Analyst Focuses on the business problem. Should have the ability to
see the big picture, good planning and organizational skills.
Analyzes requirements and acceptance criteria, designes
software testing documentation including test plans, links tests
to req, run tests, analyzes and documents results.
Bloom’s
Qn. No. Question Answer Knowledge
Level
Who is not involved in Testing team?
Test Manager
Test
1 Test Analyst K2
Designer
Test automation engineer
Test designer
Test consultant Involved in all (SDLC) phases of an IT
2 True K2
project. (True /False)
Identify which of the following life cycle contains the
phases: test case design, test execution, defect tracking,
maintenance.
3 SDLC STLC K2
STLC
SQLC
BLC
Identify the incorrect phase of STLC(Software Testing
Life cycle).
Test closure
4 CODING K2
Coding
Requirement analysis
Test planning
ITG stands for
a) instantaneous test group
5 b) integration testing group d K2
c) individual testing group
d) independent test group
Students have to prepare answers for the following questions at the end of the lecture
Bloom’s
Mark
Qn. No Question CO Knowledge
s
Level
1 Who are all involved in testing process? 2 2 K1
2 List the types of test plan. 2 2 K1
3 When is defect tracking needed? 2 2 K2
4 Describe the goal of test planning in detail. 13 2 K2
5 List the characteristics of STLC. 2 2 K1
6 Describe in detail about the Testing phases. 13 2 K2
Reference Book
Unit Lecture
2 10
No No
Topic Test Strategy, Resource Requirements
Bloom’sKnowledge
Learning Outcome (LO) At the end of this lecture, students will be able to
Level
LO1 Explain the testing strategy K2
LO2 Differentiate Test Strategy and Test Plan K2
LO3 Identify the Resource requirements for testing K2
Test Strategy
A test strategy is a plan for defining an approach to the Software Testing Life Cycle (STLC)
What is a Test Strategy Document?
A test strategy document is a well-described document that is derived from actual business
requirements that guide the whole team about the software testing approach and objectives for
each activity in the software testing process.
The test strategy document is approved and reviewed by the test team lead, development
manager, quality analyst manager, and product manager.
The test strategy document specifies the resources, scope, plan, and methodology for different
testing activities.
It answers all the questions like what needs to get done, how to accomplish it, etc.
Components of a Test Strategy
The test effort, test domain, test setups, and test tools used to verify and validate a set of functions
are all outlined in a Test Strategy. It also includes schedules, resource allocations, and employee
utilization information. This data is essential for the test team (Test) to be as structured and
efficient as possible. A Test Strategy differs from a Test Plan, which is a document that gathers
and organizes test cases by functional areas and/or types of testing in a format that can be
presented to other teams and/or customers. Both are critical components of the Quality Assurance
process since they aid in communicating the breadth of the test method and ensuring test coverage
while increasing the testing effort’s efficiency.
1. Scope and Overview: Scope and Overview is the first section of the test strategy paper. Any
product’s overview includes information about who should approve, review, and use the
document. The testing activities and phases that must be approved were also described in the test
strategy paper.
An overview of the project, as well as information on who should utilize this page.
Include information such as who will evaluate and approve the document.
Define the testing activities and phases that will be performed, as well as the timetables that
will be followed in relation to the overall project timelines stated in the test plan.
2. Testing Methodology: Testing methodology is the next module in the test strategy document,
and it is used to specify the degrees of testing, testing procedures, roles, and duties of all team
members. The change management process, which includes the modification request submission,
pattern to be utilized, and activity to manage the request, is also included in the testing strategy.
Above all, if the test plan document is not properly established, it may result in future errors or
blunders. This module is used to specify the following information-
Define the testing process, testing level, roles, and duties of each team member.
Describe why each test type is defined in the test plan (for example, unit, integration, system,
regression, installation/uninstallation, usability, load, performance, and security testing)
should be performed, as well as details such as when to begin, test owner, responsibilities,
testing approach, and details of automation strategy and tool (if applicable).
3. Testing Environment Specifications: Testing Environment Specification is another section of
the test strategy paper. The specification of the test data requirements, as we well know, is quite
important. As a result, the testing environment specification in the test strategy document includes
clear instructions on how to produce test data. This module contains information on the number of
environments and the required setup. The strategies for backup and restoration are equally
important.
The information about the number of environments and the needed configuration for each
environment should be included in the test environment setup.
For example, the functional test team might have one test environment and the UAT team
might have another.
Define the number of users supported in each environment, as well as each user’s access roles
and software and hardware requirements, such as the operating system, RAM, free disc space,
and the number of systems.
It’s just as crucial to define the test data needs.
Give specific instructions on how to generate test data (either generate data or use production
data by masking fields for privacy).
Define a backup and restoration strategy for test data.
Due to unhandled circumstances in the code, the test environment database may encounter
issues.
The backup and restoration method should state who will take backups when backups should
be taken, what should be included in backups, when the database should be restored, who will
restore it, and what data masking procedures should be implemented if the database is
restored.
4. Testing Tools: Testing tools are an important part of the test strategy document since it
contains all of the information on the test management and automation tools that are required for
test execution. The necessary approaches and tools for security, performance and load testing are
dictated by the details of the open-source or commercial tool and the number of users it can
support.
Define the tools for test management and automation that will be utilized to execute the tests.
Describe the test approach and tools needed for performance, load, and security testing.
Mention whether the product is open-source or commercial, as well as the number of
individuals it can accommodate, and make suitable planning.
5. Release Control: Release Control is a crucial component of the test strategy document. It’s
used to make sure that test execution and release management strategies are established in a
systematic way. It specifies the following information-
Different software versions in test and UAT environments can occur from unplanned release
cycles.
All adjustments in that release will be tested using the release management strategy, which
includes a proper version history.
Set up a build management process that answers questions like where the new build should be
made available, where it should be deployed when to receive the new build, where to acquire
the production build, who will give the go signal for the production release, and so on.
6. Risk Analysis: Risk Analysis is the next section of the test strategy paper. All potential hazards
associated with the project are described in the test strategy document and can become an issue
during test execution. Furthermore, a defined strategy is established for inclining these risks in
order to ensure that they are carried out appropriately. If the development team is confronted with
these hazards in real-time, we establish a contingency plan. Make a list of all the potential
dangers. Provide a detailed plan to manage these risks, as well as a backup plan in case the
hazards materialize.
7. Review and Approval: Review and Approval is the last section of the Testing strategy paper.
When all of the testing activities are stated in the test strategy document, it is evaluated by the
persons that are involved, such as:
System Administration Team.
Project Management Team.
Development Team.
Business Team.
Starting the document with the right date, approver name, comment, and summary of the
reviewed modifications should be followed.
It should also be evaluated and updated on a regular basis as the testing procedure improves.
Test Strategy vs Test Plan
Below are the differences between Test Strategy and Test Plan:
S
No. Test Plan Test Strategy
The test lead or manager is in charge of The project manager or the business
2.
preparing it. analyst creates it.
The test plan’s components include the test The components of a test strategy include
plan’s id, features to be tested, test techniques, objectives and scope, documentation
3. testing tasks, features pass or fail criteria, test formats, test processes, team reporting
deliverables, responsibilities, and timetable, structure, client communication strategy,
among others. and so on.
After the requirements have been approved, The test strategy comes first, followed by
4.
the test plan is written. the test plan.
The test plan should be simple and The test approach serves as a general
5.
straightforward. guide for the project at hand.
Bloom’s
Qn. No. Question Answer Knowledge
Level
Software Debugging is a set of activities that can be
planned in advance and conducted systematically.
1 b) K2
a) True
b) False
Which of the following is not a software testing generic
characteristics?
a) Different testing techniques are appropriate at different
points in time
2 b) Testing is conducted by the developer of the software or a) K2
an independent test group
c) Testing and debugging are different activities, but
debugging must be accommodated in any testing strategy
d) None of the mentioned
By collecting ________ during software testing, it is
3 possible to develop meaningful guidelines to halt the testing Metrics K2
process.
Which of the following issues must be addressed if a
successful software testing strategy is to be implemented?
a) Use effective formal technical reviews as a filter prior to
testing
4 d) K2
b) Develop a testing plan that emphasizes “rapid cycle
testing.”
c) State testing objectives explicitly
d) All of the mentioned
Students have to prepare answers for the following questions at the end of the lecture
Bloom’s
Mark
Qn. No Question CO Knowledge
s
Level
1 What is testing strategy? 2 2 K1
2 List the types of test plan. 2 2 K1
3 What are the factors that influence the test approach 2 2 K2
selection?
4 Differentiate Test Strategy and Test plan. 2 2 K2
5 State the requirements of Test plan. 2 2 K1
6 Describe in detail about the Testing Strategy. 13 2 K2
Reference Book
Tester Assignments
The Test Assignment view is the second view of the Manual Execution Planning page. Here you
can organize the manual tests that are assigned to the selected testing cycle. Testing Cycles. A
testing cycle is a defined period in time consisting of a start date, an end date, and a list of manual
testers.
Test Schedule
A test schedule includes the testing steps or tasks, the target start and end dates, and responsibilities.
It should also describe how the test will be reviewed, tracked, and approved.
Test scheduling: Test scheduling is the process of defining the timeline for the testing effort. It
involves determining when each test will be executed, who will execute it, and how long it is
expected to take. Test scheduling also includes any dependencies or constraints that may impact the
testing timeline.
Test Case
A test case refers to the actions required to verify a specific feature or functionality in software
testing. The test case details the steps, data, prerequisites, and postconditions necessary to verify a
feature.
A test suite is a collection of test cases that are grouped for test execution purposes.
The Objective of Writing Test Cases in Software Testing
To validate specific features and functions of the software.
To guide testers through their day-to-day hands-on activity.
To record a catalog of steps undertaken, which can be revisited in the event of a bug popping up.
To provide a blueprint for future projects and testers so they don’t have to start work from scratch.
To help detect usability issues and design gaps early on.
To help new testers and devs quickly pick up testing, even if they join in the middle of an ongoing
project.
Standard Test Case Format
Test Case ID
Test Scenario
Test Steps
Prerequisites
Test Data
Expected/Intended Results
Actual Results
Test Status – Pass/Fail
How to write Test Cases (Test Case Example)
Let’s build a test case example based on a specific scenario. Here is a sample case.
Test Case ID: #BST001
Test Scenario: To authenticate a successful user login on [Link]
Test Steps:
o The user navigates to [Link].
o The user enters a registered email address in the ’email’ field.
o The user clicks the ‘Next’ button.
o The user enters the registered password.
o The user clicks ‘Sign In.’
Prerequisites: A registered Gmail ID with a unique username and password.
Browser: Chrome v 86. Device: Samsung Galaxy Tab S7.
Test Data: Legitimate username and password.
Expected/Intended Results: Once username and password are entered, the web page redirects to
the user’s inbox, displaying and highlighting new emails at the top.
Actual Results: As Expected
Test Status – Pass/Fail: Pass
Assessment questions to the lecture
Bloom’s
Qn. No. Question Answer Knowledge
Level
Which is one of the objective of Test case?
a. To validate specific features and functions of the
software.
1 b. To find error a. K2
c. To prepare input
d. To identify output
Students have to prepare answers for the following questions at the end of the lecture
Bloom’s
Mark
Qn. No Question CO Knowledge
s
Level
1 What is test assignment? 2 2 K1
2 Define Test case. 2 2 K1
3 What is the need for test schedule? 2 2 K2
4 Prepare a test schedule for testing a simple bank transfer. 13 2 K3
Reference Book
1. It can help you figure out precisely what’s wrong with a bug, so you can find the best
way to fix it.
2. Saves you time and money by helping you catch the bug before it worsens.
3. Stops bugs from making it into the final product and ruining someone’s experience.
4. Plus, it helps ensure the same bug doesn’t appear again in future versions.
5. Finally, everyone involved will know what’s happening with the bug so they can do
something about it.
Reporting a Bug
Effectively reporting a bug is essential for the development team to resolve the issue promptly
and accurately. A well-constructed bug report should be concise, comprehensive, and
comprehensible. The following steps can be taken to submit a bug report:
Test metrics are essential in determining the software’s quality and performance. Developers may
use the right software testing metrics to improve their productivity.
Test metrics help to determine what types of enhancements are required in order to create a
defect-free, high-quality software product.
Make informed judgments about the testing phases that follow, such as project schedule and
cost estimates.
Examine the current technology or procedure to see if it need any more changes.
The below diagram illustrates the different stages in the test metrics life cycle.
To get the percentage execution status of the test cases, the following formula can be used:
Percentage test cases executed = (No of test cases executed / Total no of test cases written) x
100
Similarly, it is possible to calculate for other parameters also such as test cases that were not
executed, test cases that were passed, test cases that were failed, test cases that were blocked, and
so on. Below are some of the formulas:
1. Test Case Effectiveness:
Test Case Effectiveness = (Number of defects detected / Number of test cases run) x 100
2. Passed Test Cases Percentage: Test Cases that Passed Coverage is a metric that indicates the
percentage of test cases that pass.
Passed Test Cases Percentage = (Total number of tests ran / Total number of tests executed)
x 100
3. Failed Test Cases Percentage: This metric measures the proportion of all failed test cases.
Failed Test Cases Percentage = (Total number of failed test cases / Total number of tests
executed) x 100
4. Blocked Test Cases Percentage: During the software testing process, this parameter
determines the percentage of test cases that are blocked.
Blocked Test Cases Percentage = (Total number of blocked tests / Total number of tests
executed) x 100
5. Fixed Defects Percentage: Using this measure, the team may determine the percentage of
defects that have been fixed.
Fixed Defects Percentage = (Total number of flaws fixed / Number of defects reported) x 100
6. Rework Effort Ratio: This measure helps to determine the rework effort ratio.
Rework Effort Ratio = (Actual rework efforts spent in that phase/ Total actual efforts spent
in that phase) x 100
7. Accepted Defects Percentage: This measures the percentage of defects that are accepted out
of the total accepted defects.
Accepted Defects Percentage = (Defects Accepted as Valid by Dev Team / Total Defects
Reported) x 100
8. Defects Deferred Percentage: This measures the percentage of the defects that are deferred
for future release.
Defects Deferred Percentage = (Defects deferred for future releases / Total Defects
Reported) x 100
Assessment questions to the lecture
Bloom’s
Qn. No. Question Answer Knowledge
Level
1. A software bug is an ?
A. error
1 B. fault D K2
C. flaw
D. All of the above
The process of finding and fixing bugs is termed?
A. Exception
B. Bugs handling
2 C K2
C. Debugging
D. Error handling
Students have to prepare answers for the following questions at the end of the lecture
Bloom’s
Mark
Qn. No Question CO Knowledge
s
Level
1 What is Bug report? 2 2 K1
2 List the basic metrics of software testing? 2 2 K1
3 State the steps involved in bug report preparation. 6 2 K1
4 13 2 K3
Data retrieved
S during test
No. Testing Metric case
1 No. of requirements 5
12 Defects fixed 12
Reference Book