← Back to team overview

sikuli-driver team mailing list archive

[Question #255033]: Jenkins build fails while running sikuli+webdriver Test script

 

New question #255033 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255033

I am doing GUI based functional testing using WebDriver+TestNG+ANT.

The AUT has flash player so I have used sikuli as an alternative to trigger the mouse action (click, fill form etc) over flash.

It works fine when I execute it on IDE (I use Eclipse).

However if I execute them on Jenkins it didn't work, When I execute, it just blink the browser and throws Exception.

xception java.lang.ExceptionInInitializerError

Message: (none)

Stacktrace:
at testCases.TestPurchaseUsingStripe.<clinit>(Unknown Source)
at AutomationFramework.TestModules.testPurchaseUsingStripe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.TestNG.privateMain(TestNG.java:1364)
at org.testng.TestNG.main(TestNG.java:1333)
Caused by: java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.java2d.HeadlessGraphicsEnvironment.getScreenDevices(HeadlessGraphicsEnvironment.java:72)
at org.sikuli.script.Screen.<clinit>(Screen.java:26)
... 25 more

However I can make other test script executing. (Those did not contain usage of sikuli image recognition calls.)

Can anyone help me out to figure it out?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.