You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2006/05/25 18:49:02 UTC

svn commit: r409412 - /incubator/activemq/site/example-testing-scenario.html

Author: jstrachan
Date: Thu May 25 09:49:02 2006
New Revision: 409412

URL: http://svn.apache.org/viewvc?rev=409412&view=rev
Log:
Latest export from confluence

Modified:
    incubator/activemq/site/example-testing-scenario.html

Modified: incubator/activemq/site/example-testing-scenario.html
URL: http://svn.apache.org/viewvc/incubator/activemq/site/example-testing-scenario.html?rev=409412&r1=409411&r2=409412&view=diff
==============================================================================
--- incubator/activemq/site/example-testing-scenario.html (original)
+++ incubator/activemq/site/example-testing-scenario.html Thu May 25 09:49:02 2006
@@ -239,9 +239,86 @@
 <!--          
             <div class="pagetitle">Example Testing Scenario</div>
 -->
-            <DIV class="wiki-content"><P>Created by <SPAN class="nobr"><A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan" title="View profile for James Strachan"><SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/user_12.gif" height="12" width="12" align="absmiddle" alt="" border="0"></SUP>James Strachan</A></SPAN><BR>
- On Thu May 25 17:37:10 BST 2006<BR>
-Using <FONT color="blue">TimTam</FONT></P></DIV>
+            <DIV class="wiki-content"><H2><A name="ExampleTestingScenario-ExampleTestingScenario"></A>Example Testing Scenario</H2>
+
+<P>This page gives a simple example of the kinds of thing we wanna do.</P>
+
+<P>Assuming that all the test code is within a single Maven POM for now (e.g. activemq-integration-test version 4.0) which will deal with all the classpath issues.</P>
+
+<H3><A name="ExampleTestingScenario-Realsimpleversion"></A>Real simple version</H3>
+
+<P>Here the build knows what to do; each test case generates an XML file which becomes a named deployment artifact.</P>
+
+<P>We use the following boxes...</P>
+
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TH class="confluenceTh">Box</TH>
+<TH class="confluenceTh">Description</TH>
+<TH class="confluenceTh">Command line</TH>
+</TR>
+<TR>
+<TD class="confluenceTd">hostB</TD>
+<TD class="confluenceTd">Broker</TD>
+<TD class="confluenceTd">java org.apache.activemq.broker.console.Main tcp://$hostA:61616</TD>
+</TR>
+<TR>
+<TD class="confluenceTd">hostC</TD>
+<TD class="confluenceTd">Consumer</TD>
+<TD class="confluenceTd">java org.apache.activemq.test.ConsumerMain --message-count=5000 --queue=true --destination=org.foo.bar tcp://$hostA:61616</TD>
+</TR>
+<TR>
+<TD class="confluenceTd">hostD</TD>
+<TD class="confluenceTd">Producer</TD>
+<TD class="confluenceTd">java org.apache.activemq.test.ProducerMain --message-count=5000 --queue=true --destination=org.foo.bar tcp://$hostA:61616</TD>
+</TR>
+</TBODY></TABLE>
+
+
+<H3><A name="ExampleTestingScenario-Controllerversion"></A>Controller version</H3>
+
+<P>Here the build is a master controller which spins off separate processes in a workflow</P>
+
+<P>We use the following boxes...</P>
+
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TH class="confluenceTh">Box</TH>
+<TH class="confluenceTh">Description</TH>
+<TH class="confluenceTh">Command line</TH>
+</TR>
+<TR>
+<TD class="confluenceTd">hostA</TD>
+<TD class="confluenceTd">Controller</TD>
+<TD class="confluenceTd">mvn test</TD>
+</TR>
+</TBODY></TABLE>
+
+<P>Then the test case fires off these processes while communicating with them...</P>
+
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TH class="confluenceTh">Box</TH>
+<TH class="confluenceTh">Description</TH>
+<TH class="confluenceTh">Command line</TH>
+</TR>
+<TR>
+<TD class="confluenceTd">hostB</TD>
+<TD class="confluenceTd">Broker</TD>
+<TD class="confluenceTd">java org.apache.activemq.broker.console.Main tcp://$hostA:61616</TD>
+</TR>
+<TR>
+<TD class="confluenceTd">hostC</TD>
+<TD class="confluenceTd">Consumer</TD>
+<TD class="confluenceTd">java org.apache.activemq.test.ConsumerMain --message-count=5000 --queue=true --destination=org.foo.bar tcp://$hostA:61616</TD>
+</TR>
+<TR>
+<TD class="confluenceTd">hostD</TD>
+<TD class="confluenceTd">Producer</TD>
+<TD class="confluenceTd">java org.apache.activemq.test.ProducerMain --message-count=5000 --queue=true --destination=org.foo.bar tcp://$hostA:61616</TD>
+</TR>
+</TBODY></TABLE>
+</DIV>
           
                   </DIV>
         </TD>
@@ -252,7 +329,8 @@
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A>,
     last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James Strachan</A> on May 25, 2006
-                  
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=6131&originalId=6132">view change</A>)
+              
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=6131">edit page</A>)
     </DIV>