SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Classmapping in Open Agent gives Junk Characters

    Hi,

    I have tried to Classmap custom class "BCGPToolBar:400000:8:10003:10" to standard class "Toolbar" in Open Agent using following steps -

    1. update "plugin.xml" at "C:\Program Files\Silk\SilkTest\ng\agent\plugins\com.borland.f astxd.techdomain.win32.agent_11.0.0.4229\plugin.xm l" to add custom class mapping to standard class
    <windowclass name="BCGPToolBar:400000:8:10003:10" controlType="ToolBar"/>
    2. Open SilkTest Open Agent in Clean mode
    3. Restart AUT
    [Ref from: http://kb.microfocus.com/display/4/k...spx?aid=23492]

    But, when I try to start recording using SilkTest Open Agent, it gives all junk characters in Caption tag and Class Name is not displayed as shown below

    /Window[@caption='SPC[Project1]']//Control[@caption='&New']//PushToolItem[@caption='е艪&am p;#26733;砀谀ﱠ&amp ;#52040;д艤桭&#1 2288;谀灬ޑ&#6400 ; 艦桭 & amp;#35840;Ҹ']

    Any idea how to get this done.

    SilkVersion: SilkTest 2010 R2


    Thank You.

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    179
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Classmapping in Open Agent gives Junk Characters

    Hi,

    Class mapping means that the Open Agent treats the control as if it was a standard Win32 toolbar control. This means that it has to behave in the same way as a regular toolbar control, which works quite well for Visual Basic controls, or event Windows Forms controls.

    However, it seems that in your particular case the control does not understand one of the messages Silk Test is sending it or behaving differently, which results in junk being sent to Silk Test. Of course, Silk Test can't tell that's junk and forwarding it to you.

    Long story short, class mapping will only work if the target control behaves like the class you're mapping it to.

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Classmapping in Open Agent gives Junk Characters

    Hi,

    I have already mapped this custom class to standard "Toolbar" class using Classic Agent and every thing worked out well - was able to use all the methods defined for "Toolbar" class in my Script.

    At this point I want to investigate the usage of Silk Open Agent and want to implement the same as done in Classic to Open Agent.

    Any thoughts.

    Thanks.

 

 

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 08:01 AM.

Copyright BetaSoft Inc.