dudu
15 years agoNew Contributor
TestComplete & TestExecute use different name for a method on a specific window
Hi,
I have encountered a weird problem when I was trying to Run a script I wrote in TestComplete using TestExecute. The script checks if a certain window is opened and if it does, then it calls "MyWindow.ClickButton" method. However, TestExecute doesn't recognize the "ClickButton" method but recognizes a "Click" method instead. To make things even more bizarre, I have another condition in the same script that does exactly the same operation on this particular window, but this one recognizes the "ClickButton" method and not the "Click" method!
* TestComplete recognizes both methods.
Of course this is critical, with large scripts and functions it will be impossible to check them all and see if TestExecute is using the exact same names given by TestComplete.
Any ideas to what is the cause and how to solve it?
I have encountered a weird problem when I was trying to Run a script I wrote in TestComplete using TestExecute. The script checks if a certain window is opened and if it does, then it calls "MyWindow.ClickButton" method. However, TestExecute doesn't recognize the "ClickButton" method but recognizes a "Click" method instead. To make things even more bizarre, I have another condition in the same script that does exactly the same operation on this particular window, but this one recognizes the "ClickButton" method and not the "Click" method!
* TestComplete recognizes both methods.
Of course this is critical, with large scripts and functions it will be impossible to check them all and see if TestExecute is using the exact same names given by TestComplete.
Any ideas to what is the cause and how to solve it?