Continue on failure setting

4 posts, 1 answers
  1. Richard
    Richard avatar
    13 posts
    Member since:
    Feb 2012

    Posted 15 Mar 2012 Link to this post

    In my test run today, when my test step failed, I found this in the test log entry.  

    '3/15/2012 4:21:27 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

    I looked in the settings at the Test Step, Test, Project, and Test List levels but I don't know where this setting is configured.  I simply want my test list to continue running through the remaining steps if this one (or similar) fails.  At this point in the test, I'm simply validating URL links to external websites and then navigating back to our page.  It appears that the external page simply didn't finish loading within the specified time.  

    Thanks,

    Richard  
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 16 Mar 2012 Link to this post

    Hello Richard,

    See here for how to set ContinueOnFailure. We consider it bad practice to overuse this feature, however. Try inserting a Wait For Exists step after each Navigate step to ensure that page is properly loaded.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Richard
    Richard avatar
    13 posts
    Member since:
    Feb 2012

    Posted 16 Mar 2012 Link to this post

    Thanks for the info.  Just curious, what's the thinking behind not using the ContinueOnFail as a general practice?  I can see where it might be problematic for complex test steps with dependencies.  How about for simple, low priority test steps?
  4. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 16 Mar 2012 Link to this post

    Hello Richard,

    We recommend using this feature sparingly and only on Verify and Wait steps that don't adversely affect subsequent steps. An example would be verifying the text content of a paragraph that has its content under construction. You typically want to avoid setting an Action step to continue on failure, because at that point the test is not behaving as expected and an overall failure should be reported.

    Kind regards,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top