1.1 errors on attempting exit()
Hi Raiman,
I've been developing a unit test environment on OSX with SikulixIDE 1.1.0, currently on 2015-05-13 nightly build.
I want to get some sort of return from my scripts, so that I can know if they are successful or not. It would seem that putting exit(1) or some other number would be the apropriate function.
However, while trying to import a file that has exit(1) at the end of the sikuli script, I get an error. Here is an example of one of the sikuli files I am trying to import:
from sikuli import *
click("
click("Screen Shot 2015-04-28 at 11.50.04 AM.png")
click("
click("
wait(3)
click("
wait(5)
click("
exit(1)
Here is the error while trying to import this file:
[error] script [ mytest ] stopped with error in line 2
[error] SystemExit ( !!WHILE IMPORTING!! 1 )
[error] --- Traceback --- error source first
line: module ( function ) statement
434: Sikuli ( exit ) SystemExit: !!WHILE IMPORTING!! 1
10: SFR_basic ( <module> ) exit(1)
[error] --- Traceback --- end --------------
What might I be doing wrong here? Is there a better function I should be using?
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: