To verify that an image has been downloaded during a loadtest, the "Record Digest Verification" option offers the best approach. By selecting this option, SilkPerformer's recorder will automatically generate a digest verification function (WebVerifyDataDigest) for responses matching the content types you list. The Recorder generates a digest containing information about the occurrence of each character and the WebVerifyDataDigest function checks whether SilkPerformer receives the same data as the web browser did during recording. To enable this setting and configure it to verify image files you should do the following: Go to SETTINGS | ACTIVE PROFILE | WEB | RECORD | VERIFICATION and select the "Record Digest Verification" option. Remove the reference to "text/html" in the "Verify data of content type" field. As we're verifying the presence of a .gif file in this example, we will add the content type "image/gif" as shown below and click OK: Now, when you record a new script, the SilkPerformer recorder will generate a constant string in the script which corresponds to the digest for the image .gif file:
↧