SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Apprentice
    Join Date
    May 2011
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Question BPT - How to find status of previous components (RunStatus Pass/Fail)

    Is there a way to find out -within the test- if any of the previous components has failed?

    Using Environment Variables to signal errors doesn't work since they are not shared across components.

    Using The Reporter.RunStatus only gives the status of the current component not the whole BPT test.

    I cannot use component parameters as that would complicate the test dramatically (imagine a test with 20 components each of them passing the RunStatus parameter until it reaches the last component)

    Any suggestions would be appreciated.
    Regards,

  2. #2
    Member
    Join Date
    Dec 2010
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hi - what exactly are you trying to do this for. Can you use the ALM's 'On Failure' option to specify what you want to do (Continue or Exit) if a component fails in the test? An ugly way would be to write all the Reporter.RunStatus to a text file and the first thing each component could do is read the file and check for all the previous statuses of the test run. Cheers~Joe www.joecolantonio.com

  3. #3
    Apprentice
    Join Date
    May 2011
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hello Joe,
    I need this to communicate results to an external system if a certain criteria is met. The only way I found so far is to use another Test to loop through the TestSet and get the results, the disadvantage with that is that it has to wait until all tests in the TestSet have finished execution.
    Sample code:
    For i=1 To qcutil.CurrentTestSet.TsTestFactory.NewList("").Co unt
    myTestName = qcutil.CurrentTestSet.TsTestFactory.NewList("").It em(i).TestName
    myTestStatus = qcutil.CurrentTestSet.TsTestFactory.NewList("").It em(i).Status
    Next

    However I personally find the lack of passing environment variables between components and the inability to skip component(test flow decision) on failure to frustrating.

    Thank you for your reply.

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0
    You can actually share variables across your test case using our Freeware SharedStore. Look at below

    knowledgeinbox.com/downloads/general/shared-store/

  5. #5
    New Member
    Join Date
    Aug 2012
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hi Tarun,

    I tried for the above but I am getting error : ActiveX component can't create object : "KnowlegeInbox.SharedStore".
    what to do for this?

    Thanks
    Thanks
    Rajani Gupta

  6. #6
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0
    Did you install the store?

 

 

Tags for this Thread

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 06:33 AM.

Copyright BetaSoft Inc.