DEV Community

Cover image for Using Postman like a PRO with these tricks ๐Ÿ˜Ž

Using Postman like a PRO with these tricks ๐Ÿ˜Ž

Jonathan Brizio on November 15, 2019

In these last months, I learn a lot about this great tool that allows me to speed up and optimize my workflow reducing time on repetitive tasks. ...
Collapse
 
liyasthomas profile image
Liyas Thomas • • Edited

This is helpful ๐Ÿ‘
We're building 100% Open sourced (6,000+ stars on GitHub), free, online alternative to Postman.
It's named Postwoman. (postwoman.io)

Read more about it here:

Collapse
 
jonathanbrizio profile image
Jonathan Brizio •

Hi Liyas, thanks for you words.
I will take a look, thanks for share with us.
Keep rocking!๐Ÿค˜

Collapse
 
dmdesai_ profile image
Div •

How can I create test-cases and automate it with Jenkins using Postwoman?

Collapse
 
pavelloz profile image
Paweล‚ Kowalski •

Usually you would use test framework for that, not http client.

Thread Thread
 
liyasthomas profile image
Liyas Thomas • • Edited

Yeah! There's lot of amazing tools like Cypress, Jest, Ava etc.. Postwoman uses and suggests Cypress because it's community is amazing.

Collapse
 
liyasthomas profile image
Liyas Thomas •

A cli is in WIP. Will rollout as soon as possible.

Collapse
 
hey_yogini profile image
Yogini Bende •

One of my favorite tricks is to save the URL of API in a postman collection variable. In our current project, we use a temporary API link that changes with every deployment, so we can just copy-paste that URL into the variable and use the same for all APIs in a collection.

This is kind of similar to your first trick, but yes, that does save a lot of time and extra effort!! And thanks for these tricks. Got to learn something new!

Collapse
 
jonathanbrizio profile image
Jonathan Brizio •

I use that at diary too.
Another trick is duplicate tabs when you need to replicate the same config for a new one.

Thanks for your words Yogini!

Collapse
 
kj2whe profile image
Jason •

Thank you for the automatically setting of the environment variable, didn't know that was a thing. I was gonna add Did you know you could put comments in your json body like so...

{
    //  Blah blah blah...
    "Property1": "value",
    "Property2": "other value"
}

but then I realized, you know, you can save those comments in the Add a description part underneath name??

oh well... :)

Collapse
 
karataev profile image
Eugene Karataev •

Thanks for the tip with env variables, I didn't know that ๐Ÿ™
I really like postman collections. It helps to organize API requests with predefined
parameters in groups for instant access and easily share them with co-workers.

Collapse
 
francofadini profile image
francofadini • • Edited

Mocking is an other great feature ! I was able to mock an entire API. This allows me to develop a full app without the need of the backend at all

Collapse
 
jonathanbrizio profile image
Jonathan Brizio •

Yeap, totally agreed with you Franco. Mocks are really useful to speed up our development.