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

Testcases:
webtest_example
[ show source ]
Show another procedure: