You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ws...@apache.org on 2006/09/03 09:44:44 UTC

svn commit: r439736 - in /myfaces/tomahawk/trunk: core/src/site/apt/testing/hostedqa.apt core/src/site/site.xml examples/pom.xml examples/simple/pom.xml

Author: wsmoak
Date: Sun Sep  3 00:44:44 2006
New Revision: 439736

URL: http://svn.apache.org/viewvc?rev=439736&view=rev
Log:
Added a hostedqa profile which will execute the Selenium tests remotely at HostedQA.
After the site is published, see: http://myfaces.apache.org/tomahawk/testing/hostedqa.html 
TOMAHAWK-583

Added:
    myfaces/tomahawk/trunk/core/src/site/apt/testing/hostedqa.apt
Modified:
    myfaces/tomahawk/trunk/core/src/site/site.xml
    myfaces/tomahawk/trunk/examples/pom.xml
    myfaces/tomahawk/trunk/examples/simple/pom.xml

Added: myfaces/tomahawk/trunk/core/src/site/apt/testing/hostedqa.apt
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/site/apt/testing/hostedqa.apt?rev=439736&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/core/src/site/apt/testing/hostedqa.apt (added)
+++ myfaces/tomahawk/trunk/core/src/site/apt/testing/hostedqa.apt Sun Sep  3 00:44:44 2006
@@ -0,0 +1,107 @@
+         -----------
+         Hosted QA
+         -----------
+
+Hosted QA
+
+ <<{{{http://www.hostedqa.com}HostedQA}}>> is a web-based quality assurance
+ solution from <<{{{http://www.autoriginate.com/}Autoriginate}}>>, which has
+ generously donated an account to MyFaces.
+
+ MyFaces uses HostedQA to run {{{selenium.html}Selenium}} tests against the
+ example apps.
+
+ The following example apps have Selenium tests available at HostedQA:
+
+  * MyFaces Example Simple
+
+* Configure
+
+ To execute the tests remotely at HostedQA, MyFaces committers will need to
+ supply an email address and a password.
+
+ (If you don't have a password, ask on the developers list.)
+
+ You can add this information to your ~/.m2/settings.xml file.
+
+ settings.xml:
+
++-----+
+       <profile>
+         <id>hostedqa</id>
+         <properties>
+            <hostedqa.email>your-id@apache.org</hostedqa.email>
+            <hostedqa.password>your-password</hostedqa.password>
+         </properties>
+       </profile>
++-----+
+
+* Execute Tests
+
+ The {{{http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/pom.xml
+?view=markup}tomahawk-examples-project pom}} includes a 'hostedqa' profile that
+ will
+
+  * upload the example application to HostedQA, and
+
+  * execute the Selenium tests, remotely.
+
+  []
+
+  In addition, the pom for each example app includes a 'hostedqa' profile that
+  defines which resource, suite, client, and application configuration should
+  be used.
+
+ With an email address and password configured in settings.xml, execute the tests
+ as follows
+
++-----+
+ $ mvn package -P hostedqa
++-----+
+
+ Alternately, you can supply your email address and password on the command line:
+
++-----+
+ $ mvn package -P hostedqa -Dhostedqa.email=<your-id>@apache.org -Dhostedqa.password=<your-password>
++-----+
+
+* View Results
+
+  All test results are available to the public, here:
+  {{{https://myfaces.hostedqa.com/project/54/session/suite/list}
+  https://myfaces.hostedqa.com/project/54/session/suite/list}}
+
+  Sample build log output:
+
++-----+
+$ mvn package -P hostedqa
+...
+[INFO] Building war: e:\svn\myfaces\current\tomahawk\examples\simple\target\myfaces-example-simple.war
+...
+[INFO] Executing tasks
+   [upload] About to transfer E:\svn\myfaces\current\tomahawk\examples\simple\target\myfaces-example-simple.war
+   [upload] Getting MD5 of current resource on HostedQA
+   [upload] Getting MD5 of last uploaded resource (local)
+   [upload] MD5s match, creating a patch
+   [upload] Patch uploaded
+   [upload] Upload complete
+   [upload] Saving newly uploaded file for future use
+[playsuite] Playing tests for suite ID 55, application configurations 56, and client configurations 117,118
+[playsuite] HostedQA tests complete. Results can be found at:
+[playsuite]  - https://myfaces.hostedqa.com/project/54/session/suite/505/view
+[playsuite]  - https://myfaces.hostedqa.com/project/54/session/suite/506/view
+[playsuite] The tests have PASSED
+...
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESSFUL
+[INFO] ------------------------------------------------------------------------
++-----+
+
+* Add Tests
+
+ See {{{selenium.html}this page}} for more information on adding Selenium tests for the example apps.
+
+ When a new test is added to the Subversion repo, import it into HostedQA using the web interface,
+ {{{http://myfaces.hostedqa.com}here}}, then modify the context name and port as appropriate.
+
+ The myfaces-example-simple app is running as context name 'simple' on port 9090.
\ No newline at end of file

Modified: myfaces/tomahawk/trunk/core/src/site/site.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/site/site.xml?rev=439736&r1=439735&r2=439736&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/site/site.xml (original)
+++ myfaces/tomahawk/trunk/core/src/site/site.xml Sun Sep  3 00:44:44 2006
@@ -78,6 +78,7 @@
 	
       <menu name="Testing">
         <item name="OpenQA Selenium" href="/testing/selenium.html"/>
+        <item name="Autoriginate HostedQA" href="/testing/hostedqa.html"/>
       </menu>
 	  ${reports}
     

Modified: myfaces/tomahawk/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/pom.xml?rev=439736&r1=439735&r2=439736&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/pom.xml (original)
+++ myfaces/tomahawk/trunk/examples/pom.xml Sun Sep  3 00:44:44 2006
@@ -228,6 +228,79 @@
             </repositories>
         </profile>
 
+        <!-- See: http://myfaces.apache.org/tomahawk/testing/hostedqa.html -->
+        <profile>
+            <id>hostedqa</id>
+            <dependencies>
+                <dependency>
+                    <groupId>com.hostedqa</groupId>
+                    <artifactId>hostedqa-remote-ant</artifactId>
+                    <version>1.0-SNAPSHOT</version>
+                    <scope>test</scope>
+                </dependency>
+            </dependencies>
+            <repositories>
+                <repository>
+                    <id>codehaus</id>
+                    <name>codehaus</name>
+                    <url>http://repository.codehaus.org</url>
+                </repository>
+                <repository>
+                    <id>maven-hostedqa</id>
+                    <name>maven-hostedqa</name>
+                    <snapshots>
+                        <enabled>true</enabled>
+                        <updatePolicy>always</updatePolicy>
+                        <checksumPolicy>ignore</checksumPolicy>
+                    </snapshots>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                    <url>http://maven.hostedqa.com</url>
+                </repository>
+            </repositories>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <taskdef resource="hostedqatasks" classpathref="maven.plugin.classpath"/>
+                                        <upload file="${project.build.directory}/${project.build.finalName}.war"
+                                                account="myfaces"
+                                                email="${hostedqa.email}"
+                                                password="${hostedqa.password}"
+                                                resourceId="${hostedqa.resourceId}"/>
+
+                                        <playsuite suiteId="${hostedqa.suiteId}"
+                                                   clientConfigs="${hostedqa.clientConfigs}"
+                                                   appConfigs="${hostedqa.appConfigs}"
+                                                   account="myfaces"
+                                                   email="${hostedqa.email}"
+                                                   password="${hostedqa.password}"/>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                        <dependencies>
+                            <dependency>
+                                <groupId>com.hostedqa</groupId>
+                                <artifactId>hostedqa-remote-ant</artifactId>
+                                <version>1.0-SNAPSHOT</version>
+                            </dependency>
+                        </dependencies>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
     </profiles>
 
     <build>

Modified: myfaces/tomahawk/trunk/examples/simple/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/pom.xml?rev=439736&r1=439735&r2=439736&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/pom.xml (original)
+++ myfaces/tomahawk/trunk/examples/simple/pom.xml Sun Sep  3 00:44:44 2006
@@ -66,6 +66,15 @@
                 </plugins>	
             </build>
         </profile>
+        <profile>
+            <id>hostedqa</id>
+            <properties>
+                <hostedqa.resourceId>30</hostedqa.resourceId>
+                <hostedqa.suiteId>55</hostedqa.suiteId>
+                <hostedqa.clientConfigs>117,118</hostedqa.clientConfigs>
+                <hostedqa.appConfigs>56</hostedqa.appConfigs>
+            </properties>
+        </profile>
     </profiles>
     
     <dependencies>