Forum Discussion

vijay6105's avatar
vijay6105
Contributor
12 years ago

Object names are not displayed properly in Object Browser

Hi



I'm using TestComplete 9.2v, i'm facing a problem frquently while opening and running an application. Object names are displayed differently in different times for the same object



Eg.;



1.  Sys.Process("RobotStudio").WinFormsObject("MainForm", "ABB RobotStudio 5.15.01 (64-bit) [Internal build]")



2.Sys.Process("RobotStudio").Window("WindowsForms10.Window.8.app.0.2eed1ca_r25_ad1", "ABB RobotStudio 5.15.01 (64-bit) [Internal build]", 1)



Here 1 and 2 refer to the same object but after Sys.Process("RobotStudio") in the heirarchy in 1 it is showing WinFormsObject and in 2 it is Window also this 'WindowsForms10.Window.8.app.0.2eed1ca_r25_ad1'  structure is displayed.



In my scripting i'm referring objects with names like in 1 which is the expected object name but because object browser showing same object as in 2 which is not matching in this case. it says object not found error



one thing I found is sometimes application is launched and running background but not displayed in the desktop taking time to come up on the screen.



Can any one provide a solution/setting from testcomplete to map the objects using names  like WinFormsObject("MainForm", "ABB RobotStudio 5.15.01 (64-bit) [Internal build]") but not like Window("WindowsForms10.Window.8.app.0.2eed1ca_r25_ad1", "ABB RobotStudio 5.15.01 (64-bit) [Internal build]", 1). this change is coming for all other objects also in the application

1 Reply


  • Hi Vijay,


     


    For some reason, it looks like TestComplete stops recognizing your app as Open. A possible cause of the problem is that some complex actions which take long to be completed are performed in the application's GUI threads when the application is started (the application's main window may become blank or unresponsive in such cases). Try increasing the Method invoke timeout option described in the "Project Properties - General Open Applications Options" article - set its value to more than 30000ms.