SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP/Test Director Update Test Lab Status

    HI. I wonder if anyone knows how I would update the Test Lab "Status" in Test Director using QTP?

    I am running my QTP scripts from a Test Set in the Test Lab. I need to be able to make the result of a script "Not Complete" under certain circumstances. I have searched for hours and cannot work out how to do this.

    Ideally I would like to abandon the test and have test director have "Not Complete" as the status for that script rather than "Passed" or "Failed".

    The TD field is "TEST IN TESTSET", "TC_STATUS".

    Thanks,
    Mike

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: QTP/Test Director Update Test Lab Status

    Unfortunately you can't. The reason is that even if you update the status the QTP reporter will change it back to Passed or Failed based on the test status

  3. #3
    Super Member Jonty's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    1,266
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP/Test Director Update Test Lab Status

    So the way would be make QTP report the status you want to in certain scenarios.
    Cheers
    Jonty..
    -- Here to Learn and share ---

  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

    Re: QTP/Test Director Update Test Lab Status

    What does that mean Jonty?

  5. #5
    Junior Member
    Join Date
    Dec 2009
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP/Test Director Update Test Lab Status

    Tarun, I see what you meen. Even if I totally disable reporting it still show as a pass.

    I have noticed two things:

    1) when executing a script from Test Director if I hit the stop button half way through a script it will show as "Not Completed"

    2) If I use the "Continue Manual Run" option in TD and amend any of the steps "Status" to not complete then this will show in the test set results.

    Is there any way to code either of these into my script?

  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

    Re: QTP/Test Director Update Test Lab Status

    Well I can give you a workaround but you will have to use KnowledgeInbox Shared Store for the same

    Look at all there below things to get the approach

    http://knowledgeinbox.com/sharedstor...mvbscript.html
    http://knowledgeinbox.com/articles/q...ialogs-in-qtp/
    http://knowledgeinbox.com/downloads/.../shared-store/

  7. #7
    Junior Member
    Join Date
    Dec 2009
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP/Test Director Update Test Lab Status

    Ok. Is there anyway to abandon the current run without reporting a Pass/Fail status back to the reporter?

    As I said, if I click the stop button then it shows as "Not Complete", which is what I want. It looks like it sends back the status "Test run stopped." to the reporter which translates to "Not Complete".

  8. #8
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: QTP/Test Director Update Test Lab Status

    Well I don't know but you can try below

    Setting("OnReplayError") = "Stop"
    Setting("OnReplayErrorRemote") = "Stop"
    x = 2/0

  9. #9
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: QTP/Test Director Update Test Lab Status

    Btw, which version of QTP are you using?

 

 

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.54%
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 12:11 AM.

Copyright BetaSoft Inc.