WebSetVerification Function

Action

Specifies whether to check if the Internet traffic Silk Performer receives differs from the traffic the Recorder captured during a former recording session.

Note: This function is obsolete. It can still be used, although it's recommended to use the WebSetVerificationEx function instead.

Include file

WebAPI.bdh

Syntax

WebSetVerification( in bVerify     : boolean,
                    in nDifference : number,
                    in bTitle      : boolean,
                    in bHtml       : boolean optional,
                    in bTable      : boolean optional,
                    in bData       : boolean optional,
                    in bXml        : boolean optional );
Parameter Description
bVerify Specifies whether to enable response data verification. If this parameter is set to true, Silk Performer generates a digest used for verification.
nDifference Maximum number of digest entries that may differ from the digest generated by the Recorder.
bTitle Specifies if the WebVerifyHtmlTitle functions in the script should be executed.
bHtml Specifies if the WebVerifyHtmlXXX functions in the script should be executed (optional). They are not executed if this parameter is omitted.
bTable Specifies if the WebVerifyTable functions in the script should be executed (optional). They are not executed if this parameter is omitted.
bData Specifies if the WebVerifyDataXXX functions in the script should be executed (optional). They are not executed if this parameter is omitted.
bXml Specifies if the WebXmlVerifyXXX functions in the script should be executed (optional). They are not executed if this parameter is omitted.

Example

const
  sDigest := "\h35e2fa05...";

dcltrans
  transaction TMain
  begin
    WebSetVerification(true, 10, false);
    WebVerifyHtml("Silk Performer");
    WebVerifyResponseData(sDigest, sizeof(sDigest));
    WebUrl("http://www.MyCompany.com");
  end TMain;