Forum Discussion
Thanks for the response - yes, I have tried a delay. We have constant data being updated, so I actually have to use it in a couple places to give the data time to load.
I was just able to run the script, but I have no idea how. Then, all of the sudden, it stopped working again. And again, when I look at the items, it still shows that they are mapped to the names I am using in the scripts.
And just to make it more fun - when I can run the script, it only works as a stand alone function. I can't call it from my main program because I get the does not exist error. I don't know what the difference is there or if it is even related, but maybe it's helpful.
- dmiscannon9 years agoFrequent Contributor
Try adding the following command immediately after any delay. It will refresh the objects seen by TestComplete before continuing with the test. This command has the same affect as refreshing the display in the Object Browser.
Call sys.Refresh
- NisHera9 years agoValued Contributor
if you can not call from main programe , probably u r doing something at there whitch may delay, overlap or changing properties of your object. just try and see only calling your sub routine nothing else in main programe.
- Colin_McCrae9 years agoCommunity Hero
What language are you scripting in?
That may have an effect depending what you're passing in to get to the function that fails.
From here: http://support.smartbear.com/viewarticle/70308/
•JScript, C++Script and C#Script do not support functions that obtain parameters by reference
May have something to do with it?
And, as dmiscannon says, adding a sys,refresh just before trying to use the object may help.
Related Content
- 9 years agojbiss