I have a data driven test cases where I am reading values from a csv file, entering in the text box and then validating the result. This works fine when all my validation passes. But the minute one of the validation fails, test exits and doesn't run the test for remaining values. My question is, lets say I have 4 values to input and even if some of the validation fails, my test should continue running. I tried 'Continue on Fail' option on all the validation steps but it didn't work.
I was doing some digging I found out this topic http://www.ranorex.com/support/user-gui ... ation.html, sadly its for older version and there is no update for newer version.
Continue with test if one of validation fails in data driven
Continue with test if one of validation fails in data driven
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Continue with test if one of validation fails in data driven
Hi,
"Enable Continue On Fail" should work in this case did you also set the Error Behavior of the Test Case to “Continue with iteration”?
Regards,
Markus
Ranorex Support Team
"Enable Continue On Fail" should work in this case did you also set the Error Behavior of the Test Case to “Continue with iteration”?
Regards,
Markus
Ranorex Support Team
Re: Continue with test if one of validation fails in data driven
Yes tried it and worked
-
- Posts: 30
- Joined: Mon Jan 21, 2013 1:31 pm
Re: Continue with test if one of validation fails in data driven
Hi,
How can I enable it in code module?
How can I enable it in code module?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Continue with test if one of validation fails in data driven
Hello,
You could use the following code to set the error behavior of your Test Case:
This is not a supported way to change the error behavior.
It is recommended to set it in the Test Suite.
Regards,
Markus (T)
You could use the following code to set the error behavior of your Test Case:
TestCase myTC = TestCase.Current as TestCase; myTC.ErrorBehavior = ErrorBehavior.ContinueNextIteration;Warning:
This is not a supported way to change the error behavior.
It is recommended to set it in the Test Suite.
Regards,
Markus (T)