-1

I have recorded a script in Jmeter via HTTP script recorder but when i run the script i'm getting Object moved here error for on of the samplers of login transaction. When search for the same request in the recorded xml i can see it has given a valid output. Can someone tell me why when i'm running the script then only it is showing this error. Please find below snapshots for reference.

  1. Request from recording xml: Recorded_Request_body
  2. Request header from recording xml: Recorded_Request_header
  3. Request response from recording xml: Recorded_Request_response
  4. Request from script: Script_Request_body
  5. Header from script: Script_Header
  6. Response from script: Script_Response_body

If its not clear from above images i can confirm that the request body and header from both the recording xml and script view tree are same.

Can someone help me to understand why i'm getting this object moved error? Thanks in advance.

Vaibhav
  • 29
  • 4

1 Answers1

0

Looks like missing or improperly implemented correlation

In both requests you have identical session parameter:

enter image description here

and my expectation is that it should be different for different logins (even for the same user)

So inspect previous requests/responses, find where this session parameter value appears first time, extract it using a suitable JMeter's Post-Processor, store into a JMeter Variable and replace this recorded hard-coded value with the variable.

More information: ASP.NET Login Testing with JMeter

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Ya i know its weird but these values are no where to be found in previous requests i have tried it. – Vaibhav Oct 04 '21 at 14:33
  • Infact there are like 5-7 samplers in Login and all of them have these variable which are only found in those samplers only you cant co-relate them from recording and those all are working and giving expected output but only this request is not working – Vaibhav Oct 04 '21 at 14:35