Lecture 13 Test Cases
Lecture 13 Test Cases
Testing
Lecture 14
Test Cases
Recap
• Testing methods / Types
– Black Box testing
– White Box testing
– Incremental / Thread testing
• Testing levels Vs testing methods
• Testing Strategy
Contents
• Test cases
• What is a test case?
• Writing better test cases
• Examples
Test Cases
Test case
Purpose Short sentence or two about the aspect of the system is being tested. If this gets too long, break
the test case up or put more information into the feature descriptions.
Prereq Assumptions that must be met before the test case can be run. E.g., "logged in", "guest login
allowed", "user testuser exists".
Test Data List of variables and their possible values used in the test case. You can list specific values or
describe value ranges. The test case should be performed once for each combination of values.
These values are written in set notation, one per line. E.g.: loginID = {Valid loginID, invalid
loginID, valid email, invalid email, empty}
password = {valid, invalid, empty}
Steps Steps to carry out the test. See step formating rules below.
1.visit LoginPage
2.enter userID
3.enter password
4.click login
5.see the terms of use page
6.click agree radio button at page bottom
7.click submit button
8.see PersonalPage
9.verify that welcome message is correct username