AI-Driven API Test and Automation
In this tutorial, you’ll learn how to use GenAI to implement and test a REST API from scratch. Using Cursor as your development environment, you’ll be guided through a hands-on experience that combines powerful tools like Mocha, Supertest, k6, and GitHub Actions to implement automated testing and continuous integration. Under the guidance of Julio de Lima, you’ll first dive into essential REST API architecture concepts to build a solid foundation. Then, with the support of GenAI, you’ll generate and refine your API, create functional test cases, and automate them to validate behavior and reliability. You’ll also run performance tests using k6 to evaluate your API under load, ensuring it meets performance expectations. Once the tests are ready, you’ll integrate everything into a CI pipeline using GitHub Actions, enabling consistent, automated testing with every change. This approach emphasizes not only verifying your system from the outside but understanding it deeply from within, so you can uncover defects early and fix them efficiently. By the end of the tutorial, you’ll gain practical skills in full-cycle API testing and automation, empowering you to take ownership of quality in modern, AI-assisted software development workflows.
NOTE: Tutorial requirements (all necessary apps and services are either free or open-source):
- A laptop with any browser installed
- Node.js any version >= 20
- Cursor
- Git
- Github account
- Bruno
Júlio de Lima is a specialist in Software Testing with 15 years of experience. Júlio has a Bachelor's Degree in Software Engineering, a specialization in Teaching in Higher Education, and a Master's Degree in Electrical and Computational Engineering with a focus on Testing and Artificial Intelligence. He currently lives in Orlando, Florida. He serves as Principal QA Automation Engineer at Capco, helping financial institutions establish robust and sustainable testing strategies. He uses his coding and architecture skills to contribute to software quality at all system layers. Júlio has contributed to the software testing community through his channels on YouTube, Instagram, and Spotify, and in articles for technical and scientific magazines. He has experience as a speaker at national and international events. Júlio is a STAREAST alumnus, being a speaker in 2020, 2023 and 2024. Julio also has trained more than 12,000 students through his online training in Portuguese.
