IrpasTest Class Reference
[Available modules]

Inheritance diagram for IrpasTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module IrpasTest.

This module handles an instance of the routing protocol testing tools collection IRPAS in a thread.

Therefore you can set some parameters:

The IRPAS suite includes:

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

Requirements

Definition at line 71 of file IrpasTest.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

 __command

Static Private Attributes

list _arguments = []
string __command = ""
int __retryTimer = 15
tuple __regexResultAss = re.compile(">>>Results>>>.+")
tuple __regexResultCdp = re.compile(".*")
tuple __regexResultIgrp = re.compile(".*")
tuple __regexResultIrdp = re.compile(".*")
tuple __regexResultIrdpresponder = re.compile(".*")
tuple __regexResultFile2cable = re.compile(".*")
tuple __regexResultItrace = re.compile("[0-9]+\([0-9]+\)\s+\[[0-9\.]+\] \(reply\)")
tuple __regexResultTctrace = re.compile("[0-9]+\([0-9]+\)\s+\[[0-9\.]+\] \(reached; (open|closed)\)")
tuple __regexResultNetenum = re.compile("[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}")
tuple __regexResultInetmask = re.compile(".+")
tuple __regexResultProtos = re.compile("[0-9\.]+ may be running \(did not negate\)\:\s+^\s+ICMP", re.M)
tuple __regexResultHsrp = re.compile(".+")
tuple __regexResultDhcpx = re.compile("\.\.ooo0000ooo\.\.")

Member Function Documentation

def initTestModule (   self  ) 

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

Reimplemented from TestModule.

Definition at line 122 of file IrpasTest.py.

def run (   self  ) 

This method ist called after the start of the thread.

It runs IRPAS with the parameters set in the constructor. The IRPAS 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 IRPAS 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 following structure: <test case="" description>="">_<process name>_<unix time stamp>.log

Reimplemented from TestModule.

Definition at line 136 of file IrpasTest.py.


Member Data Documentation

list _arguments = [] [static, private]

Definition at line 74 of file IrpasTest.py.

string __command = "" [static, private]

Definition at line 77 of file IrpasTest.py.

int __retryTimer = 15 [static, private]

Definition at line 80 of file IrpasTest.py.

tuple __regexResultAss = re.compile(">>>Results>>>.+") [static, private]

Definition at line 83 of file IrpasTest.py.

tuple __regexResultCdp = re.compile(".*") [static, private]

Definition at line 86 of file IrpasTest.py.

tuple __regexResultIgrp = re.compile(".*") [static, private]

Definition at line 89 of file IrpasTest.py.

tuple __regexResultIrdp = re.compile(".*") [static, private]

Definition at line 92 of file IrpasTest.py.

tuple __regexResultIrdpresponder = re.compile(".*") [static, private]

Definition at line 95 of file IrpasTest.py.

tuple __regexResultFile2cable = re.compile(".*") [static, private]

Definition at line 98 of file IrpasTest.py.

tuple __regexResultItrace = re.compile("[0-9]+\([0-9]+\)\s+\[[0-9\.]+\] \(reply\)") [static, private]

Definition at line 101 of file IrpasTest.py.

tuple __regexResultTctrace = re.compile("[0-9]+\([0-9]+\)\s+\[[0-9\.]+\] \(reached; (open|closed)\)") [static, private]

Definition at line 104 of file IrpasTest.py.

tuple __regexResultNetenum = re.compile("[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}") [static, private]

Definition at line 107 of file IrpasTest.py.

tuple __regexResultInetmask = re.compile(".+") [static, private]

Definition at line 110 of file IrpasTest.py.

tuple __regexResultProtos = re.compile("[0-9\.]+ may be running \(did not negate\)\:\s+^\s+ICMP", re.M) [static, private]

Definition at line 113 of file IrpasTest.py.

tuple __regexResultHsrp = re.compile(".+") [static, private]

Definition at line 116 of file IrpasTest.py.

tuple __regexResultDhcpx = re.compile("\.\.ooo0000ooo\.\.") [static, private]

Definition at line 119 of file IrpasTest.py.

__command [private]

Definition at line 140 of file IrpasTest.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