LoadRunner Practitioners Forum
cancel

Handling of HTTP 500 errors by VuGen during recording

Highlighted
Yurym
Honored Contributor.

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.

 

4 REPLIES
Suerte13cr
Acclaimed Contributor.

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.
Oded_Keret
Honored Contributor.

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
Anandababu153
New Member.

Re: Handling of HTTP 500 errors by VuGen during recording

Hi @Oded_Keret,

Thanks for the tip, we were able to "force" record the requests with 400, 404 as well in the Web / HTML protocol.

However this doesn't work with the MobileHTTP protocol, is there any other Registry we need to update for other protocols?

[Update]

We were able to add new key - "HKEY_CURRENT_USER\Software\Mercury Interactive\Networking\Multi Settings\Mobile\Recording" and added the value suggested. 

Now we are able to record all the calls related to 400;404;500;502;

 

Thanks,

Anand

RaghulMurugadas
Honored Contributor.

Re: Handling of HTTP 500 errors by VuGen during recording

As per HP user guide LR 12.53, you can generate calls using recording option http advancdd settings.

Generate API calls for specific HTTP status codes Generates API calls for the specified custom (non-standard) HTTP status codes. You should separate multiple entries with semicolons. For example: 302;303;304

Regards
Raghul M