2

I have extracted valeus from response using regular expression extractor and defined template as $1$,$2$, i now want to use those values in beanshell post processor. How do i do that. I am unable to fetch those valeus in my beanshell editor. enter image description here

enter image description here

enter image description here

How do i import $1$ to variable x and $2$ to variable Y into beanshell postprocessor. Thanks

Yuvraj
  • 79
  • 1
  • 2
  • 10

1 Answers1

0

Change first 2 lines of your Beanshell code to be:

name=vars.get("outlet_g1");
email=vars.get("outlet_g2");

Going forward I would suggest using Debug Sampler and View Results Tree listener combination so you could see all the variables originated from the Regular Expression Extractor along with their values. See How to Debug your Apache JMeter Script guide for more details

Dmitri T
  • 159,985
  • 5
  • 83
  • 133