SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jun 2002
    Location
    Boca Raton FL. USA
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Information on TestPlanExit

    Greetings,
    I am trying to use TestPlanExit(bException) to perform some processing at plan execution completion. From the help text, this function is "Executed when a test plan is exited.". Does anyone have a good definition for what "when a test plan is exited" means? It appears that ths function is only called when at least one testcase is excluded from execution. Running all the tests in a plan (either through explicit selection or "run all") will not run TestPlanExit.

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

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Information on TestPlanExit

    For me, TestPlanExit works as expected. It executed at the end of the plan, like TestcaseExit does for tests and ScriptExit does for scripts.

    It didn't matter whether I ran all tests or selected ones.

    What is different however is that TestPlanEnter isn't run at all unless you select a subset of the available tests. (<u>That</u> would seem to be a bug.) I didn't try executing a script from another script.

    To do the above I just created TestPlanEnter and TestPlanExit routines with print statements in them.


    John


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

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Location
    Boca Raton FL. USA
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Information on TestPlanExit

    As John identified, and with further experimentation, running a single plan does appear to work as expected. Even a master with one or more sub plans. TestPlanEnter is called at the first test case executed and TestPlanExit is called following the last test case executed. It seems the plan cannot contain *anything* other then blank lines or comments following the last test case executed.

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

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:03 PM.

Copyright BetaSoft Inc.