Author: afedosik
Date: 2007-10-09 11:15:36 -0400 (Tue, 09 Oct 2007)
New Revision: 4078
Added:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG1.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG10.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG11.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG12.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG13.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG14.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG2.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG3.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG4.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG5.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG6.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG7.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG8.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG9.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/testNG.xml
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-182 testNG chapter added in Getting Started guide
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG1.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG10.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG11.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG12.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG13.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG14.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG2.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG3.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG4.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG5.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG6.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG7.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG8.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG9.png
===================================================================
(Binary files differ)
Property changes on:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/testNG9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml 2007-10-09
14:42:31 UTC (rev 4077)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml 2007-10-09
15:15:36 UTC (rev 4078)
@@ -10,7 +10,7 @@
<!ENTITY GenCURDDatabaseApp SYSTEM "modules/GenCURDDatabaseApp.xml">
<!ENTITY CURDAppWalkthrough SYSTEM "modules/CURDAppWalkthrough.xml">
<!ENTITY AddBusinessProcess SYSTEM "modules/AddBusinessProcess.xml">
-
+<!ENTITY testNG SYSTEM "modules/testNG.xml">
]>
<book>
@@ -37,6 +37,7 @@
&RADdevelopmentOfSimpleJSFapplication;
&GenCURDDatabaseApp;
&CURDAppWalkthrough;
+&testNG;
<!-- TODO: drools used in this section is not available for eclipse .3.3
&AddBusinessProcess; -->
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/testNG.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/testNG.xml
(rev 0)
+++
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/testNG.xml 2007-10-09
15:15:36 UTC (rev 4078)
@@ -0,0 +1,211 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="testNG" xreflabel="testNG">
+ <?dbhtml filename="testNG.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>Red Hat Developer Studio</keyword>
+ <keyword>RHDS</keyword>
+ <keyword>testNG</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Using TestNG project</title>
+ <section>
+ <title>What is it TestNG?</title>
+ <para><property>TestNG</property> ("Testing, the Next
Generation") is a Java unit testing framework that aims to overcome many
limitations of JUnit.
+ <property>TestNG</property> introduces some new functionalities
that make it more powerful and easier to use, such as:</para>
+ <itemizedlist>
+ <listitem><para>JDK 5 Annotations (JDK 1.4 is also supported with
JavaDoc annotations).</para></listitem>
+ <listitem><para>Flexible test
configuration.</para></listitem>
+ <listitem><para>Support for data-driven testing (with
@DataProvider).</para></listitem>
+ <listitem><para>Support for
parameters.</para></listitem>
+ <listitem><para>Allows distribution of tests on slave
machines.</para></listitem>
+ <listitem><para>Powerful execution model (no more
TestSuite).</para></listitem>
+ <listitem><para>Supported by a variety of tools and plug-ins
(Eclipse, IDEA, Maven, etc...).</para></listitem>
+ <listitem><para>Embeds BeanShell for further
flexibility.</para></listitem>
+ <listitem><para>Default JDK functions for runtime and logging (no
dependencies).</para></listitem>
+ <listitem><para>Dependent methods for application server
testing.</para></listitem>
+ </itemizedlist>
+
+ <para>More information can be found on home page: <ulink
url="http://testng.org">www.testng.org</ulink></para>
+ </section>
+ <section id="OtherRelevantResourcesOnTheTopic5">
+ <?dbhtml filename="OtherRelevantResourcesOnTheTopic5.html"?>
+ <title>Other relevant resources on the topic</title>
+ <para><ulink
url="http://www.artima.com/lejava/articles/testng.html">Next...
Testing with TestNG (An Interview with Cédric Beust)</ulink></para>
+ <para><ulink
url="http://www.javaworld.com/javaworld/jw-04-2005/jw-0404-testng.ht...:
The next generation of unit testing</ulink></para>
+ <para><ulink
url="http://dev2dev.bea.com/pub/a/2006/09/testng-categorization.html...
Categorization Techniques with TestNG</ulink></para>
+ <para><ulink
url="http://www-128.ibm.com/developerworks/java/library/j-testng/&qu...
makes Java unit testing a breeze</ulink></para>
+ <para><ulink
url="http://www-128.ibm.com/developerworks/java/library/j-cq08296/in...
pursuit of code quality: JUnit 4 vs. TestNG</ulink></para>
+ </section>
+ <section>
+ <title>How to use the generated Seam-test project to run Seam tests in Red
Hat Developer Studio</title>
+
+ <itemizedlist>
+ <listitem><para>Create a new Seam Web Project using New Project
wizard or main menu <emphasis><property>File > New > Seam Web
Project</property>.</emphasis></para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Seam Web Project creation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Name your project and follow the next wizard steps
keeping default settings.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>New Seam Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Check <emphasis><property>Server
Supplied JSF
Implementation</property>.</emphasis></para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Adding JSF capabilities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Select <property>EAR</property> next
to <emphasis><property>Deploy as:</property></emphasis>
field.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Select deployment type</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>After project is created you will have the
generated Seam-test project that is setup to run TestNG directly against the proper
libraries and server runtime libraries.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Seam-test project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Add Seam Action to your project via
<emphasis><property>File > New > Seam
Action</property>.</emphasis></para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Seam Action creation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Fill out the wizard fields. Seam Action wizard
will create resources and place them in the apropriate folders dependent on EAR project
structure.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>New Seam Action wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para></para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Select
<property>ActionLocalTest.xml</property> in Seam-test project and run the test
via right click <emphasis><property>Run As > TestNG
Suite</property>.</emphasis></para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>After running TestNG you will have the test
results in <emphasis><property>test-output</property></emphasis>
folder in Seam-test project (press F5 to refresh the Package Explorer view). Open
<property>index.html</property> file with web
browser.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Opening test results in web browser</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>Test results</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/testNG14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ </section>
+ </chapter>