0

I am working with Jmeter to do load testing. I created a simple login script using BlazeMeter. Then I imported the file into Jmeter. Whenever I try to run the script, it fails. The problem I encounter here is that 2 of my https requests I receive a 403 and 500 response code.

enter image description here Output

I added an HTTP Authorization Manager to try and solve this but it is not working. Do you have any suggestions on how to resolve this? I tried adding post processors but couldn't make them work.

1 Answers1

0
  1. First of all Template value in the Regular Expression Extractor should be $1$

  2. Also your regular expression itself looks kind of weird and I doubt it matches anything. You can check whether it generates the proper ${state} variable by using Debug Sampler and View Results Tree listener combination

  3. In general using regular expressions for parsing HTML is not the best idea, it worth considering migrating to CSS Selector Extractor

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • The ${state} value from the response it is extracted is correct. But when I check the same expression in the next responses, its giving partial value. Is there any way to correct it? – Divya Jeevan Feb 21 '22 at 09:57