Hi to everyone,

i'm new to Jenkins and want to run some Selenium HTML Test Cases (packed in
a Test Suite) with Jenkins in an Ant-Script.

The following two Selenium-plugins are installed in Jenkins:
- Selenium HTML report
- Hudson Seleniumhq plugin

The Selenium-Server ist running on 192.168.0.56 and listening to port
"4444".

I added this code-block to my build.xml:
(Referred to
https://wiki.jenkins-ci.org/display/JENKINS/Seleniumhq+Plugin#SeleniumhqPlugin-Ant
<https://wiki.jenkins-ci.org/display/JENKINS/Seleniumhq+Plugin#SeleniumhqPlugin-Ant>
  
)

        <taskdef resource="selenium-ant.properties">
                <classpath>
                        <pathelement location="selenium-server.jar"/>
                </classpath>
        </taskdef>
        <selenese
            suite="./tests/MiniTestSuite.html"
            browser="*firefox"
            results="./tests/results.html"
            multiWindow="true"
            timeoutInSeconds="900"
            startURL="http://some.url.dev/"; />

When i tried to run it, i got the following error:

[taskdef] Could not load definitions from resource selenium-ant.properties.
It could not be found.
BUILD FAILED
<build.xml>:149: Problem: failed to create task or type selenese
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

How can replace the "<pathelement location="selenium-server.jar"/>" with my
external Selenium-Server?
And how can I avoid the "failed to create task or type selenese"-Error?
Do I really need the "selenium-ant.properties"? If yes, what is its content?
Hopefully someone can help me.

Best regards
Thomas



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Run-a-Selenium-HTML-Test-Suite-in-Jenkins-with-ANT-and-an-external-Selenium-Server-tp4644921.html
Sent from the Jenkins issues mailing list archive at Nabble.com.

Reply via email to