• +91 9723535972
  • info@interviewmaterial.com

Postman Interview Questions and Answers

Question - In Postman, how will you create random integers in a particular range?

Answer -

If you want to create numbers in the range of 1 to N, you can do so as follows in the pre-request script:

pm.globals.set('randomnumber, Math.floor (Math.random() N));
We can then utilise this variable in the URL as

{{randomNumber}}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners