SippTest Class Reference
[Available modules]

Inheritance diagram for SippTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module SippTest.

This module inserts SIPp into TestEnv. SIPp is a free Open Source test tool / traffic generator for the SIP protocol.

SippTest handles an instance of the sip testing tool SIPp in a thread.

Note: SIPp expects retransmissions to be equal to their originals. To test a setup with a SER make sure to deactivate the Warning header (sip_warning=0) in the SER configuration.

Therefore you can set some parameters:

Author:
Enrico Hartung <enrico@iptel.org>

Monica Sarbu <monica@iptel.org>

Version:
0.3
License:
GPL

Requirements

Changelog 0.3

Definition at line 62 of file SippTest.py.


Public Member Functions

def initTestModule
 Constructor.
def run
 This method is called after the start of the thread.

Private Member Functions

def __runLocal
 This method is called by run method when SIPp has to run localy.
def __runRemote
 This method is called by run method when SIPp has to run remotely.

Private Attributes

 __command

Static Private Attributes

list _arguments = []
list __argumentsForTraces = ["-trace_msg", "-trace_screen", "-trace_stat", "-trace_err", "-trace_logs", "-trace_rtt", "-nd"]
string __command = ""
int __retryTimer = 15
string _scenarioPath = ""

Member Function Documentation

def initTestModule (   self  ) 

Constructor.

Reimplemented from TestModule.

Definition at line 84 of file SippTest.py.

def __runLocal (   self  )  [private]

This method is called by run method when SIPp has to run localy.

It returns a tuple of (result, timerResult, outputList).

Definition at line 93 of file SippTest.py.

def __runRemote (   self  )  [private]

This method is called by run method when SIPp has to run remotely.

It returns a tuple of (result, timerResult, outputList).

Definition at line 157 of file SippTest.py.

def run (   self  ) 

This method is called after the start of the thread.

It runs SIPp with the parameters set in the constructor. The SIPp 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 SIPp 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 305 of file SippTest.py.


Member Data Documentation

list _arguments = [] [static, private]

Definition at line 65 of file SippTest.py.

list __argumentsForTraces = ["-trace_msg", "-trace_screen", "-trace_stat", "-trace_err", "-trace_logs", "-trace_rtt", "-nd"] [static, private]

Definition at line 68 of file SippTest.py.

string __command = "" [static, private]

Definition at line 71 of file SippTest.py.

int __retryTimer = 15 [static, private]

Definition at line 74 of file SippTest.py.

string _scenarioPath = "" [static, private]

Definition at line 77 of file SippTest.py.

__command [private]

Definition at line 317 of file SippTest.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