Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

KAT: Dependency-aware Automated API Testing with Large Language Models (2407.10227v1)

Published 14 Jul 2024 in cs.SE

Abstract: API testing has increasing demands for software companies. Prior API testing tools were aware of certain types of dependencies that needed to be concise between operations and parameters. However, their approaches, which are mostly done manually or using heuristic-based algorithms, have limitations due to the complexity of these dependencies. In this paper, we present KAT (Katalon API Testing), a novel AI-driven approach that leverages the LLM GPT in conjunction with advanced prompting techniques to autonomously generate test cases to validate RESTful APIs. Our comprehensive strategy encompasses various processes to construct an operation dependency graph from an OpenAPI specification and to generate test scripts, constraint validation scripts, test cases, and test data. Our evaluation of KAT using 12 real-world RESTful services shows that it can improve test coverage, detect more undocumented status codes, and reduce false positives in these services in comparison with a state-of-the-art automated test generation tool. These results indicate the effectiveness of using the LLM for generating test scripts and data for API testing.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Tri Le (7 papers)
  2. Thien Tran (3 papers)
  3. Duy Cao (2 papers)
  4. Vy Le (3 papers)
  5. Tien Nguyen (9 papers)
  6. Vu Nguyen (45 papers)
Citations (2)

Summary

We haven't generated a summary for this paper yet.