Runtime Verification of Java Programs for Scenario-Based Specifications

Li Xuandong,Wang Linzhang,Qiu Xiaokang,Lei Bin,Yuan Jiesong,Zhao Jianhua,Zheng Guoliang
DOI: https://doi.org/10.1007/11767077_8
2006-01-01
Abstract:In this paper, we use UML sequence diagrams as scenario-based specifications, and give the solution to runtime verification of Java programs for the safety consistency and the mandatory consistency. The safety consistency requires that any forbidden scenario described by a given sequence diagram never happens during the execution of a program, and the mandatory consistency requires that if a reference scenario described by the given sequence diagrams occurs during the execution of a program, it must immediately adhere to a scenario described by the other given sequence diagram. In the solution, we first instrument the program under verification so as to gather the program execution traces related to a given scenario-based specification; then we drive the instrumented program by random test cases so as to generate the program execution traces; last we check if the collected program execution traces satisfy the given specification. Our work leads to a testing tool which may proceed in a fully automatic and push-button fashion.
What problem does this paper attempt to address?