Unanswered question

Difference in Recorded & Replayed responses

The recorded response is in application/json type while running the same response is text/html - Why is this difference and how to resolve. I have checked the potential areas of correlation before this request and seems to be fine. Kindly assist.

Harısh N.
Harısh N.

Harısh N.

Level
0
12 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Except the content type of the response did you get the expected response body from the server?

Have you checked the data sent in that request to check if there's dynamic content that should be correlated?

Harısh N.
Harısh N.

Harısh N.

Level
0
12 / 100
points

Hi - Thanks for your revert. Please see answers inline below.
1. Except the content type of the response did you get the expected response body from the server?
a. No, the expected response is not received. The response doesn't even match with the recorded one bit.
b. The differences are in
Content-Type: application/json;charset=UTF-8 (Recorded)
Content-Type: text/html;charset=ISO-8859-1 (Replayed)
2.Have you checked the data sent in that request to check if there's dynamic content that should be correlated? Yes, there was one spot which required correlation and that's been done and its value is getting replaced too.

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Difficult to provide relevant feedback without seeing the script and check virtual user content but it sounds that either that request contains other dynamic values that you did not correlate or the script failed way before that request.

Have you tried to perform another recording of the exact same steps in order to compare the requests from both recordings? It will ease the identification of the dynamic values.

You can highlight 2 requests from each recorded script and right mouse click to get a compare menu that is usefull for such comparison.