Hiya
It seems that the method Report.LogHTML does not check the message is valid
We have a case whereby we capture some text off the screen, and log it
the captured text contains the ENQ character, and when logged corrupts the ranorex log file
Can you confirm if the Report class does any checks to ensure valid xml is always produced
or should I write my own checks before logging?
Thanks
Report.LogHTML and unprintable characters
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Report.LogHTML and unprintable characters
Hi,
http://msdn.microsoft.com/en-us/library/73z22y6h.aspx
Regards,
Peter
Ranorex Team
The Report.LogHTML doesn't check if the xml file is valid. So the best way would be to write your own checks before logging, e.g. using the System.Web.HttpUtility.HtmlEncode method:atom wrote:Can you confirm if the Report class does any checks to ensure valid xml is always produced
or should I write my own checks before logging?
http://msdn.microsoft.com/en-us/library/73z22y6h.aspx
Regards,
Peter
Ranorex Team