I have a recorded script for my web application load testing. In one of the HTTP requests, i need to check Response message for "Completed" status text. If Status is not "Completed" then i need to run a loop 5 times to check if status is "Completed".

I know about assertion where i can check for "Completed" status but not sure how to make HTTP request wait and check in loop for 5 times before it moves to next HTTP request. 

Any help would be appreciated. Thanks!