![]() API testing is one of the essentials skills for software testers. I have learnt Postman from the first 2 links. HTTP Status Codes – Udzial – my Other post about Status code related to API and questions are often ask in interview for this.Īs a tester we should be aware about the major codes that we face while testing APIs Where to learn Postman? or where to start learning API testing? (Right click on this image and open in new tab to see the details properly) Postman Mindmap Some of the things related to Postman are only present in mind map and not above Parsing Json Response in Postman What are some inbuilt functions provided by Postman APIs which can help in our tests? Postman Global APIs functions What is the way to run all APIs together from Postman UI? Collection Runner in Postman What is a mock server and where can it help ? mock server in Postman Full mind map for POSTMAN This would help a lot if the response you are dealing with is a Json. ![]() How to deal with json response in Postman? Pm.expect(pm.cookies.has("VstsSession")).to.be.true Pm.expect().to.be.an("array").that.is.empty Pm.expect(pm.response.json()).to.be.an("object") Pm.expect(pm.response.json()).to.be.an("array") Pm.expect(pm.("Content-Type")).to.eql("text/html charset=utf-8") Pm.response.to.have.header("content-type") Pm.expect(pm.response.text()).to.include("lastname") Pm.expect(pm.response.responseSize).to.not.equal(0) Pm.expect(pm.response.responseTime).to.be.above(199) Pm.expect(pm.response.responseTime).to.be.below(25000) Pm.expect(pm.response.status).to.equal("OK") Pm.expect(parseInt(bookingID)).to.be.a("number") Pm.expect(res.totalprice).to.be.below(500) Pm.expect(res.totalprice).to.be.above(100) Pm.expect(res.lastname).to.not.equal("Jonesa") Pm.test("Token must not be null",function() Pm.expect(jsondata).to.have.property("token") Pm.test("REsponse should contain the key 'token",function() Newman run collectionJsonFileName Newman in Postman What are some assertions/tests that can be applied on response? Newman has few additional features which even Postman does not have. Newman provides the way to learn your API suite(Collections) without opening Postman. Pm.tests("testing title",function() ) How to run APIs via command line ? Tests = de = 200įunctional method with the name given to test method ![]() Pre-Requisite script runs before the request and Tests run after the requests Sandbox in Postman What are tests in Postman? It provides you a way to write code inside Postman. ![]() What all things API Response Contains? API Response Major components What are headers in Postman? Headers in API Where to see logs for the request run? Console in Postman can show these things Why and when to use collections in postman ? Postman-collections (Test Suite Concept) What are the various kinds of variable in Postman? All types of Variables in Postman What is Postman Sandbox? Postman Major Features What are some API basics? API Basics What to remember about the Request? Requests in Postman What are some key features of Postman (related to APIs)? Note :- if you find any mistakes in my Postman tutorial notes, do comment, or ping me on LinkedIn, I will correct it. If you don’t have any idea about API testing / Postman, you can scroll through and go to last and see the tutorial to get started with API testing via Postman You can use the below notes to revise the things you have already learned and not using Postman for some time. The official sites define Postman as – The Collaboration Platform for API Development This tool is used for learning and doing API testing though it has various features. Reading Time: 5 minutes This post contains my Postman tutorial notes that I have created while learning the Postman tool. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |