Test cases

Creating a test case

  1. Add test case configuration data to test suite XML configuration (see test suites and XML parser)
  2. Create a child class of TestCase and store it e.g. under 'tests/' (the methods 'initTestCase()''test()' have to implemented)
  3. Add test case description to initTestCase()
    • Example:
              self.setDescription("fancy test case")
      

  1. Add test files to be adapted by TestEnv to initTestCase() (optional)
    • Example:
              self.addFile("test.csv")
      

  1. Add tests to test()
    • Example:
              test = self.newTest("sipp", "registration", {'arguments' : []})
      

  1. Add execution of test thread
    • Example:
              test.start()
              test.join()
      

Available test case categories


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