How to use random values in Postman

Supakon_k
Dec 11, 2021

--

Today I will show you how to use random values in postman for example. I will use JSONPlaceholder — Free Fake REST API (typicode.com) to test the API.

For example:

when press double curly bracket and dollar sign {{$}} postman will show autocomplete suggestion. There are lots of random things you can use.

Now, I random in title and body like this.

output when sending a request the first time.

output when sending a request a second time.

You not only use random in the body it also uses in URL, params, header, etc.

For example:

I will use a random URL like this.

Conclusion

Postman has a lot of benefits for API automated testing you should learn more. thank you for reading.

--

--

Supakon_k
Supakon_k

Written by Supakon_k

Software Engineer & Freelancer from Thailand.

No responses yet