API Exercises

Exercises – Introduction

Language Tool

Open Weather API

Exercises – Foundation

F1 – First API request to the WordPress

F2 – Create a test collections

F3 – Environment variables

F4 – Authorization and header fields

F5 – Test design techniques

F6 – Execute your test cases

F7 – Output validation with tool

F8 – Status and error codes

F9 – Business rules

Exercises – Advanced

A1 – Design review

A2 – Define a API test strategy

A3 – Configuration of Charles proxy

A4 – Create Java Script tests

A5 – Use console log to analyse responses

A6 – Use environment variables

A7 – Versions of resources

A8 – Create input file with data variation

A9 – Performance setup

A10 – User story + risk

Exercises – Repetition

R0 – Lorum ipsum text

Description

  • Generation of Lorum ipsum text with Postman

Assignment

Details

R1 – The Open Weather Map API

Description

  • To get up-to-date weather information for your location

Assignment

Details

R2 – Open exchange rate – authorization

Description

  • Real-time exchange rates & currency conversion JSON API

Assignment

  • Use API by using access tokens
  • Define variables in Postman (access token)
  • Tools: Postman

Details

R3 – Open exchange rates – Error codes

Description

  • Explore what is a good and what is a bad request

Assignment

  • Find status and error codes and rules to trigger them
  • Which error code is shown when (priority)
  • When do you expect an error code
  • Tools: Postman

Details

R4 – Open exchange rates – Header injections

Description
Explore what header elements are

Assignment

  • Compare results with and without a header elements
  • If-Modified-Since and If-None-Match
  • Tools: Postman

Details

R5 – Colour lovers and Color picker

Description

  • API provide content in many different types, like generation of colors

Assignment

  • Find a favorite color with colour lover API and validate the Hex-code with Color picker
  • Tools: Postman and Color picker website

Details

R6 – T-Mobile – Business rules

Description

  • Compare output between different customer types. Which resource has which output?

Assignment

  • Find output of a prepaid and a business customer
  • Find a invoice for a prepaid customer
  • Tools: Chrome browser

Details

R7 – T-Mobile – Versions of resources

Description

  • Resources have a life cycle which is organized in versions for now and the future

Assignment

  • Find a resource that is active, have multiple versions and is end of life
  • Tools: Chrome browser

Details