The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Borland/Segue SilkTest

Pages: 1
SilkTestQA
Newbie


Reged: 10/05/11
Posts: 6
Classmapping in Open Agent gives Junk Characters
      #715649 - 08/31/12 12:21 AM

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.fastxd.techdomain.win32.agent_11.0.0.4229\plugin.xml" 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/kb/article.aspx?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='&#58184;&#1077;&#33386;&#26733;&#30720;&#35840;&#64608;&#52040;&#1076;&#33380;&#26733;&#12288;&#35840;&#28780;&#1937;&#6400;&#12288;&#33382;&#26733;&#12288;&#35840;&#1208;']

Any idea how to get this done.

SilkVersion: SilkTest 2010 R2


Thank You.


Post Extras: Print Post   Remind Me!   Notify Moderator  
tehlexx
Member


Reged: 07/03/08
Posts: 179
Re: Classmapping in Open Agent gives Junk Characters [Re: SilkTestQA]
      #715667 - 08/31/12 04:15 AM

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.


Post Extras: Print Post   Remind Me!   Notify Moderator  
SilkTestQA
Newbie


Reged: 10/05/11
Posts: 6
Re: Classmapping in Open Agent gives Junk Characters [Re: tehlexx]
      #715669 - 08/31/12 04:34 AM

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.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 10 anonymous users are browsing this forum.

Moderator:  AJ, jamesso, DJGray, David Reed 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2099

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5