TGV Tool [1]

17
TGV Tool [1] Florian Winkelbauer AK Softwaretechnologie 1 (716.174)

description

Florian Winkelbauer AK Softwaretechnologie 1 (716.174). TGV Tool [1]. Content. Conformance Testing Input Output Labelled Transition Systems General Deterministic IOLTS ioco TGV Overview Functional view. Conformance Testing. Test non- deterministic reactive systems - PowerPoint PPT Presentation

Transcript of TGV Tool [1]

Page 1: TGV Tool [1]

TGV Tool[1]

Florian WinkelbauerAK Softwaretechnologie 1 (716.174)

Page 2: TGV Tool [1]

2

Content

Conformance Testing

Input Output Labelled Transition Systems General Deterministic IOLTS ioco

TGV Overview Functional view

Page 3: TGV Tool [1]

3

Conformance Testing

Test non-deterministic reactive systems

Check if IUT behaves like specification (oracle) IUT = Implementation Under Test

Black Box IUT code is unknown, behaviour only visible

by interaction Test hypothesis

Page 4: TGV Tool [1]

4

IOLTS

QS = StatesAS = Actionss = Transitionq0

S = Initial State

AS:• Input Alphabet• Output Alphabet• Alphabet of Internal Actions

DS:• S with d

Page 5: TGV Tool [1]

5

Deterministic IOLTS

det(D(S))

Page 6: TGV Tool [1]

6

ioco

IUT1 ioco S !(IUT2 ioco S)

Page 7: TGV Tool [1]

7

TGV

Test Generation with Verification Technology

Based on labelled transition models (IOLTS) Specification of visible behaviour

Generation of abstract test cases

Example of a full run

Page 8: TGV Tool [1]

8

TGV functional view

Page 9: TGV Tool [1]

9

Test purpose

Modelled by automata (formally IOLTS) Extension▪ Accept select target behaviour▪ Refuse cut down exploration▪ „*“ label for completion▪ Regular expression

Efficient test selection „on-the-fly“ Generate test cases by partial exploration

of graphs

Page 10: TGV Tool [1]

10

Input for TGVSpecification Test Purpose

How to compute intersection?

Page 11: TGV Tool [1]

11

Synchronous product SP = S x TP

Page 12: TGV Tool [1]

12

Test Creation Create SPVIS by extracting visible behaviour

Extract test case by selection of accepted behaviour Mirror image Complete inputs

Test Case Pass Fail Inconclusive (behaviour ok, but not reachable through

TP)

Page 13: TGV Tool [1]

13

SPVIS

Page 14: TGV Tool [1]

14

Complete Test Graph

Page 15: TGV Tool [1]

15

A possible Test Case

Page 16: TGV Tool [1]

16

Conclusion

Can synthesize tests from industrial size specifications, but improvements are still needed

Problems Test Purpose (expertise needed) Distributed Systems Symbol variables beyond the scope

Page 17: TGV Tool [1]

17

Reference

[1] Claude Jard and Thierry Jéron. TGV: theory, principles and algorithms. International Journal on Software Tools for Technology Transfer (STTT), 7(4):297-315, 2005