acs::test::xpath::equals (public)

 acs::test::xpath::equals node pairs

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

Test whether provided selectors (first element of the pair) return the specified results (second element of the pair).

Parameters:
node (required)
pairs (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_markup_parsing markup_parsing (test acs-automated-testing) acs::test::xpath::equals acs::test::xpath::equals test_markup_parsing->acs::test::xpath::equals aa_equals aa_equals (public) acs::test::xpath::equals->aa_equals aa_true aa_true (public) acs::test::xpath::equals->aa_true acs::test::xpath::get_text acs::test::xpath::get_text (public) acs::test::xpath::equals->acs::test::xpath::get_text

Testcases:
markup_parsing
Source code:
        foreach {q value} $pairs {
            try {
                set result [get_text $node $q]
            } on error {errorMsg} {
                aa_true "XPAth exception during evaluation of selector '$q': $errorMsg" 0
                throw {XPATH {xpath triggered exception}} $errorMsg
            }

            aa_equals "XPath $q:" $result $value
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: