ReportLevel.Failure vs Report.Failure

Ranorex Spy, Recorder, and Studio.
Posts: 34
Joined: Wed Aug 01, 2012 3:19 pm

ReportLevel.Failure vs Report.Failure

Post by wyll » Tue Jan 15, 2013 4:29 pm


i just noticed, that if you use Report.Failure(), then you see that your Testcase has failed:

"The module has failed because one or more actions have failed. "
if(condition == true)
  Report.Failure("Failed Test");
but if you use Report.Logdata(ReportLevel) you dont see that message and you dont even see if the Test has failed in the green circle at the report Log. You have to expand the Test to see that there is an error
if(condition == true)
  Report.Logdata(reportlevel.Failure"Failed Test");
regards Wyll

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

Re: ReportLevel.Failure vs Report.Failure

Post by Support Team » Wed Jan 16, 2013 5:13 pm


'Report.Failure()' should be used to report a failure within a test case.
A failed action within a module causes a test case to fail.
The counter for failed tests is incremented.

'Report.LogData()' could be used to log a data message.
Currently, the failure counter is not incremented.
This is a remainder from an earlier version that will be fixed in one of our next releases.

Markus (T)