SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    get value from OCX-Controls

    Hi,
    In our software we use some OCX controls from softel. Testcomplete is able to find and enter some values into the fields, but If i want to check if the value is correct entered, i not able to get the value.

    for normal Editbox i get the property "wText" but for OCX Edit Boxes I get no property.

    Has anybody experience with TC 5 and OCX control's?
    Can I get the entered values?

    Thx for help

  2. #2
    Senior Member
    Join Date
    Oct 2003
    Posts
    928
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: get value from OCX-Controls

    Hello Leutek,

    The wText property is provided by the Win32Edit scripting object. If the text box used in your application is compatible with a standard Win32 edit control, you can associate it with the Win32Edit object. To do this, please follow the steps below:

    - Double-click your project in the "Project Explorer" panel to open the project editor panel.
    - Open the Properties page by clicking the "Properties" button at the bottom of the project editor panel.
    - Select the "Object Mapping" option group.
    - Select the "Edit box" item in the control list.
    - Click the "Add Class Name" button and add the class name (the WndClass property value) of the text box to the list.

    Please let me know whether this helps.
    Regards,
    Alex - SmartBear Support

  3. #3
    Junior Member
    Join Date
    Jul 2007
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: get value from OCX-Controls

    Hi Alex
    thx for the good hint.
    it works, but still not for all object types, it is tricky to find out which OCX-Object type belongs to which Win32 object.

    perhaps I need later some more clarification.

  4. #4
    Senior Member
    Join Date
    Oct 2003
    Posts
    928
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: get value from OCX-Controls

    Hello Leutek,

    When you perform actions with a control, the operating system sends Windows messages to the control window. TestComplete catches these messages when recording a script. Standard Win32 controls react on specific messages and, to simplify working with these controls, TestComplete provides special scripting objects that can be associated with the controls. Methods of these scripting objects are used to send specific messages to the controls. If a control is not compatible with a standard Win32 control, it may not properly respond to messages sent by TestComplete and, as result, methods and properties provided by the scripting object associated with the control do not work. Please see the "Working With Win32 Controls" help topic for more information.

    Unfortunately, there is no universal rule to determine whether a control is compatible with a standard Win32 control. The only way is to associate the control with a TestComplete scripting object and check if methods and properties provided by the object work.
    Regards,
    Alex - SmartBear Support

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:47 PM.

Copyright BetaSoft Inc.