SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Sep 2001
    Location
    California, USA
    Posts
    164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Randomly selecting multiple items in a checklist

    With the assistance from a previous posting I was able to randomly enter account names, person names, etc. into my test script using the iSeed function.

    Now.....

    I am trying to to randomly select at least three items from a checklist where I can chose as many as 10 items. I want Silk Test to ramdomly select three items each time I run the test.

    In the Silk Test help I have found methods such as MultiSelect, SelectList, GetSelText. I am at a loss as to which route I should take. Can anyone lead me in the right direction as to which Silk Test Help section would assist me the most?

    I am using Silk Test 5.5.3. Thanks

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Randomly selecting multiple items in a checklist

    Select your items by item number and use the random methods to generate that number for you. Just loop through this three times, and you should select three items. You might want to put some checking in place to make certain you don't randomly generate the same number and attemtpt to select an item already selected. Just keep a list of already generated numbers and check against that list. Once you have made your three selections, destroy the list.

    You could do a list count prior to generating your random number and make certain the generated number does not exceed the list count.



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

 

 

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 09:18 PM.

Copyright BetaSoft Inc.