Search code examples
apachetestingjmeterperformance-testingjmeter-plugins

Object moved to here - Apache Jmeter


I got an error message Object moved to here when I try to run my url path("/Logon/UserLogon") on Apache Jmeter. Can anyone help me to solve this?

API url - 74.85.128.67/Logon/UserLogon

Passed Headers in browser

enter image description here

JMeter Running

enter image description here

In the last image, you can see that it redirects to a home page(74.85.128.67/Home) initially and automatically redirects to log in (74.85.128.67) page. Can someone tell me where I have gone wrong?


Solution

  • You most probably failed to pass the token _RequestVerificationToken that is returned as a header in a response you show.

    You should use a Regex Extractor using Response Header content to extract this header to then inject it in subsequent queries.

    Also, Ensure you add a CookieManager :

    and if appliable that you handle the _ViewState, see: