workflow-test-procs.tcl

Test helper procedure library for the acs-automated-testing tests of the workflow package.

Location:
packages/workflow/tcl/test/workflow-test-procs.tcl
Created:
10 January 2003
Author:
Peter Marklund
CVS Identification:
$Id: workflow-test-procs.tcl,v 1.21 2018/07/22 10:12:03 gustafn Exp $

Procedures in this file

Detailed information

_workflow__bugtracker_workflow_clone (private)

 _workflow__bugtracker_workflow_clone

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) workflow::delete workflow::delete (public) _workflow__bugtracker_workflow_clone _workflow__bugtracker_workflow_clone _workflow__bugtracker_workflow_clone->aa_equals _workflow__bugtracker_workflow_clone->aa_false _workflow__bugtracker_workflow_clone->aa_log _workflow__bugtracker_workflow_clone->aa_log_result _workflow__bugtracker_workflow_clone->workflow::delete

Testcases:
No testcase defined.

_workflow__bugtracker_workflow_create_array_style (private)

 _workflow__bugtracker_workflow_create_array_style

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) _workflow__bugtracker_workflow_create_array_style _workflow__bugtracker_workflow_create_array_style _workflow__bugtracker_workflow_create_array_style->aa_log _workflow__bugtracker_workflow_create_array_style->aa_log_result _workflow__bugtracker_workflow_create_array_style->workflow::test::run_bug_tracker_test

Testcases:
No testcase defined.

_workflow__bugtracker_workflow_create_normal (private)

 _workflow__bugtracker_workflow_create_normal

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) _workflow__bugtracker_workflow_create_normal _workflow__bugtracker_workflow_create_normal _workflow__bugtracker_workflow_create_normal->aa_log _workflow__bugtracker_workflow_create_normal->aa_log_result _workflow__bugtracker_workflow_create_normal->workflow::test::run_bug_tracker_test

Testcases:
No testcase defined.

_workflow__dynamic_simple_workflow (private)

 _workflow__dynamic_simple_workflow

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) aa_true aa_true (public) ad_generate_random_string ad_generate_random_string (public) _workflow__dynamic_simple_workflow _workflow__dynamic_simple_workflow _workflow__dynamic_simple_workflow->aa_log _workflow__dynamic_simple_workflow->aa_log_result _workflow__dynamic_simple_workflow->aa_run_with_teardown _workflow__dynamic_simple_workflow->aa_true _workflow__dynamic_simple_workflow->ad_generate_random_string

Testcases:
No testcase defined.

_workflow__hierarchical_workflow (private)

 _workflow__hierarchical_workflow

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) workflow::action::get_id workflow::action::get_id (public) workflow::case::action::execute workflow::case::action::execute (public) _workflow__hierarchical_workflow _workflow__hierarchical_workflow _workflow__hierarchical_workflow->aa_log _workflow__hierarchical_workflow->aa_log_result _workflow__hierarchical_workflow->aa_run_with_teardown _workflow__hierarchical_workflow->workflow::action::get_id _workflow__hierarchical_workflow->workflow::case::action::execute

Testcases:
No testcase defined.

_workflow__parallel_simple_workflow (private)

 _workflow__parallel_simple_workflow

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) aa_true aa_true (public) util_sets_equal_p util_sets_equal_p (public) _workflow__parallel_simple_workflow _workflow__parallel_simple_workflow _workflow__parallel_simple_workflow->aa_log _workflow__parallel_simple_workflow->aa_log_result _workflow__parallel_simple_workflow->aa_run_with_teardown _workflow__parallel_simple_workflow->aa_true _workflow__parallel_simple_workflow->util_sets_equal_p

Testcases:
No testcase defined.

_workflow__workflow_automatic_action (private)

 _workflow__workflow_automatic_action

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) _workflow__workflow_automatic_action _workflow__workflow_automatic_action _workflow__workflow_automatic_action->aa_equals _workflow__workflow_automatic_action->aa_false _workflow__workflow_automatic_action->aa_log _workflow__workflow_automatic_action->aa_log_result _workflow__workflow_automatic_action->aa_true

Testcases:
No testcase defined.

