sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00387
[Bug 687559] Re: 0.10.2 --args not working with Sikuli JUnit tests?
** Summary changed:
- --args not working with Sikuli JUnit tests?
+ 0.10.2 --args not working with Sikuli JUnit tests?
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/687559
Title:
0.10.2 --args not working with Sikuli JUnit tests?
Status in Sikuli:
Fix Committed
Bug description:
I have a working Sikuli JUnit test script, test.py. In the top indent
level, I have this code:
for arg in sys.argv:
print arg
If I invoke it like so, it prints all the args:
sikuli-ide.sh -r test.sikuli/ --args arg1 arg2 arg3
However, when I try to run it as a JUnit test, I get no printing of
args:
sikuli-ide.sh -t test.sikuli/ --args arg1 arg2 arg3
I even tried inserting the arg-printing code block into my one test
method, which is invoked by the JUnit framework, and it prints
nothing, indicating that it sees no args (or empty args).
Should it be possible to pass args to a JUnit-enabled Sikuli script?
Am I doing something wrong, or is this a bug?