SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Nov 2000
    Location
    Ulm, DE
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    running a testcase from another testcase

    Hello,

    Is it possibe to run a testcase from another one? Or to link two different testcases together and have them run like another single testcase?

    Thanks for your help.
    Silverter - A guru was once a beginner

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

    Re: running a testcase from another testcase

    Hi,

    As far as I am aware, you cannot call one testcase from another testcase. Instead of using a testcase to call a second testcase, you could put your 4Test statements (second testcase) into a function and call this function from the first testcase. If you wish to call testcases sequentially, use a Main function.

    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
    Member
    Join Date
    Oct 2000
    Location
    Bothell, WA, USA
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    Ditto to what John says.

  4. #4
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    I third that. It would be nice, but cannot be done.

  5. #5
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    A fourth "ditto", use a function, or even better, a method to test the point!
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  6. #6
    Guest

    Re: running a testcase from another testcase

    You need not just limit yourself to calling testcase functions from Main(). You can call a testcase function from any non-testcase function.

    Although it is not really intended to be used this way, you can also use a multitestcase function to call testcases, regardless of whether or not you are really doing multiple machine testing.

  7. #7
    Junior Member
    Join Date
    Feb 2001
    Location
    Milton, Ontario, Canada
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    I disagree. You definitely can call a testcase from within another testcase. I've tried, and it seemed to work for me.

    A testcase acts much like a function...
    Just try it. No special syntax is needed.
    The best way to learn is by experimenting.

    And to John, dano, Ponteiro, and styler,
    please be careful not to dismiss something as impossible until you know it for a fact...

    Marcus
    Engineering Co-op Student

  8. #8
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    Marcus,
    Keep studying, engineering is great!

    However, here's the proof that you can't call a testcase from a testcase.

    Here's my testcase T file:
    and here's the result
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  9. #9
    Junior Member
    Join Date
    Feb 2001
    Location
    Milton, Ontario, Canada
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    Thanks styler,
    I took another look at my scripts.
    It seems that from a testplan, you can write 'testcase: ' followed by a function name, (which can then call a testcase)

    That is what I did, and which confused me to believe my function was actually a testcase.

    Sorry John, dano, Ponteiro, and styler...
    I'll be more careful before posting next time!

    Marcus

  10. #10
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: running a testcase from another testcase

    Hi Marcus,
    You are right about being able to call a function from the plan, never thought about doing that, I've only called testcases in T files.

    I've referenced variables in "use" paths in the testplan, so I guess there's no reason in the plan not to be able to say script: <yourfile>.inc, and for testcase: <function name>

    Just for maintenance reasons, one may want to only include testcases from the plan, and have the testcases call down to functions in include files.

    I could not attach the .T, .INC, or .PLN, so here's the code if anyone is new to SilkTest and wants to play around.

    testcasetest.t
    testcasetest.inc
    testcasetest.pln
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

 

 

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

Copyright BetaSoft Inc.