• Publicity: Public Only All

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 (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):
%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 (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):
%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 (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):
%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 (required)
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::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):
%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 ]