Forum Discussion

ahackmann's avatar
ahackmann
Occasional Contributor
14 years ago

Object Spy from TC 8.7 Project has no access

Hello,



first my Configuration:

TC 8.70.717.7 with Windows 7 64bit.



In my existing Project Suite i have 2 Projects. One created with TC 8.7 and the other created with TC 8.5. So when i try to access to the Objects / items of a window with the Object Spy it does not work with the Project created with TC 8.7. When I change to the Project created with TC 8.5 I can access to all Items and childs of the window. I used the same scripting language (jScript) for both projects.

Anyone has in idea? Maybe Changing Object spy settings which i can not find or something like that?



Thanks in advance!





Best Regards



Andreas
  • Hello Andreas,


    Could you please explain what exactly you mean by "So when i try to access to the Objects / items of a window with the Object Spy it does not work with the Project created with TC 8.7"?

    Do any errors occur?

    Does the Object Spy Window not appear?

    Cannot you select your tested application's controls with the Drag or Point and fix tools?

    Are the controls you select with the Object Spy tools highlighted incorrectly or not highlighted at all?

    Cannot you access your tested application's controls in the objects tree displayed by the Object Browser panel?


    Thank you.

  • ahackmann's avatar
    ahackmann
    Occasional Contributor
    Hello Julia,



    thanks for your answer. I try to explain the problem a little more detailed. I have no problem with the Object Spy directly. No Error occurs and no Application freeze or something like that.



    In the attached screenshot i hope you can see what my problem is. In both cases i used TC 8.7 and both Projects are located in the same Project Suite.

    The first screenshot shows the Project which was created (before a half year) with TC 8.5 and here the ChildCount of the Object is "2". It is a DropDownMenu with a cell and an open button. In the other Screenshot the ChildCount of the Object is "0". This project was created with TC8.7.



    I only switch between the two projects in the same Project Suite and one Object Spy/ Object browser (from the TC8.5 project) has access to the childs and the other project (created with TC8.7) has no access to these childs. The tested application is exactly the same in both cases. I tried some more projects which were created with older Versions from TC and they all can access to these childitems. Maybe its a bug for Projects which were created by TC8.7? I can not remember that properties for the Object Browser can be changed within the same Project Suite?!



    Thanks in advance





    Best Regards



    Andreas
  • Andreas,


    Thank you for the details and screenshots.


    According to your screenshots, in your earlier project you are using MSAA to expose the tested application's controls. In your newer project using MSAA for exposing controls is disabled (by default).


    To enable exposing controls with MSAA in your newer project, please follow the instructions below:

    1. Right-click your newer project in Project Explorer and select Edit | Properties in the context menu.

    2. In the list to the left of the ensuing Properties page, select Open Applications | MSAA.

    3. Click Add and add the classes of controls you want to expose with MSAA to the list of accepted windows (you can view the list of needed classes in your earlier project). Enable the check boxes to the right of the added class.

    4. Save the changes.


    If you want to use MSAA for exposing controls in all projects you create, you need to modify Default Project Properties.

    To do that, please select Tools | Default Project Properties from TestComplete's main menu and then select Project | Open Applications | MSAA from the tree to the left of the ensuing dialog.

    Add the desired classes to the list and click OK to save the changes.


    To learn more about using MSAA in TestComplete, please see the Using Microsoft Active Accessibility Help topic.


    Please let us know if that does not help or if you need any more assistance.

    Thank you.

  • ahackmann's avatar
    ahackmann
    Occasional Contributor
    Hi Julia,



    you were right. Using MSAA for exposing controls was disabled. I changed the settings and everything works fine. Thank you for your fast and professional support!





    Best Regards



    Andreas
  • spothu's avatar
    spothu
    Occasional Contributor
    hi,



    when i try to spy any object on my application then it throws exception as in video. It also happens when i try to record anything on that particluar object.




     Im using test complete 8.70 version. And this behaviour is appearing only on windows 2008 x64 O/S. On other operating systems, teh application wont throw any exception but teh application is not responding whenever we try to spy or record action.




    Please let me know if its related to anything else.(I have checked in all MSAA options same as in my old project which was created in TC 6.5)




    Thanks,





    somi










  • Hello Somi,


    Could you please check whether the same issue with your problematic control occurs if you try to perform any actions over it without running TestComplete?


    Also, we would appreciate it if you followed the steps below to help us get some information on what is happening in your application when the issue occurs:

    1. Download and install a free trial version of AQtime, which is our profiling tool, from our web site:

    http://smartbear.com/products/qa-tools/application-performance-profiling/free-aqtime-pro-trial.

    2. Start AQtime.

    3. Select File | New Project from AQtime's main menu.

    4. Select Project | Add Module from AQtime's main menu. The Open File dialog will appear.

    5. In the Open File dialog, select the executable of your tested application and click Open.

    6. Select the Tracing | Exception Trace Profiler item from the combo box in AQtime's toolbar.

    7. Select Options | Options from AQtime's main menu. The Options dialog will appear.

    8. Set the Profiling Time | Event View | General | Exceptions | Depth shown setting to 100 and click Ok.

    9. Click the Run toolbar button (the green arrow) or press F5 to start the profiling.

    10. AQtime will start your application and trace all the exceptions that will occur in it.

    11. Start TestComplete and reproduce the problem.

    12. After the problem occurs, right-click somewhere within the Event View panel (it is opened by default at the bottom of AQtime's window) and select Save All from the context menu.

    13. Save the panel's contents to an HTML file and send it to our Support Team via this Contact Support Web Form.


    Thanks in advance.