| || |
I have been running some VT 6.5 scripts in a Lab environment for a awhile now and have always relied on WaitUntilIdle to help end transactions in cases where I am making changes in a Delphi programmed application grid and the only way (I know of) to end the transaction is to wait for an idle state.
We have been experiencing some reports of bad performance on our WAN with this application recently and we decided to package up a .pc6 version of the test file so that it could be used out in the field to measure performance.
The issue is that many of the machines we have tried this compiled script on will either not recognize or do not ever get to an idle enough state for WaitUntilIdle to work. I tested this on one machine with 10+ applications open and did not have this issue but on another with nothing at all running, except for the test app and the .pc6 script, and the test never could get past any WaitUntilIdle statements (there are quite a few of them in my test script...)
I have 2 questions about this: Does a machine require any libraries to run this function (MDAC?) and what is another good way to get the use of what this function does but with some other syntax?? I've tried lots of different do/while do/until loops without success...
Re: WaitUntilIdle Substitute
Below is mentioned in the VT Help:
"The test code must call the SetNotIdle statement before calling WaitUntilIdle."
Did you call SetNotIdle before WaitUntilIdle?
Also, WaitUntilIdle has a timeout value, so even if the application is not stable, it should go to next statement after the timeout time.
Hope this helps.