Re: [Sikuli-driver] [Question #261964]: How to get programmatically the results

2015-02-12 Thread RaiMan
Question #261964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261964

Status: Open = Answered

RaiMan proposed the following answer:
Whatever you do, if you want testcase result output, you have to set up
your scripts as test cases according to the Python unittest feature (for
SikuliX which uses Jython it must be language level 2.7).

Depending on the test runner you use, you might get different output to
parse afterwards.

This is why I directed you to the above mentioned faq.

For the possibilities abound logging in general:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#writing-and-redirecting-log-and-debug-messages

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261964]: How to get programmatically the results

2015-02-12 Thread egavaldo
Question #261964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261964

egavaldo confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261964]: How to get programmatically the results

2015-02-12 Thread egavaldo
Question #261964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261964

Status: Answered = Solved

egavaldo confirmed that the question is solved:
ok so I understand that depending from the underlying testrunner, I will have 
to get the results from different sources.
I'll have to dig into that as I'm even not aware of what a testrunner is in 
SikuliX...
For now let's close this thread.
Thanks!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261964]: How to get programmatically the results

2015-02-12 Thread RaiMan
Question #261964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261964

RaiMan posted a new comment:
We seem to have to clear up the scene a little bit:
Looking from your point of view, a SikuliX script in the first place is a bunch 
of statements written in Python language.
Depending on how you run the stuff, the SikuliX features like find() and 
click() are available automatically or you have to tell the running interpreter 
(in case you use SikuliX features, it must be Jython, which  a Java based 
implementation of the Python language).

So SikuliX does not have any support for a reporting useful for testing 
frameworks/environments.
You have to add something according to the Python rules or according to the 
rules of your testing environment (for which some people use RobotFrameWork for 
example).

A testrunner in the Python environment is a tool (a basic one is contained in 
Python's unittest), that runs a bunch of classes/testcases/testsuites (however 
you name it), that are written down according to the rules of the Python 
unittesting.
The result you get depends on the test runner you use.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261964]: How to get programmatically the results

2015-02-11 Thread RaiMan
Question #261964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261964

Status: Open = Answered

RaiMan proposed the following answer:
the best would be to use the Python unittest module. There are add ons 
available the produce XML or HTML output.
see faq 1804

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #261964]: How to get programmatically the results

2015-02-11 Thread egavaldo
Question #261964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261964

Status: Answered = Open

egavaldo is still having a problem:
One interesting things I've seen there is the XmlTestRunner that is able to 
produce JUnit-style XML reports.
This is exactly what I'm looking for.

But XStudio has already a pyUnit launcher.

What I need here is to create a SikuliX launcher that will work with any
sikuli tests.

Practically, from the launcher point of view (that is basically a robot
that just needs to execute some Sikuli tests and get back the  their
results and possibly some logs), I see how to execute the tests but
still don't get how to retrieve the results - knowing that this must be
able to work for ANY kind of Sikuli tests... not feasible? Is there in
the logs enough information that could be parsed?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp