Test Generation

The Goal: Generate Unit and Regression Tests for Java Programs from Execution Records

Unit and regression tests are valuable ressources when refactoring and changing a software program. They can guarantee that the software will still work as expected after the refactoring. However, there exists many programs for which no such tests exist (e.g. legacy code), and writing these tests from scratch is very time-consuming. For this reason, we want to develop technologies to generate these tests automatically

First step is to record all method calls of a running software system (in our case, Java programs). This can be done, for instance, using bytecode instrumentation. Then we use these records to “learn” the behaviour of each method: typical parameter values, which other methods are called, return values etc. Using these data, we then generate the unit or regression tests.

Research Team


Do you want use our technology for test generation in your Java project? Do you need expert advice for your testing challenges? Then please feel free to contact us!

Email:   ciel <insert @ here> zhaw.ch
Phone:  +41 58 934 72 39