Page 1 of 1

Re: Restart current testcase

Posted: Wed Mar 09, 2016 8:49 am
by odklizec
Hi,

In my opinion, it's not recommended to restart the testcase like this because it may break the test flow and hence the report is most probably not written? But I can be wrong and you just found a bug in Ranorex? Anyway, I never saw using code like this to restart the TC and there were couple of discussions on that subject in the past.

Re: Restart current testcase

Posted: Wed Oct 19, 2016 5:06 pm
by Jeff
Hi,

This post is very old but for thus like me who wanted to know the response to the question.
In order to add the logs to write in the report when you start manually a test case, add:
TestReport.BeginTestCase("you test case");
test_case.Run(test_case.DataContext, false); 
TestReport.EndTestcase();
TestReport.SaveReport();
Regards,
jeff