SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Apr 2003
    Location
    Bellevue, WA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    loop a testcase X number of times

    Forgive me, I am new to SilkTest.

    Can someone provide a bit of sample code, executing a testcase or group of testcases, 10 times?

    tia



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

  2. #2
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loop a testcase X number of times

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sks04:
    Can someone provide a bit of sample code, executing a testcase or group of testcases, 10 times?
    <HR></BLOCKQUOTE>
    Hi,
    Write a function, which will call the testcase in the loop... Call this function from main function...


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  3. #3
    Member
    Join Date
    Apr 2003
    Location
    Bellevue, WA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loop a testcase X number of times

    Yes, that is what I'd like to do...but I don't know much about the 4test scripting language...I'm a VB hack. I have an eval version of SilkTest 6, and don't have access to support Docs(until May 1st).

    Can you provide some code examples, please?

    Thanks

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

  4. #4
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loop a testcase X number of times

    This will run testcase test 10 times.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  5. #5
    Senior Member
    Join Date
    Oct 2002
    Location
    Calgary, Alberta, Canada
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loop a testcase X number of times

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sks04:
    Yes, that is what I'd like to do...but I don't know much about the 4test scripting language...I'm a VB hack. I have an eval version of SilkTest 6, and don't have access to support Docs(until May 1st).

    Can you provide some code examples, please?

    Thanks

    <HR></BLOCKQUOTE>

    Here is a very simple example:
    [-] testcase BitwiseShift()
    [ ] int j
    [ ] j = 5
    [ ]
    [ ] Print("Current value of j: {j}")
    [ ] j &lt;&lt;= 5
    [ ]
    [ ] Print("j &lt;&lt;= 5")
    [ ] Print("Current value of j: {j}")
    [ ]
    [ ]
    [ ]
    [-] main()
    [ ] int i
    [-] for (i = 1; i &lt; 11; i++) //can also do this: "for i = 1 to 11"
    [ ] BitwiseShift()

    ------------------
    Beware of bugs in the above code; I have only proved it correct, not tried it."
    --Donald Knuth


    [This message has been edited by signal_11 (edited 04-23-2003).]
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    --Donald Knuth

  6. #6
    Member
    Join Date
    Sep 2002
    Location
    Chicago, Illinois, USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loop a testcase X number of times

    please rember that a testcase cannot be called from another testcase - from a function only

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

  7. #7
    Member
    Join Date
    Apr 2003
    Location
    Bellevue, WA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: loop a testcase X number of times

    Thanks folks, you have given me a good kick-start.

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

 

 

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:33 PM.

Copyright BetaSoft Inc.