| Home | Trees | Index | Help |
|
|---|
| Package funkload :: Module FunkLoadTestCase :: Class FunkLoadTestCase |
|
object--+ |TestCase--+ | FunkLoadTestCase
SimpleTest| Method Summary | |
|---|---|
Initialise the test case. | |
Run the test method. | |
Add an http header. | |
Remove basic authentication. | |
Resset the testcase. | |
Remove all http headers set by addHeader or setUserAgent. | |
Return an entry from the options or configuration file. | |
Return a float from the configuration file. | |
Return an integer from the configuration file. | |
Return a list from the configuration file. | |
Remove an http header key. | |
Try a GET on URL return True if the page exists or False. | |
GET method on url adding params. | |
Return the last response content. | |
Return the base href url. | |
Return the last accessed url taking into account redirection. | |
Return a list of href anchor url present in the last html response. | |
Debug log. | |
Verbose Debug log. | |
Info log. | |
POST method on url with params. | |
Set http basic authentication. | |
Add or override an http header. | |
Called on bench mode before a cycle start. | |
Set User-Agent http header for the next requests. | |
Sleeps a random amount of time. | |
Called after a cycle in bench mode. | |
Wait until url is available. | |
Call an xml rpc method_name on url with params. | |
BBB of xmlrpc, this method will be removed for 1.6.0. | |
| Inherited from TestCase | |
| |
| |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
Fail the test unless the expression is true. | |
| |
Run the test without collecting errors in a TestResult | |
| |
Fail immediately, with the given message. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero. | |
Fail if the two objects are unequal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
| |
Hook method for setting up the test fixture before exercising it. | |
Returns a one-line description of the test, or None if no description has been provided. | |
Hook method for deconstructing the test fixture after testing it. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
| Method Details |
|---|
__init__(self,
methodName='runTest',
options=None)
|
__call__(self,
result=None)
|
addHeader(self, key, value)Add an http header. |
clearBasicAuth(self)Remove basic authentication. |
clearContext(self)Resset the testcase. |
clearHeaders(self)Remove all http headers set by addHeader or setUserAgent. Note that the Referer is also removed. |
conf_get(self, section, key, default=[], quiet=False)Return an entry from the options or configuration file. |
conf_getFloat(self, section, key, default=[], quiet=False)Return a float from the configuration file. |
conf_getInt(self, section, key, default=[], quiet=False)Return an integer from the configuration file. |
conf_getList(self, section, key, default=[], quiet=False, separator=None)Return a list from the configuration file. |
delHeader(self, key)Remove an http header key. |
exists(self, url, params=None, description='Checking existence')Try a GET on URL return True if the page exists or False. |
get(self, url, params=None, description=None, ok_codes=None)GET method on url adding params. |
getBody(self)Return the last response content. |
getLastBaseUrl(self)Return the base href url. |
getLastUrl(self)Return the last accessed url taking into account redirection. |
listHref(self, pattern=None)Return a list of href anchor url present in the last html response. Filtering href using the pattern regex if present. |
logd(self, message)Debug log. |
logdd(self, message)Verbose Debug log. |
logi(self, message)Info log. |
post(self, url, params=None, description=None, ok_codes=None)POST method on url with params. |
setBasicAuth(self, login, password)Set http basic authentication. |
setHeader(self, key, value)Add or override an http header. If value is None, the key is removed. |
setUpCycle(self)Called on bench mode before a cycle start. |
setUserAgent(self, agent)Set User-Agent http header for the next requests. If agent is None, the user agent header is removed. |
sleep(self)Sleeps a random amount of time. Between the predefined sleep_time_min and sleep_time_max values. |
tearDownCycle(self)Called after a cycle in bench mode. |
waitUntilAvailable(self, url, time_out=20, sleep_time=2)Wait until url is available. Try a get on url every sleep_time until server is reached or time is out. |
xmlrpc(self, url_in, method_name, params=None, description=None)Call an xml rpc method_name on url with params. |
xmlrpc_call(self, url_in, method_name, params=None, description=None)BBB of xmlrpc, this method will be removed for 1.6.0. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jul 19 15:32:16 2007 | http://epydoc.sf.net |