
Learn to test rest apis against json schemas with Robot Framework and Python, set up virtual environments and postmen workflows, and build almost 20 tests against a custom api.
In this lection, we will get the code for the API under test, the finished robot code and some dependencies for the later installation. We will also start with a virtual environment.
In this lection, we will create and use a virtual environment and inspect the downloaded code.
In this lection, we will install our python packages and setup Visual Studio code and the robot framework language server.
In this lection, we will take a look at the API under test und run it the first time.
In this lection, we will install postman, import the API calls and learn how to authenticate against the API.
In this lection, we will look at all possible API calls and see what we can and can not do.
Explore testing theory and review different test scores, define what a JSON schema is, and examine possible API tests for the course.
In this lection, we will learn in which ways API's can be tested and which way we are choosing for this course.
In this lection, we will learn what a JSON schema is and how to build one.
In this lection, we will take a look at possible test cases of the API and define, which of these test cases we will code together.
Kick off coding this third part by building a basic folder structure, writing the first tests, and implementing a Python JSON schema validation function.
Develop a Python function to validate API responses against a json schema by loading a reference schema and applying jsonschema, with robust error handling.
Integrate the json schema validation into our first Robot Framework rest api testing by validating the login response against a schema and ensuring token presence.
Design and run a negative post login test in Robot Framework, submitting a wrong password to return a 401 unauthorized and validate the error JSON schema.
Explore section four of robot framework rest api testing with json schema to review the missing predefined tests, then examine them together after your own review.
Learn to write an advanced get /users/<id> test in Robot Framework, including postman-driven auth, bearer token headers, and json schema validation for the response.
Learn to test the /users endpoint with filter=all using Robot Framework, validating responses with a JSON schema, building parameter dictionaries, and using Postman and VS Code snippets to streamline tests.
Test post /users in robot framework by building a valid body with contracts and user data, authenticate, and verify the returned id and schema; then delete the user.
Create a two-test negative scenario for post users: submit zero contracts and four contracts, expecting 400 bad request with a consistent error message, validated against JSON schema using Postman.
Execute a data-driven negative POST /users test with zero or four contracts, validating the json schema and expecting 400 with the error 'there are only one to three contracts allowed'.
Automate a daily rest api test by creating a user, then deleting it with Robot Framework, asserting a 200 status and an OK message validated by json schema.
Learn to implement a delete test for /users/<id> in Robot Framework REST API testing with JSON schema, including authorizing, creating a user, capturing the id, and validating the response schema.
Test multiple rest api endpoints with robot framework by building unauthorized tests for wrong and empty tokens on users and users/id, then validate responses using JSON schema and reusable templates.
Are you tired of testing API's manually? Or testing it automatically but you are struggling to validate big API responses?
This course is designed for people, that have a basic understanding of testing API's manually and/or automated, but are searching for the next step how to automate API tests more convenient and by getting more information from the tests. In this basic course, you will learn to write automated API tests in robot framework by using python and the JSON schema with the simplest learning method - with a lot of practice. Using a self written API, which is designed specifically for this course, we will be automating a total of 8 different kinds of tests together.
The API will be downloaded and hosted by yourself, so you can always access and test against it. It is designed to be able to receive GET, POST and DELETE requests, so you learn by yourself how to read, write and delete data from it.
I will guide you in this course to learn things like:
Install and learn the basics of postman
Test an API manually with postman
What a JSON schema is and how to write/read it
How to use the JSON schema within testing
How to setup a basic project in robot framework
Write python code and use it as a library in robot framework
Write, run and debug robot framework code against an API
Use the robot framework requests library with inbuilt status code verification
Write robot framework tests against the API by using GET/POST/DELETE requests
Verify the format of bigger JSON loads
Modify JSON schemas to get even more out of it
This course will walk you through installing everything that is needed, setting up the test API as well as creating a robot framework API testing project from scratch. After this, you will know how you are able to test even bigger API's and big requests and responses!