aa_run_with_teardown (public)

 aa_run_with_teardown -test_code test_code \
    [ -teardown_code teardown_code ] [ -rollback ]

Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl

Execute code in test_code and guarantee that code in teardown_code will be executed even if error is thrown. Will catch errors in teardown_code as well and provide stack traces for both code blocks.

Switches:
-test_code (required)
Tcl code that sets up the test case and executes tests
-teardown_code (optional)
Tcl code that tears down database data etc. that needs to execute after testing even if error is thrown.
-rollback (optional, boolean)
If specified, any db transactions in test_code will be rolled back.
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_webtest_example webtest_example (test acs-automated-testing) aa_run_with_teardown aa_run_with_teardown test_webtest_example->aa_run_with_teardown aa_end_rollback_block aa_end_rollback_block (private) aa_run_with_teardown->aa_end_rollback_block aa_execute_rollback_tests aa_execute_rollback_tests (private) aa_run_with_teardown->aa_execute_rollback_tests aa_start_rollback_block aa_start_rollback_block (private) aa_run_with_teardown->aa_start_rollback_block db_transaction db_transaction (public) aa_run_with_teardown->db_transaction navigation::test::context_bar_multirow_filter navigation::test::context_bar_multirow_filter (private) navigation::test::context_bar_multirow_filter->aa_run_with_teardown packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/ www/files/tutorial/myfirstpackage-procs.tcl packages/acs-core-docs/www/files/tutorial/myfirstpackage-procs.tcl->aa_run_with_teardown

Testcases:
webtest_example
[ show source ]
Show another procedure: