Public Member Functions | Data Fields | Static Public Attributes

ServiceTestCase Class Reference

Inheritance diagram for ServiceTestCase:
Inheritance graph
[legend]
Collaboration diagram for ServiceTestCase:
Collaboration graph
[legend]

Public Member Functions

def __init__
def __call__
def run
def getPortKWArgs
def setUp
def CleanUp

Data Fields

 methodName
 url
 wsdl2py_args
 wsdl2dispatch_args
 portkwargs
 client_module
 types_module
 server_module
 done

Static Public Attributes

 out = OUTPUT
 name = None
string url_section = 'WSDL'
 client_file_name = None
 types_file_name = None
 server_file_name = None
tuple write = lambdaself,arg:self.out.write(arg)
tuple CleanUp = classmethod(CleanUp)

Detailed Description

Conventions for method names:
test_net*
-- network tests

test_local*
-- local tests

test_dispatch*
-- tests that use the a spawned local container

class attributes: Edit/Override these in the inheriting class as needed
    out -- file descriptor to write output to
    name -- configuration item, must be set in class.
    url_section -- configuration section, maps a test module 
       name to an URL.
    client_file_name --
    types_file_name --
    server_file_name --

Definition at line 114 of file ServiceTest.py.


Constructor & Destructor Documentation

def __init__ (   self,
  methodName 
)
parameters:
   methodName -- 
instance variables:
    client_module
    types_module
    server_module
    processID
    done

Definition at line 141 of file ServiceTest.py.


Member Function Documentation

def CleanUp (   cls )
call this when dispatch server is no longer needed,
maybe another needs to be started.  Assumption that
a single "Suite" uses the same server, once all the
tests are run in that suite do a cleanup.

Definition at line 353 of file ServiceTest.py.

def setUp (   self )
Generate types and services modules once, then make them
available thru the *_module attributes if the *_file_name 
attributes were specified.

Definition at line 284 of file ServiceTest.py.


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