xml malformed recommendations

605 views
Skip to first unread message

Pablo Sagrera Garcia

unread,
Feb 12, 2016, 7:16:34 AM2/12/16
to robotframework-users
Hi Experts,

is there any general recommendation in order to avoid xml issues ? I'm getting a lot of xml malformed messages in my test cases. I use fixml tool + rebot but not always works 

Thanks in advance 



Hélio Guilherme

unread,
Feb 12, 2016, 9:49:05 AM2/12/16
to robotframework-users
I can only think in finding the root cause of why you are "getting a lot of xml malformed messages in my test cases".
Are they being interrupted?
Message has been deleted

Tatu Aalto

unread,
Feb 14, 2016, 12:28:58 PM2/14/16
to robotframe...@googlegroups.com
Ugh

Would you mind sharing some more details? Runnable example would be really cool but if that is not possible could you explain, in details or steps, what you are doing and what entity complains that XML is invalid?

-Tatu

On 12.2.2016 23:01, Pablo Sagrera Garcia wrote:
Hi Hélio,

The problem is that after use fixml tool and validate  the 'new' xml file is OK , rebot tool is marking the file as failed 
Example :

rebot output.xml 

[ ERROR ] Reading XML source 'output.xml' failed: Incompatible XML element 'arg'


attached 'fixed' output.xml


Thanks
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Kevin O.

unread,
Feb 17, 2016, 8:53:48 AM2/17/16
to robotframework-users
One possible cause is that the library you are using is logging from threads other than the main thread. This can screw up the XML.
See http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#communication-when-using-threads

Kevin O.

unread,
Feb 17, 2016, 8:55:48 AM2/17/16
to robotframework-users
By logging, I mean outputting to sys.stdout instead of using the RF logging API.
Reply all
Reply to author
Forward
0 new messages