I have two requests (Lets call them R1 and R2). I am able to trigger them individually from POSTMAN. But my requirement is, when R2 is triggered, automatically R1 should be triggered first and then R2 should be fired.
Please help me achieve this.
P.S: I Googled about this problem and no where it is mentioned about how to trigger another request from pre-request script. All they are saying is you can run some code in pre-request script.
pm.environment.set("R1",pm.request)
pm.sendRequest(pm.environment.get("R1"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With