Configuration

RVTest will run a default configuration which is appropriate when no additional setup is required. Changing to a custom configuration is a snap.

  1. Create a file called 'rvtestconfig.xml' in the working directory of your project. (It is planned to add more flexible support for the placement of this file however that functionality is not implemented yet).
  2. Configure the properties that are required.

That's it! RVTest will now use the test configuration provided in your project root directory.

Sample rvtestconfig.xml

<?xml version="1.0"?>
<container>
    <component-instance 
        factory="org.nanocontainer.script.xml.BeanComponentInstanceFactory">
        <com.reuters.msgtest.config.Transport>
            <name>Default RV Transport</name>
            <!--<network></network>-->
            <service>7500</service>
            <!--<daemon></daemon>-->
        </com.reuters.msgtest.config.Transport>
    </component-instance>
    <component-implementation key="com.reuters.msgtest.SubjectSubstitution" 
        class='com.reuters.msgtest.SubjectSubstitutionImpl'>
        <parameter>
            <string>
                src/test/com/reuters/msgtest/substitution.properties</string>
        </parameter>
    </component-implementation>
    <component-implementation key="class" 
        class="com.reuters.msgtest.ClassCreator"/>
    <component-implementation key="loadtest" 
        class="com.reuters.msgtest.LoadTestFixtureCreator"/>
    <component-implementation key="xmlfile" 
        class="com.reuters.msgtest.fixture.XMLFixtureCreator"/>
    <component-implementation key="rvformatfile" 
        class="com.reuters.msgtest.message.RvFileMessageCreator"/>
    <component-implementation key="xmlformatfile" 
        class="com.reuters.msgtest.message.XMLFormatFileMessageCreator"/>
    <component-instance key="loglevel">
        <string>DEBUG</string>
    </component-instance>
</container>