_workflow__workflow_spec_with_message_keys (private)

 _workflow__workflow_spec_with_message_keys

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) util::array_list_spec_pretty util::array_list_spec_pretty (public) workflow::delete workflow::delete (public) _workflow__workflow_spec_with_message_keys _workflow__workflow_spec_with_message_keys _workflow__workflow_spec_with_message_keys->aa_log _workflow__workflow_spec_with_message_keys->aa_log_result _workflow__workflow_spec_with_message_keys->aa_true _workflow__workflow_spec_with_message_keys->util::array_list_spec_pretty _workflow__workflow_spec_with_message_keys->workflow::delete

Testcases:
No testcase defined.

workflow::test::action_short_names (public)

 workflow::test::action_short_names action_id_list

Return the short names of the actions with given id:s

Parameters:
action_id_list (required)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::assert_case_state workflow::test::assert_case_state (public) workflow::test::action_short_names workflow::test::action_short_names workflow::test::assert_case_state->workflow::test::action_short_names workflow::test::assert_user_actions workflow::test::assert_user_actions (public) workflow::test::assert_user_actions->workflow::test::action_short_names workflow::action::get workflow::action::get (public) workflow::test::action_short_names->workflow::action::get

Testcases:
No testcase defined.

workflow::test::admin_owner_id (public)

 workflow::test::admin_owner_id

Return the id of the site-wide-admin (the only person guaranteed to be on the system).

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::assert_case_state workflow::test::assert_case_state (public) workflow::test::admin_owner_id workflow::test::admin_owner_id workflow::test::assert_case_state->workflow::test::admin_owner_id workflow::test::assert_user_actions workflow::test::assert_user_actions (public) workflow::test::assert_user_actions->workflow::test::admin_owner_id workflow::test::case_setup workflow::test::case_setup (public) workflow::test::case_setup->workflow::test::admin_owner_id workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::run_bug_tracker_test->workflow::test::admin_owner_id db_string db_string (public) workflow::test::admin_owner_id->db_string

Testcases:
No testcase defined.

workflow::test::array_lists_equal_p (public)

 workflow::test::array_lists_equal_p list1 list2

Are the two lists equal?

Parameters:
list1 (required)
list2 (required)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::array_lists_equal_p workflow::test::array_lists_equal_p workflow::test::run_bug_tracker_test->workflow::test::array_lists_equal_p

Testcases:
No testcase defined.

workflow::test::assert_case_state (public)

 workflow::test::assert_case_state -workflow_id workflow_id \
    -case_id case_id [ -user_id user_id ] \
    -expect_current_state expect_current_state \
    -expect_enabled_actions expect_enabled_actions \
    [ -expect_user_actions expect_user_actions ]

Make assertions about what the current state should be and what actions are enabled etc.

