Empirical Analysis of Greedy, GE and GRE Heuristics

Whenever a software evolves, regression testing needs to be performed which ensures evolution does not affect the existing software. Test suite minimization is one of the regression testing techniques which takes a test suite and provides a minimized test suite (representative set) which is sufficient to cover all the requirements. This significantly helps in reducing the testing cost, effort and time. In this paper, we perform an empirical study on standard minimization techniques: Greedy, Greedy Essential (GE) and Greedy Redundant Essential (GRE), to compare their minimized test suite size (output size), and their run time to calculate the minimized test suite, with varying percentage of essential test cases. We assume that the number of requirements that a test case satisfies is a random variable which follows a normal distribution. This study analyzes trends in both output size and run time of the heuristics and enables us to set guidelines for the testing team to choose appropriate heuristics for performing the test suite minimization for all possible values of ratio of overlapping (defined as the average number of test cases which satisfy a requirement).

[1]  Lu Zhang,et al.  An experimental study of four typical test suite reduction techniques , 2008, Inf. Softw. Technol..

[2]  N. Ramaraj,et al.  Test Suite Diminuition Using GRE Heuristic with Selective Redundancy Approach , 2010 .

[3]  Joseph Robert Horgan,et al.  Effect of Test Set Minimization on Fault Detection Effectiveness , 1995, 1995 17th International Conference on Software Engineering.

[4]  Baowen Xu,et al.  An Empirical Evaluation of Test Suite Reduction for Boolean Specification-Based Testing (Short Paper) , 2008, 2008 The Eighth International Conference on Quality Software.

[5]  T. Y. Chen,et al.  Heuristics Towards The Optimization Of TheSize Of A Test Suite , 1970 .

[6]  Vasek Chvátal,et al.  A Greedy Heuristic for the Set-Covering Problem , 1979, Math. Oper. Res..

[7]  Joseph Robert Horgan,et al.  Test set size minimization and fault detection effectiveness: A case study in a space application , 1999, J. Syst. Softw..

[8]  Kenneth Steiglitz,et al.  Combinatorial Optimization: Algorithms and Complexity , 1981 .

[9]  Hong Mei,et al.  An experimental comparison of four test suite reduction techniques , 2006, ICSE.

[10]  Hareton K. N. Leung,et al.  Insights into regression testing (software testing) , 1989, Proceedings. Conference on Software Maintenance - 1989.

[11]  Tsong Yueh Chen,et al.  A simulation study on some heuristics for test suite reduction , 1998, Inf. Softw. Technol..

[12]  Roman Haas,et al.  An Evaluation of Test Suite Minimization Techniques , 2020, SWQD.

[13]  Rajiv Gupta,et al.  A methodology for controlling the size of a test suite , 1990, Proceedings. Conference on Software Maintenance 1990.

[14]  E. S. Pearson Biometrika tables for statisticians , 1967 .

[15]  Tsong Yueh Chen,et al.  A new heuristic for test suite reduction , 1998, Inf. Softw. Technol..

[16]  Alfred V. Aho,et al.  The Design and Analysis of Computer Algorithms , 1974 .

[17]  Abhik Roychoudhury,et al.  CoREBench: studying complexity of regression errors , 2014, ISSTA 2014.

[18]  Tsong Yueh Chen,et al.  Dividing Strategies for the Optimization of a Test Suite , 1996, Inf. Process. Lett..

[19]  Tsong Yueh Chen,et al.  Test Suite Reduction and Fault Detecting Effectiveness: An Empirical Evaluation , 2001, Ada-Europe.

[20]  S. Shapiro,et al.  An Analysis of Variance Test for Normality (Complete Samples) , 1965 .

[21]  Abhik Roychoudhury,et al.  On Testing Embedded Software , 2016, Adv. Comput..

[22]  Srini Ramaswamy,et al.  Test Suite Minimization of Evolving Software Systems: A Case Study , 2019, ICSOFT.

[23]  Giuseppe Scanniello,et al.  An empirical study of inadequate and adequate test suite reduction approaches , 2018, ESEM.

[24]  Harichandran Khanna Nehemiah,et al.  Test Suite Reduction Using HGS Based Heuristic Approach , 2015, Comput. Informatics.

[25]  Mark Harman,et al.  Regression testing minimization, selection and prioritization: a survey , 2012, Softw. Test. Verification Reliab..