Posts

Showing posts with the label API Testing

API headers - What do I know about them

     In this post I want to talk about what I've learned about API headers. Recently I downloaded a free book on apple books app, "An Introduction to API" by Brain Cooksey. The author has explained information in simple terms with beginners in mind.    What are API headers?        Headers provide meta information about the request and response. They are items like, the client's request time, size of the request body, user-agent, content type of the request payload, authentication information...  Commonly used headers:    1. "User-Agent" : The client uses this header to tell the server what type of device you are using.         Ex:             Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15;             PostmanRuntime/7.32.3   2. "Content-Type": The client...

API testing strategy

Image
 API testing strategy     I now understand the fundamentals of API, how to send requests, and how to evaluate responses. Moreover, I finished the 15-day Postman testers challenge. I was now interested in finding out more about how to test a specific endpoint. I discovered that we can perform validations, check response times, perform functional testing, etc. When I continued to feel that this testing was insufficient, I came across this YouTube  Video .  In this video,  Pricilla (Prici) Bilavendran  explains API testing techniques in a brilliant way. This is a mind map of my notes for future reference:

API Testing journey

  API Testing journey   I've been working on learning API testing for quite some time. I was only aware of the acronym API, which stands for application programming interface, until 2022. I started my search on Google because I wanted to learn more than that.  I Completed the following courses on various education platforms: 1. Coursera — Postman - Intro to APIs (without coding) 2. Coursera — Start Your API Testing Journey With Postman Tool 3. Udemy —  REST APIs with Postman for Absolute Beginners 4.  MOT - https://github.com/g33klady/TodoApiSample/tree/main/Resources . https://github.com/g33klady/TodoApiSample 5. LinkedIn Learning — API Testing Foundations 6. Test Automation university: https://testautomationu.applitools.com/exploring-service-apis-through-test-automation / 7. Test Automation university: https://testautomationu.applitools.com/python-api-testing /    Postman was discussed as a tool for API testing in the first three cour...

API testing with Bearer token

Image
  API testing with Bearer token  HTTP Authentication Schemes:   HTTP Authentication verifies the user's eligibility to access the web resource. It involves HTTP header-based communication between the client and the server, with the server requesting the user's credentials for authentication. I'll start by writing about bearer tokens because I recently learnt about them.   When a user logs in, the authentication server generates a token known as a bearer token. This token should be sent in the header of the client's subsequent calls .This token will shortly expire; in such circumstances, a new token must be generated. Application using Bearer token: The Contact List App is a small program that Kristin Jackvony created for testing. The APIs for this application authenticate users using bearer tokens. API documentation can be found https://documenter.getpostman.com/view/4012288/TzK2bEa8 I started by exploring the app's functionality , making a list of prosp...