Supplied XML is not valid - error

Bug reports.
christof
Posts: 19
Joined: Thu Feb 18, 2010 10:58 am

Supplied XML is not valid - error

Post by christof » Thu Sep 09, 2010 9:27 am

Hi.

I'm just having a problem when adding style information or attribute values to HTML when reporting. Take for example the following line of code, which seems to work fine in some tests and then for a mysterious reason causes an error in others.

Code: Select all

Report.LogHtml(ReportLevel.Info, "INFO", "<b style='color:black'>Set 4 Test G - EXPORT CODES</b>");
If a text with the above is executed then I recieve the following error and the test terminates.

"An unexpected error has occured while loading the log file. Supplied XML ist not valid (file position 421)."
RanorexXML-error.jpg
I have checked and rechecked the permissions of the folder that the file resides in - and all seems okay. Just to reiterate this only occurs randomly on some tests, and all the test projects folders are located in the same parent folder with the same permissions.

If this is a known issue, or if anybody knows of a solution then it would be cool if you could share.

Cheers.

C
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Supplied XML is not valid - error

Post by Support Team » Thu Sep 09, 2010 11:45 am

Hi,

Thank you for posting the bug. It seems there is an error when Ranorex try to copy the report to the Report folder. I've submitted a bug to our internal bug tracking tool and the issue should be solved in a future release of Ranorex. Meanwhile you can open the Report manually at the bin/debug folder or just enable the "Show all Files" button in project tree, so you are able to see all the files, including bin folder, where the report is nested.

Regards,
Peter
Ranorex Team