Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cbi-dev] PhantomJS+Jasmine no longer working on new SLES12 HIPP slaves

Hi there

 

Does anyone of you use Jasmine UI Tests together with PhantomJS – and is on a HIPP that is migrated to the new SLES12 OS?

 

We’re having issues since the update that our Jasmine Tests no longer work after the upgrade, while they are still working fine on our private company server.

Our build uses the jasmine- (2.0) & phantomjs-maven-plugin.

 

What we already tried:

Rebooting the host, checking that necessary libraries are installed (freetype, fontconfig), checking that build runs headless, setting “debug” flag for jasmine plugin.

Also, we tried to use the newest jasmine version (2.2), which only resulted in exceptions [1] in the jasmine plugin.

 

Is anyone else encountering this issue, or does anyone have a solution, workaround or idea?

We’d be grateful for any assistance.

 

Regards,

Patrick

 

Affected maven module: https://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/tree/org.eclipse.scout.rt.ui.html.test/pom.xml?h=releases/6.1.x

Log output: https://hudson.eclipse.org/scout/job/org.eclipse.scout.rt.branch-6.1_continuous/392/ (Hudson Maven excerpt attached below)

 

 

11:50:07  [INFO] --- jasmine-maven-plugin:2.0:test (default) @ org.eclipse.scout.rt.ui.html.test ---
11:50:07  [INFO] o.e.j.s.Server - jetty-8.1.14.v20131031
11:50:07  [INFO] o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:41114
11:50:07  [INFO] Executing Jasmine Specs
11:50:07  Dec 05, 2016 11:50:07 AM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
11:50:07  INFO: executable: /jobs/genie.scout/org.eclipse.scout.rt.branch-6.1_continuous/workspace/org.eclipse.scout.rt.ui.html.test/target/phantomjs-maven-plugin/phantomjs-1.9.7-linux-x86_64/bin/phantomjs
11:50:07  Dec 05, 2016 11:50:07 AM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
11:50:07  INFO: port: 21816
11:50:07  Dec 05, 2016 11:50:07 AM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
11:50:07  INFO: arguments: [--webdriver=21816, --webdriver-logfile=/jobs/genie.scout/org.eclipse.scout.rt.branch-6.1_continuous/workspace/phantomjsdriver.log]
11:50:07  Dec 05, 2016 11:50:07 AM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
11:50:07  INFO: environment: {}
11:50:08  PhantomJS is launching GhostDriver...
11:50:08  [INFO  - 2016-12-05T16:50:08.224Z] GhostDriver - Main - running on port 21816
11:50:08  [INFO  - 2016-12-05T16:50:08.699Z] Session [e1652c70-bb0a-11e6-9791-8353f091b65d] - page.settings - {"XSSAuditingEnabled":false,"_javascript_CanCloseWindows":true,"_javascript_CanOpenWindows":true,"_javascript_Enabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSecurityEnabled":true}
11:50:08  [INFO  - 2016-12-05T16:50:08.699Z] Session [e1652c70-bb0a-11e6-9791-8353f091b65d] - page.customHeaders:  - {}
11:50:08  [INFO  - 2016-12-05T16:50:08.699Z] Session [e1652c70-bb0a-11e6-9791-8353f091b65d] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"linux-unknown-64bit","_javascript_Enabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
11:50:08  [INFO  - 2016-12-05T16:50:08.699Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: e1652c70-bb0a-11e6-9791-8353f091b65d
11:55:08  [INFO  - 2016-12-05T16:55:08.223Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
11:55:09  [INFO  - 2016-12-05T16:55:09.107Z] ShutdownReqHand - _handle - About to shutdown

<<< Truncated Maven reactor info >>>

11:55:10  [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)

11:55:10  [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.searls:jasmine-maven-plugin:2.0:test (default) on project org.eclipse.scout.rt.ui.html.test: The jasmine-maven-plugin encountered an exception:

11:55:10  java.lang.RuntimeException: org.openqa.selenium.TimeoutException: Timed out after 300 seconds waiting for com.github.searls.jasmine.runner.SpecRunnerExecutor$1@533d0001

11:55:10  Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'

11:55:10  System info: host: 'hipp6', ip: '172.30.206.106', os.name: 'Linux', os.arch: 'amd64', os.version: '3.12.62-60.64.8-default', java.version: '1.8.0_102'

11:55:10  Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver

11:55:10  Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.7, platform=LINUX, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.1.0, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, _javascript_Enabled=true, cssSelectorsEnabled=true}]

11:55:10  Session ID: e1652c70-bb0a-11e6-9791-8353f091b65d

11:55:10         at com.github.searls.jasmine.runner.SpecRunnerExecutor.execute(SpecRunnerExecutor.java:53)

11:55:10         at com.github.searls.jasmine.mojo.TestMojo.executeSpecs(TestMojo.java:236)

11:55:10         at com.github.searls.jasmine.mojo.TestMojo.run(TestMojo.java:204)

11:55:10         at com.github.searls.jasmine.mojo.AbstractJasmineMojo.execute(AbstractJasmineMojo.java:385)

11:55:10         at com.github.searls.jasmine.mojo.TestMojo.execute(TestMojo.java:191)

11:55:10         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

11:55:10         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

11:55:10         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

11:55:10         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

11:55:10         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

11:55:10         at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)

11:55:10         at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)

11:55:10         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

11:55:10         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

11:55:10         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

11:55:10         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

11:55:10         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

11:55:10         at java.lang.Thread.run(Thread.java:745)

11:55:10  Caused by: org.openqa.selenium.TimeoutException: Timed out after 300 seconds waiting for com.github.searls.jasmine.runner.SpecRunnerExecutor$1@533d0001

11:55:10  Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'

11:55:10  System info: host: 'hipp6', ip: '172.30.206.106', os.name: 'Linux', os.arch: 'amd64', os.version: '3.12.62-60.64.8-default', java.version: '1.8.0_102'

11:55:10  Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver

11:55:10  Capabilities [{applicationCacheEnabled=false, rotatable=false, handlesAlerts=false, databaseEnabled=false, version=1.9.7, platform=LINUX, browserConnectionEnabled=false, proxy={proxyType=direct}, nativeEvents=true, acceptSslCerts=false, driverVersion=1.1.0, locationContextEnabled=false, webStorageEnabled=false, browserName=phantomjs, takesScreenshot=true, driverName=ghostdriver, _javascript_Enabled=true, cssSelectorsEnabled=true}]

11:55:10  Session ID: e1652c70-bb0a-11e6-9791-8353f091b65d

11:55:10         at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:79)

11:55:10         at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:228)

11:55:10         at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:175)

11:55:10         at com.github.searls.jasmine.runner.SpecRunnerExecutor.waitForRunnerToFinish(SpecRunnerExecutor.java:91)

11:55:10         at com.github.searls.jasmine.runner.SpecRunnerExecutor.execute(SpecRunnerExecutor.java:43)

11:55:10         ... 17 more

 

 

 

[1] Error when upgrading phantomjs to version 2.2:
 
java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String
         at org.openqa.selenium.phantomjs.PhantomJSDriverService.findPhantomJS(PhantomJSDriverService.java:230)

 

 

--

Software Engineer
BSI Business Systems Integration AG
Täfernweg 1, CH-5405 Baden
T +41 56 484 16 43
www.bsi-software.com

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top