I'm wondering if there is a way for Ranorex to subscribe and react to events being fired by the application under test (without interfering with the normal functions of the app). For example, let's say I want to click on a button that will refresh a grid/table, or I want to open a form. I don't want to hard code a Delay because the amount of time to wait will vary depending on the amount of data. Is there a way for Ranorex to know that it should wait until the operation has completed? Or for Ranorex to listen in to events being fired by the app and then react to the event fired? Thanks in adavnce...
Jack.
Can we subscribe to events fired by application under test?
-
- Posts: 17
- Joined: Fri Feb 12, 2010 5:33 pm
Re: Can we subscribe to events fired by application under test?
How does the user know when the AUT is ready after an event?
Have Ranorex do the same thing. If there is a "working" text somewhere in the AUT have Ranorex wait until that text is gone. Or have Ranorex wait until the mouse cursor is no longer an hour glass... Etc...
Easiest is to mimic what a user needs to see to know that an operation has completed.
Have Ranorex do the same thing. If there is a "working" text somewhere in the AUT have Ranorex wait until that text is gone. Or have Ranorex wait until the mouse cursor is no longer an hour glass... Etc...
Easiest is to mimic what a user needs to see to know that an operation has completed.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 17
- Joined: Fri Feb 12, 2010 5:33 pm
Re: Can we subscribe to events fired by application under test?
Hi Ciege
Let's say that I take your suggested approach of waiting for some text somewhere to change...
Jack
Let's say that I take your suggested approach of waiting for some text somewhere to change...
How do i got about doing that? Do I check the status in a loop with a small delay period? Or, is there some built in mechanism that ranorex has that allows it to monitor a status bar for some string to appear? Thanks for your response,Ciege wrote:If there is a "working" text somewhere in the AUT have Ranorex wait until that text is gone.
Jack
Re: Can we subscribe to events fired by application under test?
You can write a small loop to do it.
For Example:
First, get the object that contains the "working" text.
Next, while the text = "Working" delay for 0500.
Check again.
Pseudo code:
For Example:
First, get the object that contains the "working" text.
Next, while the text = "Working" delay for 0500.
Check again.
Pseudo code:
Code: Select all
RanorexObject = Working_Object;
While (Working_Object.text = "Working")
{
delay 0500
}
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...