Highlighted
Trusted Contributor.
Trusted Contributor.
190 views

While Replay Getting 500 Internal server error, But same is working while recording or in manually

While Replay Getting 500 Internal server error, But same is working while recording or while creating manually.

Attached Replay OutPut Log Screen, Snap shot view.

 

Please help me on this to resolve.

 

Thanks & Best Regards,

Lakshmi Narayana.

0 Likes
17 Replies
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

In Replay Request body at end and (&) symbol is missing, But same is available in Record Request body
Tags (1)
0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi @lakshminarayana 

Could you upload your script?

I can't see the whole request body from snapshots.

I think server really got the request. but got error when handling the data.

Looks the request call server to add something, server got a null exception when adding it.

Maybe there's something missing in the request body. Or, some values should be dynamic instead of hard coded.

The snapshot only shows part of body if it's too long.

So we need the script for futher investigation.

 

Regards,

Wei-Wei Zhang

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi Wei-Wei Zhang,

Please find the below attached Script

 

Thanks & Best Regards,

Lakshmi Narayana.

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Sorry, I mean the whole script folder.

 

Regards,

Wei-Wei Zhang

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi Wei-Wei Zhang,

Please find the attached Whole Script folder.

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi @lakshminarayana 

 

I find some dynamic values need to be correlated in your scripts.

But not sure if that's the root cause as I can't replay the script on my machine.

Line 526 there's "pohId=14034285", this value came from the step before it:

"Line 424 web_submit_data("POCreateAction.jsp"..."

If you check the response snapshot of this step, you'll find it's "14034285" when recording, but became "14034286" during replaying.

The value of "potCustId" aslo came from the last response but it didn't changed.

You can right click these nubmers and "Correlate Seletion".

 

Maybe there're more values need to be correlated, "pohId" is just an example.

 

Regards,

Wei-Wei Zhang

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Compare.png

Correlate.png

  

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi Wei-Wei Zhang,

Thanks for the suggestion.

First i will do correlation for all Server (Correlation) & Client (Parameterize) side Request & Responses.

Even though if it is coming 500 Internal server error, Please help me.

Initially i thought to Do Correlation, but that is not like "session id" kind of thing know, that's why i didn't do the correlation.

Normally for which type of Dynamic Values we will do the Correlation could you please help me on this with Good examples.

 

Thanks & Best Regards,

Lakshmi Narayana.

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi @lakshminarayana 

Normally all kinds of dynamic values need correlation.

Sometimes the values are not correlated but the script passes by luck.

For example, "potCustId" is a dynamic value(I guess it means "customer id").

As you always login by same user, "potCustId" never  changes.

So scripts passes even without correlating "potCustId".

 

There's a button "Design Studio" can scan and correlate the values in script.

You can check it.

 

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi Wei-Wei Zhang,

Thanks you very much for the clarifying.

I did the Parameterize & Correlation Part & Now Replay Script is getting Passed, But I am Getting the "302 Found", Attached the error evidences & Scripts Folder.

Please Help me on this.

Thank you very much for your support.

Thanks & Best Regards,

Lakshmi Narayana.

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: While Replay Getting 500 Internal server error, But same is working while recording or in manual

Hi @lakshminarayana 

"302 Found" is not an error.

302 means server accepted your request and redirect you to another URL.

As you see both recording and replay have 2 snapshots.

The first one got 302 Found to redirect to "login_h.jsp", and next one got 200.

It looks good without any error.

 

Regards,

Wei-Wei Zhang

0 Likes
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.