TestCase Class Reference

Inheritance diagram for TestCase:

TestUnit TestConfigurationContainer DummyTestCase TestBlacklistKnown TestBlacklistUnknown TestClirBasic TestBasic4Users TestBasic4UsersVpn TestBasicBusy TestBasicBusyVpn TestBasicCall TestBasicCallVpn TestBasicCancel TestBasicCancelVpn TestBasicDecline TestBasicDeclineVpn TestBasicPcap TestBasicPcapVpn TestPstnBasic TestPstnBasicVpn TestPstnCountryCode TestPstnCountryCodeVpn TestPstnLocalAreaCode TestPstnLocalAreaCodeVpn TestForwardCancelPstn TestForwardCancelVoip TestForwardBusyPstn TestForwardBusyVm TestForwardBusyVoip TestForwardNoAnswerPstn TestForwardNoAnswerVm TestForwardNoAnswerVoip TestForwardOfflinePstn TestForwardOfflineVm TestForwardOfflineVoip TestForwardUnconditionalPstn TestForwardUnconditionalVm TestForwardUnconditionalVoip TestImsBasic TestNatBoth TestNatCallee TestNatCaller TestPrepaidBasic TestPrepaidCancel TestPrepaidClir TestPrepaidReinviteCaller TestPrepaidReinviteError TestRegister TestRegisterVpn TestSpeedDial TestWhitelistKnown TestWhitelistUnknown TestPerformance TestProtos TestApplicationFlooding TestApplicationFloodingVpn TestDhcpExhaustion TestDhcpExhaustionVpn TestExploitOs TestExploitOsVpn TestFragmentation TestFragmentationVpn TestFuzzing TestFuzzingVpn TestIcmpSmurfFlooding TestIcmpSmurfFloodingVpn TestTcpSynFlooding TestTcpSynFloodingVpn TestUdpFlooding TestUdpFloodingVpn TestFuzzing TestFuzzingVpn TestInviteFlooding TestInviteFloodingAuth TestInviteFloodingAuthVpn TestInviteFloodingBursts TestInviteFloodingBurstsVpn TestInviteFloodingVpn TestTcpSynFlooding TestTcpSynFloodingVpn TestUdpFlooding TestUdpFloodingVpn TestCallEavesdropping TestCallEavesdroppingVpn TestNumberHarvesting TestNumberHarvestingVpn TestTftpSniffing TestTftpSniffingVpn TestTouchToneExtraction TestTouchToneExtractionVpn TestFirewalking TestFirewalkingVpn TestRawPacket TestRawPacketVpn TestBanner TestBannerVpn TestDnsZoneTransfer TestDnsZoneTransferVpn TestFinger TestFingerVpn TestFtp TestFtpVpn TestHttp TestHttpVpn TestNfs TestNfsVpn TestNis TestNisVpn TestRpc TestRpcVpn TestRwhoRusers TestRwhoRusersVpn TestSmtp TestSmtpVpn TestSnmp TestSnmpVpn TestTftp TestTftpVpn TestAutoOptions TestAutoOptionsVpn TestBanner TestBannerVpn TestInvite TestInviteVpn TestOptions TestOptionsVpn TestRegister TestRegisterVpn TestTftpServer TestTftpServerVpn TestDnsZoneTransfer TestDnsZoneTransferVpn TestTracerouting TestTraceroutingVpn TestAllCalls TestAllCallsVpn TestArpPoisoning TestArpPoisoningVpn TestBreakSipAuth TestBreakSipAuthVpn TestCallSwap TestCallSwapVpn TestDropCall TestDropCallVpn TestEttercap TestEttercapVpn TestIdSpoofing TestIdSpoofingVpn TestListeningAudio TestListeningAudioVpn TestLostCall TestLostCallVpn TestManInTheMiddle TestManInTheMiddleVpn TestMixingAudio TestMixingAudioVpn TestPishing TestPishingVpn TestReboot TestRebootVpn TestRedirectCall TestRedirectCallVpn TestRedirectNotExist TestRedirectNotExistVpn TestRedirectRandom TestRedirectRandomVpn TestRedirectRogue TestRedirectRogueVpn TestRegistrationAddition TestRegistrationAdditionVpn TestRegistrationHijack TestRegistrationHijackVpn TestRegistrationRemoval TestRegistrationRemovalVpn TestRogueProxy TestRogueProxyVpn TestTeardown TestTeardownVpn TestArpRedirect TestArpRedirectVpn TestBroadcastSniffing TestBroadcastSniffingVpn TestCdp TestCdpVpn TestDsniff TestDsniffVpn TestEttercap TestEttercapVpn TestIgrp TestIgrpVpn TestMib TestMibVpn TestPhenoelit TestPhenoelitVpn TestRipSpoofing TestRipSpoofingVpn TestSnmpRequestAndTrap TestSnmpRequestAndTrapVpn TestTcpdump TestTcpdumpVpn TestTftpDownload TestTftpDownloadVpn TestBrowsing TestBrowsingVpn TestExternalAccess TestExternalAccessVpn TestLocalhost TestLocalhostVpn TestTelnet TestTelnetVpn TestApache TestApacheVpn TestBruteForce TestBruteForceVpn TestBufferOverflow TestBufferOverflowVpn TestDnsHijink TestDnsHijinkVpn TestDnsTsigOverflow TestDnsTsigOverflowVpn TestFormatString TestFormatStringVpn TestFtp TestFtpVpn TestIntegerOverflow TestIntegerOverflowVpn TestNfs TestNfsVpn TestOpenSslOverflow TestOpenSslOverflowVpn TestPromiscuousMode TestPromiscuousModeVpn TestRpc TestRpcVpn TestSendmail TestSendmailVpn TestSnmpBufferOverflow TestSnmpBufferOverflowVpn TestSshInsecurity TestSshInsecurityVpn TestValidation TestValidationVpn TestXInsecurity TestXInsecurityVpn TestBanner TestBannerVpn TestDirectScan TestDirectScanVpn TestFwDeduction TestFwDeductionVpn TestRouteTrace TestRouteTraceVpn TestSnmpFwIdentification TestSnmpFwIdentificationVpn TestDig TestDigVpn TestTraceroute TestTracerouteVpn TestCiscoBanner TestCiscoBannerVpn TestNmap TestNmapVpn TestOsIdentification TestOsIdentificationVpn TestActiveOsDetection TestActiveOsDetectionVpn TestArpPing TestArpPingVpn TestIcmpQuery TestIcmpQueryVpn TestPassiveOsDetection TestPassiveOsDetectionVpn TestPingSweep TestPingSweepVpn TestPortScan TestPortScanVpn TestSnmpSweep TestSnmpSweepVpn TestStackFingerprint TestStackFingerprintVpn TestTcpPingSweep TestTcpPingSweepVpn

