SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jun 2009
    Location
    India
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Recovery in QTP - Restart Current Test Run

    Hello

    I have got a script which contains calls to multiple actions and subactions from a different test. The script runs touchfree except for some environmental issues. So, I wanted to implement Recovery Scenarios.
    The recovery scenario should do the following:
    1. Trigger On Any Error
    2. Call to a function call which captures the screenshot.
    3. Post Recovery: Restart Current Test Run.

    Now, when this recovery is triggered, the function is being executed successfully but the current test is not getting restarted. I mean QTP just stops execution and brings control back to the start of the test. It even doesnot display the results as if it is waiting for something to restart the test.
    Can anybody help me in getting this issue solved please.
    Incase you need any further info on this, please keep me posted.

    Thanks
    Jagan

  2. #2
    Junior Member
    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Recovery in QTP - Restart Current Test Run

    Hi Jakan
    i tried the scenario you mentioned with a very simple script (using Calc) and didnt see it.
    Can you try to generate it with a simple test and attach the test to the post
    Thanks
    Benny.

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

    Re: Recovery in QTP - Restart Current Test Run

    Can you just add an output parameter on the action to be run and set it to some value before exiting the sub action in your recovery function.

    RunAction "mySubAction", vOutputParameter
    if vOutputParameter = "TryAgain" then
    RunAction "mySubAction", vOutputParameter
    if vOutputParameter = "TryAgain"
    Report.ReportEvent micFail, "mySubAction second try", "Oh No!"
    end if
    end if

    or use a while loop if you want to run more than once.

  4. #4
    Junior Member
    Join Date
    Jun 2009
    Location
    India
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Recovery in QTP - Restart Current Test Run

    [ QUOTE ]
    Hi Jakan
    i tried the scenario you mentioned with a very simple script (using Calc) and didnt see it.
    Can you try to generate it with a simple test and attach the test to the post
    Thanks
    Benny.

    [/ QUOTE ]
    Hi Benny
    This problem will not be recreatable with smaller tests with less number of actions. I already tried it.
    The problem is that my test contains many actions and everything is in Quality Center. I think that is causing the issue.

    Thanks
    Jagan

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

    Re: Recovery in QTP - Restart Current Test Run

    Hi Morbula

    I tried the code you have mentioned but it is behaving exactly the same as previous. The control is coming to the start of the script and QTP just stops running. No Results displayed also.

    Thanks
    Jagan

  6. #6
    Junior Member
    Join Date
    Aug 2008
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Recovery in QTP - Restart Current Test Run

    Hi,

    I get the same problem when the recovery is invoked from a VB class defined in an external resource file.

    QTP won't restart.

    If the class definition is part of the test (not in an external file), QTP will restart as expected.

    I've submitted the issue to HP.

 

 

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 10.00%
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:05 PM.

Copyright BetaSoft Inc.