sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50975
Re: [Question #679122]: SikuliXIDE; Mojave; Robot Framework: ArrayIndexOutOfBoundsException: 1
Question #679122 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679122
Status: Answered => Open
Melvin Raymond is still having a problem:
Thank you Raiman for the reply.
I think there is some kind of bug in the App.close(myApp) class for Jython or Python.
I checked my preferences settings and it is indeed "on" for converting tabs to spaces, and with 4 spaces per tab
I'm still getting the "java.lang.ArrayIndexOutOfBoundsException: 1"
I RAN THE FOLLOWING SCRIPT (Which appears to have opened the app, ran
the test, closed the app):
class GA4(object):
def prepare_my_application(self, myApp):
self.stoppedmyapp = False
self.startedmyapp = App.open(myApp, 5)
def stop_my_application(self, myApp):
self.stoppedmyapp = App.close(myApp)
if self.stoppedmyapp:
self.startedmyapp = None
def prepare_test_case(self, myApp):
wait(2)
def status(self):
print "started:", self.startedmyapp, "\nstopped:", self.stoppedmyapp
test = GA4()
appName = "/Applications/GraphicalAnalysis.app"
test.prepare_my_application(appName)
test.status()
test.prepare_test_case(appName)
test.stop_my_application(appName)
test.status()
TEST GENERATED THE FOLLOWING ERROR:
started: [1414:Vernier Graphical Analysis (Vernier Graphical Analysis)] /Applications/GraphicalAnalysis.app
stopped: False
[error] script [ Raiman-test-2 ] stopped with error in line 24
[error] java.lang.ArrayIndexOutOfBoundsException ( java.lang.ArrayIndexOutOfBoundsException: 1 )
[error] --- Traceback --- error source first
line: module ( function ) statement
7: main ( stop_my_application ) self.stoppedmyapp = App.close(myApp)
[error] --- Traceback --- end --------------
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.