if i run this, its request body is correct but response body doesn’t take any data from it like its empty. if i put the exact same request body into a new http request not in tests, it works. why is that?
I suspect that you need to JSON.parse() your global variable. Otherwise it will just be treated as a string.
const x = JSON.parse(pm.globals.get("vse"));
Although does this really need to be a global variable available to all of your collections in Postman. Wouldn’t a collection or environment variable be a more suitable scope.
The data in the screenshots is the same. The only difference is that the first is showing the JSON as minified, and the other is beautified. But the JSON has the same key/value pairs.
If you take a close look at the response body of both, you will see the first image takes default text and doesn’t take data from request body but the second one does. You see where it says “name”: … or “price”: … in the response body.