AI-Powered API Testing: Enhancing Backend Validation with Reinforcement Learning and Fuzz Testing

Authors

  • Durga Praveen Deevi O2 Technologies Inc, California,USA Author
  • Naga Sushma Allur Astute Solutions LLC, California, USA Author
  • Koteswararao Dondapati Everest Technologies,Ohio, USA Author
  • Himabindu Chetlapalli 9455868 Canada Inc, Ontario, Canada Author
  • Sharadha Kodadi GOMIAPP LLC , NJ, USA Author
  • Punitha Palanisamy Tagore Institute of Engineering and Technology, Salem,India Author

Abstract

Traditional API testing methods often struggle with adaptability, scalability, and security, leading to 
inefficiencies in software validation. These conventional approaches fail to generate dynamic test cases, 
resulting in limited defect detection and increased false positives. Addressing these challenges, this research 
proposes an AI-driven testing framework that integrates Reinforcement Learning (RL) and Fuzz Testing to 
enhance API robustness and security. The proposed approach formulates API testing as a Markov Decision 
Process (MDP), where RL dynamically generates test cases by exploring different request structures, while 
Fuzz Testing injects adversarial inputs to detect vulnerabilities. The Q-learning algorithm is employed to 
optimize test case selection based on reward feedback, ensuring the identification of critical defects with 
minimal redundancy. Automated execution and logging further enhance test efficiency by analyzing 
response patterns and anomaly detection. Experimental evaluations demonstrate that the proposed RL-Fuzz 
Testing framework outperforms traditional API testing methods, achieving a 92.3% defect detection rate, an 
88.5% test coverage, and a 38% reduction in execution time. Additionally, the false positive rate is 
significantly reduced, improving debugging efficiency. This study highlights the effectiveness of AI-driven 
techniques in optimizing API testing, providing a more adaptive, efficient, and robust validation mechanism. 

Downloads

Download data is not yet available.

Downloads

Published

2023-04-28

Issue

Section

Articles

How to Cite

AI-Powered API Testing: Enhancing Backend Validation with Reinforcement Learning and Fuzz Testing. (2023). International Journal of Multidisciplinary Engineering In Current Research, 8(4), 95-105. https://ijmec.com/index.php/multidisciplinary/article/view/755