The need for a good test plan Helps to organize, schedule and manage the testing effort Helps in writing test cases Improves communication with developers and with management If d
Trang 1Test documentation
Trang 2 Test Plan
Test Cases
Test Case Design
Trang 3Test plan
Trang 4The need for a good test plan
Helps to organize, schedule and manage the testing effort
Helps in writing test cases
Improves communication with developers
and with management
If done correctly, it may help minimize the
documentation required
Trang 5Validation Planning Issues
Testing is intended to measure software
quality and must be planned
It takes careful planning to select a good set
of tests
Questions that must be answered: What to test and when to stop
Trang 6Benefits of Test Planning
Measure the cost of testing vs the confidence gained
Forces you to work out expected results
before you run the test cases
You can actually find errors before running
any tests!
Trang 7Components of a Test Plan
Trang 8Other Issues to Consider
Trang 9Test Plan activities
Use a Test Plan template, or design one
List what cannot be tested
Write only what you need
Trang 10Test Plan activities
Have the Test Plan reviewed
Test while you write
Make it a “living” document
Trang 11Concerns of Test Planning
Not enough training
Lack of test tools
Lack of management support
Lack of customer/user involvement
Not enough time
Rapid change
It‟s hard to say “No”
Trang 12Example of a Test Plan
Test Plan template
Test Plan example
Trang 13A Partial List for Your Test
Plans
Title page of some sort
Description of the testing to be done
Updated Requirements Matrix
List of test cases
Traceability Matrix
3 detailed test cases
Trang 14Testing on a large project
Roles/Responsibilities
Trang 15Test Planning Tips
Meet regularly with the Project Manager
Plan for the test team to attend a lot of
reviews
Make assignments early
Assign one tester to know everything
Have only one Test Plan
Biggest headache: Builds
Trang 16Test case
Trang 17 Test Case
results, and a set of execution conditions for a
test item
Test Suite
used to test a software program
Trang 18Characteristics of good Test
Cases
Reasonable probability of catching an error
of validating the program/system
Trang 19Test Case caveats
Errors can mask other errors
Make sure you know how to tell whether a
test case passes or fails
Bug fixes can cause more bugs
Trang 20Where do you get your Test
The customer: Use Cases/Scenarios
Defects from the field or previous releases
Trang 21Test Case Examples
Test Case Template
Test Case Example
Trang 22To read more
Trang 23Test Case Generation
Case-insensitive Passwords
State look-up
Simple program
Trang 24Case-insensitive Passwords
Write the test cases to verify that Passwords are case insensitive when logging onto a
secure system
Trang 25An example
Test Case: Verify that passwords are case
insensitive
Test Procedure:
successful)
5 Log on using Password „abcDe‟ (should be
successful).
Trang 26the full name Discuss all considerations for testing such a function
Trang 27Simple program
The program accepts as input 2 integers and outputs their sum
Assume arbitrary limits, say -100 to +100
Design the test cases