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.
If a text with the above is executed then I recieve the following error and the test terminates.
Code: Select all
Report.LogHtml(ReportLevel.Info, "INFO", "<b style='color:black'>Set 4 Test G - EXPORT CODES</b>");
"An unexpected error has occured while loading the log file. Supplied XML ist not valid (file position 421)."
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.