Handling of HTTP 500 errors by VuGen during recording (682 Views)
Reply
Regular Advisor
Yurym
Posts: 93
Registered: ‎04-09-2008
Message 1 of 3 (682 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
Suerte13cr
Posts: 736
Registered: ‎09-14-2011
Message 2 of 3 (664 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.

 

Regards,

Mario M.

HP LR/PC Support

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

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Trusted Contributor
Oded_Keret
Posts: 107
Registered: ‎08-13-2011
Message 3 of 3 (661 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.