sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01321
[Bug 719245] Re: ScriptRunner.runPython causes JVM to exit upon completion
by design, when running a Sikuli script standalone (from Java or in the
command line), the JVM, it is running in is exited.
I guess you have to put the "gathering" of your single scripts to the
python level and use import or execfile for each of your test, so that
on the Java level it is one Sikuli script.
Or you might try to call each scripts using a system command "java -jar
sikuli-script.jar path to your script", hoping that gets it's own JVM.
** Summary changed:
- ScriptRunner.runPython causes JVM to exit upon completion
+ Java: Running Sikuli scripts using ScriptRunner.runPython causes JVM to exit upon completion
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/719245
Title:
Java: Running Sikuli scripts using ScriptRunner.runPython causes JVM
to exit upon completion
Status in Sikuli:
New
Bug description:
Having gathered all of my individual, Sikuli-GUI-made unit tests into
a single test suite and trying to run them sequentially I was hit by
the incredible show-stopper bug of having the JVM shut down as soon as
the first script finished. (Using X 1.0 rc2 "Maltese" on 64-bit
Windows 7, but running 32-bit Java 1.6.0_23-b05)
The following code will never WOOGAH CHAKA:
final ScriptRunner sr = ScriptRunner.getInstance(new String[0]);
sr.runPython("testing/sikuli/InitialGuiLookTest.sikuli", new File("testing/sikuli/InitialGuiLookTest.sikuli/InitialGuiLookTest.py"));
System.out.println("WOOOGAH CHAKA");
References