A Model Based Testing Approach for Java Bytecode Programs

Safaa Achour · Journal of Computers · 2018

In this paper, we propose an approach to detect non-conformance between a given Java Bytecode program and its specification in the context of unit testing.The main goal of the proposed work is to use the specification pre-state, i.e. the invariant and the precondition, to guide the generation of the test data and the post-state, i.e. invariant and post-condition, as test oracle.In other hand, the code structure makes it possible to know the execution paths of testing method that not be conform to its specification.However, the specification and the System Under Test are not at the same level of abstraction.In the sense, we propose to express the specification at the Bytecode level using static Bytecode instrumentation.

Read the paper · More papers on PaperTik