Reuse {{$randomInt}} in Postman
问题 My 1st request is: GET http://example.com?int={{$randomInt}} . I need to run 2nd request (with other tests in it) to the same address, so I need to save generated variable. How can I do it? I was trying pm.variables.get("int") in the "Tests" sandbox after 1st request, but this code cannot see int var. Creating random number in Pre-req. sandbox to 1st request: postman.setGlobalVariable('int', Math.floor(Math.random() * 1000)); doesn't help either, because I need to use this param in the URL,