Abstract
Software testing is a process that produces and consumes huge amounts of data. Thus, the test data is usually either gathered manually by the testers or randomly generated by tools. The manual method consumes lot of time and highly depends on the testers’ experience while the random approach faces the problem of redundant test data caused by identical use cases. By leveraging the concept of Model-based testing, this paper provides a novel method of testing to save the cost of manual testing and to increase the reliability of the testing processes. In Model-based testing, test cases and test data can be derived from different models. In this paper, we present a technique to generate test data from UML-based Web Engineering (UWE) presentation model for web application testing by using formal specification and Z3 SMT solver. We also build a model-based testing Eclipse Plug-in tool called TESTGER-UWE that generates test data based on the model of UWE for the web application. We evaluate the proposed methods by applying them to generate test data for an Address Book project of UWE. Experimental results show that our proposed methods can reduce the time significantly when generating test data for automation test tools such as Selenium, Katalon, Unit test, etc.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Baumeister, H., Koch, N., Mandel, L.: Towards a UML extension for hypermedia design. In: France, R., Rumpe, B. (eds.) UML 1999. LNCS, vol. 1723, pp. 614–629. Springer, Heidelberg (1999). https://doi.org/10.1007/3-540-46852-8_43
Wirsing, M., et al.: Hyper-UML: specification and modeling of multimedia and hypermedia applications in distributed systems. In: Proceedings of 2nd Workshop. German-Argentinian Bilateral Programme for Scientific and Technological Cooperation, Konigswinter (1999)
Schwabe, D., Rossi, G.: The object-oriented hypermedia design model. Commun. ACM 38(8), 45–46 (1995)
Isakowitz, T., Stohr, E.A., Balasubramanian, P.: RMM: a methodology for structuring hypermedia design. Commun. ACM 38(8), 34–44 (1995)
Koch, N., Knapp, A., Zhang, G., Baumeister, H.: UML-based web engineering. In: Rossi, G., Pastor, O., Schwabe, D., Olsina, L. (eds.) Web Engineering: Modelling and Implementing Web Applications. Human-Computer Interaction Series, pp. 157–191. Springer, London (2008). https://doi.org/10.1007/978-1-84628-923-1_7
Valverde, F., Valderas, P., Fons, J., Pastor, O.: A MDA-based environment for web applications development: from conceptual models to code. In: International Workshop on Web-oriented Software Technology (IWWOST 2007), in conjunction with ICWE (2007)
Baker, P., Dai, Z.R., Grabowski, J., Haugen, P., Schieferdecker, I., Williams, C.: Model-Driven Testing: Using the UML Testing Profile. Springer, Heidelberg (2007)
Utting, M., Legeard, B.: Practical Model-Based Testing: A Tools Approach. Morgan Kaufmann, Burlington (2006). ISBN-10: 0123725011
Mahmood, S.: A systematic review of automated test data generation techniques. Master thesis, Software Engineering, School of Engineering, Blekinge Institute of Technology (2007)
Polamreddy, R.R., Irtaza, S.A.: Software testing: a comparative study model-based testing vs test case-based testing. Master thesis, Software Engineering, School of Engineering, Blekinge Institute of Technology (2012)
Wang, C., Pastore, F., Goknil, A., Briand, L., Iqbal, Z.: Automatic generation of system test cases from use case specifications. In: Proceedings of the 2015 International Symposium on Software Testing and Analysis, ISSTA 2015 (2015). https://doi.org/10.1145/2771783.2771812
Oluwagbemi, O., Asmuni, H.: An approach for automatic generation of test cases from UML diagrams. Int. J. Softw. Eng. Appl. 9(8), 87–106 (2015)
Anbunathan, R., Anirban, B.: Dataflow test case generation from UML Class diagrams. In: 2013 IEEE International Conference on Computational Intelligence and Computing Research (2013). https://doi.org/10.1109/iccic.2013.6724144
Vinaya, S., Ketan, S.: Automatic generation of test cases from UML models. In: International Conference on Technology Systems and Management (ICTSM) (2011)
Papadopoulos, P., Walkinshaw, N.: Black-box test generation from inferred models. In: 2015 IEEE/ACM 4th International Workshop on Realizing Artificial Intelligence Synergies in Software Engineering (2015). https://doi.org/10.1109/raise.2015.11
Jain, N., Porwal, R.: Automated test data generation applying heuristic approaches—a survey. In: Hoda, M.N., Chauhan, N., Quadri, S.M.K., Srivastava, P.R. (eds.) Software Engineering. AISC, vol. 731, pp. 699–708. Springer, Singapore (2019). https://doi.org/10.1007/978-981-10-8848-3_68
Mahadik, P.P., Thakore, D.M.: Survey on automatic test data generation tools and techniques for object-oriented code. Int. J. Innov. Res. Comput. Commun. Eng. 4, 357–364 (2016)
Korel, B.: Dynamic method for software test data generation. Softw. Test. Verif. Reliab. 2(4), 203–213 (1992)
Latiu, G.I., Cret, O.A., Vacariu, L.: Automatic test data generation for software path testing using evolutionary algorithms. In: Third International Conference on Emerging Intelligent Data and Web Technologies (2012)
Varshney, S., Mehrotra, M.: Search based software test data generation for structural. ACM SIGSOFT Softw. Eng. Notes 38(4), 1–6 (2013)
Nayak, N., Mohapatra, D.P.: Automatic test data generation for data flow testing using particle swarm optimization. In: Ranka, S., et al. (eds.) IC3 2010. CCIS, vol. 95, pp. 1–12. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-14825-5_1
Jiang, S., Zhang, Y., Yi, D.: Test data generation approach for basis path coverage. ACM SIGSOFT Softw. Eng. Notes 37(3), 1–7 (2012)
Nguyen, T.T.L., Tran, D.D., Bui, Q.T., Huynh, Q.T.: Integration MDA techniques in solving a class of web application with similar structure. In: 2015 ANU/SEED-Net Regional Conference for Computer and Information Engineering, Hanoi, 1–2 October 2015, pp. 78–83 (2015). ISBN 978-604-938-689-3
Tran, D.D., Huynh, Q.T., Tran, Q.K.: Model transformation with OCL integration in UWE. In: FICTA2018: 7th International Conference on Frontiers of Intelligent Computing: Theory and Applications, 29–30 November 2018
http://uwe.pst.ifi.lmu.de/exampleAddressBookWithSearches.html
Mockaroo, Random realistic test data generation in CSV, JSON, SQL, and Excel formats. https://mockaroo.com/
Yan Data Ellan. http://www.yandataellan.com/
Nguyen, D.M., Huynh, Q.T., Nguyen, T.H., Ha, N.H.: Automated test input generation via model inference based on user story and acceptance criteria for mobile application development. Int. J. Softw. Eng. Knowl. Eng. (2019). ISSN 1793-6403
Tran, D.-D., Huynh, Q.-T., Bui, T.-M.-A., Nguyen, P.-L.: Development of rules and algorithms for model-driven code generator with UWE. In: SOMET (2019)
Acknowledgments
This research is funded by Hanoi University of Science and Technology under Grant number T2018-PC-015.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering
About this paper
Cite this paper
Huynh, QT., Tran, DD., Nguyen, DM., Ha, NH., Bui, TMA., Nguyen, PL. (2019). Generating Test Data for Blackbox Testing from UML-Based Web Engineering Content and Presentation Models. In: Duong, T., Vo, NS., Nguyen, L., Vien, QT., Nguyen, VD. (eds) Industrial Networks and Intelligent Systems. INISCOM 2019. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 293. Springer, Cham. https://doi.org/10.1007/978-3-030-30149-1_17
Download citation
DOI: https://doi.org/10.1007/978-3-030-30149-1_17
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-30148-4
Online ISBN: 978-3-030-30149-1
eBook Packages: Computer ScienceComputer Science (R0)