0% found this document useful (0 votes)
26 views8 pages

Test Case Generalization

Uploaded by

ulrichanusen.ari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views8 pages

Test Case Generalization

Uploaded by

ulrichanusen.ari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Generating The Test Case

Lintang yuniar banowosri


Generating the Test Case from
Use Case

• Use cases is visually


requirements description
is based on UML (Unified
Modeling Language).
Pembentukan Test Case

• Pembentukan test
case berdasarkan
basic flow (sistem
berjalan dg normal)
dan alternate flow
(alternatif jalannya
sistem).
Contoh
• Flow Normal : Logon -> Select “Create Schedule” -> Obtain Course
Information -> Select Course -> Submit Schedule -> Display
Completed Course
• Alternate Flow: Unidentified Student; Quit at anytime; Unfulfilled
Prerequisite, Course Full, Schedule Conflict; Course Catalog
Unavailable; Course Registration is Closed.
Use Case Scenario

Scenario 1 Basic Flow

Scenario 2 Basic Flow Alternate Flow 1

Scenario 3 Basic Flow Alternate Flow 1 Alternate Flow 2

Scenario 4 Basic Flow Alternate Flow 3

Scenario 5 Basic Flow Alternate Flow 3 Alternate Flow 1

Scenario 6 Basic Flow Alternate Flow 3 Alternate Flow 1 Alternate Flow 2

Scenario 7 Basic Flow Alternate Flow 4

Scenario 8 Basic Flow Alternate Flow 3 Alternate Flow 4


Three-step process for
generating test cases from
a fully-detailed use case:

1. For each use case, generate a full set of


use-case scenarios.
2. For each scenario, identify at least one test
case and the conditions that will make it
"execute."
3. For each test case, identify the data values
with which to test.
Step One: Generate Scenarios

• Read the use-case


Scenario Name Starting Flow Alternate textual description and
1: Successful Registration Basic Flow identify each
combination of main and
2: Unidentified User Basic Flow A1 alternate flows -- the
scenarios -- and create a
3: User quits Basic Flow A2 scenario matrix.

4: Course Catalog Unavailable Basic Flow A4


5: Registration Clossed Basic Flow A5
6: Cannot Enroll Basic Flow A3
Id Scenario Stud. Id Passw Course Prereq. Course Schedule Test Result
ord Selected Fulfilled Open Open
RC1 1: Successful V V V V V V Schedule and
Registration Confirmation
Number
Displayed
RC 2 2: Unidentified I N/A N/A N/A N/A N/A Err. Msg.:
student Back To Login
RC 3 3: valid user V V N/A N/A N/A N/A Login screen Step
quits appeared Two:
RC 4 4: course V V N/A N/A N/A N/A Err. Msg.: back Identify
registration to step 2 Test
system Cases
unavailable
RC 5 5: registration V V N/A N/A N/A N/A Err. Msg.: back
closed to step 2

RC 6 6: Coure Full V V V V I V back to step 3

RC 7 7: Pre-req. Not V V V I V V back to step 4


fulfilled
RC 8 8: Schedule V V V V V I back to step 4
Conflict

You might also like