Exercises – Introduction
Language Tool
- https://www.languagetool.org/
- https://www.languagetool.org/api/v2/languages
- https://www.languagetool.org/api/v2/check?language=en&text=my+text
- https://www.languagetool.org/http-api/swagger-ui/#/
Open Weather API
- http://api.openweathermap.org/data/2.5/weather?APPID=7fbfaecfb052e1c33d9ac68c64841b19&q=”Delft”
- http://openweathermap.org/current#name
- http://openweathermap.org/find?q=Delft
Exercises – Foundation
F1 – First API request to the WordPress
F2 – Create a test collections
F3 – Environment variables
F4 – Authorization and header fields
- https://developer.wordpress.com/docs/api/
- https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/posts/new/
- https://en.wikipedia.org/wiki/List_of_HTTP_header_fields
F5 – Test design techniques
F6 – Execute your test cases
F7 – Output validation with tool
- http://jsonviewer.stack.hu/
- http://www.barebones.com/products/textwrangler/
- https://notepad-plus.org
F8 – Status and error codes
- https://developer.wordpress.com/docs/api/
- https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/posts/new/
F9 – Business rules
- https://developer.wordpress.com/docs/api/
- https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/posts/%24post_ID/replies/new/
Exercises – Advanced
A1 – Design review
A2 – Define a API test strategy
A3 – Configuration of Charles proxy
A4 – Create Java Script tests
- https://www.getpostman.com/docs/testing_examples
- http://www.w3schools.com/js/default.asp
- jsfiddle.net/
- developer.mozilla.org/en-US/docs/Web/JavaScript/Guide
- overapi.com/javascript
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
- Get a number of lines of bacon ipsum text
- Tools: Postman Chrome addon
Details
R1 – The Open Weather Map API
Description
- To get up-to-date weather information for your location
Assignment
- Find weather information for your location
- Tools: Postman and Json output with http://jsonviewer.stack.hu/
Details
- http://api.openweathermap.org/data/2.5/weather?APPID=7fbfaecfb052e1c33d9ac68c64841b19&q=”Delft”
- http://api.openweathermap.org/data/2.5/forecast/city?id=524901&APPID=7fbfaecfb052e1c33d9ac68c64841b19&units=metric
- http://openweathermap.org/api
- http://openweathermap.org/find?q=Delft
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
- openexchangerates.org/api/openexchangerates.org/api/
- Access key: 66e62d8337b545ec9f0508c1215764b5
- openexchangerates.org/documentation#app-ids
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
- http://openexchangerates.org/api/latest.json?app_id=66e62d8337b545ec9f0508c1215764b5
- https://openexchangerates.org/documentation
- https://openexchangerates.org/documentation#errors
- http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
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
- http://openexchangerates.org/api/latest.json?app_id=66e62d8337b545ec9f0508c1215764b5
- https://openexchangerates.org/documentation#etags
- http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
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
- http://www.colourlovers.com/api/colors?
- http://www.colorpicker.com/
- http://www.colourlovers.com/api/
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
- https://capi.t-mobile.nl/documentation
- https://capi.t-mobile.nl/
- Access key
- {Bearer} with:
- {StubbedResidentialPostPaid}
- {StubbedBusinessPostPaid}
- {StubbedResidentialPrePaid}
- {Bearer} with:
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
- https://capi.t-mobile.nl/documentation
- https://capi.t-mobile.nl/
- Access key
- {Bearer} with:
- {StubbedResidentialPostPaid}
- {StubbedBusinessPostPaid}
- {StubbedResidentialPrePaid}
- {Bearer} with: