Abstract
RESTful Application Programming Interfaces (APIs) are central to the integration of distributed systems, where interface failures can affect multiple dependent services. Automated test generation can reduce the manual effort that this testing requires, but the evidence on how different generation techniques behave in real operational contexts remains limited. This paper reports a case study comparing three techniques implemented in EvoMaster, Random (RANDOM), Whole Test Suite (WTS), and Smart Sampling (SMARTS), applied to the CMDE API, a national-scale governmental API maintained by the Brazilian Ministry of Education to support the Pé-de-Meia student-retention program. The techniques were evaluated using REST-specific coverage criteria, wall-clock execution time, and test-suite size. SMARTS achieved significantly lower coverage than RANDOM and WTS on Request Parameter Coverage, Request Parameter Value Coverage, and Response Body Properties Coverage, despite generating the largest test suites in significantly less execution time, a trade-off that test-suite size alone would not reveal. The study also identified undocumented response status codes, an internally inconsistent enum/type definition, and inconsistent pagination-field types in the OpenAPI contract, which the development team subsequently corrected. Overall, the findings offer practical guidance for selecting test-generation techniques and show how automated testing can reveal specification-quality problems in a real government system.

This publication has 12 references indexed in Scilit: