0
votes

I am doing performance testing for web application using JMeter. I'm new in Jmeter, but went through the concepts, still not familiar with it. All test cases is good, except there is 100% on % error column. I still wondering why is it showing ? Even though I test it using real browser, it's working properly. But it show 100% error(after login to my web application and displays 0% error for Sign In and Sign Out option). Added View Results Tree, but it shows Response code 401 as there is no error when i do it in real browser. Please help me if anyone knows the solution. Many thanks....

1
Welcome to stackoverflow. Please read stackoverflow.com/help/how-to-ask for some suggestions on how to fix this question up. Your question should be minimal and verifiable. - Foon

1 Answers

0
votes

401 HTTP Response Code stands for Unauthorized. It means that you need to provide credentials somehow. JMeter provides HTTP Authorization Manager to deal with different authentication types and it needs to be configured differently to bypass relevant authentication challenges.

The most straightforward and easy is Basic HTTP Authentication, it requires just username and password, see Adding Auth chapter of Building a Monitor Test Plan guide for details.

If your application uses more complex authentication, like NTLM or Kerberos - you'll need to provide at least Domain and in case of Kerberos - supply realm and provide some extra settings in config files. See Windows Authentication with Apache JMeter guide for detailed instructions.