I have the following set up for my test report:
TestReport.Setup(ReportLevel.Debug, "MyReport.rxlog", true); TestReport.BeginTestSuite("My TestSuit"); TestReport.BeginTestCase("My TestCase"); TestReport.BeginTestModule("My Test Module"); ... Report.Screenshot(ReportLevel.Failure, "", "No element found", UI_MainFrame, false); throw new Ranorex.ElementNotFoundException("No element found", null); ... TestReport.EndTestModule(); TestReport.EndTestCase(); TestReport.SaveReport();When I look at my report I get the screenshot with a failure, however the test case still passes. How can I make the test case fail? I tried to follow your instructions here http://www.ranorex.com/support/user-gui ... mples.html and throw an exception but it does not seems to work.
I use a Ranorex .Net Runtime Version 4.0.30319.18034 trial.
I have Windows 7 Proffesional with ServicePack 1 and .Net 4.5