How to use style.xml with ReportToPDFModule
Posted: Tue Feb 20, 2018 9:08 am
Hello,
I am facing an issue with the ReportToPDFModule (1.0.13) on Ranorex 8.0.1 using Windows 7 SP1.
I am using the ReportToPDF Module though Ranorex Automation Helper. The ReportToPDFModule is placed in the teardown section of my testcase. As long as I define the XML variable in ReportToPDFModule.cs it creates no PDF file.
So this creates a standard pdf document
And changing the xml variable results in no generated PDF at all. And sadly no error message.
My Projekt looks like this:
Solution Test
I tried differend types of path definition, relative and absolut. And I also tried different places to store the style.xml.
The "Copy to output direcoty" property is set for ReportToPDFModule.cs
I am facing an issue with the ReportToPDFModule (1.0.13) on Ranorex 8.0.1 using Windows 7 SP1.
I am using the ReportToPDF Module though Ranorex Automation Helper. The ReportToPDFModule is placed in the teardown section of my testcase. As long as I define the XML variable in ReportToPDFModule.cs it creates no PDF file.
So this creates a standard pdf document
Code: Select all
public ReportToPDFModule()
{
//Init variables
this.registered = false;
this.PdfName = "";
this.Xml = "";
//Possible values: none | failed | all
this.Details = "all";
}
Code: Select all
public ReportToPDFModule()
{
//Init variables
this.registered = false;
this.PdfName = "";
this.Xml = "./style.xml";
//Possible values: none | failed | all
this.Details = "all";
}
Solution Test
Code: Select all
Solution
+---Solution Items
¦
+---Test-A
¦
+---Test-ModuleLibary
¦
+---RanorexAutomationHelpers
+---...
¦
+---Modules
+---Modules
+---...
+---ReportToPDFModule.cs
+---style.xml
+---...
The "Copy to output direcoty" property is set for ReportToPDFModule.cs