_acs-api-browser__acs_api_browser_search (private)
_acs-api-browser__acs_api_browser_search
Defined in packages/acs-api-browser/tcl/test/acs-api-browser-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 {{ aa_run_with_teardown -test_code { # # Create a new admin user and login # set user_id [db_nextval acs_object_id_seq] set user_info [acs::test::user::create -user_id $user_id -admin] acs::test::confirm_email -user_id $user_id # # Go to the API-doc and check status code # set d [acs::test::http -depth 3 -user_info $user_info /api-doc/] acs::test::reply_has_status_code $d 200 # # Get the form data # set form_data [::acs::test::get_form [dict get $d body] {//form[@id="api-search"]}] # # Fill in with the proc to search # set proc_to_search "ad_proc" set param_weight 3 set d [::acs::test::form_reply -last_request $d -url [dict get $form_data @action] -update [subst { query_string "$proc_to_search" param_weight $param_weight }] [dict get $form_data fields]] set reply [dict get $d body] # # Check, if the form was correctly validated. # acs::test::reply_contains_no $d form-error acs::test::reply_has_status_code $d 302 # # Check the proc-search page directly # set page "/api-doc/proc-search?query_string=$proc_to_search¶m_weight=$param_weight" # # Silence Warning: CSRF failure # aa_silence_log_entries -severities warning { set d [acs::test::http -user_info $user_info $page] } acs::test::reply_has_status_code $d 200 } }} { 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" "acs_api_browser_search (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle