Want to create a report on multitests that ran in sequence?

Asked by Georg Steyn

I am working with Sikuli for 2 weeks now and its greate so far.
But i need one thing and don't really know how to go about it.

I am running Multiple Sikuli tests in sequence with a Python script.
And i want to make a report that tells me after all the test have run.

Which were successful and which where unsuccessful, if one of the tests
did not run correctly. I want an error log that tells me what went wrong
on the specific test.

Question information

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

you can use Python's unitest feature:
see faq 1804

If you want to create your own log messages:
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#writing-and-redirecting-log-and-debug-messages

Revision history for this message
Georg Steyn (georgsteyn) said :
#2

Thanks for Your Input.
I saw there were actually allot of other people
asking similar things, sorry for the double post.

Revision history for this message
Georg Steyn (georgsteyn) said :
#3

Thanks RaiMan, that solved my question.

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

No problem.

Every question tells me something about the usages of SikuliX out there ;-)

Revision history for this message
Georg Steyn (georgsteyn) said :
#5

Well i am working for a Software company called Goodx Software. We need to test our GUI
on multiple test at the same time.

So basically after work when we all leave we want to start up for example 100 or 500 tests
and then tomorrow morning see where what failed and then go look at it.

So a reporting thing would be brilliant. But with your answer on the UnitTest it could work.
Never used it before, but one could always learn.

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

thanks for feedback.

... have a look at the HTMLTestRunner also (see the mentioned faq)

... and RobotFramework might be of interest (http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-robotframework)

Revision history for this message
Georg Steyn (georgsteyn) said :
#7

Thank You very much.
Shall look into it!!! :-)