Iβm used Postman for Ex1. That tool is very easy to use with APIs testing - newbie(included me ).
Day 7: Complete exercise one over at The Club using popular API testing tools such as Postman, SoapUI, and API Fortress.
I use Katalon to practice exercise 1
-
https://reqres.in to send a GET and POST request
a. GET:
b. POST:
-
https://automationintesting.online/auth/login to send the following JSON
I executed some simple API calls, the RESTful API sent GET and POST request by using Katalon and Postman, below is screenshots. Thanks for suggesting direction and resources.
- Katalon:
- Postman
I use 02 tools to complete this exercise: Katalon and Postman
Here is my result:
- GET request:
Postman
Katalon
- POST Request
Katalon
Postman
I used Katalon for this exercise
- Get call
- post call get the token
I used Postman for the first try and then explore with Katalon.
Postman
- GET call
- POST call
Katalon
- GET call
- POST call
I executed above API calls using both Katalon and Postman:
-
Postman
GET :
POST :
-
Katalon:
GET :
POST :
I have achieved, as beginner i started i am in day 7 and able to understand Get and Post methods sending requests and getting the responses. I am impressed with the 30 days challenge with myself learning Postman API.
I am getting the following error in place of token when I try to send a post request.
image|690x367
Exactly for this I made the below poem and videos
Selenium and E2E but what about little old me
I am the one doing the work that the end users see
Do you not know the heart and soul of any application
Is me, the API, have some consideration
If for some reason youβre not sure, what checks need to be done
Join Rester Tester from this week on and let us have some fun
We will explore, have fun and code and overcome frustration
And Rest Assured what will Get is unique creation.
The link below needs to be checked
At least once in a while
Updates will come least once a week
And a lot they will pile
You know the drill so have a look, subscribe and like at once
Come join me and have some in this API dance.
I used Postman and Insomnia. This was the first time I used Insomnia (I am familiar with Postman). Knowing how to do it in one tool makes it easy to do the same task in other.
Postman
Insomnia
Update 2021-11-07. Seems like something has changed or I am missing something. Now when I POST request to βhttps://automationintesting.online/auth/loginβ, response body no longer has token. But there is another way you can get token: from cookies.
Javascript experts, can you please explain me why I cannot get value from cookie this way in Postman?
pm.test("6. Cookie - one more way to get it ", function () {
coo = pm.cookies
console.log(coo);
console.log(coo[0]);
console.log(coo.get('name'));
});