-1

I have a issue in writing a code in jmeter where it is a adaptive way(i.e., response of 1st request should be used as header request for 2nd one) should use bean shell and writer coding and this should be done for n number of request fetching every request's response data and using it in next request

In previous response- is= 26c0745 In request - GUID:26c0745

1 Answers1

0

You should avoid scripting and use JMeter's built-in components where possible. Also since JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting.

So I would recommend using Regular Expression Extractor or Boundary Extractor for extracting the header:

enter image description here

and then in the next request you will be able to use ${number} JMeter Variable reference where required.

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