Reliability of APIs plays a vital role in the stability of distributed systems and DevOps workflows. Although chaos engineering has proven effective in exposing vulnerabilities, its integration into API testing remains limited due to a lack of automation and efficient test case generation. This paper introduces ChaosAPI, a novel tool that employs genetic algorithms to automate chaos engineering specifically for API testing. By utilizing OpenAPI Specifications, ChaosAPI systematically generates, mutates, and optimizes test cases to improve coverage and uncover hard-to-detect edge cases. Comparative analysis shows that ChaosAPI performs competitively with state-of-the-art methods, including NLP-based testing techniques, Llama 3 8B, and JetBrains AI Assistant—despite requiring less computational power and not relying on access to source code.

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

Enhancing API Testing Through Genetic Algorithm-Based Chaos Engineering

  • Mehdi Ait Said,
  • Lahcen Belouaddane,
  • Mihi Soukaina,
  • Ezzati Abdellah,
  • Zraibi Brahim

摘要

Reliability of APIs plays a vital role in the stability of distributed systems and DevOps workflows. Although chaos engineering has proven effective in exposing vulnerabilities, its integration into API testing remains limited due to a lack of automation and efficient test case generation. This paper introduces ChaosAPI, a novel tool that employs genetic algorithms to automate chaos engineering specifically for API testing. By utilizing OpenAPI Specifications, ChaosAPI systematically generates, mutates, and optimizes test cases to improve coverage and uncover hard-to-detect edge cases. Comparative analysis shows that ChaosAPI performs competitively with state-of-the-art methods, including NLP-based testing techniques, Llama 3 8B, and JetBrains AI Assistant—despite requiring less computational power and not relying on access to source code.