Structuring Reusable API Testing Frameworks with Cucumber-BDD and REST Assured
DOI:
https://doi.org/10.15662/IJARCST.2023.0601003Keywords:
API testing, Cucumber-BDD, REST Assured, test automation, scalabilityAbstract
API testing is central to ensuring the reliability and stability of modern service-driven applications, yet many automation solutions become brittle and difficult to maintain as systems evolve. This paper presents an architectural approach for building reusable and scalable API testing frameworks by integrating Cucumber-BDD with REST Assured. Leveraging Cucumber’s Gherkin language for business-readable specifications and REST Assured’s fluent DSL for HTTP request validation, the proposed layered architecture separates feature definitions, step implementations, and reusable service components. This design enables reusability, minimizes code duplication, and supports maintainability by isolating changes to specific modules. By aligning business requirements with technical execution, the framework enhances readability, accelerates onboarding, and ensures portability across environments and CI/CD pipelines. The result is a sustainable approach to API test automation that balances expressiveness, technical rigor, and long-term maintainability
References
[1] B. G. Wolde and A. S. Boltana, “REST API composition for effectively testing the Cloud,” Journal of Applied Research and Technology, vol. 19, no. 6, pp. 676–693, Dec. 2021, doi: 10.22201/icat.24486736e.2021.19.6.1653.
[2] N. Palani, Software Automation Testing Secrets Revealed: Revised Edition-Part 1. Delhi, India: Educreation Publishing, 2017.
[3] V. Österholm, “Overview of Behaviour-Driven Development tools for web applications,” M.S. thesis, Dept. Comput. Sci., KTH Royal Institute of Technology, Stockholm, Sweden, 2021. [Online]. Available:
[4] B. G. Wolde and A. S. Boltana, “Behavior-driven quality first Agile testing for cloud service,” International Journal of Software Engineering & Applications, vol. 12, no. 1, pp. 13–27, Jan. 2021, doi: 10.5121/ijsea.2021.12102.
[5] P. A. Chaubal, Mastering Behavior-Driven Development Using Cucumber: Practice and Implement Page Object Design Pattern, Test Suites in Cucumber, POM TestNG Integration, Cucumber Reports, and Work with Selenium Grid. India: BPB Publications, 2021.
[6] I. Nečas, “BDD as a specification and QA instrument,” M.S. thesis, Faculty of Informatics, Masaryk University, Brno, Czech Republic, 2011.
[7] R. B. Bahaweres, E. Oktaviani, L. K. Wardhani, I. Hermadi, A. Suroso, I. P. Solihin, and Y. Arkeman, “Behavior-driven development (BDD) Cucumber Katalon for Automation GUI testing case CURA and Swag Labs,” in 2020 International Conference on Informatics, Multimedia, Cyber and Information System (ICIMCIS), Jakarta, Indonesia.
[8] N. Li, A. Escalona, and T. Kamal, “Skyfire: Model-based testing with cucumber,” in 2016 IEEE International Conference on Software Testing, Verification and Validation (ICST), Chicago, IL, USA, Apr. 2016, pp. 393–400, doi: 10.1109/ICST.2016.42.


