sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42825
[Bug 1489809] Re: [1.1.0] run sikuli script with jenkins
appearently i have the same problem when trying to run sikuli through an
sshtask with cygwin as ssh-host. I get the following error message:
14-Jun-2017 14:03:48 +++ running this Java
14-Jun-2017 14:03:52 +++ trying to run SikuliX
14-Jun-2017 14:03:52 +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\SikuliX\sikulix.jar -d 3 -r E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli
14-Jun-2017 14:03:56 [debug] RunTimeINIT: loadOptions: check: C:\cygwin\home\GuiTester
14-Jun-2017 14:03:56 [debug] RunTimeINIT: loadOptions: check: C:\Users\GuiTester
14-Jun-2017 14:03:56 [debug] RunTimeINIT: loadOptions: check: C:\Users\GuiTester\AppData\Roaming\Sikulix\SikulixStore
14-Jun-2017 14:03:56 [debug] RunTimeINIT: global init: entering as: IDE
14-Jun-2017 14:03:57 [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
14-Jun-2017 14:03:57 [debug] RunTimeINIT: Monitor 0: (0, 0) 1024 x 768
14-Jun-2017 14:03:57 [debug] RunTimeINIT: runs as sikulix.jar in: C:\SikuliX
14-Jun-2017 14:03:57 [debug] RunTimeINIT: exists libs folder at: C:\Users\GuiTester\AppData\Roaming\Sikulix\SikulixLibs_201703300100
14-Jun-2017 14:03:59 [debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
14-Jun-2017 14:03:59 C:\Users\GuiTester\AppData\Roaming\Sikulix\SikulixLibs_201703300100
14-Jun-2017 14:03:59 [debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
14-Jun-2017 14:03:59 ***** show environment for IDE (build 201703300100)
14-Jun-2017 14:03:59 user.home: C:\Users\GuiTester
14-Jun-2017 14:03:59 user.dir (work dir): C:\cygwin\home\GuiTester
14-Jun-2017 14:03:59 user.name: GuiTester
14-Jun-2017 14:03:59 java.io.tmpdir: C:\Users\GuiTester
14-Jun-2017 14:03:59 running 32Bit on Windows (6.1) from a jar
14-Jun-2017 14:03:59 java 8-32 version 1.8.0_131-b11 vm 25.131-b11 class 52.0 arch x86
14-Jun-2017 14:03:59 app data folder: C:\Users\GuiTester\AppData\Roaming\Sikulix
14-Jun-2017 14:03:59 libs folder: C:\Users\GuiTester\AppData\Roaming\Sikulix\SikulixLibs_201703300100
14-Jun-2017 14:03:59 executing jar: C:\SikuliX\sikulix.jar
14-Jun-2017 14:03:59 *** classpath dump sikulix
14-Jun-2017 14:03:59 0: /C:/SikuliX/sikulix.jar
14-Jun-2017 14:03:59 *** classpath dump end
14-Jun-2017 14:03:59 ***** show environment end
14-Jun-2017 14:03:59 [debug] RunTimeIDE: global init: leaving
14-Jun-2017 14:03:59 [debug] RunTimeIDE: initIDEbefore: entering
14-Jun-2017 14:04:00 [debug] RunTimeIDE: initIDEbefore: leaving
14-Jun-2017 14:04:00 [debug] RunTimeIDE: initAPI: entering
14-Jun-2017 14:04:00 [debug] RunTimeIDE: resourceList: enter
14-Jun-2017 14:04:00 [debug] RunTimeIDE: resourceLocation: (class org.sikuli.ide.SikuliIDE) /Lib/sikuli
14-Jun-2017 14:04:00 [debug] RunTimeIDE: resourceList: having jar: jar:file:/C:/SikuliX/sikulix.jar!/Lib/sikuli
14-Jun-2017 14:04:17 [debug] RunTimeIDE: files exported: 7 from: Lib/sikuli to:
14-Jun-2017 14:04:17 C:\Users\GuiTester\AppData\Roaming\Sikulix\Lib\sikuli
14-Jun-2017 14:04:17 [debug] RunTimeIDE: initAPI: leaving
14-Jun-2017 14:04:17 [debug] IDE: Switching to ScriptRunner with option -r, -t or -i
14-Jun-2017 14:04:17 [debug] Runner: commandline: -d 3 -r E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli
14-Jun-2017 14:04:17 [debug] --- Sikuli parameters ---
14-Jun-2017 14:04:17 [debug] 1: -d
14-Jun-2017 14:04:17 [debug] 2: 3
14-Jun-2017 14:04:17 [debug] 3: -r
14-Jun-2017 14:04:17 [debug] 4: E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli
14-Jun-2017 14:04:17 [debug] ScriptingSupport: givenScriptName:
14-Jun-2017 14:04:17 E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli
14-Jun-2017 14:04:17 [debug] ScriptingSupport: Trying to run script:
14-Jun-2017 14:04:17 E:\Freigaben\VE_Config\AntScriptUndTests\FirstTest.sikuli\FirstTest.py
14-Jun-2017 14:04:17 [debug] ScriptingSupport: initScriptingSupport: enter
14-Jun-2017 14:04:22 [debug] JythonSupport: init: starting
14-Jun-2017 14:04:22 [debug] JythonSupport: init: success
14-Jun-2017 14:04:22 [debug] JythonSupport: ***** Jython sys.path
14-Jun-2017 14:04:22 0: C:\SikuliX\Lib
14-Jun-2017 14:04:22 1: C:\SikuliX\sikulix.jar\Lib
14-Jun-2017 14:04:22 2: __classpath__
14-Jun-2017 14:04:22 3: __pyclasspath__/
14-Jun-2017 14:04:22 [debug] JythonSupport: ***** Jython sys.path end
14-Jun-2017 14:04:22 [debug] Jython: sikuli: Sikuli: starting init
14-Jun-2017 14:04:27 [debug] RunTimeIDE: loadLib: VisionProxy.dll
14-Jun-2017 14:04:27 [debug] Mouse: init start
14-Jun-2017 14:04:27 [error] Location: outside any screen (7522624, 7522624) - subsequent actions might not work as expected
14-Jun-2017 14:04:27 [debug] Mouse: init end
14-Jun-2017 14:04:27 [debug] RunTimeIDE: loadLib: WinUtil.dll
14-Jun-2017 14:04:27 [debug] Jython: requested to use as default region: S(0)[0,0 1024x768]
14-Jun-2017 14:04:27 [debug] Jython: sikuli: Sikuli: ending init
14-Jun-2017 14:04:27 [debug] JythonScriptRunner: running Jython 2.7.0
14-Jun-2017 14:04:27 [debug] ScriptingSupport: initScriptingSupport: added: jython
14-Jun-2017 14:04:27 [debug] ScriptingSupport: initScriptingSupport: added: jruby
14-Jun-2017 14:04:27 [debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
14-Jun-2017 14:04:27 [debug] ImagePath: new BundlePath:
14-Jun-2017 14:04:27 /E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli/
14-Jun-2017 14:04:27 [debug] Jython: requested to use as default region: S(0)[0,0 1024x768]
14-Jun-2017 14:04:27 [debug] JythonScriptRunner: runPython: running script:
14-Jun-2017 14:04:27 E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli
14-Jun-2017 14:04:28 [debug] Image: loaded: 1497438768481.png (file:/E:/Freigaben/VE_Config/AntScriptUndTests/FirstTest.sikuli/1497438768481.png)
14-Jun-2017 14:04:28 [debug] Image: cached: 1497438768481.png (2 KB) (# 1 KB 2 -- 0 % of 64 MB)
14-Jun-2017 14:04:28 [debug] Region: wait: waiting 3,0 secs for 1497438768481.png to appear in S(0)[0,0 1024x768]
14-Jun-2017 14:04:31 [debug] Region: handleFindFailed: P(1497438768481.png) S: 0.44
14-Jun-2017 14:04:31 [debug] Region: wait: 1497438768481.png did not appear [3220 msec]
14-Jun-2017 14:04:31 [error] script [ E:\Freigaben\VE_Config\AntScriptUndTests\FirstTest.sikuli ] stopped with error in line 1
14-Jun-2017 14:04:31 [error] FindFailed ( 1497438768481.png: (34x28) in S(0)[0,0 1024x768] E:Y, T:3,0 )
14-Jun-2017 14:04:31 [debug] RunTimeIDE: final cleanup
14-Jun-2017 14:04:31 [debug] FileManager: deleteFileOrFolder:
14-Jun-2017 14:04:31 C:\Users\GuiTester\Sikulix_13188964
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1489809
Title:
[1.1.0] run sikuli script with jenkins
Status in Sikuli:
Confirmed
Bug description:
I'm working with sikuli 1.1.0, in a windows server 64-bits.
Where i have install jenkins, when I create a job to run an example
Test Case from jenkins I have this error:
======================================================================================================
c:\dcip\workspace\vdc\example>C:\sikulix\runsikulix.cmd -r C:\example.sikuli
+++ running this Java
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\sikulix\sikulix.jar -r C:\example.sikuli
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.sikuli.util.SysJNA$WinKernel32.GetEnvironmentVariableW(Lorg/bridj/Pointer;Lorg/bridj/Pointer;I)I
at org.sikuli.util.SysJNA$WinKernel32.GetEnvironmentVariableW(Native Method)
at org.sikuli.util.SysJNA$WinKernel32.getEnvironmentVariable(SysJNA.java:53)
at org.sikuli.script.RunTime.addToWindowsSystemPath(RunTime.java:997)
at org.sikuli.script.RunTime.libsExport(RunTime.java:959)
at org.sikuli.script.RunTime.init(RunTime.java:715)
at org.sikuli.script.RunTime.get(RunTime.java:291)
at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:177)
at org.sikuli.ide.Sikulix.main(Sikulix.java:21)
# BridJ: LoadLibrary error when loading C:\Windows\SysWOW64\kernel32.dll : %1 is not a valid Win32 application.
# BridJ: LoadLibrary error when loading C:\Windows\SysWOW64\kernel32.dll : %1 is not a valid Win32 application.
# BridJ: LoadLibrary error when loading C:\Windows\SysWOW64\kernel32.dll : %1 is not a valid Win32 application.
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
======================================================================================================
but when I tried to execute from the cmd, the same command works well
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1489809/+subscriptions
References