• Publicity: Public Only All

aa-test-procs.tcl

Procs to support the acs-automated-testing package. NOTE: There's a hack in packages/acs-bootstrap-installer/bootstrap.tcl to load this file on server startup before the *-procs.tcl files of other packages.

Location:
packages/acs-automated-testing/tcl/aa-test-procs.tcl
Created:
21 June 2001
Author:
Peter Harper <peter.harper@open-msg.com>
CVS Identification:
$Id: aa-test-procs.tcl,v 1.79.2.66 2023/07/10 09:17:39 gustafn Exp $

Procedures in this file

Detailed information

aa_call_component (public)

 aa_call_component component_id

Executes the chunk of code associated with the component_id.

Call this function from within a testcase body only.

Parameters:
component_id
Author:
Peter Harper
Created:
28 October 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_db_check_news_archive db_check_news_archive (test news) aa_call_component aa_call_component test_db_check_news_archive->aa_call_component test_db_check_news_create db_check_news_create (test news) test_db_check_news_create->aa_call_component test_db_check_news_set_approve db_check_news_set_approve (test news) test_db_check_news_set_approve->aa_call_component test_db_check_news_status db_check_news_status (test news) test_db_check_news_status->aa_call_component aa_log aa_log (public) aa_call_component->aa_log

Testcases:
db_check_news_create, db_check_news_archive, db_check_news_set_approve, db_check_news_status

aa_display_result (public)

 aa_display_result -response response -explanation explanation

Displays either a pass or fail result with specified explanation depending on the given response.

Switches:
-response
(required)
A boolean value where true (or 1, etc) corresponds to a pass result, otherwise the result is a fail.
-explanation
(required)
An explanation accompanying the response.

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) aa_display_result aa_display_result test_fs_add_file_to_folder->aa_display_result test_fs_add_file_to_folder_twt fs_add_file_to_folder_twt (test file-storage) test_fs_add_file_to_folder_twt->aa_display_result aa_indent aa_indent (private) aa_display_result->aa_indent aa_log_result aa_log_result (public) aa_display_result->aa_log_result

Testcases:
fs_add_file_to_folder_twt, fs_add_file_to_folder

aa_equals (public)

 aa_equals affirm_name affirm_actual affirm_value

Tests that the affirm_actual is equal to affirm_value.

Call this function within a testcase, stub or component.

Parameters:
affirm_name
affirm_actual
affirm_value
Returns:
True if the affirmation passed, false otherwise.
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_aa__coverage_proc_coverage aa__coverage_proc_coverage (test acs-automated-testing) aa_equals aa_equals test_aa__coverage_proc_coverage->aa_equals test_aa__coverage_proc_coverage_level aa__coverage_proc_coverage_level (test acs-automated-testing) test_aa__coverage_proc_coverage_level->aa_equals test_aa__coverage_proc_proc_list_covered aa__coverage_proc_proc_list_covered (test acs-automated-testing) test_aa__coverage_proc_proc_list_covered->aa_equals test_webtest_example webtest_example (test acs-automated-testing) test_webtest_example->aa_equals aa_indent aa_indent (private) aa_equals->aa_indent aa_log_result aa_log_result (public) aa_equals->aa_log_result acs::test::xpath::equals acs::test::xpath::equals (public) acs::test::xpath::equals->aa_equals lang::test::assert_browser_locale lang::test::assert_browser_locale (private) lang::test::assert_browser_locale->aa_equals lang::test::check_import_result lang::test::check_import_result (private) lang::test::check_import_result->aa_equals lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::execute_upgrade->aa_equals news::test::assert_status_pretty news::test::assert_status_pretty (private) news::test::assert_status_pretty->aa_equals

Testcases:
webtest_example, aa__coverage_proc_coverage, aa__coverage_proc_proc_list_covered, aa__coverage_proc_coverage_level

aa_error (public)

 aa_error error_notes

Writes an error message to the testcase log.

Call this function within a testcase, stub or component.

Parameters:
error_notes
Author:
Peter Harper
Created:
04 November 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_expose_bug_775 acs_subsite_expose_bug_775 (test acs-subsite) aa_error aa_error test_acs_subsite_expose_bug_775->aa_error test_callgraph__bad_library_calls callgraph__bad_library_calls (test acs-api-browser) test_callgraph__bad_library_calls->aa_error test_callgraph__bad_page_calls callgraph__bad_page_calls (test acs-api-browser) test_callgraph__bad_page_calls->aa_error aa_log_result aa_log_result (public) aa_error->aa_log_result acs::test::user::create acs::test::user::create (public) acs::test::user::create->aa_error faq::twt::delete faq::twt::delete (private) faq::twt::delete->aa_error faq::twt::delete_Q_A faq::twt::delete_Q_A (private) faq::twt::delete_Q_A->aa_error faq::twt::disable_enable faq::twt::disable_enable (private) faq::twt::disable_enable->aa_error faq::twt::edit_Q_A faq::twt::edit_Q_A (private) faq::twt::edit_Q_A->aa_error

Testcases:
callgraph__bad_library_calls, callgraph__bad_page_calls, acs_subsite_expose_bug_775

aa_export_vars (public)

 aa_export_vars varnames

Called from an initialization class constructor or a component to explicitly export the specified variables to the current testcase. You need to call aa_export_vars before you create the variables. Example:

    aa_export_vars {package_id item_id}
    set package_id 23
    set item_id 109
    

Parameters:
varnames

Partial Call Graph (max 5 caller/called nodes):
%3 test_db_check_news_archive db_check_news_archive (test news) aa_export_vars aa_export_vars test_db_check_news_archive->aa_export_vars test_db_check_news_create db_check_news_create (test news) test_db_check_news_create->aa_export_vars test_db_check_news_set_approve db_check_news_set_approve (test news) test_db_check_news_set_approve->aa_export_vars test_db_check_news_status db_check_news_status (test news) test_db_check_news_status->aa_export_vars

Testcases:
db_check_news_create, db_check_news_archive, db_check_news_set_approve, db_check_news_status

aa_false (public)

 aa_false affirm_name affirm_expr

Tests that affirm_expr is false. Call this function within a testcase, stub or component.

Parameters:
affirm_name
affirm_expr
Returns:
True if the affirmation passed, false otherwise.
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) aa_false aa_false test_webtest_example->aa_false aa_indent aa_indent (private) aa_false->aa_indent aa_log_result aa_log_result (public) aa_false->aa_log_result acs::test::reply_contains_no acs::test::reply_contains_no (public) acs::test::reply_contains_no->aa_false cr_item_search::assert_not_in_queue cr_item_search::assert_not_in_queue (private) cr_item_search::assert_not_in_queue->aa_false packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->aa_false workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::run_bug_tracker_test->aa_false workflow::test::run_with_teardown workflow::test::run_with_teardown (public) workflow::test::run_with_teardown->aa_false

Testcases:
webtest_example

aa_get_first_url (public)

 aa_get_first_url -package_key package_key

Procedure for getting the URL of a mounted package with the package_key. It uses the first instance that it founds. This is useful for tclwebtest tests.

Switches:
-package_key
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) aa_get_first_url aa_get_first_url test_fs_add_file_to_folder->aa_get_first_url test_web_forum_edit web_forum_edit (test forums) test_web_forum_edit->aa_get_first_url test_web_forum_new web_forum_new (test forums) test_web_forum_new->aa_get_first_url test_web_forum_view web_forum_view (test forums) test_web_forum_view->aa_get_first_url test_web_forums_message_and_reply web_forums_message_and_reply (test forums) test_web_forums_message_and_reply->aa_get_first_url site_node::get_package_url site_node::get_package_url (public) aa_get_first_url->site_node::get_package_url site_node::instantiate_and_mount site_node::instantiate_and_mount (public) aa_get_first_url->site_node::instantiate_and_mount faq::twt::delete faq::twt::delete (private) faq::twt::delete->aa_get_first_url faq::twt::delete_Q_A faq::twt::delete_Q_A (private) faq::twt::delete_Q_A->aa_get_first_url faq::twt::disable_enable faq::twt::disable_enable (private) faq::twt::disable_enable->aa_get_first_url faq::twt::edit_Q_A faq::twt::edit_Q_A (private) faq::twt::edit_Q_A->aa_get_first_url faq::twt::edit_one faq::twt::edit_one (private) faq::twt::edit_one->aa_get_first_url

Testcases:
fs_add_file_to_folder, web_forum_new, web_forum_view, web_forum_edit, web_forums_message_and_reply

aa_log (public)

 aa_log [ args... ]

Writes a log message to the testcase log. Call this function within a testcase, stub or component.

Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) aa_log aa_log test_webtest_example->aa_log aa_indent aa_indent (private) aa_log->aa_indent aa_log_result aa_log_result (public) aa_log->aa_log_result aa_call_component aa_call_component (public) aa_call_component->aa_log aa_register_case aa_register_case (public) aa_register_case->aa_log acs::test::form_reply acs::test::form_reply (public) acs::test::form_reply->aa_log acs::test::http acs::test::http (public) acs::test::http->aa_log acs::test::login acs::test::login (public) acs::test::login->aa_log

Testcases:
webtest_example

aa_log_result (public)

 aa_log_result test_result [ args... ]

Log a test result

Parameters:
test_result
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_datamodel__acs_attribute_check datamodel__acs_attribute_check (test acs-tcl) aa_log_result aa_log_result test_datamodel__acs_attribute_check->aa_log_result test_datamodel__acs_object_type_check datamodel__acs_object_type_check (test acs-tcl) test_datamodel__acs_object_type_check->aa_log_result test_datamodel__named_constraints datamodel__named_constraints (test acs-tcl) test_datamodel__named_constraints->aa_log_result test_documentation__check_deprecated_see documentation__check_deprecated_see (test acs-tcl) test_documentation__check_deprecated_see->aa_log_result test_documentation__check_parameters documentation__check_parameters (test acs-tcl) test_documentation__check_parameters->aa_log_result aa_add_rollback_test aa_add_rollback_test (private) aa_log_result->aa_add_rollback_test aa_in_rollback_block_p aa_in_rollback_block_p (private) aa_log_result->aa_in_rollback_block_p db_dml db_dml (public) aa_log_result->db_dml aa_display_result aa_display_result (public) aa_display_result->aa_log_result aa_equals aa_equals (public) aa_equals->aa_log_result aa_error aa_error (public) aa_error->aa_log_result aa_false aa_false (public) aa_false->aa_log_result aa_log aa_log (public) aa_log->aa_log_result

Testcases:
datamodel__named_constraints, datamodel__acs_object_type_check, datamodel__acs_attribute_check, documentation__check_proc_doc, naming__proc_naming, documentation__check_deprecated_see, documentation__check_typos, documentation__check_parameters, files__check_info_files

aa_register_case (public)

 aa_register_case [ -libraries libraries ] [ -cats cats ] \
    [ -error_level error_level ] [ -bugs bugs ] [ -procs procs ] \
    [ -urls urls ] [ -init_classes init_classes ] \
    [ -on_error on_error ] testcase_id testcase_desc [ args... ]

Registers a testcase with the acs-automated-testing system. Whenever possible, cases that fail to register are replaced with 'metatest' log cases, so that the register-time errors are visible at test time. See the tutorial for examples.

Switches:
-libraries
(optional)
A list of keywords of additional code modules to load. The entire test case will fail if any package is missing. Currently includes tclwebtest.
-cats
(optional)
Properties of the test case. Must be zero or more of the following:
  • db: Tests the database directly
  • api: tests the Tcl API
  • web: tests HTTP interface
  • smoke: Minimal test to assure functionality and catch basic errors.
  • stress: Puts heavy load on server or creates large numbers of records. Intended to simulate maximal production load.
  • security_risk: May introduce a security risk.
  • populator: Creates sample data for future use.
  • production_safe: Can be used on a live production site, i.e. for sanity checking or keepalive purposes. Implies: no risk of adding or deleting data; no risk of crashing; minimal cpu/db/net load.
-error_level
(defaults to "error") (optional)
Force all test failures to this error level. One of
  • notice: Informative. Does not indicate an error.
  • warning: May indicate an problem. Example: a non-critical bug repro case that hasn't been fixed.
  • error: normal error
  • metatest: Indicates a problem with the test framework, execution, or reporting. Suggests that current test results may be invalid. Use this for test cases that test the tests. Also used, automatically, for errors sourcing test cases.
-bugs
(optional)
A list of integers corresponding to openacs.org bug numbers which relate to this test case.
-procs
(optional)
A list of OpenACS procs which are tested by this case.
-urls
(optional)
A list of URLs (relative to package) tested in web test case
-init_classes
(optional)
Deprecated.
-on_error
(optional)
Deprecated.
Parameters:
testcase_id
testcase_desc
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_aa__coverage_proc_coverage aa__coverage_proc_coverage (test acs-automated-testing) aa_register_case aa_register_case test_aa__coverage_proc_coverage->aa_register_case test_aa__coverage_proc_coverage_level aa__coverage_proc_coverage_level (test acs-automated-testing) test_aa__coverage_proc_coverage_level->aa_register_case test_aa__coverage_proc_proc_list_covered aa__coverage_proc_proc_list_covered (test acs-automated-testing) test_aa__coverage_proc_proc_list_covered->aa_register_case test_webtest_example webtest_example (test acs-automated-testing) test_webtest_example->aa_register_case aa_log aa_log (public) aa_register_case->aa_log aa_log_result aa_log_result (public) aa_register_case->aa_log_result api_add_to_proc_doc api_add_to_proc_doc (public) aa_register_case->api_add_to_proc_doc packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->aa_register_case

Testcases:
webtest_example, aa__coverage_proc_coverage, aa__coverage_proc_proc_list_covered, aa__coverage_proc_coverage_level

aa_register_component (public)

 aa_register_component component_id component_desc body

Registers a reusable code component. Provide a component identifier, description and component body code.

This is useful for re-using code that sets up / clears down, data common to many testcases.

Parameters:
component_id
component_desc
body
Author:
Peter Harper
Created:
28 October 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_db_check_news_archive db_check_news_archive (test news) aa_register_component aa_register_component test_db_check_news_archive->aa_register_component test_db_check_news_create db_check_news_create (test news) test_db_check_news_create->aa_register_component test_db_check_news_set_approve db_check_news_set_approve (test news) test_db_check_news_set_approve->aa_register_component test_db_check_news_status db_check_news_status (test news) test_db_check_news_status->aa_register_component

Testcases:
db_check_news_create, db_check_news_archive, db_check_news_set_approve, db_check_news_status

aa_register_init_class (public)

 aa_register_init_class init_class_id init_class_desc constructor \
    destructor

Registers an initialization class to be used by one or more testcases. An initialization class can be assigned to a testcase via the aa_register_case proc. An initialization constructor is called once before running a set of testcases, and the destructor called once upon completion of running a set of testcases.

The idea behind this is that it could be used to perform data intensive operations that shared amongst a set if testcases. For example, mounting an instance of a package. This could be performed by each testcase individually, but this would be highly inefficient if there are any significant number of them. Better to let the acs-automated-testing infrastructure call the init_class code to set the package up, run all the tests, then call the destructor to unmount the package.

Parameters:
init_class_id - Unique string to identify the init class
init_class_desc - Longer description of the init class
constructor - Tcl code block to run to setup the init class
destructor - Tcl code block to tear down the init class
Author:
Peter Harper
Created:
04 November 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_check_package_mount check_package_mount (test news) aa_register_init_class aa_register_init_class test_check_package_mount->aa_register_init_class test_db_check_news_archive db_check_news_archive (test news) test_db_check_news_archive->aa_register_init_class test_db_check_news_create db_check_news_create (test news) test_db_check_news_create->aa_register_init_class test_db_check_news_revision db_check_news_revision (test news) test_db_check_news_revision->aa_register_init_class test_db_check_news_set_approve db_check_news_set_approve (test news) test_db_check_news_set_approve->aa_register_init_class

Testcases:
check_package_mount, db_check_news_create, db_check_news_revision, db_check_news_archive, db_check_news_set_approve, db_check_news_status

aa_run_with_teardown (public)

 aa_run_with_teardown -test_code test_code \
    [ -teardown_code teardown_code ] [ -rollback ]

Execute code in test_code and guarantee that code in teardown_code will be executed even if error is thrown. Will catch errors in teardown_code as well and provide stack traces for both code blocks.

Switches:
-test_code
(required)
Tcl code that sets up the test case and executes tests
-teardown_code
(optional)
Tcl code that tears down database data etc. that needs to execute after testing even if error is thrown.
-rollback
(boolean) (optional)
If specified, any db transactions in test_code will be rolled back.
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) aa_run_with_teardown aa_run_with_teardown test_webtest_example->aa_run_with_teardown aa_end_rollback_block aa_end_rollback_block (private) aa_run_with_teardown->aa_end_rollback_block aa_execute_rollback_tests aa_execute_rollback_tests (private) aa_run_with_teardown->aa_execute_rollback_tests aa_start_rollback_block aa_start_rollback_block (private) aa_run_with_teardown->aa_start_rollback_block db_transaction db_transaction (public) aa_run_with_teardown->db_transaction navigation::test::context_bar_multirow_filter navigation::test::context_bar_multirow_filter (private) navigation::test::context_bar_multirow_filter->aa_run_with_teardown packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->aa_run_with_teardown

Testcases:
webtest_example

aa_section (public)

 aa_section log_notes

Writes a log message indicating a new section to the log files.

Parameters:
log_notes

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) aa_section aa_section test_webtest_example->aa_section aa_log_result aa_log_result (public) aa_section->aa_log_result

Testcases:
webtest_example

aa_stub (public)

 aa_stub proc_name new_body

Stubs a function. Provide the procedure name and the new body code.

Either call this function from within a testcase for a testcase specific stub, or outside a testcase for a file-wide stub.

Parameters:
proc_name
new_body
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_admin_check_expired_certificates acs_admin_check_expired_certificates (test acs-admin) aa_stub aa_stub test_acs_admin_check_expired_certificates->aa_stub test_auth_email_on_password_change auth_email_on_password_change (test acs-authentication) test_auth_email_on_password_change->aa_stub test_auth_password_change auth_password_change (test acs-authentication) test_auth_password_change->aa_stub test_auth_password_recover auth_password_recover (test acs-authentication) test_auth_password_recover->aa_stub test_auth_password_reset auth_password_reset (test acs-authentication) test_auth_password_reset->aa_stub aa_proc_copy aa_proc_copy aa_stub->aa_proc_copy aa_run_testcase aa_run_testcase (private) aa_run_testcase->aa_stub workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::run_bug_tracker_test->aa_stub

Testcases:
acs_admin_check_expired_certificates, auth_password_change, auth_password_recover, auth_password_reset, auth_use_email_for_login_p, auth_email_on_password_change, util__replace_temporary_tags_with_lookups

aa_test::parse_install_file (public)

 aa_test::parse_install_file -path path -array array

Processes the xml report outputted from install.sh for display.

Switches:
-path
(required)
-array
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-automated-testing/www/index.tcl packages/acs-automated-testing/ www/index.tcl aa_test::parse_install_file aa_test::parse_install_file packages/acs-automated-testing/www/index.tcl->aa_test::parse_install_file packages/acs-automated-testing/www/server.tcl packages/acs-automated-testing/ www/server.tcl packages/acs-automated-testing/www/server.tcl->aa_test::parse_install_file export_vars export_vars (public) aa_test::parse_install_file->export_vars template::util::read_file template::util::read_file (public) aa_test::parse_install_file->template::util::read_file util::interval_pretty util::interval_pretty (public) aa_test::parse_install_file->util::interval_pretty xml_doc_get_first_node xml_doc_get_first_node (public) aa_test::parse_install_file->xml_doc_get_first_node xml_node_get_attribute xml_node_get_attribute (public) aa_test::parse_install_file->xml_node_get_attribute

Testcases:
No testcase defined.

aa_test::parse_test_file (public)

 aa_test::parse_test_file -path path -array array

Processes the xml report with test result data for display.

Switches:
-path
(required)
-array
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-automated-testing/www/index.tcl packages/acs-automated-testing/ www/index.tcl aa_test::parse_test_file aa_test::parse_test_file packages/acs-automated-testing/www/index.tcl->aa_test::parse_test_file packages/acs-automated-testing/www/server.tcl packages/acs-automated-testing/ www/server.tcl packages/acs-automated-testing/www/server.tcl->aa_test::parse_test_file template::util::read_file template::util::read_file (public) aa_test::parse_test_file->template::util::read_file xml_doc_get_first_node xml_doc_get_first_node (public) aa_test::parse_test_file->xml_doc_get_first_node xml_node_get_attribute xml_node_get_attribute (public) aa_test::parse_test_file->xml_node_get_attribute xml_node_get_children_by_name xml_node_get_children_by_name (public) aa_test::parse_test_file->xml_node_get_children_by_name xml_node_get_content xml_node_get_content (public) aa_test::parse_test_file->xml_node_get_content

Testcases:
No testcase defined.

aa_test::xml_report_dir (public)

 aa_test::xml_report_dir

Retrieves the XMLReportDir parameter.

Returns:
Returns the value for the XMLReportDir parameter.

Partial Call Graph (max 5 caller/called nodes):
%3 aa_test::write_test_file aa_test::write_test_file (private) aa_test::xml_report_dir aa_test::xml_report_dir aa_test::write_test_file->aa_test::xml_report_dir packages/acs-automated-testing/www/index.tcl packages/acs-automated-testing/ www/index.tcl packages/acs-automated-testing/www/index.tcl->aa_test::xml_report_dir parameter::get parameter::get (public) aa_test::xml_report_dir->parameter::get

Testcases:
No testcase defined.

aa_true (public)

 aa_true affirm_name affirm_expr

Tests that affirm_expr is true.

Call this function within a testcase, stub or component.

Parameters:
affirm_name
affirm_expr
Returns:
True if the affirmation passed, false otherwise.
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_aa__coverage_proc_coverage aa__coverage_proc_coverage (test acs-automated-testing) aa_true aa_true test_aa__coverage_proc_coverage->aa_true test_aa__coverage_proc_proc_list_covered aa__coverage_proc_proc_list_covered (test acs-automated-testing) test_aa__coverage_proc_proc_list_covered->aa_true test_webtest_example webtest_example (test acs-automated-testing) test_webtest_example->aa_true aa_indent aa_indent (private) aa_true->aa_indent aa_log_result aa_log_result (public) aa_true->aa_log_result acs::test::find_link acs::test::find_link (public) acs::test::find_link->aa_true acs::test::reply_contains acs::test::reply_contains (public) acs::test::reply_contains->aa_true acs::test::reply_has_status_code acs::test::reply_has_status_code (public) acs::test::reply_has_status_code->aa_true acs::test::xpath::equals acs::test::xpath::equals (public) acs::test::xpath::equals->aa_true acs::test::xpath::non_empty acs::test::xpath::non_empty (public) acs::test::xpath::non_empty->aa_true

Testcases:
webtest_example, aa__coverage_proc_coverage, aa__coverage_proc_proc_list_covered

aa_unstub (public)

 aa_unstub proc_name

Copies (back) a proc with "_unstubbed" suffix to its supposedly unpostfixed original name.

Parameters:
proc_name
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_util__replace_temporary_tags_with_lookups util__replace_temporary_tags_with_lookups (test acs-lang) aa_unstub aa_unstub test_util__replace_temporary_tags_with_lookups->aa_unstub aa_proc_copy aa_proc_copy aa_unstub->aa_proc_copy aa_run_testcase aa_run_testcase (private) aa_run_testcase->aa_unstub workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::run_bug_tracker_test->aa_unstub

Testcases:
util__replace_temporary_tags_with_lookups

acs::test::confirm_email (public)

 acs::test::confirm_email -user_id user_id

Confirms user email

Switches:
-user_id
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_test_email_confirmation acs_subsite_test_email_confirmation (test acs-subsite) acs::test::confirm_email acs::test::confirm_email test_acs_subsite_test_email_confirmation->acs::test::confirm_email test_webtest_example webtest_example (test acs-automated-testing) test_webtest_example->acs::test::confirm_email acs::test::http acs::test::http (public) acs::test::confirm_email->acs::test::http acs::test::reply_has_status_code acs::test::reply_has_status_code (public) acs::test::confirm_email->acs::test::reply_has_status_code auth::get_user_secret_token auth::get_user_secret_token (public) acs::test::confirm_email->auth::get_user_secret_token export_vars export_vars (public) acs::test::confirm_email->export_vars party::get party::get (public) acs::test::confirm_email->party::get

Testcases:
webtest_example, acs_subsite_test_email_confirmation

acs::test::dom_html (public)

 acs::test::dom_html var html body

Parses HTML into a tDOM object and executes some code.

Parameters:
var - the variable name that body can refer to as documentElement of the document (e.g. "root").
html - the markup to be parsed.
body - a Tcl script executed in the caller scope that can assume the document to be parsed and be available in "var".

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::dom_html acs::test::dom_html test_create_folder_with_page->acs::test::dom_html test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::dom_html test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->acs::test::dom_html test_form_validate form_validate (test xowiki) test_form_validate->acs::test::dom_html test_link_tests link_tests (test xowiki) test_link_tests->acs::test::dom_html dom dom acs::test::dom_html->dom acs::test::find_link acs::test::find_link (public) acs::test::find_link->acs::test::dom_html acs::test::get_form acs::test::get_form (public) acs::test::get_form->acs::test::dom_html xowf::test::question_names_from_input_form xowf::test::question_names_from_input_form (private) xowf::test::question_names_from_input_form->acs::test::dom_html xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->acs::test::dom_html xowiki::test::create_form_page xowiki::test::create_form_page (public) xowiki::test::create_form_page->acs::test::dom_html

