Hello experts !, I’m trying to mimic a scenario where the end-user accidentally clicks the button twice & request is sent twice !!
try to achieve: sending the same request again after checking the response code.
problem/issue : the console.log within the “if block” gets printed but it seems that the same request is NOT send …
my (simple) logic example in Post-response:
if(pm.response.code == '404') {
console.log('resending !!');
pm.execution.setNextRequest(pm.info.requestName);
console.log('sent')
}
so basically, the console logs are just printed but it seems the Postman is NOT setting the next request to itself …
can someone please rectify my logic here?