| Home | Trees | Index | Help |
|
|---|
| Package funkload :: Module CPS338TestCase :: Class CPSTestCase |
|
object--+ |TestCase--+ |FunkLoadTestCase--+ |ZopeTestCase--+ | CPSTestCase
Common CPS tasks.
setUp must set a server_url attribute.| Method Summary | |
|---|---|
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 | |
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 | |
| Class Variable Summary | |
|---|---|
tuple |
cps_test_case_version = (3, 3, 8)
|
NoneType |
server_url = None |
| Method Details |
|---|
cpsChangeUiLanguage(self, lang)Change the ui language and return the referer page. |
cpsCleanUrl(self, url_in)Try to remove server_url and clean ending. |
cpsCreateDocument(self, parent_url)Create a simple random document. return a tuple: (doc_url, doc_id) |
cpsCreateFolder(self, type, parent_url, title, description, lang)Create a section or a workspace. Return the section full url. |
cpsCreateGroup(self, group_name)Create a cps group. |
cpsCreateNewsItem(self, parent_url)Create a random news. return a tuple: (doc_url, doc_id). |
cpsCreateSection(self, parent_url, title, description='ftest section for funkload testing.', lang=None)Create a section. |
cpsCreateSite(self, admin_id, admin_pwd, manager_id, manager_password, manager_mail, langs=None, title=None, description=None, interface='portlets', zope_url=None, site_id=None)Create a CPS Site. if zope_url or site_id is not provided guess them from the server_url. |
cpsCreateUser(self, user_id=None, user_pwd=None, user_givenName=None, user_sn=None, user_email=None, groups=None)Create a cps user with the Member role. return login, pwd |
cpsCreateWorkspace(self, parent_url, title, description='ftest workspace for funkload testing.', lang=None)Create a workspace. |
cpsGetRandomLanguage(self)Return a random language. |
cpsGuessZopeUrl(self, cps_url=None)Guess a zope url and site_id from a CPS Site url. return a tuple (zope_url, site_id) |
cpsListDocumentHref(self, pattern=None)Return a clean list of document href that matches pattern. Try to remove server_url and other cps trailings, return a list of uniq url. |
cpsLogin(self, login, password, comment=None)Log in a user. Raise on invalid credential. |
cpsLogout(self)Log out the current user. |
cpsSearchDocId(self, doc_id)Return the list of url that ends with doc_id. Using catalog search. |
cpsSetLocalRole(self, url, name, role)Setup local role role to url. |
cpsVerifyGroup(self, group_name)Check existance or create a cps group. |
cpsVerifyUser(self, user_id=None, user_pwd=None, user_givenName=None, user_sn=None, user_email=None, groups=None)Verify if user exists or create him. return login, pwd if user exists pwd is None. |
| Class Variable Details |
|---|
cps_test_case_version
|
server_url
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Feb 27 10:41:43 2007 | http://epydoc.sf.net |