List of all members.


Detailed Description

This abstract class is the parent class for all test cases.

It provides all the functionalities a test case need.

The following features are provided:

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

Definition at line 51 of file TestCase.py.


Public Member Functions

def __init__
 Constructor.
def init
 Constructor.
def __str__
def getLoop
 Returns how many times to execute testcase.
def setLoop
 Sets how many times to execute testcase.
def getResult
 Returns results of tests belonging to this test case.
def getResults
 Returns results and expected results of tests belonging to this test case.
def addResult
 Add result of test belonging to this test case.
def cleanResults
 Clean up results of tests belonging to this test case.
def isSuccessful
 Check the test case results and return wheather it was successful.
def addUsers
 Append a list of users to the existing list of users of this test case.
def getUsers
 Return all test users of this test case.
def setUsers
 Set all test users.
def addScenario
 Add test scenario of this test case.
def getScenarios
 Return all test scenarios of this test case.
def setScenarios
 Set all test scenarios.
def addFile
 Add a file to a file group.
def getFiles
 Return a dictionary of file groups.
def getAllFiles
 Return a list of all files of all file groups.
def setFiles
 Set files of one group.
def initTestCase
 This function is expected to be overridden by the child class.
def newTest
 Starts a new thread containing an instance of SIPp.
def test
 Abstract method for implementation of the scenario to test.
def getResourcesPath
 Get path to resources of this test case.
