Code to execute at the start of every test case
Posted: Mon May 16, 2016 2:47 pm
Is there a way I can make a bit of code that will be run at the start of every test case?
I am interested in seeing the Report Level & Error Behaviour of each Test Case.
i.e.
I am interested in seeing the Report Level & Error Behaviour of each Test Case.
i.e.
Code: Select all
var ts=TestSuite.Current;
var tc1=(TestCase) TestCase.Current ;
Report .Info ("Report Level. Get Level:" + tc1.ReportLevel.ToString ());
tc1.ReportLevel=Common.GlobalVariables.GlobalLevel;
Report .Info ("Set Report Level. Set Level:" + tc1.ReportLevel.ToString ());
Report .Info ("Error Behavior. Get Error Behavior:" + tc1.ErrorBehavior.ToString ());