Results 1 to 4 of 4

Thread: starting a new iteration if test fails

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    2

    starting a new iteration if test fails

    I have created a test with a number of iterations (from information in my data sheet). I expect the test the fail at certain points and what i am trying to do is write the test so that once a test has failed during a test run the test will return to the beginning and start on the next iteration - I don't want it to keep going once it has failed at any point.

    Is this possible? If so how do i do it?

    helen


  2. #2

    Re: starting a new iteration if test fails

    You can use a Recovery Scenario.

    In the Post-Recovery Condition, you can set Recovery Scenario so that it will Restart the current Test Run. This way, QTP won't proceed with test run. Instead, it will start the test all over again. Similarly (and I think this is what you are looking for), you can use the Recovery Scenario to "Proceed to Next Test Iteration."

    Last edited by Anshoo_Arora; 12-21-2007 at 04:01 AM.

  3. #3
    Junior Member
    Join Date
    Dec 2007
    Answers
    21

    Smile Re: starting a new iteration if test fails

    Hi

    I think the data wt you have creatde in data table does not match with the application data.

    Check once let me know do have same error.....


  4. #4
    Moderator
    Join Date
    Sep 2006
    Answers
    920

    Re: starting a new iteration if test fails

    Automation tool should run all iteration, even if one fail, so your tool is well behaving.If you want so stop it on fail you can stop it manually, but if it stop itself, then it's QTP bug, and against the concept of automation testing.

    Regards,
    Brijesh Jain
    ---------------------------------------------------------
    Connect with me on Skype: jainbrijesh
    Google Plus : jainbrijeshji

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact