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

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):
%3 faq::twt::delete faq::twt::delete (private) twt::do_request twt::do_request faq::twt::delete->twt::do_request faq::twt::delete_Q_A faq::twt::delete_Q_A (private) faq::twt::delete_Q_A->twt::do_request faq::twt::disable_enable faq::twt::disable_enable (private) faq::twt::disable_enable->twt::do_request faq::twt::edit_Q_A faq::twt::edit_Q_A (private) faq::twt::edit_Q_A->twt::do_request faq::twt::edit_one faq::twt::edit_one (private) faq::twt::edit_one->twt::do_request aa_log aa_log (public) twt::do_request->aa_log acs::test::url acs::test::url (public) twt::do_request->acs::test::url twt::log twt::log (public) twt::do_request->twt::log

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):
%3 twt::do_request twt::do_request (public) twt::log twt::log twt::do_request->twt::log

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):
%3 ad_log_deprecated ad_log_deprecated (public) util_current_location util_current_location (public) twt::server_url twt::server_url twt::server_url->ad_log_deprecated twt::server_url->util_current_location

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):
%3 acs::test::user::create acs::test::user::create (public) ad_log_deprecated ad_log_deprecated (public) twt::user::create twt::user::create twt::user::create->acs::test::user::create twt::user::create->ad_log_deprecated

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):
%3 ad_log_deprecated ad_log_deprecated (public) twt::user::delete twt::user::delete twt::user::delete->ad_log_deprecated

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):
%3 packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl twt::user::login twt::user::login packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->twt::user::login aa_log aa_log (public) twt::user::login->aa_log acs::test::url acs::test::url (public) twt::user::login->acs::test::url auth::authority::get_element auth::authority::get_element (public) twt::user::login->auth::authority::get_element auth::authority::local auth::authority::local (public) twt::user::login->auth::authority::local party::get_by_email party::get_by_email (public) twt::user::login->party::get_by_email

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):
%3 acs::test::url acs::test::url (public) twt::do_request twt::do_request (public) twt::user::logout twt::user::logout twt::user::logout->acs::test::url twt::user::logout->twt::do_request

Testcases:
No testcase defined.
[ show source ]