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
- Partial Call Graph (max 5 caller/called nodes):
- 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 $resultXQL Not present: Generic, PostgreSQL, Oracle