By default each run of a test suite, a test case or a single recording generates a report file (*.rxlog) which informs you about whether the run was successful or not. Within the following lesson you will learn about the following:
The report shown after running a test suite provides a general overview about how many of the test cases have been executed successfully, failed or blocked. Each executed test case and all its child modules can be analyzed more in depth by expanding a particular test case.
In addition a test suite report also informs you about the following:
The low-level log messages generated by a recording or by a code module shown in the figure above consist of a time stamp, a report level, a category and message text. By default logging is turned on for recordings. Use the Recorder's settings dialog to change the default value and to turn off logging for new recordings. In order to turn logging off or on for a particular action item, open the properties and set the 'Use Default Logging' attribute to false.
Expand the report as shown above and move the mouse pointer over the first log message.

Click at 'Jump to Item' to open the module and to focus on the source action item. Use the quick link 'Open in Spy' to analyze the RanoreXPath expression used for the particular action item. This is especially useful in situations when a test run fails with the message 'Failed to find item...' error message.

For each run of a test suite, a single test case or a recording a new log file (*.rxlog) is generated and saved in the project's 'Report' folder. You can open older report files by double-clicking the file in the project view. Specify the file names used for the report files within the test suite's settings dialog.

Report.Debug("Debug message");
Report.Info("Info message");
Report.Warn("Warning message");
Report.Error("Error message");
// Define your own custom report level called "Custom" with level set to 100
Report.Log(ReportLevel.Parse("Custom;100"), "User", "test", new RecordItemIndex(-1));
// Get windows start button ...
Ranorex.Button windowsStartButton= Host.Local.FindSingle("button[@text='Start']");
// ... and create a screenshot for the report
Report.Screenshot(windowsStartButton);
// Simple 'AreEqual' validation
Ranorex.Validate.AreEqual("compareText", "compareText","String comparison",true);
// Log current system environment
Report.SystemSummary();
Online User Guide
download as: PDF (20.3MB)
Ranorex Tutorial
(PDF file, 13.5MB)