DigTest Class Reference
[Available modules]

Inheritance diagram for DigTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module DigTest.

This modules handles an instance of the DNS query tool dig in a thread.

Therefore you can set some parameters:

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

Requirements

Definition at line 51 of file DigTest.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 = "dig"
int __retryTimer = 15
tuple __regexServer = re.compile("IN\s+NS\s+([a-zA-Z0-9\.]+)\.")
tuple __regexHeader = re.compile(";; ->>HEADER<<- opcode: ([A-Z]+), status: ([A-Z]+), id: ([0-9]+)\s+;; flags: ([a-z ]+); QUERY: ([0-9]+), ANSWER: ([0-9]+), AUTHORITY: ([0-9]+), ADDITIONAL: ([0-9]+)")

Member Function Documentation

def initTestModule (   self  ) 

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

Reimplemented from TestModule.

Definition at line 68 of file DigTest.py.

def run (   self  ) 

This method ist called after the start of the thread.

It runs dig with the parameters set in the constructor. The dig 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 dig 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 82 of file DigTest.py.


Member Data Documentation

list _arguments = [] [static, private]

Definition at line 54 of file DigTest.py.

string __command = "dig" [static, private]

Definition at line 57 of file DigTest.py.

int __retryTimer = 15 [static, private]

Definition at line 60 of file DigTest.py.

tuple __regexServer = re.compile("IN\s+NS\s+([a-zA-Z0-9\.]+)\.") [static, private]

Definition at line 63 of file DigTest.py.

tuple __regexHeader = re.compile(";; ->>HEADER<<- opcode: ([A-Z]+), status: ([A-Z]+), id: ([0-9]+)\s+;; flags: ([a-z ]+); QUERY: ([0-9]+), ANSWER: ([0-9]+), AUTHORITY: ([0-9]+), ADDITIONAL: ([0-9]+)") [static, private]

Definition at line 66 of file DigTest.py.

__command [private]

Definition at line 85 of file DigTest.py.


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

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