Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Log data for wrong user login using Jmeter

I am using JMeter for performance testing. I have a set of users in a .csv file and am using csv config element.

Even if the login failed, it is showing that the request ran successfully. What is the way to get log data for users with wrong password during testing?

like image 997
Jobless4now Avatar asked Jan 05 '23 22:01

Jobless4now


2 Answers

Go to Edit > Add > Assertions > Response Assertion In response assertion you can assert by checking the response code, message and header. If the assertion doesn't match then request will fail.

like image 163
GreyndBlue Avatar answered Feb 08 '23 16:02

GreyndBlue


You have to add assertion to validate the response, so that if login fails it notifies the request as fail in test results.

like image 43
Guru Avatar answered Feb 08 '23 14:02

Guru