Git Product home page Git Product logo

seleneserunner-java-plugin's People

Contributors

hayato1980 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

seleneserunner-java-plugin's Issues

PhantomJS test does not work

what happened

  • run selenese test by PhantomJS
  • Timeout error occured.

caused by

phantomjs command is not open networkport.
java process is waiting and timeout open the port.

phantomjs --webdriver=26638 --webdriver-logfile=/phantomjsdriver.log
PhantomJS is launching GhostDriver...
Unable to open file '/phantomjsdriver.log'

"user.dir" of jenkins process is "/".

DISPLAY environment variable is not inherited.

Jenkins Xvnc plugin is to start vncserver and to set DISPLAY environment variable.

But, selenese-runner-plugin is not set DISPLAY to firefox, chrome browser.

Build step output following log.

Starting xvnc
[private-redmine-monitor] $ /usr/bin/vncserver :13 -geometry 1024x768

New 'kvps-180-235-230-164.secure.ne.jp:13 (jenkins)' desktop is kvps-180-235-230-164.secure.ne.jp:13

Starting applications specified in /var/lib/jenkins/.vnc/xstartup
Log file is /var/lib/jenkins/.vnc/kvps-180-235-230-164.secure.ne.jp:13.log

[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Executing and processing the following script content:
export DISPLAY=":13"

[private-redmine-monitor] $ /bin/sh -xe /tmp/hudson3268031495543104427.sh

  • export DISPLAY=:13
  • DISPLAY=:13
    [EnvInject] - Script executed successfully.
    [private-redmine-monitor] $ /bin/sh -xe /tmp/hudson3924590289821535774.sh
  • echo :13
    :13
    selenese start.
    org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
    Error: no display specified
    Error: no display specified

Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.18-238.el5', java.version: '1.7.0_07'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:121)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:245)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:109)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:178)
at jp.vmi.selenium.webdriver.FirefoxDriverFactory.newInstance(FirefoxDriverFactory.java:62)
at jp.vmi.selenium.webdriver.WebDriverManager.get(WebDriverManager.java:171)
at jp.haya10.jenkins.seleneserunnerplugin.SeleneseRunnerBuilder.perform(SeleneseRunnerBuilder.java:116)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1502)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
Error: no display specified
Error: no display specified

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:109)
... 16 more

selenese finished.
Build step 'Run selenese script' marked build as failure
Terminating xvnc.
$ /usr/bin/vncserver -kill :13
Killing Xvnc process ID 7609
Recording test results
Finished: FAILURE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.