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
    Jun 2001
    Location
    Mountain View, CA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to Create a new class for Window Identifiers in Silk Test.

    Please,share your experience in creation of New Classes. I'm interested in creation of
    new class of Identifiers.

    Example:

    STRING sStr
    List Of String lsStrings = {...}
    "Btn_1"
    "Btn_2"
    "Btn_3"

    for each sStr in lsStrings
    window.sStr.Click()

    //Note: Btn_1,2,3 are Identifiers in window declaration.

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

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Create a new class for Window Identifiers in Silk Test.

    Hi Archi,

    To create a new winclass is quite straightforward, but from your post it looks as though you wish to dynamically reference the buttons. To do so you need to use the reference operator (@).

    [ ] string sButton
    [-] list of string lsButtons = {...}
    [ ] "Btn_1"
    [ ] "Btn_2"
    [ ] "Btn_3"

    [-] for each sButton in lsButtons
    [ ] MyWindow.@(sButton).Click ()
    [ ] // Code to return to MyWindow

    Alternatively you could try,

    [ ] string sButton = "Btn_"
    [ ] integer i

    [-] for i = 1 to 3
    [ ] MyWindow.@(sButton + {i}).Click ()
    [ ] // Code to return to MyWindow

    I hope that this helps,

    John.



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

    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Location
    Mountain View, CA
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Create a new class for Window Identifiers in Silk Test.

    Thanks, it was helpful.

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

  4. #4
    Member
    Join Date
    Jun 2001
    Location
    Berkeley, CA, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Create a new class for Window Identifiers in Silk Test.

    There is another way you can access the control:

    MyWindow.PushButton(sStr).Click()

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


    [This message has been edited by Bruce Cummins (edited 06-26-2001).]

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:59 PM.

Copyright BetaSoft Inc.