_acs-tcl__apm__test_callback_invoke (private)
_acs-tcl__apm__test_callback_invoke
Defined in packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ set package_key acs-automated-testing set version_id [apm_version_id_from_package_key $package_key] set type [lindex [apm_supported_callback_types] 0] set file_path [apm_test_callback_file_path] set error_p [catch { # Set the callback to be to our little test proc apm_set_callback_proc -version_id $version_id -type $type "apm_test_callback_proc" apm_invoke_callback_proc -version_id $version_id -arg_list [list arg1 value1 arg2 value2] -type $type set file_id [open $file_path r] set file_contents [read $file_id] aa_equals "The callback proc should have been executed and written argument values to file" [string trim $file_contents] "value1 value2" close $file_id # Provide invalid argument list and the invoke proc should bomb # TODO... } error] # Teardown file delete -- $file_path apm_remove_callback_proc -package_key $package_key -type $type if { $error_p } { error "$error - $::errorInfo" } }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "apm__test_callback_invoke (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle