At the begenning of my experience on QArun, I was using the pauses, but then i've tried to use the events cause I don't know exactly how many time a page will take to be loaded (I test websites). So I began to use the wait function in order to be sure my page is loaded before to go on the tests.
But it seems to me that the wait fuction doesn't stop when the event is true but waits a little longer (maybe it's cause by the time parametre in the function itself?).
If anybody has any idea about how to do in order to make my tests quicker it would be great.
As u know that after every page gets downloaded properly a word called Done would be displayed at the bottom of the explorer(IE) at the status bar. U can insert an screen event to make the application wait until Done appears in the status bar
Ucan have three different run settings.
In the driver script insert a dialog box to accept what is the current scenario of the application whether it is running slow/medium/fast based on this u can set one of the settings defined. One settings would have been defined for Slow, other for medium and other for slow
In slow run setting set high wait time for object attaching and reduce this time for medium and fast options
For each and every page it would have been specified in the specifications that it may take between n1 and n2 seconds to load a page , give wait for n2 seconds +1 . But this would make ur script always to wait for the specific n2 seconds +1
Thank you so much for the answer. That's very kind of you.
So what you're telling me is that the wait function is not a "wait until the event is true" function?
I read the QArun Language Reference Manual and that's what I found for this fuction:
"This function causes the script to pause for the time specified by timeout or until the
events in the eventlist occur."
So what can I do to make a "wait until", should I use the function without any timeout?