- Publicity: Public Only All
test-procs.tcl
Procedures in this file
- xowiki::test::create_form (public)
- xowiki::test::create_form_page (public)
- xowiki::test::edit_form_page (public)
- xowiki::test::get_content (public)
- xowiki::test::get_form_CSSclass (private)
- xowiki::test::get_form_action (private)
- xowiki::test::get_form_value (private)
- xowiki::test::get_form_values (private)
- xowiki::test::get_named_form_value (private)
- xowiki::test::get_object_name (private)
- xowiki::test::get_url_from_location (private, deprecated)
- xowiki::test::label (private)
- xowiki::test::pretty_form_content (private)
- xowiki::test::require_folder (private)
- xowiki::test::require_form_page (private)
- xowiki::test::require_link (private)
- xowiki::test::require_page (private)
- xowiki::test::require_test_folder (public)
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 (optional, defaults to
"0"
)- -last_request (optional)
- -instance (required)
- -path (required)
- -parent_id (required)
- -name (required)
- -autonamed (optional, boolean, defaults to
"false"
)- -update (optional)
- -remove (optional)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required, defaults to
"0"
)- -last_request (optional)
- -instance (required)
- -parent_id (required)
- -form_name (required)
- -path (required)
- -autonamed (optional, boolean, defaults to
"false"
)- -update (optional)
- -remove (optional)
- -extra_url_parameter (optional)
- -expect_validation_error (optional)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (optional, defaults to
"0"
)- -last_request (optional)
- -instance (optional)
- -path (required)
- -update (optional)
- -remove (optional)
- -extra_url_parameter (optional, defaults to
"{m edit}"
)- -next_page_must_contain (optional)
- -refetch (optional, boolean, defaults to
"true"
)- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- Returns:
- HTML with xowiki content or empty, iof not there
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- className (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- object_id (required)
- name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::test::get_form_values (private)
xowiki::test::get_form_values node className
- Parameters:
- node (required)
- className (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- formCSSClass (required)
- name (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::test::label (private)
xowiki::test::label intro case ref
- Parameters:
- intro (required)
- case (required)
- ref (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::test::pretty_form_content (private)
xowiki::test::pretty_form_content d
- Parameters:
- d (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::test::require_folder (private)
xowiki::test::require_folder name parent_id package_id
- Parameters:
- name (required)
- parent_id (required)
- package_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (optional, defaults to
"en:page.form"
)- -page_order (optional)
- Parameters:
- name (required)
- parent_id (required)
- package_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xowiki::test::require_link (private)
xowiki::test::require_link name parent_id package_id target_ref
- Parameters:
- name (required)
- parent_id (required)
- package_id (required)
- target_ref (required)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (required)
- parent_id (required)
- package_id (required)
- file_content (optional)
- Partial Call Graph (max 5 caller/called nodes):
- 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 (optional, defaults to
"0"
)- the user, under which the operations should be performed
- -last_request (optional)
- -form_name (optional, defaults to
"folder.form"
)- -fresh (optional, boolean, defaults to
"false"
)- 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):
- 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