Hi,
I would like to append the issues I am encountering using custom reports, if I may.
I was expecting the default report format to be the basis for the automatically generated custom report template (following this instruction: support/user-guide-20/lesson-8-reporting.html#c4898). As a direct result, I would expect generated custom report to yield the same results as the default report if configured correctly. However, this does not seem to be the case, which is rather disappointing and - due to the lack of documentation using custom reports - confusing and difficult to work with.
Please compare the following:
1. Using the default report, my entire code to configure it is summed up in one line (which could itself be considered optional):
Report.CurrentReportLevel = ReportLevel.Debug;
Running an exemplary testcase results in 7 files to be generated:
DefaultReportResult.PNG
2. Using the generated custom report consisting of the five files "RanorexReport5.css", "RanorexReport5.png", "RanorexReport5.xsl", "View.rxlog", and "View.rxlog.data", the setup code is a little longer (as seen here: blog/customizing-ranorex-reports):
// Set user defined stylesheet file
XmlLogger.SetReportStylesheetFile("./NewCustomTemplate1/RanorexReport5.xsl");
// Setup reporting
string reportName = "Testset_" + System.DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss") + ".html";
Report.Setup(ReportLevel.Debug, reportName, true);
Re-running the test with the freshly generated custom report template and no other parameters being changed (except for the code being shown above) the result looks like this:
DefaultCustomReportResult.PNG
The main difference here is that in case of the custom report, there is no *.data-file being generated. Instead, there is a "RanorexReport.xsl" in addition to the "RanorexReport5.xsl".
When I open the report file of the custom report evaluation, it shows only a blank page with the thumbnail image that has been generated during the test. The thumbnail expands to the large screenshot when clicked. However, no other data is shown.
So my question is:
What do I have to do so that the custom report yield the same result as the default report?
From thereon out, I would like to start configuring my custom report, but first I need to get there. Any suggestions? Any questions?
Regards,
Clemens