Setting Verification Options

  1. In Silk Performer, expand the Profiles node in the Project tree.
  2. Right-click the profile that you want to configure and choose Edit Profile.
    Tip: Alternatively, you can choose Settings > Active Profile from the menu bar.

    The Profile - [<profile name>] dialog box opens, and the Replay category is displayed in the shortcut list on the left.

  3. In the shortcut list on the left, click the Record button. The Record category is displayed.
  4. In the shortcut list, click the Web icon.
  5. Click the Verification tab. Use the Recording area to specify options for generating verification functions when recording a script based on captured Web traffic.
  6. Check the Record title verification check box to have the Recorder automatically generate a title verification function (WebVerifyHtmlTitle) for each Web page.
  7. Check the Record digest verification check box to have the Recorder automatically generate a response verification digest function (WebVerifyDataDigest). Verification functions are of the following types:
    • Click the All characters option button to include in the digest all of the characters that are received in HTTP response messages from the Web server.
    • Click the Printable characters option button to include in the digest only the printable characters that are received in HTTP response messages from the Web server.
    • Click the Alphanumeric characters option button to include in the digest only the alphanumeric characters that are received in HTTP response messages from the Web server.
    • Use the Verify data of content type area to list all HTTP response content types for which a response verification digest should be generated.
  8. Click the Add button to add a new HTTP response content type to be used for response verification. The Response Content Types dialog box opens.
    1. Enter the name of the new content type you want to add to the list, or select one from the list box.
    2. Click OK.
  9. Click the Edit button to edit the currently selected HTTP response content type. The Response Content Types dialog box opens.
    1. Edit the currently selected HTTP response content type.
    2. Click OK.
  10. Click the Remove button to remove the currently selected HTTP response content type from the list.
    1. Click Yes to confirm the deletion.
  11. In the shortcut list on the left, click the Replay button. The Replay category is displayed.
  12. Use the HTML / XML area to enable HTML and XML document verification when replaying scripts based on Web traffic captured by the Silk Performer Recorder. Check the Title verification check box to enable Silk Performer to verify the title of HTML documents.

    An operation (depending on the specified severity: error, warning, informational, or custom) will be performed if the verification fails. The setting used here is valid for both the page-level Web API and the low-level Web API (WebSetVerificationEx).

    When this option is selected it triggers the execution of the WebVerifyHtmlTitle function in the BDL script.

  13. Check the Table verification check box to enable Silk Performer to verify that a table within an HTML document contains specified text. An operation (depending on the specified severity: error, warning, informational, or custom) will be performed if the verification fails. The setting used here is valid for both the page-level Web API and the low-level Web API (WebSetVerificationEx). This option triggers the execution of the WebVerifyTable function in the BDL script.
  14. Check the Digest verification tolerance level check box to verify the HTML content of a server response.

    Use TrueLog Explorer to generate WebVerifyHtmlDigest function calls.

    Enter the maximum difference in character frequency, quantified in bytes, that may occur between the server response that has been used by TrueLog Explorer to generate the HTML digest and the response that is received during replay. An operation (depending on the specified severity: error, warning, informational, or custom) will be performed if the number of differing bytes exceeds this limit.

  15. Check the HTML verification check box to enable Silk Performer to verify that an HTML document contains specified text.

    An operation (depending on the specified severity: error, warning, informational, or custom) will be performed if the verification fails. The setting used here is valid for both the page-level Web API and the low-level Web API.

    When this option is checked, it triggers the execution of the WebVerifyHTML and WebVerifyHTMLBound functions in the BDL script.

  16. Check the Link checking check box to check the validity of links in HTML documents received during the test. The HTML document is parsed on receipt, and additional requests are sent to check that links are valid. An error message is generated if a target pointed to by a link is invalid. This feature is available only in the page-level Web API.
  17. Check the XML verification check box to enable Silk Performer to verify that an XML document contains specified values or attributes.

    An operation (depending on the specified severity: error, warning, informational, or custom) will be performed if the verification fails. The setting used here is valid for both the page-level Web API and the low-level Web API.

    When this option is checked it triggers the execution of the WebXmlVerifyNodeValue and WebXmlVerifyNodeAttribute functions in the BDL script.

  18. Use the Data area to specify options for HTTP response verification when replaying a script based on Web traffic captured by the Recorder. Check the Data verification check box to enable Silk Performer to verify that raw data received from the server contains specified data (for example, HTML source code containing specific code).

    An operation (depending on the specified severity: error, warning, informational, or custom) will be performed if the verification fails. The setting used here is valid for both the page-level Web API and the low-level Web API.

    When this option is checked it triggers execution of the WebVerifyData and WebVerifyDataBound functions in the BDL script.

  19. Check the Digest verification tolerance level check box to have Silk Performer verify server response data during tests.
    Note: The Recorder generates the digests needed for verification.

    In the field to the right, enter the maximum difference in character frequency, quantified in bytes, that may occur between the response message received from the server during recording and the response message received during replay. If the number of bytes that differ exceeds this limit, Silk Performer will report an error. The Recorder creates digests only for the content types that are included in the Verify data of content type list.

  20. Click OK to save your settings.