How to in JMeter use regular expression extractor to fill request in loop

813 views Asked by At

I've got simple test plan:

Jdbs Conection 
JDBC request
For Each Loop on jdbc response
  |-Regular Expression Extractor (Post processor)
  |-Soap Request where I need extracted value from Regular Expression Extractor
     |-Response assertion

The problem is when the first loop is executed. SOAP request is filled with name of variable from Regular Expression Extractor not the value. Can anyone tell me how to get around this problem?

[Edit] test plan screen

As you can see on the first image is showing jdbc response data . On first position is value '22;1'. Second one is showing first soap request failed not a values but names of variables... Third one is showing second request filled correctly

http://postimg.org/image/owl5kue4v/

Below is screen when I add Debug Sampler to for each loop. In this situation first SOAP request is filled correctly.

http://postimg.org/image/aad3c0ngt/

My problem is how to get the same behavior like in second situation but without adding Debug Sampler?

BTW, Sorry for the images on an external server, but my rank is too low to add them here

1

There are 1 answers

2
Zubair M Hamdani On

Your test plan should be in the format mentioned in the attached snapshot:

enter image description here

Hope this will help