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] > >
