Digest Verification

Digest verification is useful for verifying the content of relatively static HTML pages. Digest verification is not useful for HTML pages that are dynamic or contain session information in hyperlinks, embedded objects, or hidden form fields—and therefore change with each call.

The function calls WebVerifyDataDigest and WebVerifyHtmlDigest check to see if data that Silk Performer receives during replay differs from the data the Recorder captured during corresponding record sessions. With these function calls, Silk Performer generates digests that contain information about the occurrence of all characters and compares those results with digests generated by the Recorder. This function enables you to see if Silk Performer captures the same data during replay that it captured during recording. The Recorder automatically generates a digest verification function for each page-level Web API call and low-level Web API call that retrieves a document with a content type specified for digest verification (the default content type is text/html).

Digest Verification

const
  gsVerDigest_ShopIt_Greetings := "\h014200000B..."
                                  "\h016000500A..."
                                  "\h030001000A..."
                                  "\h0900410020...";

transaction TMain
begin
  ...
  WebVerifyDataDigest(gsVerDigest_ShopIt_Greetings, 162);
  WebPageUrl("http://myHost/shopit", "ShopIt - Greetings");
  ...
end TMain;