You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by hb...@apache.org on 2002/10/12 21:46:30 UTC

cvs commit: jakarta-james/src/java/org/apache/james/testing testconf.xml

hbedi       2002/10/12 12:46:30

  Modified:    src/java/org/apache/james/testing testconf.xml
  Log:
  added comments to test configuration file. This should make it easier for others to extend it.
  
  Revision  Changes    Path
  1.2       +22 -52    jakarta-james/src/java/org/apache/james/testing/testconf.xml
  
  Index: testconf.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/testing/testconf.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testconf.xml	12 Oct 2002 19:35:18 -0000	1.1
  +++ testconf.xml	12 Oct 2002 19:46:30 -0000	1.2
  @@ -1,61 +1,31 @@
   <!-- test configuration file -->
  -<testsuite>
  -<test name="pop3test" async="true" repetition="5" class="org.apache.james.testing.POP3Test">
  -  <host>localhost</host>
  -  <username>harmeet</username>
  -  <password>harmeet</password>
   
  -  <!-- call these test methods -->
  -  <testsequence showStat="true">
  -    <testmethod>login</testmethod>
  -    <testmethod>fetchMsgsInfo</testmethod>
  -    <testmethod>fetchMsgs</testmethod>
  -    <testmethod>logout</testmethod>
  -  </testsequence>
  -</test>
  -<test name="pop3test" async="true" repetition="5" class="org.apache.james.testing.POP3Test">
  -  <host>localhost</host>
  -  <username>user1</username>
  -  <password>user1</password>
  +<!-- 
  +Consists of test elements. Attributes of test element control how a
  +test is assembled in a test suite and subelements of test control test
  +configuration
   
  -  <!-- call these test methods -->
  -  <testsequence showStat="true">
  -    <testmethod>login</testmethod>
  -    <testmethod>fetchMsgsInfo</testmethod>
  -    <testmethod>fetchMsgs</testmethod>
  -    <testmethod>logout</testmethod>
  -  </testsequence>
  -</test>
  -<test name="pop3test" async="true" repetition="5" class="org.apache.james.testing.POP3Test">
  -  <host>localhost</host>
  -  <username>user2</username>
  -  <password>user2</password>
  +Test Element attributes
  +=======================
  +name: friendly test identifier
  +async: true/false cause the test to run in a separate thread. This
  +  can be used to run concurrent tests.
  +repetition: number of times the test is run
  +class: test class name.
   
  -  <!-- call these test methods -->
  -  <testsequence showStat="true">
  -    <testmethod>login</testmethod>
  -    <testmethod>fetchMsgsInfo</testmethod>
  -    <testmethod>fetchMsgs</testmethod>
  -    <testmethod>logout</testmethod>
  -  </testsequence>
  -</test>
  -<test name="pop3test" async="true" repetition="5" class="org.apache.james.testing.POP3Test">
  -  <host>localhost</host>
  -  <username>user3</username>
  -  <password>user3</password>
  +Test Element Configuration
  +==========================
  +test may be configurable.
  +testsequence gives sequence of test operations that are called. This
  +provides predictable test sequence and declaratiive include/exclude
  +for tests.
  +-->
   
  -  <!-- call these test methods -->
  -  <testsequence showStat="true">
  -    <testmethod>login</testmethod>
  -    <testmethod>fetchMsgsInfo</testmethod>
  -    <testmethod>fetchMsgs</testmethod>
  -    <testmethod>logout</testmethod>
  -  </testsequence>
  -</test>
  -<test name="pop3test" async="true" repetition="5" class="org.apache.james.testing.POP3Test">
  +<testsuite>
  +<test name="pop3test" async="false" repetition="5" class="org.apache.james.testing.POP3Test">
     <host>localhost</host>
  -  <username>user4</username>
  -  <password>user4</password>
  +  <username>harmeet</username>
  +  <password>harmeet</password>
   
     <!-- call these test methods -->
     <testsequence showStat="true">
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>