Abstract
Researchers and practitioners alike have the intuition that test cases diversity is positively correlated to fault detection. Empirical results already show that some measurement of diversity within a pre-existing state-based test suite (i.e., a test suite not necessarily created to have diverse tests in the first place) indeed relates to fault detection. In this paper we show how our procedure, based on a genetic algorithm, to construct an entire (all-transition) adequate test suite with as diverse tests as possible fares in terms of fault detection. We experimentally compare on a case study nine different ways of computing test suite diversity, including measures already used by others in software testing as well as measures inspired by the notion of diversity in the life sciences. Although our results confirm a positive correlation between diversity and fault detection, we believe our results raise more questions than they answer about the notion and measurement of test suite diversity, which leads us to argue that more work needs to be dedicated to this topic.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
An allele is a form of a gene (one member of a pair) that is located at a specific position on a specific chromosome. Locus (plural: loci) is the location of a gene on a chromosome.
References
Andrews, J.H., Briand, L.C., Labiche, Y.: Is mutation an appropriate tool for testing experiments? In: Proceedings of the IEEE ICSE, pp. 402–411 (2005)
Andrews, J.H., Briand, L.C., Labiche, Y., Namin, A.S.: Using mutation analysis for assessing and comparing testing coverage criteria. IEEE TSE 32(8), 608–624 (2006)
Asoudeh, N.: Test generation from an extended finite state machine as a multiobjective optimization problem, thesis, Carleton University (2016)
Asoudeh, N., Labiche, Y.: A multi-objective genetic algorithm for generating test suites from extended finite state machines. In: Ruhe, G., Zhang, Y. (eds.) SSBSE 2013. LNCS, vol. 8084, pp. 288–293. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-39742-4_26
Asoudeh, N., Labiche, Y.: Multi-objective construction of an entire adequate test suite for an EFSM. In: Proceedings of the IEEE ISSRE (2014)
Asoudeh, N., Labiche, Y.: On the effect of counters in guard conditions when state-based multi-objective testing. In: Proceedings of the IEEE Software Quality, Reliability and Security-Companion (2015)
Beizer, B.: Software Testing Techniques. International Thomson Computer Press, New York (1990)
Bellman, R., Cooke, K.L., Lockett, J.A.: Algorithms. Academic Press, New York (1970)
Binder, R.V.: Testing Object-Oriented Systems: Models, Patterns, and Tools`, Object Technology. Addison-Wesley, Boston (1999)
Briand, L.C., Di Penta, M., Labiche, Y.: Assessing and improving state-based class testing: a series of experiments. IEEE TSE 30(11), 770–793 (2004)
Briand, L.C., Labiche, Y., Wang, Y.: Using simulation to empirically investigate test coverage criteria. In: Proceedings of the IEEE/ACM ICSE, pp. 86–95 (2004)
Bruegge, B., Dutoit, A.H.: Object-Oriented Software Engineering Using UML, Patterns, and Java. Prentice Hall, Upper Saddle River (2004)
Chevalley, P., Thévenod-Fosse, P.: Automated generation of statistical test cases from UML state diagrams. In: Proceedings of the COMPSAC (2001)
Cohen, J.: Statistical Power Analysis for the Behavioral Sciences. Routledge, Abingdon (1988)
Devore, J.L.: Probability and Statistics for Engineering and the Sciences, 5th edn. Duxbury Press, Scituate (1999)
Feldt, R., Poulding, S., Clark, D., Yoo, S.: Test set diameter: quantifying the diversity of sets of test cases. In: Proceedings of the IEEE ICST (2016)
Gomaa, H.: Designing Concurrent, Distributed, and Real-Time Applications with UML. Addison Wesley, Boston (2000)
Gusfield, D.: Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology. Cambridge University Press, Cambridge (1997)
Harman, M., Lakhotia, K., Singer, J., White, D.R., Yoo, S.: Cloud engineering is search based software engineering too. JSS 86(9), 2225–2241 (2013)
Hemmati, H., Arcuri, A., Briand, L.: Achieving scalable model-based testing through test case diversity. ACM TOSEM 22(1), 6:1–6:42 (2013)
Holt, N.E., Anda, B.C.D., Asskildt, K., Briand, L., Endresen, J., Frøystein, S.: Experiences with precise state modeling in an industrial safety critical system. In: Proceedings of the Models Workshop on Critical Systems Development Using Modeling Languages (2006)
Holt, N.E., Torkar, R., Briand, L., Hansen, K.: State-based testing: industrial evaluation of the cost-effectiveness of round-trip path and sneak-path strategies. In: Proceedings of the IEEE ISSRE, pp. 321–330 (2012)
Inverardi, P., Autili, M., Di Ruscio, D., Pelliccione, P., Tivoli, M.: Producing software by integration: challenges and research directions. In: Proceedings of the FSE (2013)
Iversen, G.R., Norpoth, H.: Analysis of Variance. Sage publications, Thousand Oaks (1987)
Jost, L.: Partitioning diversity into independent alpha and beta components. Ecology 88, 2427–2439 (2007)
Jost, L.: GST and its relatives do not measure differentiation. Mol. Ecol. 17, 4015–4026 (2008)
Just, R., Jalali, D., Inozemtseva, L., Ernst, M.D., Holmes, R., Fraser, G.: Are mutants a valid substitute for real faults in software testing. In: Proceedings of the FSE (2014)
Just, R., Schweiggert, F., Kapfhammer, G.M.: MAJOR: an efficient and extensible tool for mutation analysis in a Java compiler. In: Proceedings of the ASE (2011)
Kalaji, A.S., Hierons, R.M., Swift, S.: An integrated search-based approach for automatic testing from extended finite state machine (EFSM) models. IST 53(12), 1297–1318 (2011)
Khalil, M., Labiche, Y.: On the round trip path testing strategy. In: Proceedings of the IEEE ISSRE, pp. 388–397 (2010)
Kosman, E.: Measuring diversity: from individuals to populations. Eur. J. Plant Pathol. 138, 467–486 (2014)
Kosman, E., Leonard, K.J.: Conceptual analysis of methods applied to assessment of diversity within and distance between populations with asexual or mixed mode of reproduction. New Phytol. 174, 683–696 (2007)
Lee, D., Yannakakis, M.: Principles and methods of testing finite state machines - a survey. Proc. IEEE 84(8), 1090–1123 (1996)
Legeard, B.: Model-based testing: next generation functional software testing. In: Dagstuhl Seminar Proceedings of Practical Software Testing: Tool Automation and Human Factors (2010)
Mondal, D., Hemmati, H., Durocher, S.: Exploring test suite diversification and code coverage in multi-objective test case selection. In: Proceedings of the IEEE ICST (2015)
Mouchawrab, S., Briand, L.C., Labiche, Y., Di Penta, M.: Assessing, comparing, and combining state machine-based testing and structural testing: a series of experiments. IEEE TSE 37(2), 161–187 (2011)
Nei, M.: Analysis of gene diversity in subdivided population. Nat. Acad. Sci. U.S.A. 70, 3321–3323 (1973)
Neto, A., Travassos, G.H.: Surveying model based testing approaches characterization attributes. In: Proceedings of the ACM/IEEE ESEM, pp. 324–326 (2008)
Patrick, M., Jiab, Y.: KD-ART: should we intensify or diversify tests to kill mutants? IST 81, 36–51 (2017)
Rao, C.R.: Diversity and dissimilarity coefficients - a unified approach. Theor. Popul. Biol. 21, 24–43 (1982)
Ricotta, C.: Bridging the gap between ecological diversity indices and measures of biodiversity with Shannon’s entropy. Ecol. Model. 152, 1–3 (2002)
Ricotta, C., Szeidl, L.: Towards a unifying approach to diversity measures: bridging the gap between Shannon’s entropy and Rao’s quadratic index. Theor. Popul. Biol. 70, 237–243 (2006)
Saifan, A., Dingel, J.: A survey of using model-based testing to improve quality attributes in distributed systems. In: Elleithy, K. (ed.) Advanced Techniques in Computing Sciences and Software Engineering, pp. 283–288. Springer, Dordrecht (2010). https://doi.org/10.1007/978-90-481-3660-5_48
Shafique, M., Labiche, Y.: A systematic review of state-based test tools. STTT 17(1), 59–76 (2015)
Shi, Q., Chen, Z., Fang, C., Feng, Y., Xu, B.: Measuring the diversity of a test set with distance entropy. IEEE Trans. Reliab. 65(1), 19–27 (2016)
Tuomisto, H.: An updated consumer’s guide to evenness and related indices. Oikos 121, 1203–1218 (2012)
Utting, M., Legeard, B.: Practical Model-based Testing. Morgan Kaufmann, Los Altos (2006)
Wang, R., Jiang, S., Chen, D., Zhang, Y.: Empirical study of the effects of different similarity measures on test case prioritization. Math. Probl. Eng. 2016, 19 p. (2016). Article ID 8343910
Acknowledgements
This work was performed under the umbrella of a Collaborative Research and Development Grant with the Natural Sciences and Engineering Research Council of Canada (NSERC), with support from NSERC, CRIAQ (Consortium for Research and Innovation in Aerospace in Québec), CAE, CMC Electronics, and Mannarino Systems & Software. We would like to thank Professor Root Gorelick from the department of Biology at Carleton University for fruitful discussions on diversity.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG, part of Springer Nature
About this paper
Cite this paper
Asoudeh, N., Labiche, Y. (2018). Life Sciences-Inspired Test Case Similarity Measures for Search-Based, FSM-Based Software Testing. In: Pierantonio, A., Trujillo, S. (eds) Modelling Foundations and Applications. ECMFA 2018. Lecture Notes in Computer Science(), vol 10890. Springer, Cham. https://doi.org/10.1007/978-3-319-92997-2_13
Download citation
DOI: https://doi.org/10.1007/978-3-319-92997-2_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-92996-5
Online ISBN: 978-3-319-92997-2
eBook Packages: Computer ScienceComputer Science (R0)