The Postman Cheatsheet & Quick Reference Guide (2021)

Hey community,

I have created a document called Postman Quick Reference Guide, which is practically a collection of things I often stumble upon while using Postman and need a quick answer to.

This is still kind of work in progress, but inside you will find:

  • Cheatsheet with most important methods for writing scripts and tests
  • Simple solutions to common problems
    • Request creation
    • Assertions
    • Workflows
    • Newman

You can **download this for F R E E ** (no email / registration clickbait) by clicking the image below:

2018-02-15_19-46-39-1bb3dab1095a471c7ffdc51d3e796637

Alternative online version

I hope you find this useful!

PLEASE let me know what you think about the Postman Quick Reference Guide, if and how it helps you be more productive and efficient while using Postman.

If there is anything missing or if you have any suggestions on how to improve it, just let me know.

22 Likes

Nice Job !!! Thank you very much !!!

1 Like

Awesome! Thank you for sharing this with the community @vdespa. I am tweeting this out from my account. :slight_smile:

1 Like

This is fantastic! Great work @vdespa

1 Like

Good stuff. Missing a couple of closing single quotes:

  • page 4
    pm.response.to.have.body(’{“success”=true});
    should be
    pm.response.to.have.body(’{“success”=true}’);

pm.expect(pm.response.text()).to.include('Order placed.);
should be pm.expect(pm.response.text()).to.include(‘Order placed.’);

pm.expect(jsonData.name).to.eql('John);
should be
pm.expect(jsonData.name).to.eql(‘John’);

If I find more typos, I’ll post here. Great stuff indeed. helps not having to wade through all the docs.

1 Like

Thanks for pointing them out. I will fix them with the next release.

Such a useful reference!

Wanted to chime in on one bit. There are indeed super-local variables like var variableName = variableValue; that can be used within the script where it’s declared.

There’s also local variables with setters and getters available only via the pm.* API:

pm.variables.set("variableName", variableValue);

pm.variables.get("variableName"); // can also be used to get other variable types

These local variables can be used to save state within the same request (e.g. pre-request to test script) and also throughout the same collection run. That means that you can use a local variable to save state throughout a collection run without doing any teardown / clearing / unsetting at the end, and you don’t have to worry about polluting any namespaces.

The official Postman documentation about this is not very clear. We are working on this, as well as other stuff about variables in general.

1 Like

Yes you are right. I will update the guide to reflect that. It took me a while to understand what local variables are :smiley:

I have done similar thing for a excellent IBM product , needless to say this is excellent work done by Valentin. Kudos Valentin.
Cheers
K.thulsi

1 Like

Thank you all for your input. I have just made some improvements and released a new version. Enjoy.

1 Like

Wonderful! It is really helpful to have this type of manual. I appreciate it a lot. With your permission, I will promote it in my area https://populationstat.com/canada/vancouverand among my friends. I hope you have nothing against this idea. And once again, many thanks for your assistance with this matter. I believe everybody agrees with me here.

1 Like

Thank you @vdespa for sharing your knowledge. I am huge Fan of you.
God Bless you! :pray:

3 Likes

Thank you very much @vdespa
documented very nice way, much appreciated your hardwork towards the community

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.