Define 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
- In the Runtime Settings Preferences view, the field List non-critical resource errors as warnings must be enabled (default value). See Preferences view - Internet protocol.
- You classify a resource as non-critical, by defining the value of the Resource attribute in the function, as described below.
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.
If Resource is specified:
- Resource = 0: The resource is always critical.
- Resource = 1: The resource is always non-critical.
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
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);