• +91 9723535972
  • info@interviewmaterial.com

Postman Interview Questions and Answers

Question - How will you generate random numbers of a given range in Postman?

Answer -

Suppose you want to generate numbers between the range 1 to N, then it can be done in the pre-request script as follows:

pm.globals.set('randomNumber', Math.floor(Math.random() * N));
We can then use 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