Defining Non-Critical Resources

You can define resources used in your test to be non-critical, so that the test can replay successfully even when actions performed on these resources fail. For example, an image or a Java applet that failed to download may not be critical to your business process.

Prevent unnecessary failures due to errors with non-critical resources

Back to top

Resource classification

The classification of a resource as critical or non-critical depends on the value of the Resource attribute in the function, as described below.

  1. If Resource is specified:

    • Resource = 0: The resource is always critical.
    • Resource = 1: The resource is always non-critical.
  2. If Resource is not specified:

    • If Method is not Get: The resource is always critical.
    • If Method is Get:

      RecContentType is omitted RecContentType is text/html RecContentType is not text/html
      Critical Critical Not critical

Back to top

Example

The resource in the following function is non-critical because Resource is 1:

web_url("webcode.exe",

"URL=https://Example/asp/monitora.asp",

"Resource=1",

"RecContentType=gif",

"Referer=",

"Snapshot=t1.inf",

LAST);

Back to top