Testcases:
markup_parsing, create_folder_with_page, link_tests, create_form_with_form_instance, create_form_with_numeric, form_validate, nested_self_references

acs::test::find_link (public)

 acs::test::find_link -last_request last_request [ -user_id user_id ] \
    [ -base base ] [ -label label ]

Find the first link based on the provided label and return the href.

Switches:
-last_request
(required)
-user_id
(defaults to "0") (optional)
-base
(defaults to "/") (optional)
-label
(optional)
Author:
Gustaf Neumann

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) acs::test::find_link acs::test::find_link test_fs_add_file_to_folder->acs::test::find_link aa_true aa_true (public) acs::test::find_link->aa_true acs::test::detail_link acs::test::detail_link (private) acs::test::find_link->acs::test::detail_link acs::test::dom_html acs::test::dom_html (public) acs::test::find_link->acs::test::dom_html acs::test::follow_link acs::test::follow_link (public) acs::test::follow_link->acs::test::find_link file_storage::test::delete_first_file file_storage::test::delete_first_file (private) file_storage::test::delete_first_file->acs::test::find_link

Testcases:
fs_add_file_to_folder

acs::test::follow_link (public)

 acs::test::follow_link -last_request last_request [ -user_id user_id ] \
    [ -base base ] [ -label label ]

Follow the first provided label and return the page info. Probably, we want as well other mechanisms to locate the anchor element later.

Switches:
-last_request
(required)
-user_id
(defaults to "0") (optional)
-base
(defaults to "/") (optional)
-label
(optional)
Author:
Gustaf Neumann

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) acs::test::follow_link acs::test::follow_link test_fs_add_file_to_folder->acs::test::follow_link test_fs_create_folder fs_create_folder (test file-storage) test_fs_create_folder->acs::test::follow_link test_fs_edit_folder fs_edit_folder (test file-storage) test_fs_edit_folder->acs::test::follow_link acs::test::find_link acs::test::find_link (public) acs::test::follow_link->acs::test::find_link acs::test::http acs::test::http (public) acs::test::follow_link->acs::test::http file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->acs::test::follow_link file_storage::test::create_new_folder file_storage::test::create_new_folder (private) file_storage::test::create_new_folder->acs::test::follow_link file_storage::test::delete_current_folder file_storage::test::delete_current_folder (private) file_storage::test::delete_current_folder->acs::test::follow_link file_storage::test::edit_folder file_storage::test::edit_folder (private) file_storage::test::edit_folder->acs::test::follow_link forums::test::new_postings forums::test::new_postings (private) forums::test::new_postings->acs::test::follow_link

Testcases:
fs_create_folder, fs_edit_folder, fs_add_file_to_folder

acs::test::form_get_fields (public)

 acs::test::form_get_fields form

Get the fields from a form.

Parameters:
form
Author:
Gustaf Neumann
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::form_get_fields acs::test::form_get_fields test_create_folder_with_page->acs::test::form_get_fields test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::form_get_fields test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->acs::test::form_get_fields test_markup_parsing markup_parsing (test acs-automated-testing) test_markup_parsing->acs::test::form_get_fields acs::test::form_reply acs::test::form_reply (public) acs::test::form_reply->acs::test::form_get_fields acs::test::login acs::test::login (public) acs::test::login->acs::test::form_get_fields file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->acs::test::form_get_fields xowiki::test::create_form_page xowiki::test::create_form_page (public) xowiki::test::create_form_page->acs::test::form_get_fields

Testcases:
markup_parsing, create_folder_with_page, create_workflow_with_instance, create_form_with_form_instance

acs::test::form_is_empty (public)

 acs::test::form_is_empty form

Check, if the form is empty

Parameters:
form
Author:
Gustaf Neumann
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_markup_parsing markup_parsing (test acs-automated-testing) acs::test::form_is_empty acs::test::form_is_empty test_markup_parsing->acs::test::form_is_empty

Testcases:
markup_parsing

acs::test::form_reply (public)

 acs::test::form_reply [ -user_id user_id ] \
    [ -last_request last_request ] [ -form form ] [ -url url ] \
    [ -update update ] [ -remove remove ] [ form_content ]

Send a (POST) request to the specified URL based on the provided form_content which has the form of a dict. For convenience the update fields are provided to overload the form_content.

Switches:
-user_id
(defaults to "0") (optional)
-last_request
(optional)
pass optionally the past request, from which cookie and login-info can be taken
-form
(optional)
-url
(optional)
-update
(optional)
key/attribute list of values to be updated in the form content
-remove
(optional)
keys to be removed from the form content
Parameters:
form_content (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::form_reply acs::test::form_reply test_create_folder_with_page->acs::test::form_reply test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::form_reply test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) test_fs_add_file_to_folder->acs::test::form_reply aa_log aa_log (public) acs::test::form_reply->aa_log acs::test::form_get_fields acs::test::form_get_fields (public) acs::test::form_reply->acs::test::form_get_fields acs::test::http acs::test::http (public) acs::test::form_reply->acs::test::http util::http::post_payload util::http::post_payload (public) acs::test::form_reply->util::http::post_payload acs::test::login acs::test::login (public) acs::test::login->acs::test::form_reply file_storage::test::create_new_folder file_storage::test::create_new_folder (private) file_storage::test::create_new_folder->acs::test::form_reply file_storage::test::delete_current_folder file_storage::test::delete_current_folder (private) file_storage::test::delete_current_folder->acs::test::form_reply file_storage::test::delete_first_file file_storage::test::delete_first_file (private) file_storage::test::delete_first_file->acs::test::form_reply file_storage::test::edit_folder file_storage::test::edit_folder (private) file_storage::test::edit_folder->acs::test::form_reply

Testcases:
fs_add_file_to_folder, create_folder_with_page, create_form_with_form_instance

acs::test::form_set_fields (public)

 acs::test::form_set_fields form fields

Set the fields in a form.

Parameters:
form
fields
Author:
Gustaf Neumann
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) acs::test::form_set_fields acs::test::form_set_fields test_create_form_with_form_instance->acs::test::form_set_fields test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->acs::test::form_set_fields acs::test::login acs::test::login (public) acs::test::login->acs::test::form_set_fields xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->acs::test::form_set_fields

Testcases:
create_workflow_with_instance, create_form_with_form_instance

acs::test::get_form (public)

 acs::test::get_form body xpath

Locate the HTML forms matching the XPath expression and retrieve its HTML attributes and the formfields in form of a Tcl dict. This is a convenience function, combining acs::test::dom_html and ::acs::test::xpath::get_form.

Parameters:
body
xpath
Returns:
Tcl dict with form attributes (starting with "@" and fields)
Author:
Gustaf Neumann
See Also:
  • acs::test::dom_html ::acs::test::xpath::get_form

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::get_form acs::test::get_form test_create_folder_with_page->acs::test::get_form test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::get_form test_markup_parsing markup_parsing (test acs-automated-testing) test_markup_parsing->acs::test::get_form acs::test::dom_html acs::test::dom_html (public) acs::test::get_form->acs::test::dom_html acs::test::xpath::get_form acs::test::xpath::get_form (public) acs::test::get_form->acs::test::xpath::get_form acs::test::login acs::test::login (public) acs::test::login->acs::test::get_form file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->acs::test::get_form file_storage::test::create_new_folder file_storage::test::create_new_folder (private) file_storage::test::create_new_folder->acs::test::get_form file_storage::test::delete_current_folder file_storage::test::delete_current_folder (private) file_storage::test::delete_current_folder->acs::test::get_form file_storage::test::delete_first_file file_storage::test::delete_first_file (private) file_storage::test::delete_first_file->acs::test::get_form

Testcases:
markup_parsing, create_folder_with_page, create_form_with_form_instance

acs::test::get_url_from_location (public)

 acs::test::get_url_from_location dict

Determine the URL based on the location field provided from the result dict (as returned from acs::test::http).

Parameters:
dict - dict containing an ns_set called headers
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::get_url_from_location acs::test::get_url_from_location test_create_folder_with_page->acs::test::get_url_from_location test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::get_url_from_location test_fs_add_file_to_folder fs_add_file_to_folder (test file-storage) test_fs_add_file_to_folder->acs::test::get_url_from_location file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->acs::test::get_url_from_location file_storage::test::create_new_folder file_storage::test::create_new_folder (private) file_storage::test::create_new_folder->acs::test::get_url_from_location file_storage::test::edit_folder file_storage::test::edit_folder (private) file_storage::test::edit_folder->acs::test::get_url_from_location xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->acs::test::get_url_from_location xowiki::test::create_form_page xowiki::test::create_form_page (public) xowiki::test::create_form_page->acs::test::get_url_from_location

Testcases:
fs_add_file_to_folder, create_folder_with_page, create_form_with_form_instance

acs::test::http (public)

 acs::test::http [ -user_id user_id ] [ -user_info user_info ] \
    [ -last_request last_request ] [ -method method ] [ -body body ] \
    [ -timeout timeout ] [ -depth depth ] [ -headers headers ] \
    [ -prefix prefix ] [ -verbose ] [ -basic_auth ] request

Run an HTTP request against the actual server inside test cases.

Switches:
-user_id
(defaults to "0") (optional)
-user_info
(optional)
-last_request
(optional)
-method
(defaults to "GET") (optional)
-body
(optional)
-timeout
(defaults to "10") (optional)
-depth
(defaults to "1") (optional)
follow redirects up to specified depth. Default means redirects won't be followed.
-headers
(optional)
-prefix
(optional)
-verbose
(boolean) (defaults to "true") (optional)
-basic_auth
(boolean) (defaults to "false") (optional)
Parameters:
request
Author:
Gustaf Neumann

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_context_bar_multirow ad_context_bar_multirow (test acs-tcl) acs::test::http acs::test::http test_ad_context_bar_multirow->acs::test::http test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::http test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->acs::test::http test_form_validate form_validate (test xowiki) test_form_validate->acs::test::http test_front_page_1 front_page_1 (test acs-tcl) test_front_page_1->acs::test::http aa_log aa_log (public) acs::test::http->aa_log acs::test::set_user acs::test::set_user (private) acs::test::http->acs::test::set_user acs::test::url acs::test::url (public) acs::test::http->acs::test::url acs::test::confirm_email acs::test::confirm_email (public) acs::test::confirm_email->acs::test::http acs::test::follow_link acs::test::follow_link (public) acs::test::follow_link->acs::test::http acs::test::form_reply acs::test::form_reply (public) acs::test::form_reply->acs::test::http acs::test::login acs::test::login (public) acs::test::login->acs::test::http acs::test::logout acs::test::logout (public) acs::test::logout->acs::test::http

Testcases:
webtest_example, password_recovery_page, front_page_1, ad_context_bar_multirow, create_form_with_form_instance, create_form_with_numeric, form_validate, nested_self_references

acs::test::login (public)

 acs::test::login user_info

Login (register operation) in a web session

Parameters:
user_info - dict containing at least email, last_name, username and password

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) acs::test::login acs::test::login test_webtest_example->acs::test::login aa_log aa_log (public) acs::test::login->aa_log acs::test::form_get_fields acs::test::form_get_fields (public) acs::test::login->acs::test::form_get_fields acs::test::form_reply acs::test::form_reply (public) acs::test::login->acs::test::form_reply acs::test::form_set_fields acs::test::form_set_fields (public) acs::test::login->acs::test::form_set_fields acs::test::get_form acs::test::get_form (public) acs::test::login->acs::test::get_form acs::test::set_user acs::test::set_user (private) acs::test::set_user->acs::test::login

Testcases:
webtest_example

acs::test::logout (public)

 acs::test::logout -last_request last_request

Logout from the current web session

Switches:
-last_request
(required)
reply dict containing cookies

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) acs::test::logout acs::test::logout test_webtest_example->acs::test::logout acs::test::http acs::test::http (public) acs::test::logout->acs::test::http acs::test::reply_has_status_code acs::test::reply_has_status_code (public) acs::test::logout->acs::test::reply_has_status_code

Testcases:
webtest_example

acs::test::reply_contains (public)

 acs::test::reply_contains [ -prefix prefix ] dict string

Convenience function for test cases to check, whether the resulting page contains the given string.

Switches:
-prefix
(optional)
prefix for logging
Parameters:
dict - request reply dict, containing at least the request body
string - string to be checked on the page

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) acs::test::reply_contains acs::test::reply_contains test_webtest_example->acs::test::reply_contains aa_true aa_true (public) acs::test::reply_contains->aa_true acs::test::detail_link acs::test::detail_link (private) acs::test::reply_contains->acs::test::detail_link file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->acs::test::reply_contains file_storage::test::create_new_folder file_storage::test::create_new_folder (private) file_storage::test::create_new_folder->acs::test::reply_contains file_storage::test::edit_folder file_storage::test::edit_folder (private) file_storage::test::edit_folder->acs::test::reply_contains forums::test::edit forums::test::edit (private) forums::test::edit->acs::test::reply_contains forums::test::new_postings forums::test::new_postings (private) forums::test::new_postings->acs::test::reply_contains

Testcases:
webtest_example

acs::test::reply_contains_no (public)

 acs::test::reply_contains_no [ -prefix prefix ] dict string

Convenience function for test cases to check, whether the resulting page does not contain the given string.

Switches:
-prefix
(optional)
prefix for logging
Parameters:
dict - request reply dict, containing at least the request body
string - string to be checked on the page

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) acs::test::reply_contains_no acs::test::reply_contains_no test_webtest_example->acs::test::reply_contains_no aa_false aa_false (public) acs::test::reply_contains_no->aa_false acs::test::detail_link acs::test::detail_link (private) acs::test::reply_contains_no->acs::test::detail_link forums::test::edit forums::test::edit (private) forums::test::edit->acs::test::reply_contains_no forums::test::new forums::test::new (private) forums::test::new->acs::test::reply_contains_no forums::test::new_postings forums::test::new_postings (private) forums::test::new_postings->acs::test::reply_contains_no

Testcases:
webtest_example

acs::test::reply_has_status_code (public)

 acs::test::reply_has_status_code [ -prefix prefix ] dict status_code

Convenience function for test cases to check, whether the reply has the given status code.

Switches:
-prefix
(optional)
prefix for logging
Parameters:
dict - request reply dict, containing at least the request status
status_code - expected HTTP status codes

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_context_bar_multirow ad_context_bar_multirow (test acs-tcl) acs::test::reply_has_status_code acs::test::reply_has_status_code test_ad_context_bar_multirow->acs::test::reply_has_status_code test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::reply_has_status_code test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->acs::test::reply_has_status_code test_form_validate form_validate (test xowiki) test_form_validate->acs::test::reply_has_status_code test_front_page_1 front_page_1 (test acs-tcl) test_front_page_1->acs::test::reply_has_status_code aa_true aa_true (public) acs::test::reply_has_status_code->aa_true acs::test::detail_link acs::test::detail_link (private) acs::test::reply_has_status_code->acs::test::detail_link acs::test::confirm_email acs::test::confirm_email (public) acs::test::confirm_email->acs::test::reply_has_status_code acs::test::login acs::test::login (public) acs::test::login->acs::test::reply_has_status_code acs::test::logout acs::test::logout (public) acs::test::logout->acs::test::reply_has_status_code file_storage::test::add_file_to_folder file_storage::test::add_file_to_folder (private) file_storage::test::add_file_to_folder->acs::test::reply_has_status_code file_storage::test::create_new_folder file_storage::test::create_new_folder (private) file_storage::test::create_new_folder->acs::test::reply_has_status_code

Testcases:
webtest_example, password_recovery_page, front_page_1, ad_context_bar_multirow, create_form_with_form_instance, create_form_with_numeric, form_validate, nested_self_references

acs::test::require_package_instance (public)

 acs::test::require_package_instance -package_key package_key \
    [ -instance_name instance_name ] [ -empty ]

Returns a test instance of specified package_key mounted under specified name. Will create it if it is not found. It is currently assumed the instance will be mounted under the main subsite.

Switches:
-package_key
(required)
package to be instantiated
-instance_name
(optional)
name of the site-node this instance will be mounted to. Will default to -test
-empty
(boolean) (optional)
require an empty instance. If an existing instance is found, it will be deleted. If a package different than is found, it won't be deleted and the proc will return an error
Returns:
a package_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) acs::test::require_package_instance acs::test::require_package_instance test_create_form_with_form_instance->acs::test::require_package_instance test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->acs::test::require_package_instance test_form_validate form_validate (test xowiki) test_form_validate->acs::test::require_package_instance test_includelet_childresources includelet_childresources (test xowiki) test_includelet_childresources->acs::test::require_package_instance test_includelet_toc includelet_toc (test xowiki) test_includelet_toc->acs::test::require_package_instance apm_package_key_from_id apm_package_key_from_id (public) acs::test::require_package_instance->apm_package_key_from_id db_0or1row db_0or1row (public) acs::test::require_package_instance->db_0or1row site_node::delete site_node::delete (public) acs::test::require_package_instance->site_node::delete site_node::get_element site_node::get_element (public) acs::test::require_package_instance->site_node::get_element site_node::instantiate_and_mount site_node::instantiate_and_mount (public) acs::test::require_package_instance->site_node::instantiate_and_mount

Testcases:
package_normalize_path, includelet_toc, includelet_childresources, link_tests, slot_interactions, path_resolve, create_form_with_form_instance, create_form_with_numeric, form_validate, nested_self_references

acs::test::url (public)

 acs::test::url
Returns:
the test URL representing our system for testing. This would normally look like the output of ns_conn location, unless it was overridden via the TestURL parameter in this package.

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) acs::test::url acs::test::url test_webtest_example->acs::test::url apm_package_id_from_key apm_package_id_from_key (public) acs::test::url->apm_package_id_from_key parameter::get parameter::get (public) acs::test::url->parameter::get acs::test::http acs::test::http (public) acs::test::http->acs::test::url packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->acs::test::url twt::do_request twt::do_request (public) twt::do_request->acs::test::url twt::user::login twt::user::login (public) twt::user::login->acs::test::url twt::user::logout twt::user::logout (public) twt::user::logout->acs::test::url

Testcases:
webtest_example

acs::test::user::create (public)

 acs::test::user::create [ -admin ] [ -email email ] [ -locale locale ] \
    [ -password password ] [ -user_id user_id ]

Create a test user with random email and password for testing. If an email is passed in and the party identified by the password exists, the user_id of this party is returned in the dict.

Switches:
-admin
(boolean) (optional)
provide this switch to make the user site-wide admin
-email
(optional)
email for the user to be created
-locale
(defaults to "en_US") (optional)
locale for the user to be created
-password
(optional)
password for the user to be created
-user_id
(optional)
user_id for the user to be created
Returns:
The user_info dict returned by auth::create_user. Contains the additional keys email and password.

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_admin_merge_MergeUserInfo acs_admin_merge_MergeUserInfo (test acs-admin) acs::test::user::create acs::test::user::create test_acs_admin_merge_MergeUserInfo->acs::test::user::create test_acs_subsite_check_composite_group acs_subsite_check_composite_group (test acs-subsite) test_acs_subsite_check_composite_group->acs::test::user::create test_acs_subsite_expose_bug_1144 acs_subsite_expose_bug_1144 (test acs-subsite) test_acs_subsite_expose_bug_1144->acs::test::user::create test_acs_subsite_test_email_confirmation acs_subsite_test_email_confirmation (test acs-subsite) test_acs_subsite_test_email_confirmation->acs::test::user::create test_ad_proc_change_state_member ad_proc_change_state_member (test acs-tcl) test_ad_proc_change_state_member->acs::test::user::create aa_error aa_error (public) acs::test::user::create->aa_error aa_log aa_log (public) acs::test::user::create->aa_log acs_magic_object acs_magic_object (public) acs::test::user::create->acs_magic_object acs_user::get acs_user::get (public) acs::test::user::create->acs_user::get ad_generate_random_string ad_generate_random_string (public) acs::test::user::create->ad_generate_random_string packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->acs::test::user::create twt::user::create twt::user::create (public, deprecated) twt::user::create->acs::test::user::create

Testcases:
acs_admin_merge_MergeUserInfo, auth_authenticate, auth_create_user, auth_password_change, auth_password_reset, auth_email_on_password_change, webtest_example, acs_subsite_expose_bug_1144, acs_subsite_check_composite_group, acs_subsite_test_email_confirmation, community_cc_procs, demote_promote_a_user, ad_proc_change_state_member, ad_proc_permission_grant_and_revoke, ad_proc_permission_permission_p, calendar_basic_api, create_form_with_form_instance, create_form_with_numeric, form_validate, nested_self_references

acs::test::user::delete (public)

 acs::test::user::delete -user_id user_id \
    [ -delete_created_acs_objects ]

Remove a test user.

Switches:
-user_id
(required)
-delete_created_acs_objects
(boolean) (defaults to "false") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) acs::test::user::delete acs::test::user::delete test_webtest_example->acs::test::user::delete acs_user::delete acs_user::delete (public) acs::test::user::delete->acs_user::delete db_dml db_dml (public) acs::test::user::delete->db_dml packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->acs::test::user::delete

Testcases:
webtest_example

acs::test::visualize_control_chars (public)

 acs::test::visualize_control_chars lines

Quotes and therefore makes visible control chars in input lines

Parameters:
lines

Partial Call Graph (max 5 caller/called nodes):
%3 test_visualize_control_chars visualize_control_chars (test acs-automated-testing) acs::test::visualize_control_chars acs::test::visualize_control_chars test_visualize_control_chars->acs::test::visualize_control_chars

Testcases:
visualize_control_chars

acs::test::xpath::equals (public)

 acs::test::xpath::equals node pairs

Test whether provided selectors (first element of the pair) return the specified results (second element of the pair).

Parameters:
node
pairs

Partial Call Graph (max 5 caller/called nodes):
%3 test_markup_parsing markup_parsing (test acs-automated-testing) acs::test::xpath::equals acs::test::xpath::equals test_markup_parsing->acs::test::xpath::equals aa_equals aa_equals (public) acs::test::xpath::equals->aa_equals aa_true aa_true (public) acs::test::xpath::equals->aa_true acs::test::xpath::get_text acs::test::xpath::get_text (public) acs::test::xpath::equals->acs::test::xpath::get_text

Testcases:
markup_parsing

acs::test::xpath::get_form (public)

 acs::test::xpath::get_form node xpath

Locate the HTML forms matching the XPath expression and retrieve its HTML attributes and the formfields in form of a Tcl dict.

Parameters:
node
xpath
Returns:
Tcl dict with form attributes (keys starting with "@", and entry "fields")
Author:
Gustaf Neumann

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::xpath::get_form acs::test::xpath::get_form test_create_folder_with_page->acs::test::xpath::get_form test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::xpath::get_form test_markup_parsing markup_parsing (test acs-automated-testing) test_markup_parsing->acs::test::xpath::get_form acs::test::xpath::get_form_values acs::test::xpath::get_form_values (public) acs::test::xpath::get_form->acs::test::xpath::get_form_values acs::test::get_form acs::test::get_form (public) acs::test::get_form->acs::test::xpath::get_form xowiki::test::create_form_page xowiki::test::create_form_page (public) xowiki::test::create_form_page->acs::test::xpath::get_form

Testcases:
markup_parsing, create_folder_with_page, create_form_with_form_instance

acs::test::xpath::get_form_values (public)

 acs::test::xpath::get_form_values node xpath

Obtain form values (input fields and textareas) in form of a dict (attribute value pairs). The provided XPath expression must point to the HTML form containing the values to be extracted.

Parameters:
node
xpath

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) acs::test::xpath::get_form_values acs::test::xpath::get_form_values test_create_folder_with_page->acs::test::xpath::get_form_values test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->acs::test::xpath::get_form_values acs::test::xpath::get_name_attribute acs::test::xpath::get_name_attribute (private) acs::test::xpath::get_form_values->acs::test::xpath::get_name_attribute acs::test::xpath::get_form acs::test::xpath::get_form (public) acs::test::xpath::get_form->acs::test::xpath::get_form_values xowiki::test::get_form_values xowiki::test::get_form_values (private) xowiki::test::get_form_values->acs::test::xpath::get_form_values

Testcases:
create_folder_with_page, create_form_with_form_instance

acs::test::xpath::get_text (public)

 acs::test::xpath::get_text root xpath

Get a text element from tdom via XPath expression. If the XPath expression matches multiple nodes, return a list.

Parameters:
root
xpath

Partial Call Graph (max 5 caller/called nodes):
%3 test_markup_parsing markup_parsing (test acs-automated-testing) acs::test::xpath::get_text acs::test::xpath::get_text test_markup_parsing->acs::test::xpath::get_text acs::test::xpath::equals acs::test::xpath::equals (public) acs::test::xpath::equals->acs::test::xpath::get_text acs::test::xpath::non_empty acs::test::xpath::non_empty (public) acs::test::xpath::non_empty->acs::test::xpath::get_text

Testcases:
markup_parsing

acs::test::xpath::non_empty (public)

 acs::test::xpath::non_empty node selectors

Test if provided selectors return nonempty results

Parameters:
node
selectors

Partial Call Graph (max 5 caller/called nodes):
%3 test_markup_parsing markup_parsing (test acs-automated-testing) acs::test::xpath::non_empty acs::test::xpath::non_empty test_markup_parsing->acs::test::xpath::non_empty aa_true aa_true (public) acs::test::xpath::non_empty->aa_true acs::test::xpath::get_text acs::test::xpath::get_text (public) acs::test::xpath::non_empty->acs::test::xpath::get_text xowiki::test::create_form_page xowiki::test::create_form_page (public) xowiki::test::create_form_page->acs::test::xpath::non_empty

Testcases:
markup_parsing
[ show source ]