ProtosTest Class Reference
[Available modules]

Inheritance diagram for ProtosTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module ProtosTest.

This module handles an instance of the sip testing tool Protos in a thread.

Therefore you can set some parameters:

Author:
Enrico Hartung <enrico@iptel.org>
Version:
0.2
License:
GPL

Requirements

Changelog 0.2

Definition at line 54 of file ProtosTest.py.


Public Member Functions

def initTestModule
 This function is expected to be overridden by the child class.
def run
 This method ist called after the start of the thread.

Private Attributes

 _module

Static Private Attributes

list _arguments = []
string _module = ""
list __defaultArguments = ["-validcase", "-teardown"]
string __command = "java"
int __retryTimer = 15
dictionary __moduleMap

Member Function Documentation

def initTestModule (   self  ) 

This function is expected to be overridden by the child class.

Reimplemented from TestModule.

Definition at line 87 of file ProtosTest.py.

def run (   self  ) 

This method ist called after the start of the thread.

It runs Protos with the parameters set in the constructor. The Protos result [<process name>="">, <result code>="">, <timed out="" or="" not>="">] is written into the result list of the test case. If an error occurs (timed out or Protos returns error code) a log file including the output of the process is written into the working directory. The name of this log file has follwing structure: <test case="" description>="">_<process name>_<unix time stamp>.log

Reimplemented from TestModule.

Definition at line 101 of file ProtosTest.py.


Member Data Documentation

list _arguments = [] [static, private]

Definition at line 57 of file ProtosTest.py.

string _module = "" [static, private]

Definition at line 60 of file ProtosTest.py.

list __defaultArguments = ["-validcase", "-teardown"] [static, private]

Definition at line 63 of file ProtosTest.py.

string __command = "java" [static, private]

Definition at line 66 of file ProtosTest.py.

int __retryTimer = 15 [static, private]

Definition at line 69 of file ProtosTest.py.

dictionary __moduleMap [static, private]

Initial value:

{       "wap-wsp-request" : "c04-wap-r1",
                        "wap-wmlc" : "c05-wap-r1",
                        "http-reply" : "c05-http-reply-r1",
                        "ldapv3-app" : "c06-ldapv3-app",
                        "ldapv3-enc" : "c06-ldapv3-enc",
                        "snmpv1-req-app" : "c06-snmpv1-req-app-r1",
                        "snmpv1-req-enc" : "c06-snmpv1-req-enc-r1",
                        "snmpv1-trap-app" : "c06-snmpv1-trap-app-r1",
                        "snmpv1-trap-enc" : "c06-snmpv1-trap-enc-r1",
                        "sip" : "c07-sip-r2",
                        "h2250v4" : "c07-h2250v4-r2",
                        "isakmp" : "c09-isakmp-r2",
                        "dns-query" : "c09-dns-query-r1",
                        "dns-response" : "c09-dns-response-r1",
                        "dns-zonetransfer" : "c09-dns-zonetransfer-r1"}

Definition at line 71 of file ProtosTest.py.

_module [private]

Definition at line 105 of file ProtosTest.py.


The documentation for this class was generated from the following file:

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