Hi
The variable name that you have used in your extractor (reference name in
Regular expression extractor assuming you are getting a single value and
not a list)
Then you'd have something like this in jmeter.properties (or
user.properties)

sample_variables=variableName1,variableName2

Docs at http://jmeter.apache.org/usermanual/listeners.html#sample_variables

On Thu, Oct 1, 2015 at 11:44 AM, Sushma Kattinti <
[email protected]> wrote:

>
> I am running this via Jmeter GUI itself for now. Once it works as
> intended, I will push this .jmx file and run it via Blazemeter.
>
> But for now what sample_variable I should be adding in
> jmeter/user.properties.
>
> I am a newbie and trying to explore, apologies if I raise any silly
> questions.
>
> Thanks,
> Sushma
>
>
>
> On 10/1/15, 2:34 PM, "Deepak Shetty" <[email protected]> wrote:
>
> >Hi
> >
> >Dont use a Save responses to file - Use a different listener like
> >
> http://jmeter.apache.org/usermanual/component_reference.html#Simple_Data_W
> >riter
> >Or if you are running from command line then the -l flag.
> >Scope the listener appropriately (either just as child of the request or
> >whatever)
> >
> >Did you add the variable names to sample_variables in jmeter/user
> >.properties?
> >
> >regards
> >deepak
> >
> >On Thu, Oct 1, 2015 at 8:36 AM, Sushma Kattinti <
> >[email protected]> wrote:
> >
> >> 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