API TESTING
This APIs are fundamental to modern software systems, facilitating seamless communicationbetween applications. Ensuring their reliability and correctness requires rigorous testing. This paperpresents an automated API testing framework that leverages OpenAPI schemas and AI-driven test casegeneration using OpenAI’s GPT-4o model. The framework systematically tests REST API methods,including GET, POST, PUT, PATCH, and DELETE, by dynamically generating and executing test cases.It intelligently handles incomplete API documentation, reference parameters, and error response analysis,ensuring comprehensive validation. Our approach automates test execution, captures real-time logs, andrefines test cases iteratively based on API responses. The system efficiently detects and reports errors,including 4XX and 5XX status codes, while updating partially documented schemas. Despite challengessuch as handling dynamic parameters, AI-generated test case accuracy, and scalability concerns, theframework significantly enhances API testing efficiency. Future improvements aim to refine test casegeneration, optimize performance, and support broader API testing scenarios.
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2025-04-16
- DOI
- https://doi.org/10.5281/zenodo.15226240
- Primary Topic
- Monoclonal and Polyclonal Antibodies Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00