← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #180585]: Confused about the Unit Test feature in Sikuli

 

Question #180585 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/180585

    Status: Open => Answered

RaiMan proposed the following answer:
As long as your tests are such simple (click and wait ;-) and do not
need any special features (calling other functions, or even imports) you
can start with the IDE feature. But usually, fun with it does not last
very long.

IDE's unit test run usually hangs, if there are some syntax errors in
the script (e.g. indentation problems, missing colons, mismatched
brackets, ...). If the run hangs, try to use the abort key (shift-cmd-c
on Mac) and have a look at the message area.

If unsure, I just "run" the script in normal mode, which does nothing,
since it only contains def()'s, that are not called. But at least most
syntax problems are detected. Then you can switch back using cmd-u and
run it in test mode.

Always remember to save the script again if you make any changes.

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