Forum Discussion

iamraj09's avatar
iamraj09
Contributor
10 years ago

How to use Object Spy in Test Execute?

Hello Everyone,

 

I am trying to run the test cases on the Test Execute. On Test Complete which is on other system are running fine. But where as Test Execute has been installed on the different computer, and when I run these test cases we have problem. So I want to check the object structure on the system on which test execute is installed. So is there any way that we can use the object spy in Test Execute? If yes please guide me through the steps.

 

Thanks and Regards,

Guru.

  • sbkeenan's avatar
    sbkeenan
    Frequent Contributor

    Hi Guru

     

    Unfortunately, the Object Spy isn't available in TestExecute.

     

    If your tests are running on the pc on which you have TestComplete installed, I would suggest that you ensure that the pc on which TestExecute is installed is:

    - using the same version of your tested application;

    - is configured in the same way;

    - the screen display is the same resolution (hopefully you're not using screen coordinates in your tests).

     

    Regards

    Stephen.

    • Ryan_Moran's avatar
      Ryan_Moran
      Valued Contributor

      It is possible to create a sort of object spy from Test Execute by creating a UserForm with a TObjectPicker.

      You would then add an event handler for the TObjectPickers OnObjectPicked event and reference the object via the PickedObjectName property. You can then use .Find or .FindAll from your event handler, searching by object full name, to get a reference to the object itself if you require any additional properties.