WebSetVerificationEx Function

Action

Specifies which verification function should be executed during replay.

Include file

WebAPI.bdh

Syntax

WebSetVerificationEx( in nFlagVerify : number,
                      in bOn         :boolean,
                      in nDifference :number optional );
Parameter Description
nFlagVerify

Specifies any combination of following flags:

  • WEB_VERIFY_FLAG_Data Specifies if the WebVerifyData function and/or WebVerifyDataBound function in the script should be executed.

  • WEB_VERIFY_FLAG_Html Specifies if the WebVerifyHtml function and/or WebVerifyHtmlBound function in the script should be executed.

  • WEB_VERIFY_FLAG_Xml Specifies if the WebXmlVerifyNodeAttribute function and/or WebXmlVerifyNodeValue function in the script should be executed.

  • WEB_VERIFY_FLAG_Title Specifies if the WebVerifyHtmlTitle function in the script should be executed.

  • WEB_VERIFY_FLAG_Table Specifies if the WebVerifyTable function in the script should be executed.

  • WEB_VERIFY_FLAG_DataDigest Specifies if the WebVerifyDataDigest function in the script should be executed.

  • WEB_VERIFY_FLAG_HtmlDigest Specifies if the WebVerifyHtmlDigest function in the script should be executed.

bOn If this parameter is set to TRUE, all specified verifications (by the nFlagVerify parameter) are enabled. If this parameter is set to FALSE, all specified verifications are disabled.
nDifference If the WEB_VERIFY_FLAG_DataDigest or WEB_VERIFY_FLAG_HtmlDigest flags are specified, this parameter defines the maximum number of digest entries that may differ to still match the verification (optional).

Example

const
  sDigest := "\h35e2fa05";
dcltrans
  transaction TMain
  begin
    WebSetVerificationEx (WEB_VERIFY_FLAG_Html | WEB_VERIFY_FLAG_Xml, true);
    WebSetVerificationEx(WEB_VERIFY_FLAG_Title, false);
    WebSetVerificationEx(WEB_VERIFY_FLAG_DataDigest, true, 10);
    WebVerifyHtml("Silk Performer");
    WebVerifyTitle("Silk Performer - Home"); //not executed
    WebVerifyResponseData(sDigest, sizeof(sDigest));
    WebUrl("http://www.MyCompany.com");
  end TMain;