Search by:
Api test automation of search functionality with artificial intelligence
Full text (PDF)
UDC: 004.93; 60; 620
Publication Language: English
Stuc. intelekt. 2022; 27(1):269-274
Abstract: One of the steps in software development is to test the software product. With the development of technology, the testing process has improved to automated testing, which reduces the impact of the human factor on error and speeds up testing. The main software products for testing are considered to be web applications, web services, mobile applications and performance testing. According to the testing pyramid, when testing web services, you need to develop more test cases than when testing a web application. Because automation involves writing software code for testing, the use of ready-made tools will speed up the software development process. One of the most important test indicators is the coverage of search functionality. The search functionality of a web application or web service requires a large number of cases, as you need to provide many conditions for its operation through the free entry of any information on the web page. There is an approach to data-based testing, which involves working with a test data set through files such as CSV, XLS, JSON, XML and others. However, finding input for testing takes a lot of time when creating test cases and automated test scenarios. It is proposed to use artificial data set generators based on real values and popular queries on the website to form a test data set. In addition, it is possible to take into account the probable techniques of developing test cases. It is proposed to conditionally divide the software for testing into several layers: client, test, work with data, checks and reports. The Java programming language has a number of libraries for working at each of these levels. It is proposed to use Rest Assured as a Restful client, TestNG as a library for writing tests with checks, and Allure report for generating reports. It is noted that the proposed approach uses artificial intelligence for automated selection of test cases when creating a test to diversify test approaches and simulate human input and behavior to maximize the use of cases.
Keywords: automation testing, artificial intelligence, synthetic data, data generator, artificial datasets, web API testing, data-driven testing.
References:
- Trudova, Anna & Dolezel, Michal & Buchalcevova, Alena. (2020). Artificial Intelligence in Software Test Automation: A Systematic Literature Review. 181-192. doi:https://doi.org/10.5220/0009417801810192.
- Alberto Martin-Lopez. (2020). AI-driven web API testing. In Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering: Companion Proceedings (ICSE '20). Association for Computing Machinery, New York, NY, USA, 202–205. doi: https://doi.org/10.1145/3377812.3381388.
- Jimena Torres Tomás, Newton Spolaôr, Everton Alvares Cherman, Maria Carolina Monard. (2014) A Framework to Generate Synthetic Multi-label Datasets, Electronic Notes in Theoretical Computer Science, 302, 155-176, ISSN 1571-0661, doi: https://doi.org/10.1016/j.entcs.2014.01.025.
- Faezeh Khorram, Jean-Marie Mottu, Gerson Sunyé. (2020) Challenges & Opportunities in Low-Code Testing. ACM/IEEE 23rd International Conference on Model Driven Engineering Languages and Systems (MODELS ’20 Companion), Virtual, Canada. doi: ff10.1145/3417990.3420204ff. ffhal-02946812f.
- Nguyen P., Maag S. (2021) A Machine Learning Based Methodology for Web Systems Codeless Testing with Selenium. In: van Sinderen M., Maciaszek L.A., Fill HG. (eds) Software Technologies. ICSOFT 2020. Communications in Computer and Information Science, 1447. Springer, Cham. doi: https://doi.org/10.1007/978-3-030-83007-6_9.
- Halili, Festim & Ramadani, Erenis. (2018). Web Services: A Comparison of Soap and Rest Services. Modern Applied Science. 12. 175. doi: https://doi.org/10.5539/mas.v12n3p175.
- Kachewar, Rohan. (2013). K model for designing Data Driven Test Automation Frameworks and its Design Architecture Snow Leopard. doi: 10.5120/3835-5331.
- Ayala-Rivera, Vanessa & Mcdonagh, Patrick & Cerqueus, Thomas & Murphy, Liam. (2013). Synthetic Data Generation using Benerator Tool.
- Hitesh, Tahbildar & Bichitra, Kalita. (2011). Automated Software Test Data Generation: Direction of Research. International Journal of Computer Science and Engineering Survey.2. doi: 10.5121/ijcses.2011.2108.
- Shuvar R.Y., Prodyvus A.M., Yuzevych V.M., Ogirko I.V., Ogirko O.I., Kovtko R.T., Mysiuk R.V. (2021) Information technologies and threats in cyberphysical systems for displaying information in underground metal structures with defects. Stuc. intelekt. 26(1), 85-94. doi: https://doi.org/10.15407/jai2021.01.085.
- Aleb, N., & Kechid, S. (2013). Automatic Test Data Generation Using a Genetic Algorithm. ICCSA.
- New Relic [Online]. Available: https://docs.newrelic.com/docs/data-apis/get-started/introduction-new-relic-data-ingest-apis-sdks/.
- Test Design Techniques [Online]. Available: http://istqbfoundation.wikidot.com/4.