Update Test Case Properties > Error Behaviour

Class library usage, coding and language questions.
twadhwa
Posts: 3
Joined: Thu Oct 20, 2016 7:57 pm

Update Test Case Properties > Error Behaviour

Post by twadhwa » Fri Nov 11, 2016 6:47 am

Hello, i woukd like to change the setting under <<< Test Case Properties > Error Behaviour >>>> via code. Any Suggestions on it?
Capture.PNG
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Update Test Case Properties > Error Behaviour

Post by Support Team » Mon Nov 14, 2016 3:08 pm

Hello twadhwa,

Welcome to Ranorex!

You could use the following code snippet in order to set the error behavoir via code:
var tc = TestSuite.Current.GetTestCase("MyTestCase") as TestCaseNode;
            tc.ErrorBehavior = ErrorBehavior.Stop;
Sincerely,
Robert