Next Level API Automation with @ailuj876
Talk Description
APIs are an essential part of an increasingly large number of applications that we use daily. APIs enable applications to exchange data and functionality easily and securely. As testers, we want to ensure that our APIs do not break and provide the expected functionality. We can automate our APIs to speed up the rate at which our checks are done. When automating APIs having tests to ensure that your API returns the correct message and status is great, however, do you test for and automate the negative and edge cases for your APIs? In this talk, I will show you how to get started with automating APIs, a checklist of things needed to automate an API, automate negative tests for your API as well as check that your APIs handle errors appropriately, follow the specified schema, and donโt reveal data that it shouldnโt or has certain security gaps. I will also share how to decide which tests you should be automating for your API and how to automate workflows for an API.
API automation executes faster than UI-automated tests and I have found it to be more straightforward to write. Join me to start creating these quick automated tests using Supertest (a JavaScript API Testing Framework) for the boundaries of your API. The tips that I will share can be applied to any framework that you use to automate APIs.
Takeaways
- Understand APIs
- Negative scenarios to automate for APIs
- Understanding and using schemas to validate your APIs
- Testing APIs in Postman
- Automate APIs in Javascript
- API workflows
- API Testing Checklist
Weโll use this Club thread to share resources mentioned during the session and answer any questions we donโt get to during the live session.