1. Path-directed source test case generation and prioritization in metamorphic testing
- Author
-
Yiqiang Liu, Huai Liu, Chang-ai Sun, An Fu, and Baoli Liu
- Subjects
business.industry ,Computer science ,020209 energy ,020207 software engineering ,02 engineering and technology ,computer.software_genre ,Symbolic execution ,Automation ,Fault detection and isolation ,Test (assessment) ,Software ,Test case ,Hardware and Architecture ,Path (graph theory) ,0202 electrical engineering, electronic engineering, information engineering ,Metamorphic testing ,Data mining ,business ,computer ,Information Systems - Abstract
Metamorphic testing is a technique that makes use of some necessary properties of the software under test, termed as metamorphic relations, to construct new test cases, namely follow-up test cases, based on some existing test cases, namely source test cases. Due to the ability of verifying testing results without the need of test oracles, it has been widely used in many application domains and detected lots of real-life faults. Numerous investigations have been conducted to further improve the effectiveness of metamorphic testing, most of which were focused on the identification and selection of “good” metamorphic relations. Recently, a few studies emerged on the research direction of how to generate and select source test cases that are effective in fault detection. In this paper, we propose a novel approach to generating source test cases based on their associated path constraints, which are obtained through symbolic execution. The path distance among test cases is leveraged to guide the prioritization of source test cases, which further improve the efficiency. A tool has been developed to automate the proposed approach as much as possible. Empirical studies have also been conducted to evaluate the fault-detection effectiveness of the approach. The results show that this approach enhances both the performance and automation of metamorphic testing. It also highlights interesting research directions for further improving metamorphic testing.
- Published
- 2022