API testing using postman - Part 1

preview_player
Показать описание

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

In this tutorial, we are building API test suite in Postman and Running it Command Line(Newman).

API calls Collection include mainly three things:

Recommend Books :

Join Facebook Group : Software Testing & Automation Discussion

HTTP headers
HTTP Request (POST,GET,PUT,DELETE )
Status Code/ Response Code

Status Code/Response Code - There are many status/response code, from them we can verify the response.
200 - OK, The request was successful.
201 - Created, The request was successful and data was created.
204 - No Content, The response is empty.
400 - Bad Request, The request could not be understood or was missing required parameters.
401 – Unauthorized, Authentication failed or user does not have permissions for the requested operation.
403 - Forbidden, Access denied.
404 - Not Found, Data was not found.
405 - Method Not Allowed, Requested method is not supported for the specified resource.
500 - Internal Server Error.
503 - Service Unavailable, The service is temporary unavailable.

API TESTING is a type of software testing that involves testing

application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.

Steps to set environment variable.

Click on Manage Environment.
Click on ADD
Write down the Name of Environment.
Fill key & value, You can pass key = variable and value is your host IP address.

🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -

✅Learn Jenkins for QA -

✅Programming Java -

✅Test Automation -

✅API Testing -

✅Cypress Tutorial with LIVE Projects -
Рекомендации по теме
Комментарии
Автор

Hi Pramode
Awesome video...It helps me a lot..thanks..!!

shrutilembhe
Автор

Thanks for explaining it in a simple way. I grab everything quickly. Keep uploading

manpreetmudhar
Автор

this is what I am looking for. Great video! thank you my friend

tranquocthanh
Автор

Thank you! I've learnt much more today!

maxcool
Автор

Hi Pramode! Thank you. Your videos of great help.
I'm trying to use the snippets from Postman but the scripts which I have is quite different from yours. For example,

//Mandatory fields should be returned

tests["User Name is present"] = responseBody.has("userName")

pm.test("User Name is present", function () {

});

In the above, both tests are passing but I prefer the first one as it much easier to read. Can you plz tell me how I can change it

ramkumarsubramanian
Автор

Great tutorial that included how to run tests. Thank you!

tinyhydrogreens
Автор

This video is good. To verify the response values, can we connect to DB and compare ??

sethuchiyan
Автор

Thanks Pramode. Helps me to recollect what i did.

siddharthamutyala
Автор

Thank you very much. This clip saves my day

thetukiet
Автор

You got a new sub. great video! Thanks for posting!

Sharmams
Автор

Great video bro.. please keep posting like this.

javedalam
Автор

Nice tutorial, thanks for share...

Greetings from Ecuador :)

EdiQ
Автор

Good job, dude. Helped me a lot. Thanks!

dmytroboiko
Автор

Hello, I want to test multiple POST APIs, and for that I want to send parameters using CSV... please help me....

surajbobade
Автор

Great Video. took a half day to get start running and create test suit. Great Work!!!

sneh
Автор

nice video it helps me a lot thank you

shrutisaraf
Автор

Thanks for sharing this awesome video because it's very helpful for me to learn API testing by Postman Client.

lalitarora
Автор

awesome. Much better than other basic introduction video

shuaizhou
Автор

Sir need your help on the following:

I tried to install npm from CMD prompt using "npm install -g newman" but got the following error message.

C:\Users\ADMIN>npm install -g newman
->
updated 1 package in 24.291s

Configuration of my machine is: AMD 3.60GHZ Processor, 8GB RAM, 64-bit WIndows 10 OS

sagarpardeshi
Автор

I am using windows, I installed NodeJS followed by Newman. I have API collections too (as you shown in your video)
I saved the API collection in a saperate folder. now I am trying to API collections using newman using normal command prompt window (not sure from which window I have to execute) but it is not successful and says unable to read the file.

GeektheGladiator