SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Feb 2002
    Location
    Chennai,TN, India
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Capturing .NET Controls in SilkTest 6.0

    Guru's,

    I've an application in .NET. When recorded
    with Window Declarations in silktest 6.0, all the controls are displayed as Customwin. I had Class Mapped for treeView,ComboBox,ListBox etc in the application..For other controls Class mapping for PushButton,RadioButton and CheckBox cannot be differentiated from one another. How Can it be differentiated and captured. Kindly pls help.

    ------------------


    [This message has been edited by man20013 (edited 11-19-2002).]
    R. Sriram

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    Right now you can't.... Even the style bits are the same. Segue has said that they will be working on .NEt support next year. In the mean time you have to treat these items as custom and write methods to deal with them.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Location
    Chennai,TN, India
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    Thank u! James for the reply!!!




    [This message has been edited by man20013 (edited 11-19-2002).]
    R. Sriram

  4. #4
    Member
    Join Date
    Oct 2001
    Location
    Cupertino, CA, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    Hi

    Try mapping the custom win with BUTTON in its identifier to the BUTTON class. This will take care of the push button case as well as the checkbox case. You can now use regular pushbutton and checkbox class member functions of Silk. This worked when trying to automate a .NET app under Silk 5.5. Hope that this helps

    ------------------

  5. #5
    Junior Member
    Join Date
    Feb 2002
    Location
    Chennai,TN, India
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    Hi adamn,

    thanks for the reply,
    i had tried with mapping the button
    with pushbutton class, the checkbox button
    also changes itself to pushbutton class,
    when using the methods for checkbox class, it results in error.
    [-] Checkbox CheckBox1
    [-] multitag "checkBox1"
    [ ] "$197284"


    The above code i rewrote as

    [-] PushButton CheckBox1
    [-] multitag "checkBox1"
    [ ] "$197284"
    is it correct or any other modifications need to be done...pls reply.
    R. Sriram

  6. #6
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    I see people place the single declaration with the tag on the same line, like above:

    ComboBox ComboBox1 {tag "$11600494";}

    But when I do it, I always get a syntax error. Why is that?

  7. #7
    Member
    Join Date
    Oct 2001
    Location
    Cupertino, CA, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    This may help. This is how I was able to get a .NET combo box to work. The same trick applys to push buttons also.

    When we first start off, this is what Silk reports what the combo box looks like when using the windows declaration feature of Silk

    Figure #1

    CustomWin WindowsForms10COMBOBOXApp11
    {
    msw tag "[WindowsForms10.COMBOBOX.App1]$1573248;
    TextField TextField1 {tag "$1001";}
    }


    Since we know that the above declaration is indeed a combo box, we issue a class map to it. After following the steps to do a class map within Silk, the windows declaration now sees the combo box as follows:

    Figure #2

    ComboBox ComboBox1 {tag "$11600494";}


    However, we are not done yet. During our phone conversation today, you noticed that the id tags were changing. So to fix this problem, you suggested using the record window identifer feature of Silk. This is the result

    Figure #3

    DialogBox("RegressionTest").ComboBox("#1|$11600494 ")

    Since the id is a multi tag, either #1 or $11600494 could be used to identify the combo box. Since the $11600494 is what Silk is having trouble with, modify figure #2 with

    ComboBox ComboBox1 {tag "#1";}

    The above solution means that I don't have to write custom code for the combo box. This also means I can use the same trick for other CustomWins that Silk reports (ie push buttons and check boxes).


    ------------------

  8. #8
    Member
    Join Date
    Oct 2001
    Location
    Cupertino, CA, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Capturing .NET Controls in SilkTest 6.0

    Kchan

    I don't see why you would get an error. The solution that I posted with the combo box works. What version of Silk are you using? I was using Silk 5.5 SP1.

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 05:56 AM.

Copyright BetaSoft Inc.