TestNmapTest Class Reference

List of all members.


Detailed Description

Test cases for testing functionallity of the ProtosTest module.

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

Definition at line 35 of file TestNmapTest.py.


Public Member Functions

def addResult
 Dummy callback method (needed by test modules).
def setUp
 Create temporary directory for storing created log files.
def tearDown
 Remove temporary log file directory including files stored in it.
def testInit
 Test initialization of NmapTest module.
def testRunNmapModule
 Test running nmap with NmapTest module.
def testRunNmapModuleWithError
 Test running nmap with Nmap module.
def testRunNmapModuleWithSp
 Test running nmap -sP with NmapTest module.
def testRunNmapModuleWithO
 Test running nmap -O with NmapTest module.
def testRunNmapModuleWithSr
 Test running nmap with -sR with NmapTest module.

Private Attributes

 __logFilePath

Static Private Attributes

 __result = None
string __logFilePath = ""
string __nmapPath = "tools"

Member Function Documentation

def addResult (   self,
  result 
)

Dummy callback method (needed by test modules).

Parameters:
result the result of the test (testenv.core.TestResult)

Definition at line 53 of file TestNmapTest.py.

def setUp (   self  ) 

Create temporary directory for storing created log files.

Definition at line 62 of file TestNmapTest.py.

def tearDown (   self  ) 

Remove temporary log file directory including files stored in it.

Definition at line 71 of file TestNmapTest.py.

def testInit (   self  ) 

Test initialization of NmapTest module.

Definition at line 83 of file TestNmapTest.py.

def testRunNmapModule (   self  ) 

Test running nmap with NmapTest module.

Definition at line 91 of file TestNmapTest.py.

def testRunNmapModuleWithError (   self  ) 

Test running nmap with Nmap module.

Definition at line 123 of file TestNmapTest.py.

def testRunNmapModuleWithSp (   self  ) 

Test running nmap -sP with NmapTest module.

Definition at line 150 of file TestNmapTest.py.

def testRunNmapModuleWithO (   self  ) 

Test running nmap -O with NmapTest module.

Definition at line 181 of file TestNmapTest.py.

def testRunNmapModuleWithSr (   self  ) 

Test running nmap with -sR with NmapTest module.

Definition at line 214 of file TestNmapTest.py.


Member Data Documentation

__result = None [static, private]

Definition at line 38 of file TestNmapTest.py.

string __logFilePath = "" [static, private]

Definition at line 41 of file TestNmapTest.py.

string __nmapPath = "tools" [static, private]

Definition at line 44 of file TestNmapTest.py.

__logFilePath [private]

Definition at line 63 of file TestNmapTest.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