Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How do I customize how errors are reported during replay?

How do I customize how errors are reported during replay?

Silk Performer allows you to customize the severity of errors reported during a LoadTest.  Depending on the severity, Silk Performer may record the errors and terminate either the current transaction or the entire simulation.

The severity may be any of the following values:

SEVERITY_SUCCESS The problem is ignored
SEVERITY_INFORMATIONAL  The problem is ignored, but reported as an informational message
SEVERITY_WARNING The problem is ignored, but causes a warning
SEVERITY_ERROR The problem is treated as an error
SEVERITY_TRANS_EXIT The problem is treated as an error, the active transaction is aborted
SEVERITY_PROCESS_EXIT The problem is treated as an error, the simulation is aborted.

By default, severity level 'Success' is not recorded in the repository and all other levels are.

You can customize error severity in 2 ways:

  1. In the Active Profile settings under ACTIVE PROFILE | SIMULATION | ERRORS tab
  2. Using the 'ErrorAdd' function in the script.

For example, to reduce the severity of a 'HTTP 404 File not Found' Error to Warning:

Via the GUI:

  1. Go to ACTIVE PROFILE | SIMULATION | ERRORS
  2. Click the Add button 
  3. Select the Module Silk Performer - HTTP
  4. Highlight "404 Object not found"
  5. Set the custom severity to Warning
  6. Click OK

In the script:

ErrorAdd(FACILITY_HTTP, 404, SEVERITY_WARNING);

NOTE: before you change the severity of an error, you should consider the implications carefully.  Errors are reported for very good reasons, and reducing a "severity" to a "warning" could have severe consequences in a test environment.  The temptation to "hide" errors via this type customization must always be avoided.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:04
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.