Ensuring the reliability of APIs is critical in distributed systems and DevOps workflows. Chaos engineering has emerged as an effective approach for identifying vulnerabilities, yet its application in API testing remains limited due to the lack of automation and efficiency in generating diverse test cases. This paper introduces ChaosAPI, a novel tool leveraging genetic algorithms to automate chaos engineering in API testing. Unlike traditional methods, ChaosAPI uses OpenAPI Specifications to systematically generate, mutate, and optimize test cases, ensuring comprehensive test coverage and the detection of unhandled edge cases. A comparative study demonstrates ChaosAPI’s effectiveness against state-of-the-art methods, including NLP-based testing techniques, Llama 3 8B, and JetBrains AI Assistant. Despite requiring less computational power and having no dependency on source code access, ChaosAPI achieves test generation performance comparable to advanced AI-driven tools.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

ChaosAPI a Genetic Algorithm-Based Tools for Automating Chaos Engineering in API Testing

  • Ait Said Mehdi,
  • Belouaddane Lahcen,
  • Mihi Soukaina,
  • Raouf Anas

摘要

Ensuring the reliability of APIs is critical in distributed systems and DevOps workflows. Chaos engineering has emerged as an effective approach for identifying vulnerabilities, yet its application in API testing remains limited due to the lack of automation and efficiency in generating diverse test cases. This paper introduces ChaosAPI, a novel tool leveraging genetic algorithms to automate chaos engineering in API testing. Unlike traditional methods, ChaosAPI uses OpenAPI Specifications to systematically generate, mutate, and optimize test cases, ensuring comprehensive test coverage and the detection of unhandled edge cases. A comparative study demonstrates ChaosAPI’s effectiveness against state-of-the-art methods, including NLP-based testing techniques, Llama 3 8B, and JetBrains AI Assistant. Despite requiring less computational power and having no dependency on source code access, ChaosAPI achieves test generation performance comparable to advanced AI-driven tools.