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