I use pre-request script for each request. Script updates request body and headers.
When I send request or run collection pre-request script updates body. but it does not work for performance mode.
In pre-request I used pm.request.body.raw =, and set actual body to variable (global, environment, collection). None of these methods worked.
How I can set ‘unique’ request body for performance mode?
Hi @orbital-module-tec10. Welcome to the Postman Community!
Pre-request and post requests scripts should work in Postman’s performance testing environments. How are you able to ascertain that pre-request scripts are not working? It may be helpful to share more information about what you’re trying to update specifically, what you expect to see when you run the performance tests vs what you see.
This can help us understand the problem much better and provide helpful recommendations.
During performance test I try set unique value in body for each request (using pre-request).
But postman sent the same request body
If I send request manually or in collection run, code in pre-request is worked