Forum Discussion

srikanth2801's avatar
srikanth2801
Contributor
11 years ago

TC10 fails to Identify Afx Custom Controls

Hi *,



one of our tested application control is changed form systreeeview32 to Afx custom control.

(custom control information is attached).



Any object mapping that can help us to work with this custom control in the same way we worked with systreeview32.



3 Replies

  • hi gena, thank you for the reply.



    We have tried to object-map this custom control's "WndClass" & "ClassName " to Win32 Tree control.

    - When mapped using "WndClass", respective properties (wItems, wSelectedItem) & methods like ClickItem() of object class are added. But of no use. Properties are null/empty. Record/Playback yields only screen indexes of mouse clicks.

    - When mapped using "ClassName", No properties / methods of object class are added.



    and yes, with WndClass possible regular exp are been tried. But still the same.



    Any help is appreciated. Thank u.

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Srikanth,


     


    You can try mapping your customer controls (CTreeListCtrl) to the one officially supported by TestComplete. Refer to the "Object Mapping" article for details.


    If it doesn't affect the way TestComplete recognizes the control, you will probably need to create your custom script that will test the control via its native methods and properties. Please read the "Ways to Interact With Application Objects" article to learn more about this.