15 years ago
Test Complete does not remember variable definition
I am haing two problems with Test Complete 7.2
1. I have a function which has a variable defined for a form. I am using the variable at different places within the function. The first time I use the variable it works fine. But when the variable is used the second time I get an error mesg 'Object required'.
Here's the code
1. I have a function which has a variable defined for a form. I am using the variable at different places within the function. The first time I use the variable it works fine. But when the variable is used the second time I get an error mesg 'Object required'.
Here's the code
Set p1 = Sys.Process("CerberusNet")
Set w1 = p1.MainForm
Call w1.StripMainMenu.Click("Managers|Tool String Editor...") ------> Works over here
Delay 3000
Set w2 = p1.VBObject("frmSelect")
Call w2.VBObject("cmdCancel").Click
Call w1.StripMainMenu.Click("Managers|Tool String Editor...") ------> But at this line it gives me the exception 'Object Required' for w1.
I have had this script for a while and just started having problems yesterday.
2. For the script above, when Test Complete opens the "frmSelect", it would randomly not recognize the window. And when I checked the Object browser it had the name 'Window("ThunderRT6FormDC", "Select Tool String", 1)'.
I don't have 'Use Native Object' selected on my Project Properties.
Thank you.