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
Capture.PNG (20.03 KiB) Viewed 698 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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
.
Image