Switches:
-workflow_id (required)
-case_id (required)
-user_id (optional)
-expect_current_state (required)
-expect_enabled_actions (required)
-expect_user_actions (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::assert_case_state workflow::test::assert_case_state workflow::test::run_bug_tracker_test->workflow::test::assert_case_state aa_log aa_log (public) workflow::test::assert_case_state->aa_log aa_true aa_true (public) workflow::test::assert_case_state->aa_true util_sets_equal_p util_sets_equal_p (public) workflow::test::assert_case_state->util_sets_equal_p workflow::case::fsm::get_state_info workflow::case::fsm::get_state_info (private) workflow::test::assert_case_state->workflow::case::fsm::get_state_info workflow::case::get_available_actions workflow::case::get_available_actions (public, deprecated) workflow::test::assert_case_state->workflow::case::get_available_actions

Testcases:
No testcase defined.

workflow::test::assert_user_actions (public)

 workflow::test::assert_user_actions -workflow_id workflow_id \
    -case_id case_id [ -user_id user_id ] \
    [ -expect_user_actions expect_user_actions ]

Make assertions about user actions.

Switches:
-workflow_id (required)
-case_id (required)
-user_id (optional)
-expect_user_actions (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_true aa_true (public) util_sets_equal_p util_sets_equal_p (public) workflow::case::get_available_actions workflow::case::get_available_actions (public, deprecated) workflow::test::action_short_names workflow::test::action_short_names (public) workflow::test::assert_user_actions workflow::test::assert_user_actions workflow::test::assert_user_actions->aa_log workflow::test::assert_user_actions->aa_true workflow::test::assert_user_actions->util_sets_equal_p workflow::test::assert_user_actions->workflow::case::get_available_actions workflow::test::assert_user_actions->workflow::test::action_short_names

Testcases:
No testcase defined.

workflow::test::case_setup (public)

 workflow::test::case_setup

Create a case of the Bug Tracker bug test workflow.

Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::case_setup workflow::test::case_setup workflow::test::run_bug_tracker_test->workflow::test::case_setup workflow::case::new workflow::case::new (public) workflow::test::case_setup->workflow::case::new workflow::test::admin_owner_id workflow::test::admin_owner_id (public) workflow::test::case_setup->workflow::test::admin_owner_id workflow::test::workflow_id workflow::test::workflow_id (public) workflow::test::case_setup->workflow::test::workflow_id workflow::test::workflow_object_id workflow::test::workflow_object_id (public) workflow::test::case_setup->workflow::test::workflow_object_id

Testcases:
No testcase defined.

workflow::test::get_message_key_spec (public)

 workflow::test::get_message_key_spec

Get a workflow array style spec containing message keys.

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

Testcases:
No testcase defined.

workflow::test::initial_action_short_name (public)

 workflow::test::initial_action_short_name

The short name of the initial action of the test workflow

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::initial_action_short_name workflow::test::initial_action_short_name workflow::test::run_bug_tracker_test->workflow::test::initial_action_short_name workflow::test::workflow_setup workflow::test::workflow_setup (public) workflow::test::workflow_setup->workflow::test::initial_action_short_name

Testcases:
No testcase defined.

workflow::test::run_bug_tracker_test (public)

 workflow::test::run_bug_tracker_test [ -create_proc create_proc ]
Switches:
-create_proc (optional, defaults to "workflow_setup")

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_false aa_false (public) aa_stub aa_stub (public) aa_true aa_true (public) aa_unstub aa_unstub (public) workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test->aa_equals workflow::test::run_bug_tracker_test->aa_false workflow::test::run_bug_tracker_test->aa_stub workflow::test::run_bug_tracker_test->aa_true workflow::test::run_bug_tracker_test->aa_unstub

Testcases:
No testcase defined.

workflow::test::run_with_teardown (public)

 workflow::test::run_with_teardown test_chunk teardown_chunk

Execute code in test chunk and guarantee that code in teardown_chunk will be executed even if error is thrown by the test_chunk.

Parameters:
test_chunk (required)
teardown_chunk (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) workflow::test::run_with_teardown workflow::test::run_with_teardown workflow::test::run_with_teardown->aa_false

Testcases:
No testcase defined.

workflow::test::workflow_get_array_style_spec (public)

 workflow::test::workflow_get_array_style_spec

Get the array-style spec for a workflow for the Bug Tracker Bug use case.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::workflow_get_array_style_spec workflow::test::workflow_get_array_style_spec workflow::test::run_bug_tracker_test->workflow::test::workflow_get_array_style_spec workflow::test::workflow_setup_array_style workflow::test::workflow_setup_array_style (public) workflow::test::workflow_setup_array_style->workflow::test::workflow_get_array_style_spec workflow::test::workflow_name workflow::test::workflow_name (public) workflow::test::workflow_get_array_style_spec->workflow::test::workflow_name

Testcases:
No testcase defined.

workflow::test::workflow_id (public)

 workflow::test::workflow_id

Get the id of the Bug Tracker bug workflow

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::case_setup workflow::test::case_setup (public) workflow::test::workflow_id workflow::test::workflow_id workflow::test::case_setup->workflow::test::workflow_id workflow::test::workflow_teardown workflow::test::workflow_teardown (public) workflow::test::workflow_teardown->workflow::test::workflow_id workflow::get_id workflow::get_id (public) workflow::test::workflow_id->workflow::get_id workflow::test::workflow_name workflow::test::workflow_name (public) workflow::test::workflow_id->workflow::test::workflow_name workflow::test::workflow_object_id workflow::test::workflow_object_id (public) workflow::test::workflow_id->workflow::test::workflow_object_id

Testcases:
No testcase defined.

workflow::test::workflow_name (public)

 workflow::test::workflow_name

The short name used for the Bug Tracker Bug test workflow. It is assumed this short name will not be present in the system.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::workflow_name workflow::test::workflow_name workflow::test::run_bug_tracker_test->workflow::test::workflow_name workflow::test::workflow_get_array_style_spec workflow::test::workflow_get_array_style_spec (public) workflow::test::workflow_get_array_style_spec->workflow::test::workflow_name workflow::test::workflow_id workflow::test::workflow_id (public) workflow::test::workflow_id->workflow::test::workflow_name workflow::test::workflow_setup workflow::test::workflow_setup (public) workflow::test::workflow_setup->workflow::test::workflow_name

Testcases:
No testcase defined.

workflow::test::workflow_object_id (public)

 workflow::test::workflow_object_id

Return a dummy object_id for use for the workflow stuff.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::case_setup workflow::test::case_setup (public) workflow::test::workflow_object_id workflow::test::workflow_object_id workflow::test::case_setup->workflow::test::workflow_object_id workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::run_bug_tracker_test->workflow::test::workflow_object_id workflow::test::workflow_id workflow::test::workflow_id (public) workflow::test::workflow_id->workflow::test::workflow_object_id workflow::test::workflow_setup workflow::test::workflow_setup (public) workflow::test::workflow_setup->workflow::test::workflow_object_id workflow::test::workflow_setup_array_style workflow::test::workflow_setup_array_style (public) workflow::test::workflow_setup_array_style->workflow::test::workflow_object_id db_string db_string (public) workflow::test::workflow_object_id->db_string

Testcases:
No testcase defined.

workflow::test::workflow_object_id_2 (public)

 workflow::test::workflow_object_id_2

Partial Call Graph (max 5 caller/called nodes):
%3 db_string db_string (public) workflow::test::workflow_object_id_2 workflow::test::workflow_object_id_2 workflow::test::workflow_object_id_2->db_string

Testcases:
No testcase defined.

workflow::test::workflow_setup (public)

 workflow::test::workflow_setup

Create a test workflow for the Bug Tracker Bug use case.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::fsm::new workflow::action::fsm::new (public) workflow::new workflow::new (public) workflow::role::new workflow::role::new (public) workflow::state::fsm::new workflow::state::fsm::new (public) workflow::test::initial_action_short_name workflow::test::initial_action_short_name (public) workflow::test::workflow_setup workflow::test::workflow_setup workflow::test::workflow_setup->workflow::action::fsm::new workflow::test::workflow_setup->workflow::new workflow::test::workflow_setup->workflow::role::new workflow::test::workflow_setup->workflow::state::fsm::new workflow::test::workflow_setup->workflow::test::initial_action_short_name

Testcases:
No testcase defined.

workflow::test::workflow_setup_array_style (public)

 workflow::test::workflow_setup_array_style

Create a test workflow for the Bug Tracker Bug use case.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::fsm::new_from_spec workflow::fsm::new_from_spec (public) workflow::test::workflow_get_array_style_spec workflow::test::workflow_get_array_style_spec (public) workflow::test::workflow_object_id workflow::test::workflow_object_id (public) workflow::test::workflow_setup_array_style workflow::test::workflow_setup_array_style workflow::test::workflow_setup_array_style->workflow::fsm::new_from_spec workflow::test::workflow_setup_array_style->workflow::test::workflow_get_array_style_spec workflow::test::workflow_setup_array_style->workflow::test::workflow_object_id

Testcases:
No testcase defined.

workflow::test::workflow_teardown (public)

 workflow::test::workflow_teardown

Delete the Bug Tracker Bug test workflow.

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::test::run_bug_tracker_test workflow::test::run_bug_tracker_test (public) workflow::test::workflow_teardown workflow::test::workflow_teardown workflow::test::run_bug_tracker_test->workflow::test::workflow_teardown workflow::delete workflow::delete (public) workflow::test::workflow_teardown->workflow::delete workflow::test::workflow_id workflow::test::workflow_id (public) workflow::test::workflow_teardown->workflow::test::workflow_id

Testcases:
No testcase defined.
[ show source ]