• Publicity: Public Only All

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

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).

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)

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)

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)

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

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.

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

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")

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

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.

Testcases:
No testcase defined.

workflow::test::workflow_id (public)

 workflow::test::workflow_id

Get the id of the Bug Tracker bug workflow

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.

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.

Testcases:
No testcase defined.

workflow::test::workflow_object_id_2 (public)

 workflow::test::workflow_object_id_2

Testcases:
No testcase defined.

workflow::test::workflow_setup (public)

 workflow::test::workflow_setup

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

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.

Testcases:
No testcase defined.

workflow::test::workflow_teardown (public)

 workflow::test::workflow_teardown

Delete the Bug Tracker Bug test workflow.

Testcases:
No testcase defined.
[ show source ]