I am trying to mimic a scenario where I have mappings defined in json file with request and response and i want to inject variable delay. Variable delay is that i will pass a header with field "delay" and value anything like "20000" or "40000" which means 2sec or 4 sec and i want to use the header value in the "fixedDelay" attribute in the json mapping.
"fixedDelayMilliseconds" : "{{request.headers.delay \"type\":'NUMERIC'}}",
The problem is :- request.headers.delay contains string value and i am not able to convert to integer in json mapping.
fixedDelay attribute takes integer only.
What is the way to have variable delay inject from the postman request header ?