| Home | Trees | Index | Help |
|
|---|
| Package funkload :: Module CPS340DocTest :: Class CPSDocTest |
|
object--+ |TestCase--+ |FunkLoadTestCase--+ |ZopeTestCase--+ |CPSTestCase--+ |object--+ | | |TestCase--+ | | |FunkLoadTestCase--+ | | |FunkLoadDocTest--+ | CPSDocTest
>>> from CPS340DocTest import CPSDocTest >>> cps_url = 'http://localhost:8080/cps' >>> fl = CPSDocTest(cps_url) >>> fl.cps_test_case_version (3, 4, 0) >>> fl.server_url == cps_url TrueThen you can use the CPS340TestCase API like fl.cpsLogin('manager', 'pwd').
| Method Summary | |
|---|---|
init CPSDocTest | |
| Inherited from FunkLoadDocTest | |
FL doctest | |
| Inherited from CPSTestCase | |
Change the ui language and return the referer page. | |
Try to remove server_url and clean ending. | |
Create a simple random document. | |
Create a section or a workspace. | |
Create a cps group. | |
Create a random news. | |
Create a section. | |
Create a CPS Site. | |
Create a cps user with the Member role. | |
Create a workspace. | |
Return a random language. | |
Guess a zope url and site_id from a CPS Site url. | |
Return a clean list of document href that matches pattern. | |
Log in a user. | |
Log out the current user. | |
Return the list of url that ends with doc_id. | |
Setup local role role to url. | |
Check existance or create a cps group. | |
Verify if user exists or create him. | |
| Inherited from ZopeTestCase | |
Add an External method an run it. | |
Remove all objects from all ZODB in-memory caches. | |
Pack a zodb database. | |
Stop and Start Zope server. | |
| Inherited from FunkLoadTestCase | |
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 | |
| Class Variable Summary | |
|---|---|
| Inherited from CPSTestCase | |
tuple |
cps_test_case_version = (3, 4, 0)
|
NoneType |
server_url = None |
| Method Details |
|---|
__init__(self,
server_url,
debug=False,
debug_level=1)
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Feb 27 10:41:43 2007 | http://epydoc.sf.net |