def getIpAddress
 Get IP address for a network interface (e.g.
def run
 Main method of a test case.

Private Attributes

 __users
 __files
 __results
 __scenarios
 __loop

Static Private Attributes

dictionary __files = {}
list __users = []
list __scenarios = []
 __setupManager = None
dictionary __results = {}
 __errorFlag = False
int __loop = 1

Member Function Documentation

def __init__ (   self  ) 

Constructor.

It calls the constructors of the parent classes.

Reimplemented from TestConfigurationContainer.

Definition at line 80 of file TestCase.py.

def init (   self  ) 

Constructor.

This function is called by the __init__ function from the parent.

This method creates a directory (path: testsuite.testgroup.testcase+timestamp) for the log files of this test. It also creates the needed test users.

Reimplemented from TestUnit.

Definition at line 94 of file TestCase.py.

def __str__ (   self  ) 

Definition at line 107 of file TestCase.py.

def getLoop (   self  ) 

Returns how many times to execute testcase.

Returns:
loop (int)

Definition at line 132 of file TestCase.py.

def setLoop (   self,
  loop 
)

Sets how many times to execute testcase.

Parameters:
loop loop (int)

Definition at line 142 of file TestCase.py.

def getResult (   self,
  name 
)

Returns results of tests belonging to this test case.

Parameters:
name name of test (string)
Returns:
results of tests (testenv.core.TestResult)

Definition at line 153 of file TestCase.py.

def getResults (   self  ) 

Returns results and expected results of tests belonging to this test case.

Returns:
results of tests (list of tuple (result, expectedResult))

Definition at line 164 of file TestCase.py.

def addResult (   self,
  result 
)

Add result of test belonging to this test case.

Furthermore an expected test result can be set if a non successful test is expected.

Parameters:
result result of a test (testenv.core.TestResult)
expectedResult expected result of a test (testenv.core.TestResult)

Definition at line 175 of file TestCase.py.

def cleanResults (   self  ) 

Clean up results of tests belonging to this test case.

Definition at line 184 of file TestCase.py.

def isSuccessful (   self  ) 

Check the test case results and return wheather it was successful.

It returns TRUE if this test suite was successful and FALSE if not.

Returns:
successful or not (boolean)

Definition at line 196 of file TestCase.py.

def addUsers (   self,
  users 
)

Append a list of users to the existing list of users of this test case.

Parameters:
users list of test users (list of testenv.core.TestUser)

Definition at line 216 of file TestCase.py.

def getUsers (   self  ) 

Return all test users of this test case.

Returns:
list of users (list of testenv.core.TestUser)

Definition at line 227 of file TestCase.py.

def setUsers (   self,
  value 
)

Set all test users.

Parameters:
value list of users (list of testenv.core.TestUser)

Definition at line 237 of file TestCase.py.

def addScenario (   self,
  value 
)

Add test scenario of this test case.

Parameters:
value scenario for testing (testenv.core.TestScenario)

Definition at line 247 of file TestCase.py.

def getScenarios (   self  ) 

Return all test scenarios of this test case.

Returns:
list of scenarios (list of testenv.core.TestScenario)

Definition at line 258 of file TestCase.py.

def setScenarios (   self,
  value 
)

Set all test scenarios.

Parameters:
value list of scenarios (list of testenv.core.TestScenario)

Definition at line 268 of file TestCase.py.

def addFile (   self,
  value,
  group = "default" 
)

Add a file to a file group.

If no group is set, the group "default" will be used.

Parameters:
value file name (string)
group group name (string)

Definition at line 281 of file TestCase.py.

def getFiles (   self  ) 

Return a dictionary of file groups.

Each file group consists of a name (key) and a list of file names (value).

e.g.

                { "default" : [a.xml, b.xml], "test" : [c.xml, b.xml] }

Returns:
all file groups (dict)

Definition at line 301 of file TestCase.py.

def getAllFiles (   self  ) 

Return a list of all files of all file groups.

Returns:
list of file names (list of string)

Definition at line 311 of file TestCase.py.

def setFiles (   self,
  value,
  group = "default" 
)

Set files of one group.

If no group is set, the group "default" will be used.

Parameters:
value list of file names (list of string)
group group name (string)

Definition at line 327 of file TestCase.py.

def initTestCase (   self  ) 

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

Here the files to adopted have to be defined.

Reimplemented in DummyTestCase, TestBlacklistKnown, TestBlacklistUnknown, TestClirBasic, TestBasic4Users, TestBasic4UsersVpn, TestBasicBusy, TestBasicBusyVpn, TestBasicCall, TestBasicCallVpn, TestBasicCancel, TestBasicCancelVpn, TestBasicDecline, TestBasicDeclineVpn, TestBasicPcap, TestBasicPcapVpn, TestPstnBasic, TestPstnBasicVpn, TestPstnCountryCode, TestPstnCountryCodeVpn, TestPstnLocalAreaCode, TestPstnLocalAreaCodeVpn, TestForwardCancelPstn, TestForwardCancelVoip, TestForwardBusyPstn, TestForwardBusyVm, TestForwardBusyVoip, TestForwardNoAnswerPstn, TestForwardNoAnswerVm, TestForwardNoAnswerVoip, TestForwardOfflinePstn, TestForwardOfflineVm, TestForwardOfflineVoip, TestForwardUnconditionalPstn, TestForwardUnconditionalVm, TestForwardUnconditionalVoip, TestImsBasic, TestNatBoth, TestNatCallee, TestNatCaller, TestPrepaidBasic, TestPrepaidCancel, TestPrepaidClir, TestPrepaidReinviteCaller, TestPrepaidReinviteError, TestRegister, TestRegisterVpn, TestSpeedDial, TestWhitelistKnown, TestWhitelistUnknown, TestPerformance, TestProtos, TestApplicationFlooding, TestApplicationFloodingVpn, TestDhcpExhaustion, TestDhcpExhaustionVpn, TestExploitOs, TestExploitOsVpn, TestFragmentation, TestFragmentationVpn, TestFuzzing, TestFuzzingVpn, TestIcmpSmurfFlooding, TestIcmpSmurfFloodingVpn, TestTcpSynFlooding, TestTcpSynFloodingVpn, TestUdpFlooding, TestUdpFloodingVpn, TestFuzzing, TestFuzzingVpn, TestInviteFlooding, TestInviteFloodingAuth, TestInviteFloodingAuthVpn, TestInviteFloodingBursts, TestInviteFloodingBurstsVpn, TestInviteFloodingVpn, TestTcpSynFlooding, TestTcpSynFloodingVpn, TestUdpFlooding, TestUdpFloodingVpn, TestCallEavesdropping, TestCallEavesdroppingVpn, TestNumberHarvesting, TestNumberHarvestingVpn, TestTftpSniffing, TestTftpSniffingVpn, TestTouchToneExtraction, TestTouchToneExtractionVpn, TestFirewalking, TestFirewalkingVpn, TestRawPacket, TestRawPacketVpn, TestBanner, TestBannerVpn, TestDnsZoneTransfer, TestDnsZoneTransferVpn, TestFinger, TestFingerVpn, TestFtp, TestFtpVpn, TestHttp, TestHttpVpn, TestNfs, TestNfsVpn, TestNis, TestNisVpn, TestRpc, TestRpcVpn, TestRwhoRusers, TestRwhoRusersVpn, TestSmtp, TestSmtpVpn, TestSnmp, TestSnmpVpn, TestTftp, TestTftpVpn, TestAutoOptions, TestAutoOptionsVpn, TestBanner, TestBannerVpn, TestInvite, TestInviteVpn, TestOptions, TestOptionsVpn, TestRegister, TestRegisterVpn, TestTftpServer, TestTftpServerVpn, TestDnsZoneTransfer, TestDnsZoneTransferVpn, TestTracerouting, TestTraceroutingVpn, TestAllCalls, TestAllCallsVpn, TestArpPoisoning, TestArpPoisoningVpn, TestBreakSipAuth, TestBreakSipAuthVpn, TestCallSwap, TestCallSwapVpn, TestDropCall, TestDropCallVpn, TestEttercap, TestEttercapVpn, TestIdSpoofing, TestIdSpoofingVpn, TestListeningAudio, TestListeningAudioVpn, TestLostCall, TestLostCallVpn, TestManInTheMiddle, TestManInTheMiddleVpn, TestMixingAudio, TestMixingAudioVpn, TestPishing, TestPishingVpn, TestReboot, TestRebootVpn, TestRedirectCall, TestRedirectCallVpn, TestRedirectNotExist, TestRedirectNotExistVpn, TestRedirectRandom, TestRedirectRandomVpn, TestRedirectRogue, TestRedirectRogueVpn, TestRegistrationAddition, TestRegistrationAdditionVpn, TestRegistrationHijack, TestRegistrationHijackVpn, TestRegistrationRemoval, TestRegistrationRemovalVpn, TestRogueProxy, TestRogueProxyVpn, TestTeardown, TestTeardownVpn, TestArpRedirect, TestArpRedirectVpn, TestBroadcastSniffing, TestBroadcastSniffingVpn, TestCdp, TestCdpVpn, TestDsniff, TestDsniffVpn, TestEttercap, TestEttercapVpn, TestIgrp, TestIgrpVpn, TestMib, TestMibVpn, TestPhenoelit, TestPhenoelitVpn, TestRipSpoofing, TestRipSpoofingVpn, TestSnmpRequestAndTrap, TestSnmpRequestAndTrapVpn, TestTcpdump, TestTcpdumpVpn, TestTftpDownload, TestTftpDownloadVpn, TestBrowsing, TestBrowsingVpn, TestExternalAccess, TestExternalAccessVpn, TestLocalhost, TestLocalhostVpn, TestTelnet, TestTelnetVpn, TestApache, TestApacheVpn, TestBruteForce, TestBruteForceVpn, TestBufferOverflow, TestBufferOverflowVpn, TestDnsHijink, TestDnsHijinkVpn, TestDnsTsigOverflow, TestDnsTsigOverflowVpn, TestFormatString, TestFormatStringVpn, TestFtp, TestFtpVpn, TestIntegerOverflow, TestIntegerOverflowVpn, TestNfs, TestNfsVpn, TestOpenSslOverflow, TestOpenSslOverflowVpn, TestPromiscuousMode, TestPromiscuousModeVpn, TestRpc, TestRpcVpn, TestSendmail, TestSendmailVpn, TestSnmpBufferOverflow, TestSnmpBufferOverflowVpn, TestSshInsecurity, TestSshInsecurityVpn, TestValidation, TestValidationVpn, TestXInsecurity, TestXInsecurityVpn, TestBanner, TestBannerVpn, TestDirectScan, TestDirectScanVpn, TestFwDeduction, TestFwDeductionVpn, TestRouteTrace, TestRouteTraceVpn, TestSnmpFwIdentification, TestSnmpFwIdentificationVpn, TestDig, TestDigVpn, TestTraceroute, TestTracerouteVpn, TestCiscoBanner, TestCiscoBannerVpn, TestNmap, TestNmapVpn, TestOsIdentification, TestOsIdentificationVpn, TestActiveOsDetection, TestActiveOsDetectionVpn, TestArpPing, TestArpPingVpn, TestIcmpQuery, TestIcmpQueryVpn, TestPassiveOsDetection, TestPassiveOsDetectionVpn, TestPingSweep, TestPingSweepVpn, TestPortScan, TestPortScanVpn, TestSnmpSweep, TestSnmpSweepVpn, TestStackFingerprint, TestStackFingerprintVpn, TestTcpPingSweep, and TestTcpPingSweepVpn.

Definition at line 340 of file TestCase.py.

def newTest (   self,
  testType,
  name,
  params,
  timeout = 0,
  thread = True,
  server = ('localhost', None,
  None,
  expectedResult = None 
)

Starts a new thread containing an instance of SIPp.

It returns a reference to the started thread.

Parameters:
name process name (string)
testType type of test (string)
params parameters for test tool (dict)
timeout timeout for this process (int)
thread start test in thread? (boolean)
server run test tool on server ((hostname, xmlrpclib.Server object))
expectedResult expected test result (testenv.core.TestResult)
Returns:
thread containing instance of test tool (testenv.core.TestStarter)

Definition at line 359 of file TestCase.py.

def test (   self  ) 

Abstract method for implementation of the scenario to test.

This method is supposed to be overwritten by the child class including the scenario.

In this method access to configuration data is offered (see core.testenv.TestConfigurationContainer).

Reimplemented in DummyTestCase, TestBlacklistKnown, TestBlacklistUnknown, TestClirBasic, TestBasic4Users, TestBasic4UsersVpn, TestBasicBusy, TestBasicBusyVpn, TestBasicCall, TestBasicCallVpn, TestBasicCancel, TestBasicCancelVpn, TestBasicDecline, TestBasicDeclineVpn, TestBasicPcap, TestBasicPcapVpn, TestPstnBasic, TestPstnBasicVpn, TestPstnCountryCode, TestPstnCountryCodeVpn, TestPstnLocalAreaCode, TestPstnLocalAreaCodeVpn, TestForwardCancelPstn, TestForwardCancelVoip, TestForwardBusyPstn, TestForwardBusyVm, TestForwardBusyVoip, TestForwardNoAnswerPstn, TestForwardNoAnswerVm, TestForwardNoAnswerVoip, TestForwardOfflinePstn, TestForwardOfflineVm, TestForwardOfflineVoip, TestForwardUnconditionalPstn, TestForwardUnconditionalVm, TestForwardUnconditionalVoip, TestImsBasic, TestNatBoth, TestNatCallee, TestNatCaller, TestPrepaidBasic, TestPrepaidCancel, TestPrepaidClir, TestPrepaidReinviteCaller, TestPrepaidReinviteError, TestRegister, TestRegisterVpn, TestSpeedDial, TestWhitelistKnown, TestWhitelistUnknown, TestPerformance, TestProtos, TestApplicationFlooding, TestApplicationFloodingVpn, TestDhcpExhaustion, TestDhcpExhaustionVpn, TestExploitOs, TestExploitOsVpn, TestFragmentation, TestFragmentationVpn, TestFuzzing, TestFuzzingVpn, TestIcmpSmurfFlooding, TestIcmpSmurfFloodingVpn, TestTcpSynFlooding, TestTcpSynFloodingVpn, TestUdpFlooding, TestUdpFloodingVpn, TestFuzzing, TestFuzzingVpn, TestInviteFlooding, TestInviteFloodingAuth, TestInviteFloodingAuthVpn, TestInviteFloodingBursts, TestInviteFloodingBurstsVpn, TestInviteFloodingVpn, TestTcpSynFlooding, TestTcpSynFloodingVpn, TestUdpFlooding, TestUdpFloodingVpn, TestCallEavesdropping, TestCallEavesdroppingVpn, TestNumberHarvesting, TestNumberHarvestingVpn, TestTftpSniffing, TestTftpSniffingVpn, TestTouchToneExtraction, TestTouchToneExtractionVpn, TestFirewalking, TestFirewalkingVpn, TestRawPacket, TestRawPacketVpn, TestBanner, TestBannerVpn, TestDnsZoneTransfer, TestDnsZoneTransferVpn, TestFinger, TestFingerVpn, TestFtp, TestFtpVpn, TestHttp, TestHttpVpn, TestNfs, TestNfsVpn, TestNis, TestNisVpn, TestRpc, TestRpcVpn, TestRwhoRusers, TestRwhoRusersVpn, TestSmtp, TestSmtpVpn, TestSnmp, TestSnmpVpn, TestTftp, TestTftpVpn, TestAutoOptions, TestAutoOptionsVpn, TestBanner, TestBannerVpn, TestInvite, TestInviteVpn, TestOptions, TestOptionsVpn, TestRegister, TestRegisterVpn, TestTftpServer, TestTftpServerVpn, TestDnsZoneTransfer, TestDnsZoneTransferVpn, TestTracerouting, TestTraceroutingVpn, TestAllCalls, TestAllCallsVpn, TestArpPoisoning, TestArpPoisoningVpn, TestBreakSipAuth, TestBreakSipAuthVpn, TestCallSwap, TestCallSwapVpn, TestDropCall, TestDropCallVpn, TestEttercap, TestEttercapVpn, TestIdSpoofing, TestIdSpoofingVpn, TestListeningAudio, TestListeningAudioVpn, TestLostCall, TestLostCallVpn, TestManInTheMiddle, TestManInTheMiddleVpn, TestMixingAudio, TestMixingAudioVpn, TestPishing, TestPishingVpn, TestReboot, TestRebootVpn, TestRedirectCall, TestRedirectCallVpn, TestRedirectNotExist, TestRedirectNotExistVpn, TestRedirectRandom, TestRedirectRandomVpn, TestRedirectRogue, TestRedirectRogueVpn, TestRegistrationAddition, TestRegistrationAdditionVpn, TestRegistrationHijack, TestRegistrationHijackVpn, TestRegistrationRemoval, TestRegistrationRemovalVpn, TestRogueProxy, TestRogueProxyVpn, TestTeardown, TestTeardownVpn, TestArpRedirect, TestArpRedirectVpn, TestBroadcastSniffing, TestBroadcastSniffingVpn, TestCdp, TestCdpVpn, TestDsniff, TestDsniffVpn, TestEttercap, TestEttercapVpn, TestIgrp, TestIgrpVpn, TestMib, TestMibVpn, TestPhenoelit, TestPhenoelitVpn, TestRipSpoofing, TestRipSpoofingVpn, TestSnmpRequestAndTrap, TestSnmpRequestAndTrapVpn, TestTcpdump, TestTcpdumpVpn, TestTftpDownload, TestTftpDownloadVpn, TestBrowsing, TestBrowsingVpn, TestExternalAccess, TestExternalAccessVpn, TestLocalhost, TestLocalhostVpn, TestTelnet, TestTelnetVpn, TestApache, TestApacheVpn, TestBruteForce, TestBruteForceVpn, TestBufferOverflow, TestBufferOverflowVpn, TestDnsHijink, TestDnsHijinkVpn, TestDnsTsigOverflow, TestDnsTsigOverflowVpn, TestFormatString, TestFormatStringVpn, TestFtp, TestFtpVpn, TestIntegerOverflow, TestIntegerOverflowVpn, TestNfs, TestNfsVpn, TestOpenSslOverflow, TestOpenSslOverflowVpn, TestPromiscuousMode, TestPromiscuousModeVpn, TestRpc, TestRpcVpn, TestSendmail, TestSendmailVpn, TestSnmpBufferOverflow, TestSnmpBufferOverflowVpn, TestSshInsecurity, TestSshInsecurityVpn, TestValidation, TestValidationVpn, TestXInsecurity, TestXInsecurityVpn, TestBanner, TestBannerVpn, TestDirectScan, TestDirectScanVpn, TestFwDeduction, TestFwDeductionVpn, TestRouteTrace, TestRouteTraceVpn, TestSnmpFwIdentification, TestSnmpFwIdentificationVpn, TestDig, TestDigVpn, TestTraceroute, TestTracerouteVpn, TestCiscoBanner, TestCiscoBannerVpn, TestNmap, TestNmapVpn, TestOsIdentification, TestOsIdentificationVpn, TestActiveOsDetection, TestActiveOsDetectionVpn, TestArpPing, TestArpPingVpn, TestIcmpQuery, TestIcmpQueryVpn, TestPassiveOsDetection, TestPassiveOsDetectionVpn, TestPingSweep, TestPingSweepVpn, TestPortScan, TestPortScanVpn, TestSnmpSweep, TestSnmpSweepVpn, TestStackFingerprint, TestStackFingerprintVpn, TestTcpPingSweep, and TestTcpPingSweepVpn.

Definition at line 383 of file TestCase.py.

def getResourcesPath (   self  ) 

Get path to resources of this test case.

The name of this test case has to be set before calling this method.

Returns:
path to resources (string)

Definition at line 395 of file TestCase.py.

def getIpAddress (   self,
  interface 
)

Get IP address for a network interface (e.g.

eth0).

Courtesy of 'ASPN: Python Cookbook'

Note: Linux only!

Parameters:
interface network interface (string)
Returns:
IP address (string)

Definition at line 417 of file TestCase.py.

def run (   self  ) 

Main method of a test case.

This method is called after all preparations are done. It starts the test case.

Definition at line 432 of file TestCase.py.


Member Data Documentation

dictionary __files = {} [static, private]

Definition at line 54 of file TestCase.py.

list __users = [] [static, private]

Definition at line 57 of file TestCase.py.

list __scenarios = [] [static, private]

Definition at line 60 of file TestCase.py.

__setupManager = None [static, private]

Reimplemented from TestUnit.

Definition at line 63 of file TestCase.py.

dictionary __results = {} [static, private]

Definition at line 66 of file TestCase.py.

__errorFlag = False [static, private]

Definition at line 69 of file TestCase.py.

int __loop = 1 [static, private]

Definition at line 72 of file TestCase.py.

__users [private]

Definition at line 95 of file TestCase.py.

__files [private]

Definition at line 96 of file TestCase.py.

__results [private]

Definition at line 97 of file TestCase.py.

__scenarios [private]

Definition at line 98 of file TestCase.py.

__loop [private]

Definition at line 101 of file TestCase.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