Getting Started With Sikuli

Asked by vivek

I am new to sikuli and python (jython). I want to do some GUI testing using unittest and test suites

I need help on how to install it correctly with the right libararies and use the import in sikuli.
I have been looking at lots of tutorials but they seem to start from mid-way and I need a more simple explanation.

any help would be greatly appreciated

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

a good start might be faq 1804

You can start with plain Sikuli IDE to set up your first scripts and you may run them from command line.

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

... and if you are familiar with Java unit testing, this should be your first choice.

... or even something like RobotFrameWork

Revision history for this message
vivek (vivek24aggarwal) said :
#3

Thanks for the reply RaiMan
I am actually new to programming so i m not familiar with java unit testing

Following your advice, I have been writing simple sikuli scripts and running them from the command line.

the next thing i was trying to do was to run the few tests i had written from a main.sikuli script using a test suite and following the faq 1804 but it isnt working

the moment i put anything before the def in the script, the tests dont work from the unit test in the ide or even from the command line.

I had put from sikuli import * at the beginnning of xxxx.sikuli (Thats before the defs) and its not working now. am i doing it all wrong?

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

send me your stuff zipped together at my mail: https://launchpad.net/~raimund-hocke

it is easier and after to help you in this case.

Revision history for this message
vivek (vivek24aggarwal) said :
#5

I Have emailed you....thanks

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

The problem in your case:

Sikuli scripts containing unittest test classes and will be imported by a main script, should not have the same name as one of the contained test classes.

Can you help with this problem?

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

To post a message you must log in.