Lecture - 3
Lecture - 3
Lecture - 3
1
Outline
• Testing Levels
• STLC
2
Testing Levels
3
Testing Levels Based on Software Activity
4
Testing Levels Based on Software Activity
5
Beizer’s Testing Levels Based on Test Process
Maturity
6
Level 0 Thinking
7
Level 0 Thinking
8
Level 1 Thinking
9
Level 2 Thinking
❑ Purpose is to show failures
10
Level 3 Thinking
❑ Testing can only show the presence of failures, not
their absence.
12
Software Testing Terminology
13
Software Testing Terminology
14
Software Faults, Errors & Failures
15
Software Faults, Errors & Failures
16
A Concrete Example
19
Software Testing Life Cycle (STLC)
❖ STLC Phases:
20
STLC
21
1. Requirement Phase Testing
22
Requirement Phase Testing
● Entry Criteria
— documented requirements, acceptance criteria, and intended
product architecture.
● Exit Criteria
— approved requirement traceability matrix (RTM) and automation
feasibility report.
23
Requirements Traceability Matrix (RTM)
24
Requirements Traceability Matrix (RTM)
possible scenarios/cases?
○ How to ensure that any requirement is not left out of the testing
cycle?
○ A simple way is to trace the requirement with its corresponding
test scenarios and test cases.
25
Requirements Traceability Matrix (RTM)
26
Requirements Traceability Matrix (RTM)
27
Requirements Traceability Matrix (RTM)
● Example:
28
Requirements Traceability Matrix (RTM)
29
2. Test Planning
○ Training requirement
30
Test Planning
● Entry Criteria
— requirement analysis, RTM, and automation feasibility
report.
● Exit Criteria
— approved test plan including timelines and risk/cost
analysis.
31
Test Plan
● A Test Plan is a detailed document that describes the test strategy,
objectives, schedule, estimation, deliverables, and resources
required to perform testing for a software product.
● It serves as a blueprint to conduct software testing activities, which
is minutely monitored and controlled by the test manager.
● How to write a Test Plan
Analyze the product
Design the Test Strategy
Define the Test Objectives
Define Test Criteria
Resource Planning
Plan Test Environment
Schedule & Estimation
Determine Test Deliverables
32
Software Test Estimation
33
Software Test Estimation Techniques
34
Software Test Estimation
35
3. Test Case Development Phase
36
3. Test Case Development Phase
● Entry Criteria
— approved test plan including timelines and risk/cost
analysis.
● Exit Criteria
— approved test cases and automation scripts.
37
4. Test Environment Setup
● Activities:
○ Understand the required architecture, environment set-up and
prepare hardware and software requirement list for the Test
Environment.
○ Setup test Environment and test data
○ Perform smoke test on the build 38
4. Test Environment Setup
● Entry Criteria
— system design and project architecture definitions.
● Exit Criteria
— a fully functional test environment and approved test
cases.
39
5. Test Execution Phase
● This phase is carried out by the testers in which testing of the
software build is done based on test plans and test cases
prepared.
● The process consists of test script execution, test script
maintenance and bug reporting.
● Activities:
○ Execute tests as per plan
○ Document test results, and log defects for failed cases
○ Map defects to test cases in RTM
○ Retest the Defect fixes
○ Track the defects to closure
40
5. Test Execution Phase
● Entry Criteria
— all exit criteria from previous steps.
● Exit Criteria
— all tests are performed and results are documented.
41
6. Test Cycle Closure
● Test Cycle Closure phase is completion of test execution which involves
several activities like test completion reporting, collection of test
completion matrices and test results.
● Activities:
○ Evaluate cycle completion criteria based on Time, Test coverage,
Cost,Software, Critical Business Objectives, Quality
○ Prepare test metrics based on the above parameters.
○ Document the learning out of the project
○ Prepare Test closure report
○ Qualitative and quantitative reporting of quality of the work product to the
customer.
○ Test result analysis to find out the defect distribution by type and severity.
42
6. Test Cycle Closure
● Entry Criteria
— test results and logging from all previous phases.
● Exit Criteria
— delivered and approved test closure report.
43