Eventually I want to email the reports to various users at the end of each run.
I have been working through this article: http://www.ranorex.com/blog/customizing-ranorex-reports
I have added this code to Program.cs:
I have also set a Report File Directory & Report File (using placeholders), in Global Parameters > Report
Code: Select all
string logFileName = "Test.rxlog"; // set a custom stylesheet for the default XML report XmlLogger.SetReportStylesheetFile("CustomStylesheet.xsl"); // append to an existing file with the same name Report.Setup(ReportLevel.Info, logFileName, true);
Now, when I do a run from Ranorex Studio, I get 3 reports:
1. Goes to the /Reports folder - but does NOT have my Style-sheet format
2. Goes to bin/Debug folder - this one IS in the correct Style-sheet format
3. Goes to the designated ReportFileDirectory, has the placeholder name, but does NOT have the correct Style-sheet format.
I am well & truly baffled.
I would prefer my report to be in my chosen Style-sheet style, with the chosen Placeholder name.
I only need the one report.
I am less concerned about where it ends up, as I am running from Jenkins usually, & that is subject to it's own rules.