SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetTestsPassedCount () returning total passed for entire suite

    I have the following functions defined in my own version of ScriptExit:

    GetTestsPassedCount()
    GetTestsFailedCount()
    etc....

    I have a suite file that calls four script files

    e.g.

    regression_login.t
    regression_joblist.t
    regression_qt.t
    regression_contacts.t

    the problem that I am having is that GetTestsPassedCount is returning a running total of the tests that passed for the whole suite. What I want is to return the tests that passed for just each script.

    When looking at the results file for this suite the top summary shows a summary of all the running totals for all test scripts. If I select a script then select menu results/ show summary it shows the totals for that particular script. This is what I want in my script exit but it seems like I can only get a running total for the entire suite. Any ideas?



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

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

    Re: GetTestsPassedCount () returning total passed for entire suite

    This should work for you:

    ScriptEnter resets global count variables; ScriptExit subtracts the accumulated value to leave what you're looking for.


    John


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

 

 

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 02:04 AM.

Copyright BetaSoft Inc.