You can add Web verification to a BDF script as a script wide rule by placing the function WebVerifyHtml in the TInit transaction and by using the parameter Web_Flag_Rule. The following code example below will parse the HTML response data of every subsequent Web Request and verify if the string "This is an error page" is returned. If the string is returned in any of the MTHML response data then then a "WebEgine:71 -Html Verification" error will be flagged. transaction TInit begin WebVerifyHtml("This is an error page ", 0 , WEB_FLAG_EQUAL | WEB_FLAG_RULE); end TInit; Old KB# 17120
↧