next up previous contents
Next: 6 Test reports Up: JOTM Test Suite Guide Previous: 4 Project Structure   Contents

Subsections


5 Customize Test Suite

By default, the test suite tests all the available test cases on all the available communication protocol.
However, you may need to be interested by only passing several times the same test while modifying JOTM until the test pass and then passing all the other tests.
Unfortunately, for the moment, there are no convenient way to do so...
The only way to customize test run is to modify the jotm_tests.xml Ant file in the conform directory.
You can customize two things in this file:


5.1 Test Cases

To choose which test cases you want to run, comment all but the one test cases you don't want to run in the batchtest tag inside the run.generic.tests target:
 <target name="run.generic.tests">
  ...
  <junit ...>
  ...
    <batchtest fork="yes" todir="${test.dist.reports}/${protocol.name}">
      <fileset dir="${test.src}">
        <!-- test only remote client test case -->
<!--
        <include
    name="org/objectweb/jotm/jtests/conform/LocalTestCase.java"/>
        <include
    name="org/objectweb/jotm/jtests/conform/ClientTestCase.java"/>
-->
        <include
    name="org/objectweb/jotm/jtests/conform/RemoteTestCase.java"/>
      </fileset>
    </batchtest>
  </junit>
...
In that example, only the remote test case will be run.


5.2 Communication protocol

If you're interested to test on only one specific communication protocol (e.g. RMI/JRMP or RMI/IIOP), in the run.tests target, you can comment all but the one protocol you don't want to use:
  ...
  <target name="run.tests">
    <condition property="interceptor.classes.presents">
      <available classname="org.omg.PortableInterceptor.ORBInitInfo">
        <classpath refid="test.classpath"/>
        <classpath refid="test.iiop.classpath"/>
      </available>
    </condition>
    <!-- test only on RMI/IIOP -->
<!--
    <antcall target="run.jrmp.tests"/>
-->
    <antcall target="run.iiop.tests"/>
  </target>
  ...
In that example, tests will be run only on RMI/IIOP.


5.3 Log configuration

Since version 1.4, JOTM uses Commons Logging and Log4J as its log system.
Log configuration is stored in a file, log4j.properties, located in the config/ directory of your JOTM distribution.

For more information on Commons Logging and Log4J, see Commons Logging Javadoc and Log4J documentation.


next up previous contents
Next: 6 Test reports Up: JOTM Test Suite Guide Previous: 4 Project Structure   Contents
Jeff Mesnil 2003-07-30