skip to main content
10.5555/2023332.2023389guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

A case study on the use of genetic algorithms to generate test cases for temporal systems

Published: 08 June 2011 Publication History

Abstract

Generating test data for formal state based specifications is computationally expensive. In previous work we presented a framework that addressed this issue by representing the test data generation problem as an optimisation problem. In this paper we analyze a communications protocol to illustrate how the test case generation problem can be presented as a search problem and automated. Genetic algorithms (GAs) and random search are used to generate test data and evaluate the approach. GAs show to outperform random search and seem to scale well as the problem size increases. We consider a very simple fitness function that can be used with other evolutionary search techniques and automated test case generation suites.

References

[1]
Myers, G.: The Art of Software Testing, 2nd edn. John Wiley and Sons, Chichester (2004)
[2]
Ammann, P., Offutt, J.: Introduction to Software Testing. Cambridge University Press, Cambridge (2008)
[3]
Hierons, R.M., Bowen, J.P., Harman, M. (eds.): FORTEST. LNCS, vol. 4949. Springer, Heidelberg (2008)
[4]
Hierons, R., Bogdanov, K., Bowen, J., Cleaveland, R., Derrick, J., Dick, J., Gheorghe, M., Harman, M., Kapoor, K., Krause, P., Luettgen, G., Simons, A., Vilkomir, S., Woodward, M., Zedan, H.: Using formal methods to support testing. ACM Computing Surveys 41(2) (2009)
[5]
Derderian, K., Merayo, M., Hierons, R., Núñez, M.: Aiding test case generation in temporally constrained state based systems using genetic algorithms. In: Cabestany, J., Sandoval, F., Prieto, A., Corchado, J.M. (eds.) IWANN 2009. LNCS, vol. 5517, pp. 327-334. Springer, Heidelberg (2009)
[6]
Goldberg, D.E.: Genetic Algorithms in search, optimisation and machine learning. Addison-Wesley Publishing Company, Reading (1989)
[7]
Srinivas, M., Patnaik, L.M.: Genetic algorithms: A survey. IEEE Computer 27, 17-27 (1994)
[8]
Jones, B.F., Eyres, D.E., Sthamer, H.H.: A strategy for using genetic algorithms to automate branch and fault-based testing. The Computer Journal 41(2), 98-107 (1998)
[9]
Michael, C.C., McGraw, G., Schatz, M.A.: Generating software test data by evolution. IEEE Transactions on Software Engineering 27(12), 1085-1110 (2001)
[10]
McMinn, P.: Search-based software test data generation: a survey. Software Testing Verification and Reliability 14(2), 105-156 (2004)
[11]
Derderian, K., Hierons, R.M., Harman, M., Guo, Q.: Automated Unique Input Output Sequence Generation for Conformance Testing of FSMs. The Computer Journal 49(3), 331-344 (2006)
[12]
Harman, M., McMinn, P.: A theoretical and empirical study of search-based testing: Local, global, and hybrid search. IEEE Transactions on Software Engineering 36(2), 226-247 (2010)
[13]
Ramalingom, T., Thulasiraman, K., Das, A.: Context independent unique state identification sequences for testing communication protocols modelled as extended finite state machines. Computer Communications 26(14), 1622-1633 (2003)
[14]
Derderian, K.: Automated test sequence generation for Finite State Machines using Genetic Algorithms. PhD thesis, Brunel University (2006)

Cited By

View all
  1. A case study on the use of genetic algorithms to generate test cases for temporal systems

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Guide Proceedings
    IWANN'11: Proceedings of the 11th international conference on Artificial neural networks conference on Advances in computational intelligence - Volume Part II
    June 2011
    684 pages
    ISBN:9783642214974
    • Editors:
    • Joan Cabestany,
    • Ignacio Rojas,
    • Gonzalo Joya

    Publisher

    Springer-Verlag

    Berlin, Heidelberg

    Publication History

    Published: 08 June 2011

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 01 Jan 2025

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media