acs::test::reply_contains (public)

 acs::test::reply_contains [ -prefix prefix ] dict string

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

Convenience function for test cases to check, whether the resulting page contains the given string.

Switches:
-prefix (optional)
prefix for logging
Parameters:
dict (required)
request reply dict, containing at least the request body
string (required)
string to be checked on the page

Testcases:
webtest_example
Source code:
        set result [string match *$string* [dict get $dict body]]
        if {$result} {
            aa_true "${prefix}Reply contains $string" $result
        } else {
            aa_true "${prefix}Reply contains $string (<a href='[detail_link $dict]'>Details</a>)" $result
        }
        return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: