test-procs.tcl


Procedures in this file

Detailed information

xowiki::test::create_form (public)

 xowiki::test::create_form [ -user_id user_id ] \
    [ -last_request last_request ] -instance instance -path path \
    -parent_id parent_id -name name [ -autonamed ] [ -update update ] \
    [ -remove remove ]

Create a form via the web interface.

Switches:
-user_id
(defaults to "0") (optional)
-last_request
(optional)
-instance
(required)
-path
(required)
-parent_id
(required)
-name
(required)
-autonamed
(boolean) (defaults to "false") (optional)
-update
(optional)
-remove
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::test::create_form xowiki::test::create_form test_create_form_with_form_instance->xowiki::test::create_form test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::create_form test_create_workflow_with_instance create_workflow_with_instance (test ) test_create_workflow_with_instance->xowiki::test::create_form test_form_validate form_validate (test xowiki) test_form_validate->xowiki::test::create_form test_xowf xowf (test ) test_xowf->xowiki::test::create_form aa_false aa_false (public) xowiki::test::create_form->aa_false aa_log aa_log (public) xowiki::test::create_form->aa_log aa_true aa_true (public) xowiki::test::create_form->aa_true acs::test::dom_html acs::test::dom_html (public) xowiki::test::create_form->acs::test::dom_html acs::test::form_reply acs::test::form_reply (public) xowiki::test::create_form->acs::test::form_reply

Testcases:
create_workflow_with_instance, xowf, create_form_with_form_instance, create_form_with_numeric, form_validate

xowiki::test::create_form_page (public)

 xowiki::test::create_form_page -user_id user_id \
    [ -last_request last_request ] -instance instance \
    -parent_id parent_id -form_name form_name -path path \
    [ -autonamed ] [ -update update ] [ -remove remove ] \
    [ -extra_url_parameter extra_url_parameter ] \
    [ -expect_validation_error expect_validation_error ]

Create a form page via the web interface. In essence, this calls $instance/$path/$form_name?m=create-new

Switches:
-user_id
(defaults to "0") (required)
-last_request
(optional)
-instance
(required)
-parent_id
(required)
-form_name
(required)
-path
(required)
-autonamed
(boolean) (defaults to "false") (optional)
-update
(optional)
-remove
(optional)
-extra_url_parameter
(optional)
-expect_validation_error
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_composite_test_item create_composite_test_item (test xowf) xowiki::test::create_form_page xowiki::test::create_form_page test_create_composite_test_item->xowiki::test::create_form_page test_create_folder_with_page create_folder_with_page (test xowf) test_create_folder_with_page->xowiki::test::create_form_page test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->xowiki::test::create_form_page test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::create_form_page test_create_test_items create_test_items (test ) test_create_test_items->xowiki::test::create_form_page aa_log aa_log (public) xowiki::test::create_form_page->aa_log aa_true aa_true (public) xowiki::test::create_form_page->aa_true acs::test::dom_html acs::test::dom_html (public) xowiki::test::create_form_page->acs::test::dom_html acs::test::form_get_fields acs::test::form_get_fields (public) xowiki::test::create_form_page->acs::test::form_get_fields acs::test::form_reply acs::test::form_reply (public) xowiki::test::create_form_page->acs::test::form_reply xowiki::test::require_test_folder xowiki::test::require_test_folder (public) xowiki::test::require_test_folder->xowiki::test::create_form_page

Testcases:
create_test_items, xowf, create_composite_test_item, create_folder_with_page, create_workflow_with_instance, create_form_with_form_instance, create_form_with_numeric, form_validate

xowiki::test::edit_form_page (public)

 xowiki::test::edit_form_page [ -user_id user_id ] \
    [ -last_request last_request ] [ -instance instance ] -path path \
    [ -update update ] [ -remove remove ] \
    [ -extra_url_parameter extra_url_parameter ] \
    [ -next_page_must_contain next_page_must_contain ] [ -refetch ]

Edit a form page via the web interface. In essence, this calls $instance/$path?m=edit

Switches:
-user_id
(defaults to "0") (optional)
-last_request
(optional)
-instance
(optional)
-path
(required)
-update
(optional)
-remove
(optional)
-extra_url_parameter
(defaults to "{m edit}") (optional)
-next_page_must_contain
(optional)
-refetch
(boolean) (defaults to "true") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_folder_with_page create_folder_with_page (test xowf) xowiki::test::edit_form_page xowiki::test::edit_form_page test_create_folder_with_page->xowiki::test::edit_form_page test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->xowiki::test::edit_form_page test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::edit_form_page test_create_test_items create_test_items (test ) test_create_test_items->xowiki::test::edit_form_page test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->xowiki::test::edit_form_page aa_log aa_log (public) xowiki::test::edit_form_page->aa_log aa_true aa_true (public) xowiki::test::edit_form_page->aa_true acs::test::dom_html acs::test::dom_html (public) xowiki::test::edit_form_page->acs::test::dom_html acs::test::form_reply acs::test::form_reply (public) xowiki::test::edit_form_page->acs::test::form_reply acs::test::get_form acs::test::get_form (public) xowiki::test::edit_form_page->acs::test::get_form

Testcases:
create_test_items, xowf, create_folder_with_page, create_workflow_with_instance, create_form_with_form_instance, create_form_with_numeric, form_validate

xowiki::test::get_content (public)

 xowiki::test::get_content d

Retrieve form a result dict of a request just the xowiki content part, denoted by the div with class 'xowiki-content' (i.e., leave out the header and footer).

Parameters:
d
Returns:
HTML with xowiki content or empty, iof not there

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::test::get_content xowiki::test::get_content test_create_form_with_form_instance->xowiki::test::get_content acs::test::dom_html acs::test::dom_html (public) xowiki::test::get_content->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->xowiki::test::get_content xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->xowiki::test::get_content

Testcases:
create_form_with_form_instance

xowiki::test::get_form_CSSclass (private)

 xowiki::test::get_form_CSSclass node

Obtain the "class" attribute of a form containing in input field named "__object_name".

Parameters:
node

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::test::get_form_CSSclass xowiki::test::get_form_CSSclass test_create_form_with_form_instance->xowiki::test::get_form_CSSclass test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::get_form_CSSclass test_form_validate form_validate (test xowiki) test_form_validate->xowiki::test::get_form_CSSclass xowiki::test::edit_form_page xowiki::test::edit_form_page (public) xowiki::test::edit_form_page->xowiki::test::get_form_CSSclass

Testcases:
create_form_with_form_instance, create_form_with_numeric, form_validate

xowiki::test::get_form_action (private)

 xowiki::test::get_form_action node className
Parameters:
node
className

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

xowiki::test::get_form_value (private)

 xowiki::test::get_form_value node object_id name

Obtain the "value" attribute of an input field identified by the object_id and the provided name. This kind of addressing is used by xowiki form instances.

Parameters:
node
object_id
name

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

xowiki::test::get_form_values (private)

 xowiki::test::get_form_values node className
Parameters:
node
className

Partial Call Graph (max 5 caller/called nodes):
%3 acs::test::xpath::get_form_values acs::test::xpath::get_form_values (public) xowiki::test::get_form_values xowiki::test::get_form_values xowiki::test::get_form_values->acs::test::xpath::get_form_values

Testcases:
No testcase defined.

xowiki::test::get_named_form_value (private)

 xowiki::test::get_named_form_value node formCSSClass name

Obtain the "value" attribute of an input field with the provided "name" from a form identified by the "formCSSClass".

Parameters:
node
formCSSClass
name

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

xowiki::test::get_object_name (private)

 xowiki::test::get_object_name node

This proc obtains the "value" attribute of an input field named "__object_name". This can be used to obtain the object_id behind a form. This object_id is used as well in the construction of HTML ids.

Parameters:
node

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::test::get_object_name xowiki::test::get_object_name test_create_form_with_form_instance->xowiki::test::get_object_name test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::get_object_name test_form_validate form_validate (test xowiki) test_form_validate->xowiki::test::get_object_name security::parameter::validated security::parameter::validated (public) xowiki::test::get_object_name->security::parameter::validated xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->xowiki::test::get_object_name xowiki::test::edit_form_page xowiki::test::edit_form_page (public) xowiki::test::edit_form_page->xowiki::test::get_object_name

Testcases:
create_form_with_form_instance, create_form_with_numeric, form_validate

xowiki::test::get_url_from_location (private, deprecated)

 xowiki::test::get_url_from_location d
Deprecated. Invoking this procedure generates a warning.

Deprecated version of ::acs::test::get_url_from_location

Parameters:
d
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 acs::test::get_url_from_location acs::test::get_url_from_location (public) ad_log_deprecated ad_log_deprecated (public) xowiki::test::get_url_from_location xowiki::test::get_url_from_location xowiki::test::get_url_from_location->acs::test::get_url_from_location xowiki::test::get_url_from_location->ad_log_deprecated

Testcases:
No testcase defined.

xowiki::test::label (private)

 xowiki::test::label intro case ref
Parameters:
intro
case
ref

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

xowiki::test::pretty_form_content (private)

 xowiki::test::pretty_form_content d
Parameters:
d

Partial Call Graph (max 5 caller/called nodes):
%3 xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::pretty_form_content xowiki::test::pretty_form_content xowiki::test::create_form->xowiki::test::pretty_form_content xowiki::test::create_form_page xowiki::test::create_form_page (public) xowiki::test::create_form_page->xowiki::test::pretty_form_content xowiki::test::edit_form_page xowiki::test::edit_form_page (public) xowiki::test::edit_form_page->xowiki::test::pretty_form_content

Testcases:
No testcase defined.

xowiki::test::require_folder (private)

 xowiki::test::require_folder name parent_id package_id
Parameters:
name
parent_id
package_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_link_tests link_tests (test xowiki) xowiki::test::require_folder xowiki::test::require_folder test_link_tests->xowiki::test::require_folder test_path_resolve path_resolve (test xowiki) test_path_resolve->xowiki::test::require_folder test_slot_interactions slot_interactions (test xowiki) test_slot_interactions->xowiki::test::require_folder test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->xowiki::test::require_folder aa_log aa_log (public) xowiki::test::require_folder->aa_log

Testcases:
xowiki_test_cases, link_tests, slot_interactions, path_resolve

xowiki::test::require_form_page (private)

 xowiki::test::require_form_page [ -title title ] [ -form form ] \
    [ -page_order page_order ] name parent_id package_id
Switches:
-title
(optional)
-form
(defaults to "en:page.form") (optional)
-page_order
(optional)
Parameters:
name
parent_id
package_id

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) xowiki::test::require_form_page xowiki::test::require_form_page xowiki::test::require_form_page->aa_log

Testcases:
No testcase defined.

xowiki::test::require_link (private)

 xowiki::test::require_link name parent_id package_id target_ref
Parameters:
name
parent_id
package_id
target_ref

Partial Call Graph (max 5 caller/called nodes):
%3 test_link_tests link_tests (test xowiki) xowiki::test::require_link xowiki::test::require_link test_link_tests->xowiki::test::require_link test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->xowiki::test::require_link aa_log aa_log (public) xowiki::test::require_link->aa_log

Testcases:
xowiki_test_cases, link_tests

xowiki::test::require_page (private)

 xowiki::test::require_page [ -text text ] [ -page_order page_order ] \
    name parent_id package_id [ file_content ]
Switches:
-text
(optional)
-page_order
(optional)
Parameters:
name
parent_id
package_id
file_content (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_link_tests link_tests (test xowiki) xowiki::test::require_page xowiki::test::require_page test_link_tests->xowiki::test::require_page test_path_resolve path_resolve (test xowiki) test_path_resolve->xowiki::test::require_page test_slot_interactions slot_interactions (test xowiki) test_slot_interactions->xowiki::test::require_page test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->xowiki::test::require_page aa_log aa_log (public) xowiki::test::require_page->aa_log base64::decode base64::decode xowiki::test::require_page->base64::decode xo::write_tmp_file xo::write_tmp_file xowiki::test::require_page->xo::write_tmp_file xowiki::guesstype xowiki::guesstype xowiki::test::require_page->xowiki::guesstype

Testcases:
xowiki_test_cases, link_tests, slot_interactions, path_resolve

xowiki::test::require_test_folder (public)

 xowiki::test::require_test_folder -instance instance \
    -folder_name folder_name [ -user_id user_id ] \
    [ -last_request last_request ] [ -form_name form_name ] [ -fresh ] \
    [ -update update ] [ -extra_url_parameter extra_url_parameter ]

Make sure a testfolder with the specified name exists in the top level directory of the specified instance. If this folder exists already, it is deleted are recreated empty.

Switches:
-instance
(required)
the path leading the instance, e.g. /xowiki
-folder_name
(required)
the name of the folder, e.g. "testfolder"
-user_id
(defaults to "0") (optional)
the user, under which the operations should be performed
-last_request
(optional)
-form_name
(defaults to "folder.form") (optional)
-fresh
(boolean) (defaults to "false") (optional)
create a fresh folder, this means, delete a pre-existing folder first
-update
(optional)
-extra_url_parameter
(optional)
Returns:
folder_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_composite_test_item create_composite_test_item (test xowf) xowiki::test::require_test_folder xowiki::test::require_test_folder test_create_composite_test_item->xowiki::test::require_test_folder test_create_folder_with_page create_folder_with_page (test xowf) test_create_folder_with_page->xowiki::test::require_test_folder test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->xowiki::test::require_test_folder test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::require_test_folder test_create_test_items create_test_items (test ) test_create_test_items->xowiki::test::require_test_folder _ _ (public) xowiki::test::require_test_folder->_ aa_log aa_log (public) xowiki::test::require_test_folder->aa_log acs::test::get_url_from_location acs::test::get_url_from_location (public) xowiki::test::require_test_folder->acs::test::get_url_from_location acs::test::http acs::test::http (public) xowiki::test::require_test_folder->acs::test::http acs::test::reply_has_status_code acs::test::reply_has_status_code (public) xowiki::test::require_test_folder->acs::test::reply_has_status_code

Testcases:
create_test_items, xowf, create_composite_test_item, create_folder_with_page, create_workflow_with_instance, create_form_with_form_instance, create_form_with_numeric, form_validate
[ show source ]