3

I have recorded script using the BlazeMeter & Opened into the JMeter(4.0). While Running the Script in "View Results Tree" Result displayed Response code: 419 with "unknown status".

Please suggest me the correct solution.

enter image description here

Bharat Mane
6,78512 gold badges42 silver badges69 bronze badges
asked Mar 29, 2018 at 8:52

3 Answers 3

2

You need to pass the token generated during the GET request of login page. The token will be present in the Response data section of the login thread in View Result Tree. You will need to add a Regex expression extractor in the Login thread. Using that you will be able to find the token and then pass it the next page where you are POSTing credentials. You may also have to pass the token to the HTTP Header Manager.

QA9
5911 gold badge4 silver badges17 bronze badges
answered Apr 4, 2018 at 7:27
1

According to http://getstatuscode.com/419 HTTP 419 response means that you were authorized to perform certain actions when you recorded the script, but now your authorization token (or any marker that assigns permissions to a user that is used in your case) got expired so that you cannot just rerun your recorded script whenever you want.

You have to consult with the dev team. They should advice on how to amend your recorded script to make it independent from particular run.

answered Mar 29, 2018 at 9:33
0

You should not be getting this code as it is not a part of HTTP 1.1 protocol standard

It might be the case your application uses this status code for some form of error, i.e. if you're trying to test a Laravel-based web application and not supplying a valid CSRF token. If it is the case - you will need to perform correlation - the process of extracting the token from previous response and adding it to the next request using JMeter PostProcessors

answered Mar 29, 2018 at 10:50
3
  • Can you please explain in detail. Commented Mar 29, 2018 at 11:03
  • l tried using Correlation, but couldnt find the url of the further page. I am getting error right at the login page. So there are only url for Reset password and logo. The thread with POST method while login is not working and giving an Unknown Status error. Commented Mar 29, 2018 at 11:21
  • You need to GET login page prior to POSTing credentials, correlation should happen after GET request. Commented Mar 29, 2018 at 11:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.