Galit Friedman, Alan Hartman, Kenneth Nagin, Tomer Shiran - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

Galit Friedman, Alan Hartman, Kenneth Nagin, Tomer Shiran

Description:

Traverse the whole EFSM reachable state space. Use BFS, DFS, or CFS. Record data on reachable coverage tasks including random representative selection ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 17
Provided by: ieiP7
Category:

less

Transcript and Presenter's Notes

Title: Galit Friedman, Alan Hartman, Kenneth Nagin, Tomer Shiran


1
Projected State Machine Coverage
  • Galit Friedman, Alan Hartman, Kenneth Nagin,
    Tomer Shiran
  • IBM Haifa Research Laboratory
  • hartman_at_il.ibm.com
  • ISSTA 2002

2
Outline
  • Specification-based testing
  • EFSM models and test generation
  • Projected State Machine
  • Coverage Criteria
  • Test Generation Algorithms
  • Experimental Industrial Experience

3
Specification-based testing
Test Suite
Test Generation
Modeling
  • Build a model based on the specifications
  • Derive test cases from the model
  • Test cases generated based on some coverage
    criterion
  • Test cases contain stimuli and expected responses

4
EFSM Models
  • Labeled directed graph
  • Nodes (states) labeled with both control and data
  • Arcs (transitions) labeled by stimuli to
    application
  • Includes expected responses to stimuli

deposit
withdraw
5
Problems with EFSM
  • State space explosion
  • Test case explosion

6
Test Generation
  • Extracting a set of paths from the EFSM
  • How do you choose which paths?
  • Coverage criteria!

7
Projected State Machine
8
Coverage Criteria I
  • CC_State_Projection on ltexprlistgt
  • Generate a set of test cases one through each
    equivalence class of states in the projected
    state machine
  • E.g. CC_State_Projection on action result

9
Coverage Criteria II
  • CC_Transition_Projection from ltexprlistgt to
    ltexprlistgt
  • E.g. CC_Transition_Projection from action to
    action result
  • Equivalent to Carver and Tais CSPE-1 coverage
    criterion (Constraints on Succeeding and
    Preceeding Events) IEEE TSE 1998
  • Controllable stimuli Start, Deposit, Withdraw
  • Observable results Fail, OK

10
Other coverage criteria for TG
  • Hartmann et al. ISSTA 2000 transition coverage
    of data partitions
  • Offut Abdurazik UML 1999 explicit test
    purposes, transition coverage, predicate coverage
    of transitions
  • Jeron Morel CAV 1999 test purposes
  • Amman et al. FME 1998 mutation coverage
  • Henniger Ural SDL 2000 define-use coverage on
    message flow graph

11
Test Constraints
  • Forbidden classes of states
  • Forbidden classes of paths
  • E. g. TC_Forbidden_State buffer2

deposit 1 OK
Forbidden
Start 0 -
withdraw 0 fail
withdraw 0 OK
withdraw 1 OK
12
Test Generation Algorithm
  • Traverse the whole EFSM reachable state space
  • Use BFS, DFS, or CFS
  • Record data on reachable coverage tasks
    including random representative selection
  • Eliminate forbidden configurations
  • Extract a path to each selected task
    representatives
  • When state space too large generate on-the-fly

13
Experiments
  • Buffer, Readers and Writers, Gas Station, Sliding
    Window Protocol, Elevator Control.
  • Use different projections to obtain a hierarchy
    of test suites of varying strength.
  • More projection variables created larger test
    suites with increased power of defect detection
  • Use test constraints to partition the state
    space, enabling measurable coverage of
    well-defined subsets of behavior

14
Distributed File System
  • Statistics
  • FSM 370000 states, 290 test cases, 729 coverage
    tasks
  • Original Test 12 PM, 18 defects (10 severity 2)
  • Our test 10 PM, 15 old defects (10 severity 2) 2
    new defects
  • Bottom Line We made a convert

15
Call Center
  • Two FSM models
  • 37 defects
  • Responsiveness to changes in spec.
  • Reuse of function test for system test

16
Conclusions
  • Flexible coverage criteria for a hierarchy of
    test suites
  • FSM constraints help with state explosion
  • Systematic and automated methodology
  • Eases reuse and maintenance of test suites
  • Successful in detecting faults and communicating
    error scenarios
Write a Comment
User Comments (0)
About PowerShow.com