Handling of HTTP 500 errors by VuGen during recording (969 Views)
Regular Advisor
Posts: 120
Registered: ‎04-09-2008
Message 1 of 3 (969 Views)

Handling of HTTP 500 errors by VuGen during recording

I noticed that web requests that produced HTTP 500 errors during recording were not present in VuGen 11.0.4 scripts (Web HTTP/HTML protocol).


Could you please explain how to change VuGen recording options to have such calls included in VuGen script.

I am having a challenge to figure this out myself.


HP Expert
Posts: 736
Registered: ‎09-14-2011
Message 2 of 3 (951 Views)

Re: Handling of HTTP 500 errors by VuGen during recording

HTTP errors do not generate code in Vugen, there are events recorded for the error responses from the server but code is only generated for events that create load data. If you want you can create your own. using web_url functions.



Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.


Performance Center:

How to:

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Trusted Contributor
Posts: 120
Registered: ‎08-13-2011
Message 3 of 3 (948 Views)

Re: Handling of HTTP 500 errors by VuGen during recording

As Mario wrote, we ususally don't generate steps for requests that receieved an HTTP error (error code >= 300).

The intention is to create a script that will simulate a successful business process -
if we replay steps known to cause HTTP errors, the script will fail and we won't simulate the business process.


If customer insists, you can try the following workaround:

Change the following key in the registry:

HKEY_CURRENT_USER\Software\Mercury Interactive\Networking\
Multi Settings\QTWeb\Recording\GenerateApiFuncForCustomHttpStatus


The value of this key is a string containing error codes to be ignored, separated by ';'.

Remove the keys for which you want steps to be created, and regenerate the script.


I hope this helps,

Oded Keret
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.