In my application, I need to run batch process. Once I submit the process, I need to keep clicking the button “Refresh” until a field (status field) displays the value “Success”. I was looking at “Do…while|until “ but I could not figure out. I can also request QTP to wait for certain time but the time taken for each process to run is different.
Here is a function that I wrote for a batch process. You'll have to edit for your uses, but what it does is click refresh every minute, outputs a table and if the end date (meaning the batch is completed) is not blank, it exits. I put a max of 15 minutes.