Automation Helpers Issue (Suspect User Error)

Ask general questions here.
LittlestHobo
Posts: 9
Joined: Tue Jan 31, 2017 6:16 pm

Automation Helpers Issue (Suspect User Error)

Post by LittlestHobo » Mon Oct 02, 2017 1:51 pm

I know this will be down to my misunderdstanding, was hoping there would be a helpful soul out there today!

So decided to try to implement email alerts on the testing using the new email sender automation helper, i have it sending the emails fine, but it refuses to attach the report, I always get an alert of:

"The file 'APPNAME_20171002_134314.rxzlog' does not exist. Please make sure the path 'Ranorex.Core.Reporting.ReportEnvironment' is correct. "

I have read a few topics on emailing these reports, and can confirm the report generated in c:\temp\reports (until the environment is in its full time location im saving to the temp folder).

Have also confirmed that the reporting option "Create a compressed copy of the report" is ticked

Apologies for the stupidly easy question!

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

Re: Automation Helpers Issue (Suspect User Error)

Post by Support Team » Mon Oct 02, 2017 9:21 pm

Hello LittlestHobo,

I suspect you have changed the default save location of your reports in the Test Suite's report properties. In its current state, EmailModule will only send the reports from the same folder as the build executable. With the small change below on line 42 of the EmailModule code module, you can use a custom report path.

Change the below

Code: Select all

zippedReportFile = TestReport.ReportEnvironment.ReportName + ".rxzlog";
to this:

Code: Select all

zippedReportFile = string.Format("{0}\\{1}.rxzlog", zippedReportFileDirectory, TestReport.ReportEnvironment.ReportName);
I personally feel the above should be by default, therefore I have requested this to be updated by our team in charge of Automation Helpers.

I hope this helps!

Cheers,
Ned
.
Image

LittlestHobo
Posts: 9
Joined: Tue Jan 31, 2017 6:16 pm

Re: Automation Helpers Issue (Suspect User Error)

Post by LittlestHobo » Tue Oct 03, 2017 9:29 am

this is absolutely perfect! Changed this and straight away this worked, thank you so much for the help !!!