Yes, I agree there's no goal.
That's part of my problem. I believe I need to use the selenium:selenese
goal. But I have no idea how to configure that goal.
I tried adding a goal like this:
<goals>
<goal>selenese</goal>
</goals>
and got messages about setting values for configuration.. So then I tried:
<executions>
<execution>
<id>one</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
</configuration>
</execution>
<execution>
<id>two</id>
<phase>integration-test</phase>
<goals>
<goal>selenese</goal>
</goals>
<configuration>
<suite>src/test/resources/TestSuite.html"</suite>
<browser>*firefox</browser>
<port>9999</port>
<results>${project.build.directory}/target</results>
<startURL>http://localhost:8080/mipr/app
</startURL>
</configuration>
</execution>
</executions>
and got this error:
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not find matching constructor for:
org.openqa.selenium.server.SeleniumServer(java.lang.Integer,
java.lang.Boolean, java.lang.Boolean)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
groovy.lang.GroovyRuntimeException: Could not find matching constructor for:
org.openqa.selenium.server.SeleniumServer(java.lang.Integer,
java.lang.Boolean, java.lang.Boolean)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1273)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1185)
I just want to start the server and run some selenese tests from a known
file set against a known web url...
Seems simple enough....
Tony
<http://mojo.codehaus.org/selenium-maven-plugin/selenese-mojo.html>
On Sat, Apr 18, 2009 at 5:45 AM, Jason Dillon <[email protected]> wrote:
> Looks like you are missing <goals>
> --jason
>
>
> On Apr 18, 2009, at 2:46 AM, Tony Giaccone wrote:
>
>
> I've been trying to make sense of the documentation that describes how to
> use the selenium maven plugin and I've gotten to the point where I can run a
> test case, against my currently running web app. However, the test case is a
> java class. What I want to be able to do is run a set of selenese test cases
> against the application.
>
> I can't seem to figure out how to set up my pom file to use the plugin to
> get this to work. Can someone either point me to a simple example that I
> can ponder over till I figure it out, or better still give me a quick
> overview of how this should be set up.
>
> This is what I currently have set up in my pom:
>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>selenium-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>two</id>
> <phase>verify</phase>
> <configuration>
> <selenese>
>
> <suite>src/test/resources/TestSuite.html"</suite>
> <browser>*firefox</browser>
> <port>9999</port>
>
> <results>${project.build.directory}/target</results>
> <startURL>http://localhost:8080/myweb/app
> </startURL>
> </selenese>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> That's clearly not working. Any help would be appreciated.
>
>
> Tony Giaccone
>
>
>