Clustering test cases to achieve effective and scalable prioritisation incorporating expert knowledge

Shin Yoo, Mark Harman, Paolo Tonella, Angelo Susi

2009 · 195 citations · 18 references

Concepts

TL;DR

Pair‑wise comparison has been used to prioritize test cases by leveraging tester knowledge, but its high cost limits scalability to large suites. This paper proposes a cluster‑based test case prioritization method. By clustering test cases according to dynamic runtime behavior, the method dramatically reduces pair‑wise comparisons and was evaluated on seven suites ranging from 154 to 1,061 cases. Empirical results show the cluster‑based prioritization detects faults faster than coverage‑based techniques, and even without human input it can outperform unclustered coverage, with an automated decision process indicating when the approach yields improvement.

Abstract

Pair-wise comparison has been successfully utilised in order to prioritise test cases by exploiting the rich, valuable and unique knowledge of the tester. However, the prohibitively large cost of the pair-wise comparison method prevents it from being applied to large test suites. In this paper, we introduce a cluster-based test case prioritisation technique. By clustering test cases, based on their dynamic runtime behaviour, we can reduce the required number of pair-wise comparisons significantly. The approach is evaluated on seven test suites ranging in size from 154 to 1,061 test cases. We present an empirical study that shows that the resulting prioritisation is more effective than existing coverage-based prioritisation techniques in terms of rate of fault detection. Perhaps surprisingly, the paper also demonstrates that clustering (even without human input) can outperform unclustered coverage-based technologies, and discusses an automated process that can be used to determine whether the application of the proposed approach would yield improvement.

References

18