Retromorphic Testing: A New Approach to the Test Oracle Problem
Yu, Boxi, Mang, Qiuyang, Guo, Qingshuo, He, Pinjia
–arXiv.org Artificial Intelligence
A test oracle serves as a criterion or mechanism to assess the correspondence between software output and the anticipated behavior for a given input set. In automated testing, black-box techniques, known for their non-intrusive nature in test oracle construction, are widely used, including notable methodologies like differential testing and metamorphic testing. Inspired by the mathematical concept of inverse function, we present Retromorphic Testing, a novel black-box testing methodology. It leverages an auxiliary program in conjunction with the program under test, which establishes a dual-program structure consisting of a forward program and a backward program. The input data is first processed by the forward program and then its program output is reversed to its original input format using the backward program. In particular, the auxiliary program can operate as either the forward or backward program, leading to different testing modes. The process concludes by examining the relationship between the initial input and the transformed output within the input domain. For example, to test the implementation of the sine function $\sin(x)$, we can employ its inverse function, $\arcsin(x)$, and validate the equation $x = \sin(\arcsin(x)+2k\pi), \forall k \in \mathbb{Z}$. In addition to the high-level concept of Retromorphic Testing, this paper presents its three testing modes with illustrative use cases across diverse programs, including algorithms, traditional software, and AI applications.
arXiv.org Artificial Intelligence
Oct-10-2023
- Country:
- Oceania
- New Zealand > North Island
- Auckland Region > Auckland (0.04)
- Australia > Victoria
- Melbourne (0.04)
- New Zealand > North Island
- North America
- Dominican Republic (0.04)
- United States
- District of Columbia > Washington (0.05)
- Washington > King County
- Seattle (0.04)
- New York > New York County
- New York City (0.06)
- California
- San Francisco County > San Francisco (0.14)
- Santa Barbara County > Santa Barbara (0.04)
- Canada > Quebec
- Montreal (0.04)
- Europe
- Germany (0.04)
- Denmark (0.04)
- United Kingdom
- Scotland > City of Edinburgh
- Edinburgh (0.04)
- England > Greater London
- London (0.04)
- Scotland > City of Edinburgh
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Asia
- South Korea > Seoul
- Seoul (0.04)
- China
- Guangdong Province > Shenzhen (0.05)
- Hong Kong (0.04)
- South Korea > Seoul
- Oceania
- Genre:
- Research Report (0.40)
- Industry:
- Transportation > Air (0.55)
- Information Technology (0.46)
- Technology: