Generate XML test report for sikuli

Asked by Ricky

I run sikuli script from command line using Jython, like

>Jython simpleTest.py

and execute successfully.

Now I want to integrate to Jenkins, but fail to generate XML format test report (which should be compatible with the XML output of JUnit).

There is a tool called XmlTestRunner which can output a XML format test report but only can run in Python

However sikuli script(Jython) isn't compatible to Python(due to different interpreter)

So wonder there is a way to (automatically) generate a XML format test report for the sikuli script(Jython) ?

Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

xmlTestRunner should work in Jython scripts, since it is written in Python language only, no C-based stuff contained.

see faq 1804

Revision history for this message
Ricky (e47380) said :
#2

Thank you for your answer!

But I got the following error messege when I run:

>Jython simpleTest.py

File \xmlrunner.py", line 10
SyntaxError: future feature unicode_literals is not defined

Revision history for this message
RaiMan (raimund-hocke) said :
#3

What version of Sikuli?

try:
from future import unicode_literals

or try to find an xmlTestRunner version for Python max level 2.6

Can you help with this problem?

Provide an answer of your own, or ask Ricky for more information if necessary.

To post a message you must log in.