- 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
(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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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