Top Banner
Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science and Technology, Soochow University Present by Junxiang Wu
15

Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Mar 28, 2015

Download

Documents

Jarrod Tabler
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Auto-Generation of Test Cases for Infinite States

Reactive Systems Based onSymbolic Execution and

Formula RewritingDonghuo Chen

School of Computer Science and Technology, Soochow University

Present by Junxiang Wu

Page 2: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Introduction Mode checking and generation of test cases

based on model checker Existed challenges & IOSTS (Input/Output

Symbolic Transition Systems). LTL formula rewriting Design and implementation of a prototype tool Conclusion

Page 3: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Model Checking and Test Cases Generation

Page 4: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Model Checking and Test Cases Generation

Page 5: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Consider the fact that the manageable formal model of finite state machine isuneasily attainable in most cases, therefore the key activity, model checking, is disenabled.

Page 6: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

IOSTS structures symbolically specify behavior and the data

without explicitly enumerating the values of variables with infinite domain

have appropriate expressiveness ability to specifying test models as test oracle with acceptable cost

Generation of Test Cases for Infinite States System

Page 7: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Generation of Test Cases for Infinite States System

Page 8: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

The formula rewriting and symbolic simulator, as the replacement of model checker, play the pivotal roles. The formula rewriting technique is used to compute the necessary condition, which the test case related to some trap property should satisfy, instead of verify whether a property is satisfied by a path just as in runtime verification

formula rewriting

Page 9: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Symbolic execution is an important technique of handling the symbolic and abstract specification without directly enumerating huge space of concrete states of the targeted system, widely used in program static analysis, testing and verification. Because LTL is semantically interpreted as state-based structure, the symbolic-state based execution model of IOSTS is constructed using symbolic execution technique.

Page 10: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.
Page 11: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

LTL and Interpretation of Finite Path

Page 12: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.
Page 13: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Prototype Tool and Experiment

Page 14: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

Due to the complexity of system and the difference between testing model and verifying model, the function of general model checking technique is very restricted in generating test cases.

This paper presents the idea of auto-generation of test cases based on symbolic execution and temporal formula rewriting method and discusses the basic technique. The method has some advantages and extends testing with model checker and other testing based on model.

Conclusion

Page 15: Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting Donghuo Chen School of Computer Science.

[1] Donghuo Chen,Auto-Generation of Test Cases for Infinite States Reactive Systems Based on Symbolic Execution and Formula Rewriting

[2] M. Huth, M. Ryan. Logic in Computer Science: Modeling and Reasoning about System. Cambridge University Press, 1999.

References