TestComplete Tutorial 17 - Object Browser

 Object Browser shows -

  • Running applications
  • The hierarchy of objects in applications
  • Object properties and methods
To open the Object Browser, click its tab or select View > Object Browser from the main menu -



If needed, you can move the Object Browser to another place within the TestComplete window, or make it a separate window using docking options.
  • Clicking on any running application from Objects panel, we can see the corresponding properties and methods used for application.
  • Selecting each property will give the Description in the bottom Description panel.
  • Also name mapping will also show for selected process in the top 'Selected Object' panel.
Exploring Object Hierarchy

The Object Browser panel lets you explore the hierarchical structure of processes running in your system.
Here is a general view of the hierarchy displayed in the Object Browser:


  • The hierarchical structure represents a tree with the Sys and Mobile objects as the top-level nodes.
  • Each main branch of the tree represents a process running in your system or a connected mobile device.
  • Processes are displayed with their appropriate icons. 
  • Processes that are listed in the Tested Applications collection are shown in bold font.
  • If you do not see a running process in the Object Browser, this means that the process and TestComplete have different security permissions. In order for TestComplete to be able to test applications , it must have the same permissions as the application under test. 
Storing Object Properties From Object Browser
  • The Object Browser lets you save the values of object properties to the Stores > Objects collection. 
  • You can save the properties of the object itself and, optionally, of its child objects. 
  • You can then use the saved data as a baseline for object checkpoints.
To save object properties, do the following:
  1. In the Object Browser:
    • Right-click the object in the object tree and select Store Object from the context menu.
  2. In the Object Spy: 
    • Select the object in your application or in the Mobile Screen window.
    • Right-click somewhere in the property list and select Store Object from the context menu.
Notes -
  • If your current project suite has two or more projects, select the project where you want to store the object data.
  • If the selected object has child objects, choose if you want to store the data of the child objects too.
  • Use the Store Object Properties dialog to select the objects and object properties you want to save to Stores.

Comments

Popular posts from this blog

TestComplete Tutorial 9 - Mouse Actions and Mouse Wheel Events

TestComplete Tutorial 19 - Adding Objects to the Name Mapping Repository

TestComplete Tutorial 14 - Object identification criteria in Name Mapping