Saved Bookmarks
| 1. |
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}} |
|