Presentation is loading. Please wait.

Presentation is loading. Please wait.

Use Cases to Test Cases Traceability NEORUG – May 14 th, 2008.

Similar presentations


Presentation on theme: "Use Cases to Test Cases Traceability NEORUG – May 14 th, 2008."— Presentation transcript:

1 Use Cases to Test Cases Traceability NEORUG – May 14 th, 2008

2 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 2 Agenda  Introduction  Overview of Traceability  How to create Test Cases from Use Cases  Summary  References  Questions

3 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 3 Agenda  Introduction  Cardinal Solutions Fast Facts  Speaker Bio  Overview of Traceability  How to create Test Cases from Use Cases  Summary  References  Questions

4 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 4 Cardinal Solutions Fast Facts Founded in 1996 (11 years) Over 200 professionals Offices in 3 cities –Cincinnati –Columbus –Charlotte Client projects > 15 cities $30M Revenue

5 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 5 Speaker  Nilesh Prabhu, IBM Certified for Rational Requirements Management with Use Cases  Principal Consultant at Cardinal Solutions Group  Process Engineer, Business Analyst : Insurance  Test Lead, Business Analyst : Pension  Functional Lead, Test Designer : Manufacturing  Programmer, Tester : Financials

6 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 6 Agenda  Introduction  Overview of Traceability  Definition  Item  Types  Role  The V Model  Where RUP Fits  How to create Test Cases from Use Cases  Summary  References  Questions

7 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 7 What is Traceability? "The degree to which a relationship can be established between two or more products of the development process, especially products having a predecessor- successor or master-subordinate relationship to one another; for example, the degree to which the requirements and design of a given software component match.” (IEEE 610.12-1990 ý3) A Technique used to provide relationship between Requirements, Design and Implementation of System in order to manage the effect of change and ensure the success of delivered system.

8 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 8 Traceability Item Any project element that needs to be explicitly traced from another textual or model item in order to keep track of the dependencies between them. Example : –Business Rationale –Stakeholder Need –Feature –Use Case –Actor –Wireframes –Business Rules –Design, Development Component –Test Cases –Defects –User Training Guides –Glossary Term –Etc.

9 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 9 Traceability Types Vertical Traceability –Defines relationship between different Project Items

10 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 10 Traceability Types Horizontal Traceability –Defines relationship among similar Project Items Use Cases Information Requirements Non Functional Requirements Wire-frames Info Reporting Requirements Business Rules Audit Control Requirements Security Requirements

11 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 11 Role of Traceability Coverage Analysis –Verify that an implementation fulfills all requirements Everything that the customer requested was implemented –Verify that the application does only what was requested Don't implement something that the customer never asked for

12 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 12 Coverage Traceability View

13 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 13 Role of Traceability Change Impact Analysis –Determine the impact of a proposed change: For example, when some requirements change, we want to know which test cases should be redone to test this change

14 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 14 Change Impact Traceability View

15 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 15 The V Model

16 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 16 Where does the RUP fit in?

17 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 17 Iterative Development Process Iteration 1 Iteration 2 Iteration 3 Testing starts as early as Iteration 1 and continues thru the remaining iterations.

18 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 18 Agenda  Introduction  Overview of Traceability  How to create Test Cases from Use Cases  Proposed Format of a Test Case  Core Process  Benefits  Summary  References  Questions

19 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 19 Proposed format of a Test Case Step #Action/Execution StepTest DataExpected Result 1Enter Date of Birth and Select Marital Status Date of Birth: 05/12/1978 Marital Status: Single Calculate Age. 2Select GenderMale 3Enter Phone Number614 999 1234 Prompt Primary or secondary 4Click SubmitN/A Display confirmation number.

20 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 20 Test Case Creation Process Identify all Scenarios from Use Cases –Activity Diagrams are basis for Scenario generation –Review alternate flows of a Use Case

21 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 21 Test Case Creation Process Scenario 1Basic Flow Scenario 2Basic FlowAlternate Flow 1 Scenario 3Basic FlowAlternate Flow 1Alternate Flow 2 Scenario 4Basic FlowAlternate Flow 3 Scenario 5Basic FlowAlternate Flow 3Alternate Flow 1 Scenario 6Basic FlowAlternate Flow 3Alternate Flow 1Alternate Flow 2 Scenario 7Basic FlowAlternate Flow 4 Scenario 8Basic FlowAlternate Flow 3Alternate Flow 4 Document All Scenarios

