How to repeat actions until a status is met
Posted: Mon Mar 31, 2014 6:28 pm
Hi there,
I am new to Ranorex and still evaluating the product. (looks good so far). I will try to explain this as clearly as possible.
I have a situation where I need to trigger a 'job' within an MMC application console. I want to be able to wait until the job has completed to validate the status and determine whether it was successful or not.
However as this is in an MMC window the status field does not automatically refresh and so teh refresh action needs to be clicked.
I can identify all of the fields but am unsure of how to do the 'loop' I guess this is a C# Question rather than Ranorx. I have tried googling for a solution but most of this covers how to repeat actions a set number of times and or for a number of rows etc.
I believe the following steps are required:
right click, start job
Click Refresh action
check status field -
- if 'status is running' click refresh again, check status again
- if status is 'Idle' - Job was successful - do something else
- if status is Failed - Job failed - do something else
Any advise would be very much appreciated
Many thanks
I am new to Ranorex and still evaluating the product. (looks good so far). I will try to explain this as clearly as possible.
I have a situation where I need to trigger a 'job' within an MMC application console. I want to be able to wait until the job has completed to validate the status and determine whether it was successful or not.
However as this is in an MMC window the status field does not automatically refresh and so teh refresh action needs to be clicked.
I can identify all of the fields but am unsure of how to do the 'loop' I guess this is a C# Question rather than Ranorx. I have tried googling for a solution but most of this covers how to repeat actions a set number of times and or for a number of rows etc.
I believe the following steps are required:
right click, start job
Click Refresh action
check status field -
- if 'status is running' click refresh again, check status again
- if status is 'Idle' - Job was successful - do something else
- if status is Failed - Job failed - do something else
Any advise would be very much appreciated
Many thanks