vijay6105
12 years agoContributor
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
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