This is a migrated thread and some comments may be shown as answers.

Continue on failure setting

3 Answers 357 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 15 Mar 2012, 10:44 PM
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  

3 Answers, 1 is accepted

Sort by
-1
Anthony
Telerik team
answered on 16 Mar 2012, 02:37 PM
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
0
Richard
Top achievements
Rank 1
answered on 16 Mar 2012, 08:10 PM
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?
0
Accepted
Anthony
Telerik team
answered on 16 Mar 2012, 09:23 PM
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
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Richard
Top achievements
Rank 1
Share this question
or