Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Handle to main window different between TestComplete and TextExecute

$
0
0

When building our scripts, I use the following to get to the main window of our app in TestComplete:

 

TestedApps.OurApp.Run();

ourApp = Aliases.OurApp;

hwndSource = ourApp.HwndSource_MainWindow2;

 

Running this script in TestComplete works on multiple machines. Note that ourApp.HwndSource_MainWindow appears to be to a dialog box, just in case anyone was curious why it is MainWindow2.

However, when I try to run these same scripts through TestExecute, I receive a runtime error indicating:

 

'HwndSource_MainWindow2' is null or not an object.

 

I did notice that we are running TestComplete 10.6 and our TestExecute version is 10.3. I wouldn't think this would be the issue, but we are currently downloading and transferring the executable to our dev network to see if this might be the problem. In the meantime, I wanted to see if anyone else had any input on why the windows handles might be different between the two apps.

 

Thanks.

 

-Ron


Viewing all articles
Browse latest Browse all 21061

Trending Articles