You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2008/03/25 05:43:08 UTC

[m2] issues getting Jetty and Selenium running from examples.

So I have been trying to follow:
http://wiki.foochal.org/index.php/Maven_Selenium

Now I have a core:jar and a web:war in a multi-module project.

The 1st issue I have from the example is the *maven-surefire-plugin* as I
get this error:
*Reason: Parse error reading POM. Reason: Unrecognised tag: 'executions'
(position: START_TAG seen ...</configuration>\r\n\r\n                <exe*
*cutions>... @291:29)  for project unknown:webapp at
C:\opt\temp\appfuse\myproject\pom.xml*


and I can not get the selenium server to startup and jetty to start up
automatically.
Then the SeleniumHelloWorldExample.java test is failing because the Jetty
and Selenium as I get this error:

*<![CDATA[Could not contact Selenium Server; have you started it?*
*Catch body broken: IOException from
cmd=getNewBrowserSession&1=*firefox&2=http%3A%2F%2Flocalhost%3A8080%2F ->
java.net.ConnectException: Connection refused: connect]]>*

So I also tried this setting, but my selenium tests are still run:

*<plugin>*
*                <artifactId>maven-surefire-report-plugin</artifactId>*
*                <version>2.4.2</version>*
*                <configuration>*
*                    <skip>true</skip>*

*                    <includes>*
*                        <include>**/*.java</include>*
*                    </includes>*
*                    <excludes>*
*                        <exclude>**/selenium/*.java</exclude>*
*                        <exclude>**/*$*</exclude>*
*                    </excludes>*
*                    <systemProperties>*
*                        <property>*
*                            <name>net.sourceforge.cobertura.datafile</name>
*
*                            <value>target/cobertura/cobertura.ser</value>*
*                        </property>*
*                    </systemProperties>*
*                    <argLine>-Xmx256m</argLine>*
*                    <testFailureIgnore>true</testFailureIgnore>*
*                </configuration>*
*            </plugin>*


-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.linkedin.com/in/mickknutson
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---

Re: [m2] issues getting Jetty and Selenium running from examples.

Posted by cody zhang <co...@gmail.com>.
your selenium plugin configuration?
past :

2008/3/25, Mick Knutson <mi...@gmail.com>:
> So I have been trying to follow:
>  http://wiki.foochal.org/index.php/Maven_Selenium
>
>  Now I have a core:jar and a web:war in a multi-module project.
>
>  The 1st issue I have from the example is the *maven-surefire-plugin* as I
>  get this error:
>  *Reason: Parse error reading POM. Reason: Unrecognised tag: 'executions'
>  (position: START_TAG seen ...</configuration>\r\n\r\n                <exe*
>  *cutions>... @291:29)  for project unknown:webapp at
>  C:\opt\temp\appfuse\myproject\pom.xml*
>
>
>  and I can not get the selenium server to startup and jetty to start up
>  automatically.
>  Then the SeleniumHelloWorldExample.java test is failing because the Jetty
>  and Selenium as I get this error:
>
>  *<![CDATA[Could not contact Selenium Server; have you started it?*
>  *Catch body broken: IOException from
>  cmd=getNewBrowserSession&1=*firefox&2=http%3A%2F%2Flocalhost%3A8080%2F ->
>  java.net.ConnectException: Connection refused: connect]]>*
>
>  So I also tried this setting, but my selenium tests are still run:
>
>  *<plugin>*
>  *                <artifactId>maven-surefire-report-plugin</artifactId>*
>  *                <version>2.4.2</version>*
>  *                <configuration>*
>  *                    <skip>true</skip>*
>
>  *                    <includes>*
>  *                        <include>**/*.java</include>*
>  *                    </includes>*
>  *                    <excludes>*
>  *                        <exclude>**/selenium/*.java</exclude>*
>  *                        <exclude>**/*$*</exclude>*
>  *                    </excludes>*
>  *                    <systemProperties>*
>  *                        <property>*
>  *                            <name>net.sourceforge.cobertura.datafile</name>
>  *
>  *                            <value>target/cobertura/cobertura.ser</value>*
>  *                        </property>*
>  *                    </systemProperties>*
>  *                    <argLine>-Xmx256m</argLine>*
>  *                    <testFailureIgnore>true</testFailureIgnore>*
>  *                </configuration>*
>  *            </plugin>*
>
>
>  --
>  Thanks,
>  Mick Knutson
>
>  http://www.baselogic.com
>  http://www.blincmagazine.com
>  http://www.linkedin.com/in/mickknutson
>  http://www.djmick.com
>  http://www.myspace.com/mickknutson
>  http://www.myspace.com/BLiNCMagazine
>  http://tahoe.baselogic.com
>  ---
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org