Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Robot framework REST API testing with JSON schema
Rating: 4.5 out of 5(105 ratings)
425 students

Robot framework REST API testing with JSON schema

Learn to automate your Rest API tests with robot framework, python and JSON schema - with hands on exercises!
Created bySven Ernst
Last updated 2/2022
English

What you'll learn

  • Test REST api JSON responses automatically against a self designed JSON schema
  • Build up a basic structure for a new robot framework test project
  • Build GET/POST/DELETE requests with the robot framework request-library
  • How to read and write JSON schemas
  • Write, run and debug robot framework testcases in VScode with the robot framework language server
  • Test an API with datadriven tests and valid suite setups/teardowns
  • Understand the basic usage of postman
  • Understand how schema tests are used to test data structure of responses

Course content

5 sections30 lectures2h 54m total length
  • Introduction1:36
  • Getting the code and install virtual env5:32

    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.

  • Activate virtual env and inspect folders6:36

    In this lection, we will create and use a virtual environment and inspect the downloaded code.

  • Install packages and setup VScode6:37

    In this lection, we will install our python packages and setup Visual Studio code and the robot framework language server.

  • Inspect and run the API under test4:52

    In this lection, we will take a look at the API under test und run it the first time.

  • Install, configure and use postman9:04

    In this lection, we will install postman, import the API calls and learn how to authenticate against the API.

  • Deepdive in the API calls with postman4:48

    In this lection, we will look at all possible API calls and see what we can and can not do.

Requirements

  • You need to have a basic understanding of robot framework
  • You do easier with some basic understanding of python
  • You need to know the basics of REST API's and request types like GET/POST/DELETE

Description

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!


Who this course is for:

  • Everyone who knows a little of robot framework and wants/needs to automate API tests
  • Test automation engineers who did not yet test API's
  • API testers and test automation engineers who struggle to test bigger API responses
  • API testers and test automation engineers who are interested in how to test an API with JSON schemas