30 Days of API Testing Day 7: Complete Exercise 1

I’m used Postman for Ex1. That tool is very easy to use with APIs testing - newbie(included me :smiley: ).


4 Likes

Day 7: Complete exercise one over at The Club using popular API testing tools such as Postman, SoapUI, and API Fortress.

2 Likes

I use Katalon to practice exercise 1

  1. https://reqres.in to send a GET and POST request
    a. GET:
    image
    image

b. POST:
image
image

  1. https://automationintesting.online/auth/login to send the following JSON
    image
    image
5 Likes

I used Postman for this exercise, please see the below screenshot:

4 Likes

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

2 Likes

I use 02 tools to complete this exercise: Katalon and Postman

Here is my result:

  • GET request:

Postman
image

Katalon
image

  • POST Request

Katalon

image

Postman
image

4 Likes

I used Katalon for this exercise

  1. Get call

25

  1. post call get the token

30

4 Likes

I used Postman for the first try and then explore with Katalon.

Postman

  • GET call

  • POST call

Katalon

  • GET call

Ex1_Get_Katalon

  • POST call

Ex1_Post_Katalon

2 Likes

I executed above API calls using both Katalon and Postman:

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.

1 Like

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 :slight_smile:

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'));

});

Postman 2021-11-07 10-43


Its works fine. I used PostMan

Does anyone know why am I unable to copy token in Postman? It’s shown in β€œCookies” section and I can’t copy it. β€œBody” section is empty.
Thanks.