Saturday, 10 April 2021

API Testing Interview question on Postman? what are API methods?

 


This is the fourth Set of API Testing Interview Question, for Set-01, 02 &03 refer below links.
 
Check below link for question and answers with code:

Top API Interview Question 1-10

 

1. What tool to use for API testing?

2. How to use Postman?

3. Collections and parameters in Postman?

4. Where to check status code and headers in Postman?

5. How to set global variable in Postman?

6. How to use authentication and authorization in Postman?

7. Check response meesage in Postman?t

8. How to download the response of a request using Postman?

9 How to use collection runner?

10. Cookies and Headers also we need to validate apart from status code and response body?

11. What type of status codes you have worked ?

12. Which one has the higher priority in Postman? A global variable or a local variable?

13: Whar are the types of workspace in Postman?

14. How to run the requests in collection for multiple times?

Ans: got to Collection Runner and define the number of times require to execute the requests in "Iterations" inputbox

15. How to give delay between iteration cycle in POstman while running collection?

Ans: Use the Delay inputbox, the default time unit is in ms.

16. What are the methods in API you have used?

Ans: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS 

17. How you get request details or end points in your project and test it?

Ans: Swagger or confluence and append your server address with request in Postman.

18. How to set up proxy in Postman?

Ans: Go to Settings--> Proxy-->Add a custom proxy configuration-->Provide Proxy Details

19. How to add certificates in Postman?

Ans: Go to Settings--> Certificates -->Import-->Add Certificate

20. What variables we have in POSTMAN?

Ans: Global and Environment


Download Postman:

https://www.postman.com/downloads/


API documentation:

- Excel Sheet

- Confluence Page

- Swagger

- URL


API Methods:

GET/POST/PUT/PATCH/DELETE-HEAD/OPTIONS


Story:TO EXPLAIN API METHODS

James Harper-Son-Charles H.(10)

Delhi-April

Bangalore-April 10th


Day-1:@school

Registration: (POST)

Name:

Age:

Address:

PhoneNumber:


Day2:@School

Charles

1. Admin get information about Charles (GET)

2. Data is wrong

Day3:J+C (PUT)

Name:

Age:

Address:

PhoneNumber:

Day4-----

Day-30 J+C (PATCH)

Address:


1year:

Bangalore to Delhi (DELETE)

SLC


HEAD=Get BUT without response body

OPTIONS

Components of an API:

https://reqres.in/api/users?page=2

Https:protocol

Reqres.in=server address/domain

/api/users?page=2: endpoint

www.reqres.in=host


https://learning.postman.com/docs/getting-started/creating-your-first-workspace/


Check below link for question and answers with code:

Top API Interview Question 1-10

*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions


1 comment:

All Time Popular Posts

Most Featured Post

Introduction to Web Testing with Playwright

  Introduction to Web Testing with Playwright 📌  Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl 📌  YouTube channel:  https://lnkd.in/gGUG...