22 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 22 Test Case Creation Process Create a new requirement type as “Scenarios” Trace Identified Scenarios to Use Case Business Need Feature 1 Feature 2 Use Case 1 Use Case 2 Use Case 3 Scenario 1 Scenario 2 Scenario 8....

23 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 23 Test Case Creation Process Review individual Use Case / Scenario step to identify variables Ex. Steps from Manage Personal Information Use Case is: Customer enters Date of Birth, Customer selects Marital Status Variables are: Date of Birth and Marital Status

24 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 24 Test Case Creation Process Identify and document significantly different options for each Use Case step Date of Birth 1.Regular: MM/DD/YYYY 2.Empty: 3.Min Allowed: 01/01/1901 4.Min Allowed – 1 Day 5.Max Allowed:12/31/9999 6.Max Allowed + 1 Day 7.Logically invalid: MM > 12, DD > 31 & YYYY > 9999 Marital Status 1.Single2. Married 3. Separated4. Divorced

25 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 25 Test Case Creation Process Select options that should be tested Date of Birth: Regular, empty, 12/31/1900, 12/31/9999, Logically invalid (13/32/2008) Marital Status: Each status once

26 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 26 Test Case Creation Process Combine options to be tested into Test Cases Date of Birth Marital Status Gender Phone No Submit R E Min-1 Max+1 I S M SP D M F R E I TC1 TC2 TC 3 TC4

27 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 27 Guidelines for combining options Rules to select an option is step n: Take any option that was not used yet Take an option that was not used after the option selected in step n – 1 Take an option that was used the least

28 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 28 Test Case Matrix StepVariable or Selection TC1TC 2TC 3TC 4 1Date of BirthRegular 2Marital StatusSingleMarriedSeparatedDivorced 3GenderMale Female 4Phone NoRegular Invalid 5SubmitSame

29 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 29 Test Case Creation Process Assign values to variables Per Test Case StepVariable or Selection ValueExpected Results Actual Results 1Date of Birth03/29/1976Calculate Age 2Marital StatusMarriedPrompt for spouse details 3GenderMale- 4Phone No614 555 3289Prompt for primary or secondary 5SubmitSameDisplay Confirmation Number

30 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 30 Traceability Matrix View from Requisite Pro

31 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 31 Traceability Tree View from Requisite Pro

32 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 32 Benefits of Tracing to Test Cases Test Cases are derived in more automatic way Better test coverage Easier to monitor testing progress Work load balance between testers Easier regression testing Contribution to early discovery of missing requirements Understand the impact of change

33 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 33 Summary Traceability establishes relationships between various project items Use cases drive scenarios which drive test cases “Step” in a Use Case corresponds to “Step” in a test case Right project items are addressed in right phase Reduce effort required for impact analysis due to a change request

34 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 34 References Dean Leffingwell and Don Widrig : Managing Software Requirements: A Unified Approach. Addison-Wesley 1999 Peter Zielczynski : Requirements Management using IBM Rational Requisite Pro Jim Heumann : “Using Use Cases to create Test Cases.” The Rational Edge, June 2001 Rational Unified Process. IBM Rational Software Corporation, 2001.

35 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 35 Questions Q&A

36 Use Cases to Test Cases Traceability © 2008 Cardinal Solutions Group 36 © 2008 Cardinal Solutions Group Contact Information Consulting: Training: npeterson@cardinalsolutions.comnpeterson@cardinalsolutions.com training@cardinalsolutions.comtraining@cardinalsolutions.com Cincinnati Office 8044 Montgomery Rd Suite 420 Cincinnati, OH 45236 Toll Free: 888-503-2218 Phone: 513-984-6700 Fax: 513-792-2835 Charlotte Office 525 N. Tyron. St. Suite 1700 Charlotte, NC 28202 Phone: 704-331-6567 Fax: 704-331-3950 www.cardinalsolutions.com Columbus Office 401 N. Front. St. Suite 210 Columbus, OH 43215 Toll Free: 866-806-3486 Phone: 614-545-3860 Fax: 614-545-3872


Download ppt "Use Cases to Test Cases Traceability NEORUG – May 14 th, 2008."

Similar presentations


Ads by Google