Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: How can I verify that a PDF file is downloaded during a loadtest?

$
0
0
This can be achieved using the "Record Digest Verification" option. If you select this option the SilkPerformer 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 PDF 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. Add the content type "application/pdf" as shown below and click OK: Then when you record a new script the SilkPerformer recorder generates a constant string in the script which corresponds to the digest for the PDF file: The recorder also scripts a WebVerifyDataDigest function immediately before the call to the PDF file: WebVerifyDataDigest(gsVerDigest_PM_InstallGuide_pdf); WebPageLink("Performance Manager Installation and Setup Guide", "PM_InstallGuide.pdf"); After running a TryScript you will be able to view the verification in the TrueLog; an error will be generated during a test if the PDF file is not downloaded. If you require further assistance please contact Support.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>