Return-Path: Delivered-To: apmail-struts-commits-archive@locus.apache.org Received: (qmail 21171 invoked from network); 4 May 2006 16:58:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 16:58:13 -0000 Received: (qmail 82347 invoked by uid 500); 4 May 2006 16:58:09 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 82285 invoked by uid 500); 4 May 2006 16:58:09 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 82276 invoked by uid 99); 4 May 2006 16:58:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 09:58:09 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 May 2006 09:58:08 -0700 Received: (qmail 20979 invoked by uid 65534); 4 May 2006 16:57:48 -0000 Message-ID: <20060504165748.20978.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r399762 - in /struts/action/trunk/integration/tg4w: ./ pom.xml src/ src/main/ src/main/java/ src/main/scripts/ src/main/scripts/blank-verify-welcome.xml src/test/ src/test/java/ Date: Thu, 04 May 2006 16:57:47 -0000 To: commits@struts.apache.org From: jmitchell@apache.org X-Mailer: svnmailer-1.0.8 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jmitchell Date: Thu May 4 09:57:46 2006 New Revision: 399762 URL: http://svn.apache.org/viewcvs?rev=399762&view=rev Log: Initial stab at TestGen4Web maven plugin. I still need to provide detailed instructions (ya, it's on my todo list :) ), but basically, just do this: - build and deploy the struts-blank.war sample app - cd to this dir - $mvn test You'll see the dependencies downloaded and the test generated and run. You'll also see the output as the test proceeds (assertions, etc), which is part of the underlying TestGen4Web sysouts. If you feel really adventurous, install that ff plugin into your own ff and record your own steps and save it to src/main/scripts and run the test again. Where I the most benefit with this new plugin is in doing 'smoke tests' of the same apps. This can be an invaluable time saver during releases (assuming people go out and create a bunch of scripts agains the apps. One more note, the actual plugin and pathes against the translator for TestGen4Web are not hosted here at Apache. The plugin itself can be used against any url, web or local, and any language (Java/Servlet, Java/JSF, PHP, Perl, whatever). Please give it a try. Thanks. Added: struts/action/trunk/integration/tg4w/ struts/action/trunk/integration/tg4w/pom.xml (with props) struts/action/trunk/integration/tg4w/src/ struts/action/trunk/integration/tg4w/src/main/ struts/action/trunk/integration/tg4w/src/main/java/ struts/action/trunk/integration/tg4w/src/main/scripts/ struts/action/trunk/integration/tg4w/src/main/scripts/blank-verify-welcome.xml (with props) struts/action/trunk/integration/tg4w/src/test/ struts/action/trunk/integration/tg4w/src/test/java/ Added: struts/action/trunk/integration/tg4w/pom.xml URL: http://svn.apache.org/viewcvs/struts/action/trunk/integration/tg4w/pom.xml?rev=399762&view=auto ============================================================================== --- struts/action/trunk/integration/tg4w/pom.xml (added) +++ struts/action/trunk/integration/tg4w/pom.xml Thu May 4 09:57:46 2006 @@ -0,0 +1,95 @@ + + + + + + 4.0.0 + org.apache.struts.action + struts-action-it-httpunit-taglib + 0.1-SNAPSHOT + jar + Struts Action - Taglib (HttpUnit) Tests + + + src/main/java + ${project.build.directory}/generated-tests/tg4w-httpunit + + + + net.sf.tools4java + maven-testgen4web-plugin + + + translate-and-compile-testgen4web-tests + generate-test-sources + + src/main/scripts/ + ${project.build.directory}/generated-tests/tg4w-httpunit + + + testgen4web + + + + + + + + + junit + junit + 3.8.1 + + + + + + + net.sf.tools4java + maven-testgen4web-plugin + 0.1-SNAPSHOT + + + + + + + + org.apache.maven.plugins + maven-surefire-report-plugin + + + + + + + net.sf.tools4java + Tools4Java Maven Repository (TestGen4Web) + http://tools4java.sourceforge.net/m2/ + true + true + + + + Propchange: struts/action/trunk/integration/tg4w/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: struts/action/trunk/integration/tg4w/src/main/scripts/blank-verify-welcome.xml URL: http://svn.apache.org/viewcvs/struts/action/trunk/integration/tg4w/src/main/scripts/blank-verify-welcome.xml?rev=399762&view=auto ============================================================================== --- struts/action/trunk/integration/tg4w/src/main/scripts/blank-verify-welcome.xml (added) +++ struts/action/trunk/integration/tg4w/src/main/scripts/blank-verify-welcome.xml Thu May 4 09:57:46 2006 @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + Propchange: struts/action/trunk/integration/tg4w/src/main/scripts/blank-verify-welcome.xml ------------------------------------------------------------------------------ svn:eol-style = native