I've been meaning to integrate the webtest-maven-plugin for quite some time, just haven't got around to it. You might try it.
http://mojo.codehaus.org/webtest-maven-plugin/ Please let me know if you get it to work. Matt On Sep 17, 2010, at 10:09 AM, Josep García wrote: > We currently use Appfuse 2.0.2. > In our pom we have an integration-test profile which runs Canoo webtests. See > below. > How can we add generation of the Canoo webtest reports and include in the > maven site generation? > > <profile> > <id>integration-test</id> > <activation> > <property> > <name>!maven.test.skip</name> > </property> > </activation> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.cargo</groupId> > <artifactId>cargo-maven2-plugin</artifactId> > <version>0.3</version> > <configuration> > <wait>${cargo.wait}</wait> > <container> > <containerId>${cargo.container}</containerId> > <!--home>${cargo.container.home}</home--> > <zipUrlInstaller> > <url>${cargo.container.url}</url> > <installDir>${installDir}</installDir> > </zipUrlInstaller> > </container> > <configuration> > > <home>${project.build.directory}/${cargo.container}/container</home> > <properties> > > <cargo.hostname>${cargo.host}</cargo.hostname> > > <cargo.servlet.port>${cargo.port}</cargo.servlet.port> > </properties> > </configuration> > </configuration> > <executions> > <execution> > <id>start-container</id> > <phase>pre-integration-test</phase> > <goals> > <goal>start</goal> > </goals> > </execution> > <execution> > <id>stop-container</id> > <phase>post-integration-test</phase> > <goals> > <goal>stop</goal> > </goals> > </execution> > </executions> > </plugin> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.1</version> > <configuration> > <tasks> > <taskdef > resource="webtest_base_relaxed.taskdef"> > <classpath refid="maven.test.classpath"/> > </taskdef> > <mkdir dir="target/webtest-data"/> > <!-- Delete old results file if it exists --> > <delete > file="target/webtest-data/web-tests-result.xml"/> > <!-- This is so the default will be used if > no test case is specified --> > <property name="test" value="run-all-tests"/> > <echo level="info">Testing > '${project.build.finalName}' with locale '${user.language}' > </echo> > <ant > antfile="src/test/resources/web-tests.xml" target="${test}"> > <property name="user.language" > value="${user.language}"/> > <property name="webapp.name" > value="${project.build.finalName}"/> > <property name="host" > value="${cargo.host}"/> > <property name="port" > value="${cargo.port}"/> > </ant> > </tasks> > </configuration> > <executions> > <execution> > <phase>integration-test</phase> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > <dependencies> > <dependency> > <groupId>com.canoo.webtest</groupId> > <artifactId>webtest</artifactId> > <version>${webtest.version}</version> > <!-- groovy-all doesn't have a pom in central > repo --> > <!-- exclude groovy to prevent trying to > fetch pom --> > <exclusions> > <exclusion> > <groupId>groovy</groupId> > <artifactId>groovy-all</artifactId> > </exclusion> > </exclusions> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > </profile> > > Josep >