SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jan 2000
    Location
    boston
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looping in planner

    What would be a good way to loop through scenarios in planner? Is it possible?

    Otherwise I see myself just abstracting my testcases into functions and creating loops in the actual testcases, but ideally itd be nice to have all control in planner.

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

    Re: Looping in planner

    One thought is you may be able to write a DOS batch program to do the looping and call Silk with the CLI. You can use the -q to specify a save query. That will allow you to run different parts of your testplan.

  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Columbus, OH
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in planner

    One method I have used is to copy and paste parts of the testplan I would like to re-use. This allows me to run the testcases in a diffent sequence, and more than one time.
    I have also created batch files that can run a subset of my testcases but this method does not allow for sequence changes.

  4. #4
    Guest

    Re: Looping in planner

    as far as I know you can't loop using a .PLN file in the classic sense that you can't say "for each wWin in lwAllMyWins DoSomething" except within the main() function of a .T file. it is however, possible to reference such a .T file from within a .PLN. I normally use suite (.S) files to call my .T files so I'm not sure the syntax but I believe it's:

    testscript: blah.t
    testcase: main

    or something to that effect. if there is a way to do the loop from within a PLN I'd also be curious to know the answer as then I might start using the organizer for it's querying. what I do now is a hack override of the recovery system to bail out of the testcase early if it's not a case I want to test.

  5. #5
    Member
    Join Date
    Dec 1999
    Location
    Seattle, WA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in planner

    that last posting was actually from me. Guess I lost my cookies and posted as unregistered. whoops.

    ------------------
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>It doesn't matter if I got to heaven or to hell, I have friends in both places.<HR></BLOCKQUOTE>
    <BLOCKQUOTE]<font size=1 face=Verdana, Arial, Helvetica]quote:</font]<HR]It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR]</BLOCKQUOTE]

  6. #6
    Junior Member
    Join Date
    Jan 2000
    Location
    boston
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in planner

    Right you use the .s which are suite files which you can use to order the testcase calls. Taking it even further I could call a batch file with a loop that calls Silk up and runs a suite which runs the testcases.

    When you say use organizer for it's querying what do you mean exactly by querying?

    Can you provide a simple example of how or why you would hack the recovery system?


    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Matt Sullivan:
    that last posting was actually from me. Guess I lost my cookies and posted as unregistered. whoops.
    <HR></BLOCKQUOTE>


  7. #7
    Member
    Join Date
    Dec 1999
    Location
    Seattle, WA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looping in planner

    the basic part is pretty nicely documented by Segue. you can rewrite TestCaseEnter() and TestCaseExit(), ScriptEnter(), and ScriptExit(). Usually it's a good idea to include calls to DefaultTestCaseEnter(), etc. within your overrides. In the case of replacing planner, I actually require that all testcases written start with a function that has parameters to flag what kind of case it is, and if the runtime conditions (set in a separate INC file) don't match, the function bails out of the testcase and moves to the next one. hope this helps

    ------------------
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR></BLOCKQUOTE>
    <BLOCKQUOTE]<font size=1 face=Verdana, Arial, Helvetica]quote:</font]<HR]It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR]</BLOCKQUOTE]

 

 

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:16 AM.

Copyright BetaSoft Inc.