SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 1999
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running testcases in a continuous loop from testplan

    I want to run a set of testcases from the testplan in a loop, say 10 times. Is there any way I can do this in a testplan?

    In fact, is there anyway I can group a set of testcases inside a script file itself and run them in a loop?

    Thanks for any tips...

    Sam

  2. #2
    Member
    Join Date
    Oct 1999
    Location
    Austin, TX, USA
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running testcases in a continuous loop from testplan

    If you are running from a testplan (QAOrganizer), I would suggest that you use a multitestcase that has a loop that calls the testcase. You see, you can't have a testcase call a testcase, but a multitestcase can. If you weren't use QAOrganizer, you could just put a main function in your .t file that has a loop calling the testcase however many times you'd like.

    HTH,
    Cynthia

  3. #3
    Junior Member
    Join Date
    Sep 1999
    Location
    Glen Allen, VA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running testcases in a continuous loop from testplan

    Another way to do looping is to make use of a subtestplan. After writting all the steps you want to loop through in the subplan, just include the subplan in the main testplan as many times as you want to loop the test.

    i.e: include: CounterLoopSub.pln
    Brian Schweickert, CSTE & CSQA

  4. #4
    Junior Member
    Join Date
    Sep 2000
    Location
    ca
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running testcases in a continuous loop from testplan

    The easiest way to do this is to create a for loop.
    I.e.
    testcase Run10X ( ) appstate none
    INTEGER i, icount
    icount = 10
    for i = 1 to icount
    Print ("running {icount}X")
    (Your test)
    return

    For us, we pump list of record into our testcases. if you also do the same, you can just create a new counter function which calls your testcase function.

  5. #5
    Guest

    Re: Running testcases in a continuous loop from testplan

    Let your testcase receive the no. of times you want it to loop as a parameter, so when you call the testcase from QA Org. you can send that value as a testdata.
    jvy

    testcase X(int n, ...)
    int i = 1
    for (i =1; <=n; i++)
    .....
    in QA organizer:...
    testdecription
    testcase: X
    testdata: 10, ...


 

 

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 11:01 PM.

Copyright BetaSoft Inc.