aa_call_component (public)

 aa_call_component component_id

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

Executes the chunk of code associated with the component_id.

Call this function from within a testcase body only.

Parameters:
component_id (required)
Author:
Peter Harper
Created:
28 October 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_db_check_news_archive db_check_news_archive (test news) aa_call_component aa_call_component test_db_check_news_archive->aa_call_component test_db_check_news_create db_check_news_create (test news) test_db_check_news_create->aa_call_component test_db_check_news_set_approve db_check_news_set_approve (test news) test_db_check_news_set_approve->aa_call_component test_db_check_news_status db_check_news_status (test news) test_db_check_news_status->aa_call_component aa_log aa_log (public) aa_call_component->aa_log

Testcases:
db_check_news_create, db_check_news_archive, db_check_news_set_approve, db_check_news_status
Source code:
    set body ""

    #
    # Search for the component body
    #
    foreach component [nsv_get aa_test components] {
        if {$component_id == [lindex $component 0] &&
            $::aa_package_key  == [lindex $component 1]} {
            set body [lindex $component 4]
        }
    }

    #
    # If the component exists, execute the body code in the testcases stack
    # level.
    #
    if {$body ne ""} {
        aa_log "Running component $component_id"
        uplevel 1 "_${::aa_package_key}__c_$component_id"
        return
    } else {
        error "Unknown component $component_id, package $::aa_package_key"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: