When I try recording the script through JMeter for my application built on Blazor Technology, none of the contents of the page load. So I recorded the Scripts through the chrome extension Blazemeter and imported the jmx file to JMeter and ran it. In the View Results tree response, I see that the requests have failed with Response code:404. Is this error displayed because the contents of the page do not load when I launch the page through JMeter? How can I mitigate this error?
1 Answers
This error means that URL paths you hit don't exist like this one:
https://stackoverflow.com/incorrect/path
or this one:
https://github.com/incorrect/path
More information on HTTP status code 404: HTTP response status codes 404 Not Found
In the absolute majority of cases when it comes to modern web applications you cannot just replay the recorded requests because they have some dynamic parameters used for various purposes like client-side state management or security reasons
So you need to identify all these dynamic parameters, extract them using suitable JMeter Post-Processors, save them into JMeter Variables and replace recorded hard-coded values with the these variables.
The whole process is known as correlation and there is a lot of material over the web with examples, i.e. you can find ASP.NET Login Testing with JMeter article useful, it's not about Blazor itself but it about ASP.NET and Blazor is built on top of it, hopefully it will give you some ideas