Test suites

A test suite consists of a number of test cases structured into test groups.

The test structure is generated from an XML file.

Running an existing test suite

To run an existing test suite, open the test suite XML file and adapt the configuration to your system (some test cases overwrite the configuration, so check the whole XML file).

If TestEnv is installed on the system and run:

 # testenv -s [TEST_SUITE_NAME]

If TestEnv is not installed go to the directory containing TestEnv and run:

 # ./testenv.py -s [TEST_SUITE_NAME]

Creating a test suite

  1. Create new XML file
  2. Add test suite configuration
     <testsuite name="example">
            <configuration>
                    <local>
                            <target>
                                    <ip>127.0.0.1</ip>
                                    <port>5060</port>
                            </target>
                            <interface>127.0.0.1</interface>        
                    </local>
            </configuration>
            <logging>
                    <email>
                            <address>enrico@iptel.org</address>
                            <subject>Test Environment</subject>
                    </email>
            <logfilepath>logs/</logfilepath>
            </logging>
     </testsuite>
    
  3. Add test groups
     <testgroup name="dialing">
     </testgroup>
    
  4. Add test cases
     <testcase name="TestBasicCall" uri="features.dialing.basic_call">
     </testcase>
    

For complete reference of possible XML elements see XML parser documentation.


Generated on Mon Aug 11 17:28:32 2008 for TestEnv by  doxygen 1.5.5