RaiMan / SikuliX-2014

SikuliX version 1.1.2 (until February 2018)
http://sikulix.com
805 stars 235 forks source link

Error executing Sikuli command via Jenkins #270

Closed njchandu closed 6 years ago

njchandu commented 7 years ago

Hi,

I'm trying to execute a Sikuli command via Selenium Java and not able to get through.

I have a sikuli script generated via sikuli.ide, I am invoking the script via Java Process and Runtime. pr = rt.exec("runsikulix -c -r sikuTest.sikuli"); I'm able to execute the scripts fine from commandline when I execute it via Jenkins I get the below error. Any help is seriously appreciated. I'm trying to get this to work from last week. No luck!

20:32:23 running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
20:32:23 -jar sikulix.jar -c -r /sikuTest.sikuli
20:32:23 [info] runcmd: lsb_release -i -r -s 

20:32:27 [info] App: command wmctrl ran, but failed: `org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)'. Hoping for the best
20:32:27 [info] App: command xdotool ran, but failed: `org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)'. Hoping for the best

20:32:28 [error] script [ /home/whatfix/github/whatfix-ui-tests/src/test/resources/siku.sikuli ] stopped with error in line 1
20:32:28 [error] java.lang.NullPointerException ( java.lang.NullPointerException )

Thanks.

RaiMan commented 6 years ago

expired