- Publicity: Public Only All
tclwebtest-procs.tcl
Helper procs for test cases using tclwebtest (HTTP level tests).
- Location:
- packages/acs-automated-testing/tcl/tclwebtest-procs.tcl
- Created:
- 31 March 2004
- Author:
- Peter Marklund
- CVS Identification:
$Id: tclwebtest-procs.tcl,v 1.15.2.5 2024/02/26 09:52:31 gustafn Exp $
Procedures in this file
- twt::do_request (public)
- twt::log (public)
- twt::server_url (public, deprecated)
- twt::user::create (public, deprecated)
- twt::user::delete (public, deprecated)
- twt::user::login (public)
- twt::user::logout (public)
Detailed information
twt::do_request (public)
twt::do_request page_url
Takes a URL and invokes tclwebtest::do_request. Will retry the request a number of times if it fails because of a socket connect problem.
- Parameters:
- page_url (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
twt::log (public)
twt::log message
TWT proc for writing a Notice message to the web server log.
- Parameters:
- message (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
twt::server_url (public, deprecated)
twt::server_url
Deprecated. Invoking this procedure generates a warning.
Get the URL of the server (like ad_url) using the IP number of the server. Is more bulletproof than using the domain name.
- Author:
- Peter Marklund DEPRECATED: a more reliable api is now available that also allows to override it via parameter.
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
twt::user::create (public, deprecated)
twt::user::create [ -user_id user_id ] [ -admin ]
Deprecated. Invoking this procedure generates a warning.
Create a test user with random email and password for testing
- Switches:
- -user_id (optional)
- -admin (optional, boolean)
- Provide this switch to make the user site-wide admin
- Returns:
- The user_info array list returned by auth::create_user. Contains the additional keys email and password.
- Author:
- Peter Marklund
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
twt::user::delete (public, deprecated)
twt::user::delete -user_id user_id
Deprecated. Invoking this procedure generates a warning.
Remove a test user.
- Switches:
- -user_id (required)
- See Also:
- acs::test::user_delete
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
twt::user::login (public)
twt::user::login email password [ username ]
tclwebtest for logging the user in.
- Parameters:
- email (required)
- Email of user to log in.
- password (required)
- Password of user to log in.
- username (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
twt::user::logout (public)
twt::user::logout
tclwebtest for logging the user out.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.