Return-Path: Delivered-To: apmail-continuum-dev-archive@www.apache.org Received: (qmail 13981 invoked from network); 16 Feb 2009 16:18:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 16:18:50 -0000 Received: (qmail 45719 invoked by uid 500); 16 Feb 2009 16:18:50 -0000 Delivered-To: apmail-continuum-dev-archive@continuum.apache.org Received: (qmail 45684 invoked by uid 500); 16 Feb 2009 16:18:49 -0000 Mailing-List: contact dev-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list dev@continuum.apache.org Received: (qmail 45673 invoked by uid 99); 16 Feb 2009 16:18:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 08:18:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmorales@gmv.com designates 212.0.110.25 as permitted sender) Received: from [212.0.110.25] (HELO mx1.gmv.es) (212.0.110.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 16:18:41 +0000 Received: from webmail1.gmv.es (caronte [212.0.110.2]) by mx1.gmv.es (8.14.1/8.14.1/mx1.gmv.es - Win 3.11 under MAC OS mx1.gmv.es) with ESMTP id n1GGIC2C001980 for ; Mon, 16 Feb 2009 17:18:13 +0100 Received: from GMVMAIL1.gmv.es ([172.22.2.21]) by webmail1.gmv.es with Microsoft SMTPSVC(6.0.3790.3959); Mon, 16 Feb 2009 17:18:28 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C99052.33DDCB59" Subject: RE: Reviving the automated Selenium tests Date: Mon, 16 Feb 2009 17:15:25 +0100 Message-ID: <1E413380C32D2146A6048413F2EF174A16DE54@GMVMAIL1.gmv.es> X-MS-Has-Attach: X-MS-TNEF-Correlator: <1E413380C32D2146A6048413F2EF174A16DE54@GMVMAIL1.gmv.es> Thread-topic: Reviving the automated Selenium tests Thread-index: AcmOJkHYEJBFvIQWR1SwIKtLt8gBrgCK4SMH References: <1E413380C32D2146A6048413F2EF174A16DE51@GMVMAIL1.gmv.es> From: =?iso-8859-1?Q?Jos=E9_Morales_Mart=EDnez?= To: X-OriginalArrivalTime: 16 Feb 2009 16:18:28.0867 (UTC) FILETIME=[33DDED30:01C99052] X-Scanned-By: MIMEDefang 2.64 on 212.0.110.25 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C99052.33DDCB59 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you very much for the instructions. I'll start with the option A. Once I was familiar with the test, try resear= ching a little on the line B. In principle, I will try to generate tests using Java classes.=20=09 In my opinion, this option is more reusable and can manage the state of the= application. ----------------------- Jose -----Mensaje original----- De: Wendy Smoak [mailto:wsmoak@gmail.com] Enviado el: vie 13/02/2009 22:57 Para: dev@continuum.apache.org Asunto: Re: Reviving the automated Selenium tests =20 On Thu, Feb 12, 2009 at 1:31 PM, Jos=E9 Morales Mart=EDnez wrote: > I am interested in this topic. > I think that this would avoid many of the problems has been the change to= strut2. > How can I contribute? Test will be attached to Jira issues? Great! Yes, tests can be contributed by opening a JIRA issue and attaching a patch. What I'm working on right now is getting the container start/deploy/stop part automated again. I've got three parallel efforts going in the continuum-webapp-test module. (A) 1. in continuum-webapp, run 'mvn jetty:run' 2., in continuum-webapp-test, run 'mvn clean install' This will use the default pom.xml, and should work. With the webapp running as the root context on port 9090, you should get a successful test of the About page. If you want to run tests against another Continuum instance, edit the url in src/test/resources/it.properties . Unfortunately, that's the *only* thing that works right now, but if you're more interested in writing tests than messing with the infrastructure, start there. :) Or, if you prefer Selenium IDE, you can record tests with that and contribute the html files. You'll find some of those tests in src/test/selenium-ide, and Emmanuel mentioned the idea of automatically converting them to Java during the build and running them. (B) 1. in continuum-webapp-test, run 'mvn clean install -f it-pom.xml' This should use the Cargo plugin to start Tomcat and deploy the webapp as /continuum on port 9595. This needs the latest and greatest Cargo, which you'll probably have to build yourself. You'll see configuration for the data sources and extra dependency jars in the pom-it.xml file -- this is new stuff in Cargo. This one has the most promise. I'm pretty sure it actually worked once, earlier today, but it's being uncooperative now and I've been staring at it for too long to see the problem. (C) 1. edit it.properties and change BASE_URL to http://localhost:8080/continuum-webapp-1.3.2-SNAPSHOT 2. in continuum-webapp-test, run 'mvn clean install -f pom2.xml' This should use the JUnit CargoTestSetup class to start Tomcat and deploy the webapp. It requires a TOMCAT_HOME environment variable set to the location of a Tomcat 5.5 install. I still need to add the Resources and figure out how to get the extra jars into the Tomcat install. This one isn't ready for general consumption yet. Some things may still be specific to my environment while I try to get it working. It's a continuation of some work I did ages ago, and probably isn't what we'll end up using. Hope that is enough to get started with, if you have any questions, just as= k. --=20 Wendy ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la=20 Informacion siendo para uso exclusivo del destinatario, quedando=20 prohibida su divulgacion copia o distribucion a terceros sin la=20 autorizacion expresa del remitente. Si Vd. ha recibido este mensaje=20 erroneamente, se ruega lo notifique al remitente y proceda a su borrado.= =20 Gracias por su colaboracion. ______________________ This message including any attachments may contain confidential=20 information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ ------_=_NextPart_001_01C99052.33DDCB59--