Skip to main content

2017 | OriginalPaper | Buchkapitel

Study of an Improved Genetic Algorithm for Multiple Paths Automatic Software Test Case Generation

verfasst von : Erzhou Zhu, Chenglong Yao, Zhujuan Ma, Feng Liu

Erschienen in: Advances in Swarm Intelligence

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Automatic generation of test case is an important means to improve the efficiency of software testing. As the theoretical and experimental base of the existing heuristic search algorithm, genetic algorithm shows great superiority in test case generation. However, since most of the present fitness functions are designed by a single target path, the efficiency of the generating test case is relatively low. In order to cope with this problem, this paper proposes an efficiency genetic algorithm by using a novel fitness function. By generating multiple test cases to cover multiple target paths, this algorithm needs less iterations hence exhibits higher efficiency comparing to the existing algorithms. The simulation results have also shown that the proposed algorithm is high path coverage and high efficiency.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Mansour, N., Salame, M.: Data generation for path testing. Softw. Qual. J. 12(2), 121–136 (2004)CrossRef Mansour, N., Salame, M.: Data generation for path testing. Softw. Qual. J. 12(2), 121–136 (2004)CrossRef
2.
Zurück zum Zitat Chen, Y., Zhong, Y.: Automatic path oriented test data generation using a multi population genetic algorithm. In: Proceedings of the 4th International Conference on Natural Computation, pp. 566–570. IPICNC, Jinan, China (2008) Chen, Y., Zhong, Y.: Automatic path oriented test data generation using a multi population genetic algorithm. In: Proceedings of the 4th International Conference on Natural Computation, pp. 566–570. IPICNC, Jinan, China (2008)
3.
Zurück zum Zitat Ahmed, M.A., Hermadi, I.: GA-based multiple paths test data generator. Comput. Oper. Res. 35, 3107–3124 (2008)CrossRef Ahmed, M.A., Hermadi, I.: GA-based multiple paths test data generator. Comput. Oper. Res. 35, 3107–3124 (2008)CrossRef
4.
Zurück zum Zitat Gong, D.W., Zhang, Y.: Novel evolutionary generation approach to test data for multiple paths coverage. Acta Electron. Sin. 38(6), 1299–1304 (2010)MathSciNet Gong, D.W., Zhang, Y.: Novel evolutionary generation approach to test data for multiple paths coverage. Acta Electron. Sin. 38(6), 1299–1304 (2010)MathSciNet
5.
Zurück zum Zitat Srinivas, M., Patnaik, L.M.: Adaptive probabilities of crossover and mutation in Genetic Algorithm. IEEE Trans. Syst. Man Cybern. 24(4), 656–667 (1994)CrossRef Srinivas, M., Patnaik, L.M.: Adaptive probabilities of crossover and mutation in Genetic Algorithm. IEEE Trans. Syst. Man Cybern. 24(4), 656–667 (1994)CrossRef
6.
Zurück zum Zitat Gong, D.W., Yao, X.J., Zhang, Y.: Evolution Theory and Application for Testing Data Generation, 1st edn, pp. 8–32. Science Press, Beijing (2014) Gong, D.W., Yao, X.J., Zhang, Y.: Evolution Theory and Application for Testing Data Generation, 1st edn, pp. 8–32. Science Press, Beijing (2014)
7.
Zurück zum Zitat Sthamer, H.H.: The automatic generation of software test data using genetic algorithms. Ph.D. thesis. University of Glamorgan, Pontyprid, Wales, UK, pp. 25–48 (1995) Sthamer, H.H.: The automatic generation of software test data using genetic algorithms. Ph.D. thesis. University of Glamorgan, Pontyprid, Wales, UK, pp. 25–48 (1995)
Metadaten
Titel
Study of an Improved Genetic Algorithm for Multiple Paths Automatic Software Test Case Generation
verfasst von
Erzhou Zhu
Chenglong Yao
Zhujuan Ma
Feng Liu
Copyright-Jahr
2017
DOI
https://doi.org/10.1007/978-3-319-61824-1_44

Premium Partner