$ mvn clean test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------- --- [INFO] Building Struts Action - Taglib (HttpUnit) Tests [INFO] task-segment: [clean, test] [INFO] ------------------------------------------------------------------------- --- [INFO] [clean:clean] [INFO] Deleting directory c:\svn\struts\current\action\integration\tg4w\target [INFO] Deleting directory c:\svn\struts\current\action\integration\tg4w\target\c lasses [INFO] Deleting directory c:\svn\struts\current\action\integration\tg4w\target\t est-classes [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [testgen4web:testgen4web {execution: translate-and-compile-testgen4web-te sts}] Processing: 'c:\svn\struts\current\action\integration\tg4w\src\main\scripts\blan k-verify-welcome.xml' is File Generating test for c:\svn\struts\current\action\integration\tg4w\src\main\scrip ts\blank-verify-welcome.xml org.apache.xerces.jaxp.SAXParserImpl Hunched: BlankVerifyWelcome found 4 actions [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 1 source file to c:\svn\struts\current\action\integration\tg4w\target test-classes [INFO] [surefire:test] [INFO] Setting reports dir: c:\svn\struts\current\action\integration\tg4w\target /surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Rhino classes (js.jar) not found - Javascript disabled [surefire] Running test.spikesource.httpunit.BlankVerifyWelcomeTest Generated file version: 0.38.1 step count set to 1 Step 1: goto Executing: Get saving response: 0 Got page: Struts Blank Application URL : http://localhost:8080/struts-blank/Welcome.do step count set to 2 Step 2: verify-title Checking title to be: Struts Wrong Title Blank Application skip testing for title! step count set to 3 Step 3: verify-title Checking title to be: Struts Wrong Title Blank Application skip testing for title! step count set to 4 Step 4: assert-text-exists Not implemented. Test run successfull [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 10.844 sec [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 38 seconds [INFO] Finished at: Thu May 04 13:16:17 MST 2006 [INFO] Final Memory: 6M/12M [INFO] ------------------------------------------------------------------------
Index: src/main/scripts/blank-verify-welcome.xml =================================================================== --- src/main/scripts/blank-verify-welcome.xml (revision 399823) +++ src/main/scripts/blank-verify-welcome.xml (working copy) @@ -7,11 +7,11 @@ </action> <action type="verify-title" refresh="true" step="1"> <xpath><![CDATA[*]]></xpath> - <value><![CDATA[Struts Blank Application]]></value> + <value><![CDATA[Struts Wrong Title Blank Application]]></value> </action> <action type="verify-title" step="2"> <xpath><![CDATA[*]]></xpath> - <value><![CDATA[Struts Blank Application]]></value> + <value><![CDATA[Struts Wrong Title Blank Application]]></value> </action> <action type="assert-text-exists" step="3"> <xpath><![CDATA[*]]></xpath> Index: pom.xml =================================================================== --- pom.xml (revision 399823) +++ pom.xml (working copy) @@ -91,5 +91,14 @@ <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> + <repositories> + <repository> + <id>net.sf.tools4java</id> + <name>Tools4Java Maven Repository (TestGen4Web)</name> + <url>http://tools4java.sourceforge.net/m2/</url> + <releases><enabled>true</enabled></releases> + <snapshots><enabled>true</enabled></snapshots> + </repository> + </repositories> </project>