21
Logic Based LSC Consistency Testing Presenter: Anup Niroula

Logic Based LSC Consistency Testing

  • Upload
    jara

  • View
    43

  • Download
    0

Embed Size (px)

DESCRIPTION

Logic Based LSC Consistency Testing . Presenter: Anup Niroula. Before going to LSCs. Requirement Capturing and Analysis UML diagrams - Specify scenario of the system behavior -Interaction between the objects Message Sequence Chart - Used to describe requirement - PowerPoint PPT Presentation

Citation preview

Page 1: Logic Based LSC Consistency Testing

Logic Based LSC Consistency Testing

Presenter:Anup Niroula

Page 2: Logic Based LSC Consistency Testing

Before going to LSCs

• Requirement Capturing and Analysis• UML diagrams

- Specify scenario of the system behavior-Interaction between the objects

• Message Sequence Chart- Used to describe requirement-Describe scenario and behavior

Page 3: Logic Based LSC Consistency Testing

MSCs

Page 4: Logic Based LSC Consistency Testing

LSCs-Live Sequence Charts

• Extension of Message sequence chart• Specify the possible and mandatory behavior

of the requirement• Describe liveness • Has more expressive power• Others: anti-scenario- forbidden scenario,

strengthens subcharts, branching and iteration

Page 5: Logic Based LSC Consistency Testing

Example of LSC

Fig: Universal and Existential Chart

Page 6: Logic Based LSC Consistency Testing

Partial Order

P1 < P2< P3< P4< P5

P1,S1,L1 | P4,S4,L2 | P5,S5,L4Synchronization points

Page 7: Logic Based LSC Consistency Testing

Play In

• To Create LSCs the live sequence chart for each use case of the system

Page 8: Logic Based LSC Consistency Testing

Play-out

• To test and execute the modeled system and simulate the behavior defined by LSC

• Helps to identify inconsistencies in the modeled system

Page 9: Logic Based LSC Consistency Testing

Live Copy

• Copy of the chart• Identifies the full status of the chart• Contains copy of original LSC, its activation

mode and its current cut.

Page 10: Logic Based LSC Consistency Testing

Universal LSC

PreActive

Active

Exit

Abort !

One of the minimal event of prechart occurs

Prechart completed

Chart violated while the cut is hot

Prechart violated

Chart completed successfully or chart violated by an event while the current cut is cold

Deleted

Fig: Basic life cycle of the live copy of Universal LSC

Page 11: Logic Based LSC Consistency Testing

Consistency Checking

• Major and formidable problem on LSCs• Inconsistency may arise due to:– Inherent contradiction among multiple charts– Inappropriate environmental/ external event

sequences

Page 12: Logic Based LSC Consistency Testing
Page 13: Logic Based LSC Consistency Testing

LSC Simulator

• Implemented in logic programming• Utilizes a traversal algorithm using memoized

depth first search strategy• Shows how a reactive system in LSCs would

respond to a set of external event sequences• External event sequences is defined by

extending regular expression notation with a parallel operator and a property testing operator

Page 14: Logic Based LSC Consistency Testing

Contd..

• Parallel operator: allows LSC simulator to test the scenarios

• Property Testing Operator: provides new approach in LSCs to trigger certain temporal property testing

Page 15: Logic Based LSC Consistency Testing

PLAY-tree

• New high level computational semantics of LSCs

• Shows how a running LSC affects the system behavior in response to a set of continuous input external events

• Branch from the root to the leaves corresponds to the possible LSC run on a finite sequence of external events inputs

Page 16: Logic Based LSC Consistency Testing

PLAY-tree (contd..)

• Consistency of LSC specification L:For a non-empty language I of external events, a PLAY-tree with all successful branches should exist.

• If play-tree doesn’t exist then a failure trace is obtained along failure branch

Page 17: Logic Based LSC Consistency Testing

PLAY-tree (contd..)

• PLAY-tree can serve as an automated simulation and debugging tool for running LSCs

• Executable LSC specification as well as automatic simulation, debugging and consistency testing capabilities are necessary for early design of software/hardware.

Page 18: Logic Based LSC Consistency Testing

EESL (External Events Specification Language)

• Formal language used to specify a set of external event sequences

• Given input L, the LCT system simulates each event sequence e ε L

• It extends a parallel operator ||and a property testing operator ‹›

Page 19: Logic Based LSC Consistency Testing

Testing

• Given an LSC specification and an input language in EESL, the research tool returns a truth value as well as justification.

• The input regular expression is of the form (createOrder.(createAbort+createConfirm))*

• If consistency is false, it returns failure trace• The tool also provides state transition

diagrams for positive justification

Page 20: Logic Based LSC Consistency Testing

Introduction of Java application to check the consistency of LSCs

• A research tool LSC consistency testing system (LCTS)

• The research tool incorporates LSC simulator• Specifies and tests certain temporal properties

in the form of LSCs. • Provides either a state transition graph or a

failure trace to justify the consistency checking results

Page 21: Logic Based LSC Consistency Testing

Demo of the LCTS Research tool to check the consistency of given LSC.

• http://137.48.185.2:8080/lsc/index.jsp