This is using the Seleniumhq Plugin[1].

The problem looks to be that the resultFilePath cannot be a URL, and must 
be a file, and the help for that item it indicates that.

    "Result file of test run (e.g. "seleniumhq/result.html")
    Directory relative to the root of the workspace"


and the code backs that up and does no checking that the field is valid.

https://svn.jenkins-ci.org/trunk/hudson/plugins/seleniumhq/src/main/java/hudson/plugins/seleniumhq/SeleniumhqBuilder.java
 
        FilePath resultFilePath = new FilePath(build.getWorkspace(), 
this.resultFile);
        resultFilePath.getParent().mkdirs();


Note: I do not use this plugin, this is just from looking at the stack 
trace and code.

Chris

[1] https://wiki.jenkins-ci.org/display/JENKINS/Seleniumhq+Plugin  

On Tuesday, September 18, 2012 8:35:17 PM UTC+1, Max Sussman wrote:
>
> So I am new to Selenium and Jenkins and am trying to get the plugi nto run 
> my selenium tests to run through the plugin on my nightly build
> So first I put PATH for the selenium-server.jar in the htmlSuite Runner 
> box under the Selenium Remote Control section of Configure System[Jenkins]
>
> Then when I am in my projects war file, under the configure page there is 
> the input for Selenium Plugin, which I run in the Post Steps section which 
> I have listed below
> .
> *SeleniumHQ htmlSuite Run*
>  browser: *firefox, *chrome
>  startURL: http://ny-s-rh-jboss:9090/metis/app/index.html 
>
> suiteFile:
> http://ny-s-build:8080/view/Metis/job/Metis-war/ws/wMetis/src/test/java/com/cor/fja/sss/tests/Selenium%20Tests/Login%20Page%20(Correct%20ID,Password).html
>
> resultFile: 
> http://ny-s-build:8080/view/Metis/job/Metis-war/ws/wMetis/src/test/java/com/cor/fja/sss/tests/Selenium%20Tests/result.html
>
> other :
>
>
>
> So after configuring all this I get the following problems,
> The selenium HTML reports page gives me this:
>
> The Selenium test reports.
> ResultNameTests totalTests passesTests failuresCommands passesCommands 
> failuresCommands errorsDurationSummen0000000 s = 0.0 min and 0 s
>
>
>
>
>
>
>
> Then when I go to the Console Output i get the following:
>
> Try downloading suite file on master
>     from url : 
> http://ny-s-build:8080/view/Metis/job/Metis-war/ws/wMetis/src/test/java/com/cor/fja/sss/tests/Selenium%20Tests/Login%20Page%20(Correct%20ID,Password).html
>  
> <http://ny-s-build:8080/view/Metis/job/Metis-war/ws/wMetis/src/test/java/com/cor/fja/sss/tests/Selenium%20Tests/Login%20Page%20%28Correct%20ID,Password%29.html>
>     to file  : 
> C:\Users\PROADMIN\AppData\Local\Temp\tempHtmlSuite5334639576960914516html
>     ...
>     Succeed
> Try transfer suite file on slave
>     from file : 
> C:\Users\PROADMIN\AppData\Local\Temp\tempHtmlSuite5334639576960914516html
>     to file   : 
> C:\Jenkins\jobs\Metis-war\workspace\tempHtmlSuite7901981271847022620html
>     ...
>     Succeed
> ERROR: Failed to parse POMsjava.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Failed 
> to mkdirs: 
> C:\Jenkins\jobs\Metis-war\workspace\http:\ny-s-build:8080\view\Metis\job\Metis-war\ws\wMetis\src\test\java\com\cor\fja\sss\tests\Selenium%20Tests
>       at hudson.FilePath.mkdirs(FilePath.java:901) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.mkdirs&entity=method>
>       at 
> hudson.plugins.seleniumhq.SeleniumhqBuilder.perform(SeleniumhqBuilder.java:232)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.seleniumhq.SeleniumhqBuilder.perform&entity=method>
>       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method>
>       at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:866)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build&entity=method>
>       at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:805)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>       at hudson.model.Run.execute(Run.java:1502) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>       at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.run&entity=method>
>       at hudson.model.ResourceController.execute(ResourceController.java:88) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>       at hudson.model.Executor.run(Executor.java:236) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> Publishing Selenium report...
> Copying the reports.
> parsing resultFile Login Page (Correct ID,Password).html
> Unable to parse Login Page (Correct ID,Password).html: 
> java.net.ConnectException: Connection timed out: connect
> parsing resultFile result.html
> Unable to parse result.html: java.io.IOException: 
> org.xml.sax.SAXParseException: Premature end of file.
> Finished: FAILURE
>
>
>
>
>
>
> Does anyone have any ideas what my problems could be? Any help is greatly 
> appreciated.
>
>
>
>
>
>
>
>
>
>

Reply via email to