Hello Deepak,
 
After the POST command I used the Regular Expression Extractor and added
my regex expression. I made sure that it is capturing by using a Debug
Sampler. I added Save Responses to a file and gave the path for the .cvs
file to save the results but I am not able to save just the expression I
am looking for. I get the whole response in a file.

Please let me know if I you need further information and I can provide and
tweak it.

Thanks for all your help

Thanks,
Sushma



On 9/29/15, 12:44 PM, "Deepak Shetty" <[email protected]> wrote:

>Hi
>a. First you need to extract the value using a post processor - This seems
>to be what you have done with regex post processor. This needs to be in
>scope of the sampler that is returning the response - usually it is
>created
>as a child of the sampler.
>b. Next you need to verify that your post processor is actually working -
>So add a debug sampler + view results tree listener after the request that
>you are operating on and you should be able to see whether the value is
>being extracted correctly or not
>c. If step  b is printing your variable correctly then the simplest way to
>write variables to file is using
>http://jmeter.apache.org/usermanual/listeners.html#sample_variables - so
>you would simply define your variable names in the properties file and
>then
>Jmeter would record the value of the variables against every response- If
>you have more complicated needs then roll out your own using any of the
>listeners that allow you to write your own code. - Note that your code
>should be thread safe.
>
>regards
>deepak
>
>
>
>On Tue, Sep 29, 2015 at 8:15 AM, Sushma Kattinti <
>[email protected]> wrote:
>
>> Hello,
>>
>> I am executing GET method and saving output in a csv file. I would like
>>to
>> get just one string from the Response data and put it in a file. Any
>>help
>> would be great. I used Regular Expression Extractor and BeanShell
>> PostProcessor but I do not see any data coming into file. Each column
>>says
>> ³null² instead of the string I am looking for from Response Data
>>
>> Thanks,
>> Sushma
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to