Page 1 of 1

How to get suite execution results log details in the Email body?

Posted: Fri Jul 26, 2019 8:54 am
by rahilshaikh20
Hello,

I am trying to get the report log details (with the css, the pie chart diagram) after execution in the Email body instead of attachements.
I already have a module where it sends the reports as log and pdf files but the email body is empty.

Please let me know how can I modify my email module to get the data from .rxlog reports, after execution, in the Email body instead of attachements

Re: How to get suite execution results log details in the Email body?

Posted: Tue Jul 30, 2019 9:02 am
by RobinHood42
Hi,
I am trying to get the report log details (with the css, the pie chart diagram)
This is not possible, the email could just display the pure HTML, which you would need to create, at the best.

To retrieve the log information, stored within the *.report.data file, you would need to create your own XML parser to fetch needed data: C# XML parser

As you might already noticed, your requirements will go hand in hand with some major modifications and implementations. Not related to Ranorex, but to C# and XML parsing in general.

Cheers,
Robin

Re: How to get suite execution results log details in the Email body?

Posted: Wed Jul 31, 2019 2:16 pm
by rahilshaikh20
Thanks for the prompt reply.
So is it possible to print a line in email body with some HTML formatting?

For Ex: I have below code which prints Passed count in Email body.
I would like to change the font, color and print in in a table(if possible).

EmailLibrary.SendEmail(
this.Subject,
this.To,
this.From,
this.Body +=Environment.NewLine+"Total no. of passed test-scripts: "+Globals.PassedCount+

Kindly assist.