Documente Academic
Documente Profesional
Documente Cultură
1
Testing Process
Test Strategy
Test Plan
Test Case
Test Data
Log Defects
Status Report
2
Importance of data in testing
Why data is important during testing
3
Test Data
4
Test data
• Types
– Test data close matching the real data : used during system
testing
5
Test Data Creation Process
In addition to normal positive conditions, the test conditions
address the following:
1. Acceptable values : also called positive data values
2. Limit values. Values that are not within the normal range but
are acceptable.
4. Exception values. Values that are not normal but can occur;
they need special processing (e.g., receiving an empty file as
the input).
6
Equivalence Partitioning
• Black-box technique that divides the input domain into classes
of data from which test cases can be derived
• An ideal test case uncovers a class of errors that might require
many arbitrary test cases to be executed before a general error
is observed
• Equivalence class guidelines:
– If input condition specifies a range, one valid and two invalid
equivalence classes are defined
– If an input condition requires a specific value, one valid and two
invalid equivalence classes are defined
– If an input condition specifies a member of a set, one valid and one
invalid equivalence class is defined
– If an input condition is Boolean, one valid and one invalid
equivalence class is defined
7
Equivalence Partitioning - Example
• Suppose a system asks for the input numbers between 100 –
999
• This gives three equivalence classes.
– <100
– 100-999
– >999
• Test the system for numbers which falls in these classes
– Any number between 0-99
– Any number between 100-999
– Any number between >999
• Typically boundary values is not considered.
8
Boundary Value Analysis
• Black-box technique that focuses on the boundaries of the input
domain rather than its center
• BVA guidelines:
– If input condition specifies a range bounded by values a and b, test
cases should include a and b, values just above and just below a
and b
– If an input condition specifies and number of values, test cases
should exercise the minimum and maximum numbers, as well as
values just above and just below the minimum and maximum values
• Apply guidelines 1 and 2 to output conditions, test cases should
be designed to produce the minimum and maximum output
reports
9
Boundary Value Analysis - Example
• Suppose a system asks for the input numbers between 100 –
999
• This gives two boundary values.
– 100
– 999
• Test the system for numbers which falls around these values
– 99,100,101
– 998, 999, 1000
• Typically values which falls far away from boundary values are
not considered.
10
Questions and Comments
• What questions or comments
do you have?
11
Test Plan
• Scope and Purpose
• Testing Strategy (Testing types/levels to be considered)
• H/w and S/w requirements
• Schedule and metrics to be collected
• Version control procedures
• Features to be tested/not to be tested
• Resources/Roles/Responsibilities
• Dependencies
• Risks and Mitigations
• Other Assumptions (If any)
• Tools to used
• Approval and Review procedures
12
Test Terminologies
Test Approach An analysis of all major aspects of the test
phase that could affect the success of that
phase
Test Scenario High level description of functionality areas that
will be tested, and are derived from the
specification that must be tested.
Test Cases A list of items that must be tested to fully test
the associated test scenario; each condition,
therefore, details a low level test and will have
a corresponding expected result
13
Test Case
• Req ID
• Test Case ID
• Test Condition/Description
• Pre-Requisite
• Test Step (Test Script)
• Test Data
• Expected Result
• Actual Result
• Status (Pass/Fail)
14
Test Condition Properties
Name and Begin these with an action verb:
description of create, print, etc.
the test Example: “Create invoice.”
condition
Expected result For each test condition, define a
corresponding expected result.
Example: “An invoice is created.”
15
Test Conditions: Key Considerations
16
Using the TC Creation Process
17
Characteristics of Good Test Case
• Provide explicit, step-by-step instructions.
• Are highly detailed.
• Are reusable.
• Cover all Test Conditions.
• Reference necessary input data.
• Follow a standard format.
• Should provide a high degree of detail, both in the condition and
the expected result.
• Both the Assembly Test Condition and the Expected Result
should closely match the corresponding Test Scenario and
detailed Functional Requirement.
18
Examples: Good and Bad TCs
1. Read the sample Test Conditions and Expected Results below.
2. Discuss: Which example is better? Why?
19
Examples: Good and Bad TCs
1. Read the sample Test Conditions and Expected Results below.
2. Discuss: Which example is better? Why?
20
Creating Test Steps
• When does one write a test step?
– In order to enable the tester to execute specific
actions and compare actual results to expected
results.
– Immediately prior to test execution.
– After sufficient application details are gathered to
aid in the writing.
• How does one write a test step?
– Detail the exact steps that a tester must follow to
complete testing (i.e., to test all the conditions).
– Include the data that is used for testing.
– Are documented using a table or spreadsheet
format (or a test management tool).
21
Characteristics of Good Test Step
• Are reusable.
22
Test Step Fields
23
Test Step Fields
The Input Data field lists each field for which the tester should input
data to complete the Action/Description. Note that this field only lists the
type of data to be entered (hence the “XX” format); the data itself is
housed in a separate document.
25
Test Step Fields
The Expected Result field should be closely aligned with the existing
Test Conditions and Expected Results. It should explicitly describe the
result testers should see upon completing the action for that step.
26
Test Bed setup
27
Test Execution Process
• Prerequisites to Successful Test Execution
• Planning and preparation are complete
• Inspections have occurred
• Environment is well established and ready
• Test team is trained
• Migration procedures exist
• Test tools are used
28
An Example - The Postal Regulation
The following postal regulation determines postage surcharges. This regulation applies only to parcels,
not other types of postal items, and only to parcels sent to South America. Other postal items are
envelopes and post cards. There is no postage surcharge for envelopes and post cards.
For parcels which people mail to South America between December 1 and December 24 of each year,
the system will apply the surcharges in Table 1 in addition to the standard postage of $5.00 US:
30