I inserted some usercode and I would write an error into the reports during running Ranorex. So I wrote following into user code:
Report.Log(ReportLevel.Error, "User", "Widget wurde nicht vergroessert.X: "+objX_new +":"+objX, repo.WebDocumentWikoWebTESTER2.GsResizeHandleGsResizeHandleBoth2HeaderInfo, new RecordItemIndex(13));
That works OK, I get the bug into the report:
But the whole testcase shows a success, but I had the error during the test:
How can I get an eror for the whole test case? Does anybody knows some tipps?
Report error
Report error
You do not have the required permissions to view the files attached to this post.
Re: Report error
You need to use Report.Failure() instead of Report.Error().
Only Success and Failure counts are carried through to the total count at the top of the report.
Only Success and Failure counts are carried through to the total count at the top of the report.
Shortcuts usually aren't...
Re: Report error
Thanks a lot this was the searched solution.