Towards Automatic Generation of Amplified Regression Test Oracles

07/28/2023
by   Alejandra Duque-Torres, et al.
0

Regression testing is crucial in ensuring that pure code refactoring does not adversely affect existing software functionality, but it can be expensive, accounting for half the cost of software maintenance. Automated test case generation reduces effort but may generate weak test suites. Test amplification is a promising solution that enhances tests by generating additional or improving existing ones, increasing test coverage, but it faces the test oracle problem. To address this, we propose a test oracle derivation approach that uses object state data produced during System Under Test (SUT) test execution to amplify regression test oracles. The approach monitors the object state during test execution and compares it to the previous version to detect any changes in relation to the SUT's intended behaviour. Our preliminary evaluation shows that the proposed approach can enhance the detection of behaviour changes substantially, providing initial evidence of its effectiveness.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/12/2020

Object-based Metamorphic Testing through Image Structuring

Testing software is often costly due to the need of mass-producing test ...
research
09/20/2021

Neural Unit Test Suggestions

Testing is widely recognized as an important stage of the software devel...
research
09/08/2018

An automated model-based test oracle for access control systems

In the context of XACML-based access control systems, an intensive testi...
research
11/28/2022

P4Testgen: An Extensible Test Oracle For P4

We present P4Testgen, a test oracle for the P4_16 language. P4Testgen su...
research
05/26/2023

Towards More Realistic Evaluation for Neural Test Oracle Generation

Effective unit tests can help guard and improve software quality but req...
research
07/29/2023

Neural-Based Test Oracle Generation: A Large-scale Evaluation and Lessons Learned

Defining test oracles is crucial and central to test development, but ma...
research
11/19/2020

ReAssert: Deep Learning for Assert Generation

The automated generation of test code can reduce the time and effort req...

Please sign up or login with your details

Forgot password? Click here to reset