aa_equals (public)

 aa_equals affirm_name affirm_actual affirm_value

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

Tests that the affirm_actual is equal to affirm_value.

Call this function within a testcase, stub or component.

Parameters:
affirm_name (required)
affirm_actual (required)
affirm_value (required)
Returns:
True if the affirmation passed, false otherwise.
Author:
Peter Harper
Created:
24 July 2001

Partial Call Graph (max 5 caller/called nodes):
%3 test_aa__coverage_proc_coverage aa__coverage_proc_coverage (test acs-automated-testing) aa_equals aa_equals test_aa__coverage_proc_coverage->aa_equals test_aa__coverage_proc_coverage_level aa__coverage_proc_coverage_level (test acs-automated-testing) test_aa__coverage_proc_coverage_level->aa_equals test_aa__coverage_proc_proc_list_covered aa__coverage_proc_proc_list_covered (test acs-automated-testing) test_aa__coverage_proc_proc_list_covered->aa_equals test_webtest_example webtest_example (test acs-automated-testing) test_webtest_example->aa_equals aa_indent aa_indent (private) aa_equals->aa_indent aa_log_result aa_log_result (public) aa_equals->aa_log_result aa_check_leftovers aa_check_leftovers (public) aa_check_leftovers->aa_equals acs::test::xpath::equals acs::test::xpath::equals (public) acs::test::xpath::equals->aa_equals lang::test::assert_browser_locale lang::test::assert_browser_locale (private) lang::test::assert_browser_locale->aa_equals lang::test::check_import_result lang::test::check_import_result (private) lang::test::check_import_result->aa_equals lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::execute_upgrade->aa_equals

Testcases:
webtest_example, aa__coverage_proc_coverage, aa__coverage_proc_proc_list_covered, aa__coverage_proc_coverage_level
Source code:
    if {$affirm_actual eq $affirm_value} {
        aa_log_result "pass" [subst {[aa_indent$affirm_name, actual = "$affirm_actual"}]
        return 1
    } else {
        aa_log_result "fail" [subst {[aa_indent$affirm_name, actual = "$affirm_actual", expected = "$affirm_value"}]
        return 0
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: