My Application allows only one user to login/perform any operation at a time but jmeter is able to do the same process/request multiple times without throwing any error using same user credential simultaneously. I've used record and play function of Jmeter and it is able to do the same request multiple times without throwing any error. I have used multiple users in my thread group that's why it is doing same request multiple time but this should be shown in red or fail as my application support that one user can be used only once to perform any operation.
0
votes
It seems you have a problem with your code. However, we can't help unless we have code or information that can reproduce the problem. Otherwise, we are just blindly guessing.
– Tobi Nary
Dmitri, has got my point correctly but my question is If i am not using any Assertion in my execution and it's a plain record and play scripts then the work done by jmeter is valid or not considering my application use. If it's right behavior from jmeter as my end goal is to measure the time taken by that request to perform the operation successfully please help me more about the logic or any article for the same. Is it mandatory to add the assertion or csv i/p to validate my application use or the current working by jmeter is also fine.
– Vikash kumar
1 Answers
0
votes
JMeter doesn't perform any checks of the response content, it automatically considers HTTP Response codes below 400 as successful.
If your application displays an error message - JMeter won't automatically check for it, it just measures response time. You can add i.e. Response Assertion to add a check that response contains what it should contain or vice versa, that it doesn't contain patterns like "Error" or "Exception" or whatever.
See How to Use JMeter Assertions in Three Easy Steps for more information on how you can conditionally set pass or fail criteria in your JMeter test.