Presentation
Deep Learning-Based Prediction of Test Input Validity for RESTful APIs
Author/s | Mirabella Galvin, Agatino Giuliano
Martín López, Alberto Segura Rueda, Sergio Valencia Cabrera, Luis Ruiz Cortés, Antonio |
Department | Universidad de Sevilla. Departamento de Lenguajes y Sistemas Informáticos |
Publication Date | 2021 |
Deposit Date | 2021-06-30 |
Published in |
|
Abstract | Automated test case generation for RESTful web
APIs is a thriving research topic due to their key role in software
integration. Most approaches in this domain follow a blackbox
approach, where test cases are randomly ... Automated test case generation for RESTful web APIs is a thriving research topic due to their key role in software integration. Most approaches in this domain follow a blackbox approach, where test cases are randomly derived from the API specification. These techniques show promising results, but they neglect constraints among input parameters (so-called interparameter dependencies), as these cannot be formally described in current API specification languages. As a result, when testing real-world services, most random test cases tend to be invalid since they violate some of the inter-parameter dependencies of the service, making human intervention indispensable. In this paper, we propose a deep learning-based approach for automatically predicting the validity of an API request (i.e., test input) before calling the actual API. The model is trained with the API requests and responses collected during the generation and execution of previous test cases. Preliminary results with five real-world RESTful APIs and 16K automatically generated test cases show that test inputs validity can be predicted with an accuracy ranging from 86% to 100% in APIs like Yelp, GitHub, and YouTube. These are encouraging results that show the potential of artificial intelligence to improve current test case generation techniques. |
Citation | Mirabella Galvin, A.G., Martín López, A., Segura Rueda, S., Valencia Cabrera, L. y Ruiz Cortés, A. (2021). Deep Learning-Based Prediction of Test Input Validity for RESTful APIs. En DeepTest 2021: International Workshop on Testing for Deep Learning and Deep Learning for Testing, Madrid, España. |
Files | Size | Format | View | Description |
---|---|---|---|---|
Deep Learning-Based Prediction ... | 341.4Kb | [PDF] | View/ | |