Abstract
Web interface testing is a sort of system testing level and it is laborious if accomplished manually, since it is necessary to map each of the elements that make up the interface with its respective code. Furthermore, this mapping makes test scripts very sensitive to any changes to the interface’s source code. Approaches for automated web testing have been proposed but the use of hyper-heuristics, higher-level search techniques aiming to address the generalization issues of metaheuristics, for web testing are scarce in the literature. In this article we present a multi-objective web testing method, MWTest, which automates the generation of test cases based only on the URL of the web application and a new proposed generation hyper-heuristic, called GECOMBI. The GECOMBI hyper-heuristic takes into account combinatorial designs to generate low-level heuristics to support our goal. Moreover, the implementation of the MWTest method creates a Selenium test script quickly and without human interaction, exclusively based on the URL in order to support the automated execution of test cases too. In our evaluation, we compared GECOMBI to another generation hyper-heuristic, GEMOITO, and four metaheuristics (NSGA-II, IBEA, MOMBI, NSGA-III). Results show superior performance of GECOMBI compared to the other approaches.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Gecombi repository. https://github.com/BaleraJuliana/GECOMBI_code. Accessed 13 July 2019
The Wilcoxon signed-rank test. http://www.r-tutor.com/elementary-statistics/non-parametric-methods/wilcoxon-signed-rank-test. Accessed 13 July 2019
(2022). https://www.crummy.com/software/BeautifulSoup/bs4/doc/
Al-Ahmad, B., Al-Debei, K.: Survey of testing methods for web applications. Eur. Int. J. Sci. Technol. 9(12), 1–22 (2020)
Balera, J.M., Santiago Júnior, V.A.: An algorithm for combinatorial interaction testing: definitions and rigorous evaluations. J. Softw. Eng. Res. Dev. 5(1), 10 (2017). https://doi.org/10.1186/s40411-017-0043-z
Balera, J.M., Santiago Júnior, V.A.: A systematic mapping addressing hyper-heuristics within search-based software testing. Inf. Softw. Technol. 114, 176–189 (2019). https://doi.org/10.1016/j.infsof.2019.06.012, http://www.sciencedirect.com/science/article/pii/S0950584919301430
Balera, J.M., Santiago Júnior, V.A.d.: An algorithm for combinatorial interaction testing: definitions and rigorous evaluations. J. Softw. Eng. Res. Dev. 5(1), 10 (2017). https://doi.org/10.1186/s40411-017-0043-z
Banerjee, I., Nguyen, B., Garousi, V., Memon, A.: Graphical user interface (GUI) testing: systematic mapping and repository. Inf. Softw. Technol. 55(10), 1679–1694 (2013). https://doi.org/10.1016/j.infsof.2013.03.004, http://www.sciencedirect.com/science/article/pii/S0950584913000669
Bozic, J., Wotawa, F.: Planning-based security testing of web applications with attack grammars. Softw. Qual. J. 28(1), 307–334 (2020). https://doi.org/10.1007/s11219-019-09469-y
Burke, E.K., et al.: Hyper-heuristics: a survey of the state of the art. J. Oper. Res. Soc. 64(12), 1695–1724 (2013). https://doi.org/10.1057/jors.2013.71
Deb, K., Jain, H.: An evolutionary many-objective optimization algorithm using reference-point-based nondominated sorting approach, part i: Solving problems with box constraints. IEEE Trans. Evol. Comput. 18(4), 577–601 (2014). https://doi.org/10.1109/TEVC.2013.2281535
Deb, K., Pratap, A., Agarwal, S., Meyarivan, T.: A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput. 6(2), 182–197 (2002). https://doi.org/10.1109/4235.996017
Di Lucca, G.A., Fasolino, A.R.: Testing web-based applications: the state of the art and future trends. Inf. Softw. Technol. 48(12), 1172–1186 (2006). https://doi.org/10.1016/j.infsof.2006.06.006, https://www.sciencedirect.com/science/article/pii/S0950584906000851
Drake, J.H., Kheiri, A., Özcan, E., Burke, E.K.: Recent advances in selection hyper-heuristics. Eur. J. Oper. Res. 285(2), 405–428 (2020). https://doi.org/10.1016/j.ejor.2019.07.073, https://www.sciencedirect.com/science/article/pii/S0377221719306526
Filho, H.L.J., Lima, J.A.P., Vergilio, S.R.: Automatic generation of search-based algorithms applied to the feature testing of software product lines. In: Proceedings of the 31st Brazilian Symposium on Software Engineering, SBES 2017, pp. 114–123. ACM, New York, NY, USA (2017). https://doi.org/10.1145/3131151.3131152
Garvin, B.J., Cohen, M.B., Dwyer, M.B.: Evaluating improvements to a meta-heuristic search for constrained interaction testing. Empir. Softw. Eng. 16(1), 61–102 (2011). https://doi.org/10.1007/s10664-010-9135-7
Gómez, R.H., Coello, C.A.C.: MOMBI: a new metaheuristic for many-objective optimization based on the R2 indicator. In: 2013 IEEE Congress on Evolutionary Computation, pp. 2488–2495 (2013). https://doi.org/10.1109/CEC.2013.6557868
Harman, M., Jia, Y., Zhang, Y.: Achievements, open problems and challenges for search based software testing. In: 2015 IEEE 8th International Conference on Software Testing, Verification and Validation (ICST), pp. 1–12, April 2015. https://doi.org/10.1109/ICST.2015.7102580
Ishibuchi, H., Masuda, H., Nojima, Y.: A study on performance evaluation ability of a modified inverted generational distance indicator. In: Proceedings of the 2015 Annual Conference on Genetic and Evolutionary Computation, pp. 695–702. GECCO 2015, ACM, New York, NY, USA (2015). https://doi.org/10.1145/2739480.2754792, http://doi.acm.org/10.1145/2739480.2754792
Jan, S., Panichella, A., Arcuri, A., Briand, L.: Search-based multi-vulnerability testing of xml injections in web applications. Empir. Softw. Eng. 24, 3696–3729 (2019). https://doi.org/10.1007/s10664-019-09707-8
Mahmoud, T., Ahmed, B.S.: An efficient strategy for covering array construction with fuzzy logic-based adaptive swarm optimization for software testing use. Expert Syst. App. 42(22), 8753–8765 (2015). https://doi.org/10.1016/j.eswa.2015.07.029, http://www.sciencedirect.com/science/article/pii/S0957417415004893
Mariani, T., Guizzo, G., Vergilio, S.R., Pozo, A.T.R.: Grammatical evolution for the multi-objective integration and test order problem. In: Proceedings of the Genetic and Evolutionary Computation Conference 2016, pp. 1069–1076. GECCO 2016, Association for Computing Machinery, New York, NY, USA (2016). https://doi.org/10.1145/2908812.2908816
McCaffrey, J.D.: An empirical study of pairwise test set generation using a genetic algorithm. In: 2010 Seventh International Conference on Information Technology: New Generations, pp. 992–997, April 2010. https://doi.org/10.1109/ITNG.2010.93
Petke, J., Cohen, M.B., Harman, M., Yoo, S.: Practical combinatorial interaction testing: empirical findings on efficiency and early fault detection. IEEE Trans. Softw. Eng. 41(9), 901–924 (2015). https://doi.org/10.1109/TSE.2015.2421279
Saeed, A., Ab Hamid, S.H., Mustafa, M.B.: The experimental applications of search-based techniques for model-based testing: taxonomy and systematic literature review. Appl. Soft Comput. 49, 1094–1117 (2016). https://doi.org/10.1016/j.asoc.2016.08.030, https://www.sciencedirect.com/science/article/pii/S1568494616304240
Santiago Júnior, V.A., Özcan, E., Carvalho, V.R.: Hyper-heuristics based on reinforcement learning, balanced heuristic selection and group decision acceptance. Appl. Soft Comput. 97, 106760 (2020). https://doi.org/10.1016/j.asoc.2020.106760, https://www.sciencedirect.com/science/article/pii/S1568494620306980
Shapiro, S.S., Wilk, M.B.: An analysis of variance test for normality (complete samples). Biometrika 52(3–4), 591–611 (1965)
Stepien, B., Peyton, L., Xiong, P.: Framework testing of web applications using TTCN-3. STTT 10, 371–381 (2008). https://doi.org/10.1007/s10009-008-0082-1
Stocco, A., Leotta, M., Ricca, F., Tonella, P.: APOGEN: automatic page object generator for web testing. Softw. Qual. J. 25(3), 1007–1039 (2016). https://doi.org/10.1007/s11219-016-9331-9
Wu, H., Nie, C., Kuo, F.C., Leung, H., Colbourn, C.J.: A discrete particle swarm optimization for covering array generation. IEEE Trans. Evol. Comput. 19(4), 575–591 (2015). https://doi.org/10.1109/TEVC.2014.2362532
Zamli, K.Z., Din, F., Kendall, G., Ahmed, B.S.: An experimental study of hyper-heuristic selection and acceptance mechanism for combinatorial t-way test suite generation. Inf. Sci. 399, 121–153 (2017). https://doi.org/10.1016/j.ins.2017.03.007, http://www.sciencedirect.com/science/article/pii/S0020025517305820
Zitzler, E., Künzli, S.: Indicator-based selection in multiobjective search. In: Yao, X., et al. (eds.) Parallel Problem Solving from Nature - PPSN VIII, pp. 832–842. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-30217-9_84
Zitzler, E., Thiele, L.: Multiobjective evolutionary algorithms: a comparative case study and the strength pareto approach. IEEE Trans. Evol. Comput. 3(4), 257–271 (1999). https://doi.org/10.1109/4235.797969
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Balera, J.M., de Santiago Júnior, V.A. (2022). Multiperspective Web Testing Supported by a Generation Hyper-Heuristic. In: Gervasi, O., Murgante, B., Misra, S., Rocha, A.M.A.C., Garau, C. (eds) Computational Science and Its Applications – ICCSA 2022 Workshops. ICCSA 2022. Lecture Notes in Computer Science, vol 13381. Springer, Cham. https://doi.org/10.1007/978-3-031-10548-7_33
Download citation
DOI: https://doi.org/10.1007/978-3-031-10548-7_33
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-10547-0
Online ISBN: 978-3-031-10548-7
eBook Packages: Computer ScienceComputer Science (R0)