Share this page

# 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.

In this topic:

## Prevent unnecessary failures due to errors with non-critical resources

- In the Runtime Settings Preferences view, the List non-critical resource errors as warnings option 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.

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.

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

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

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 25.1-25.3 All View Local Help Center View Online Help Center Version: