1 / 19

Using Use Case Scenarios and Operational Variables for Generating Test Objectives

Using Use Case Scenarios and Operational Variables for Generating Test Objectives. Javier J. Gutiérrez María José Escalona Manuel Mejías Arturo H. Torres. Department of Computer Languages and Systems. University of Seville, Spain. escalona@lsi.us.es STV 2007. Paris, France. Introduction

Download Presentation

Using Use Case Scenarios and Operational Variables for Generating Test Objectives

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using Use Case Scenarios and Operational Variablesfor Generating Test Objectives Javier J. Gutiérrez María José Escalona Manuel Mejías Arturo H. Torres • Department of Computer Languages and Systems. University of Seville, Spain. • escalona@lsi.us.es • STV 2007. Paris, France

  2. Introduction Context of the work  Use cases is a wide used technique to define functional requirements. The test phase must assure that the final software system covers these functional requirements. There are two very used techniques for extracting test cases from use cases: Introduction Use cases & test cases generation. The approach Conclusions.  Use cases are a testing artefact  Scenario analysis, based on scenario identification. Test data analysis, based on category partition method

  3. Introduction Objectives of the paper • Objectives: • Applying Cathegry Partition Method (CPM) and Extended Use Case Test Patterns (both very similar) to obtain test objectives. • Test objectives are defined as combinations of the partitions of the operational variables (categories) identified. Introduction Use cases & test cases generation. The approach Conclusions.  

  4. Introduction Definitions Introduction Use cases & test cases generation. The approach Conclusions. Operational variable: any element that may vary between two use case scenarios (categories of an use case). Domain: all possible values that a variable operational can get. Partition: set of domain values which exposes the same behaviour in the use case.   

  5. Use cases & test cases generation Definition of use cases (I) Introduction Use cases & test cases generation. The approach Conclusions. Use cases is a technique to express requirements graphically. Graphics are not enough detailed to express all the funcional requirements Some alternatives or representation are defined. For instance, patterns.   

  6. Use cases & test cases generation Definition of use cases (II) NDT + language patterns. Introduction Use cases & test cases generation. The approach Conclusions. (The) [ACTOR] [ACTION]

  7. Use cases & test cases generation Test objectives • Test objective: • Something to test (with a test case) • A test objective is a test case without a result. • Test objectives may be defined in serveral ways. • A use case may be a test objective. • Use case scenarions. • Test value combination. • Both 2 and 3. Introduction Use cases & test cases generation. The approach Conclusions.

  8. The approach Generating use cases scenarios. STEP 1 STEP 1: From use cases definition to XML definition Use cases templates are extended with language patterns and they are translate into a XML document using the same structure than the template Introduction Use cases & test cases generation. The approach Conclusions. DTD available

  9. The approach Generating use cases scenarios. STEP 2 STEP 2: From formal pattern in XML to activity diagrams From formal description of pattern an activity diagram can be generated easily. (tool available: ObjectGen) Introduction Use cases & test cases generation. The approach Conclusions. If [CONDITION] then [ACTION] and this use case ends.

  10. The approach Generating use cases scenarios. STEP 3 STEP 3: From activity diagram to use case scenarios Each path of the activity diagram is a possible use case scenario. Classical graph techniques may be used to generate scenarios. (tool available ObjectGen) Introduction Use cases & test cases generation. The approach Conclusions.

  11. The approach Generating combinations of partitions. STEP 1 (I) STEP 1: Definition of operational variables and partitions Every decision node, in the activity diagram, evaluates a logical predicate to choose an output transition. Therefore, an operational variable is assigned to each decision node and logical predicate. The domain of the operational variable is divided into as many partitions as output transitions Introduction Use cases & test cases generation. The approach Conclusions.

  12. The approach Generating combinations of partitions. STEP 1 (II) Variables: activity and decision nodes. Introduction Use cases & test cases generation. The approach Conclusions. Particiones: Decisions output flows.

  13. The approach Generating combinations of partitions. STEP 2 (I) STEP 2: Construction of the dependency matrix and generation constraint Introduction Use cases & test cases generation. The approach Conclusions. One path with variables and the partitions in which variables takes values. 1 -> 2 -> 3 -> V_D01(Sí) V_D01: User cancels peration. Boolean We see, in dependency map, that from V_D01, variables V_D02, V_D03 and V_D04 may be evaluated. But those variables do not appear in the path, so, we have identifiyed a restriction. • If V_D01 == P_1 (cancels) • thenV_D02 = V_D03 = V_D04 = no value

  14. The approach Generating combinations of partitions. STEP 2 (II) STEP 2: Construction of the dependency matrix and generation constraint These steps can be automatically generate with an available tool: ValueGen Introduction Use cases & test cases generation. The approach Conclusions.

  15. The approach Results with the constraint construction • Without constraints: • 4 variables, 2 partitions for each variable: • 16 combinations. • With constraints: • 4 variables, 2 partitions, 2 constraints: • 7 combinations. Introduction Use cases & test cases generation. The approach Conclusions.

  16. Conclusions General conclusions The approach introduced may be applied in the early stages of the development process, when use cases are being defined, because it does not need a set of complete use cases The full automatism of the process and the availability to support tools allow the easy re-generation of test objectives when use cases change The approach only uses main, alternative and erroneous steps which are present in all styles, so, it may be easily used without having to change the use case style and format of an organisation It allows the managing of the traceability of the test cases from a use case through their test objectives. (To know how many use cases were covered by tests) Introduction Use cases & test cases generation. The approach Conclusions.

  17. Conclusions Future works Introduction Use cases & test cases generation. The approach Conclusions. • To improve the tool support: mainly the interface. • To integrate test tools with the use case supporting tool for NDT. • To apply in practise with NDT.

  18. Address Introduction Use cases & test cases generation. The approach Conclusions. Testing & Tools Javier Gutiérrez (javierj@us.es) www.lsi.us.es/~javierj/ Requirements María José Escalona (mjescalona@us.es) www.lsi.us.es/~escalona/

  19. Using Use Case Scenarios and Operational Variablesfor Generating Test Objectives Javier J. Gutiérrez María José Escalona Manuel Mejías Arturo H. Torres • Department of Computer Languages and Systems. University of Seville, Spain. • escalona@lsi.us.es • STV 2007. Paris, France

More Related