jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <>
Subject Re: Extracting values From HTTP Requests
Date Thu, 27 Sep 2018 18:05:00 GMT
I would favor that your test gets the data in the form it needs rather than
the test writes code.
e.g. if you have smething like {"a":"b","c":"d"} and you also need the
value of d for something then for e.g. you could create your test data as
"d", {"a":"b","c":"d"} and use CSV dataset config or something like that to
read it.

If you dont want to touch your test data and still want to do it as part of
your test then
pass variable Name and use any of the JSR-223 / beanshell functions to
parse the variable (vars.get("variableName") will give you the value that
you need to parse


On Thu, Sep 27, 2018 at 5:54 AM Nayak, Soumya R. <> wrote:

> Hi All,
> I am submitting HTTP requests and I am getting the request content
> dynamically from individual files from a local folder using the Jmeter
> function - "__FileToString".
> I have a requirement to extract a value from a variable from the request
> data, so how can I do that ?
> As I have post processors which work only on response data, is there any
> way to extract from the dynamic request data?
> Regards,
> Soumya
> ******************************************************************************************
> This message may contain confidential or proprietary information intended
> only for the use of the
> addressee(s) named above or may contain information that is legally
> privileged. If you are
> not the intended addressee, or the person responsible for delivering it to
> the intended addressee,
> you are hereby notified that reading, disseminating, distributing or
> copying this message is strictly
> prohibited. If you have received this message by mistake, please
> immediately notify us by
> replying to the message and delete the original message and any copies
> immediately thereafter.
> If you received this email as a commercial message and would like to opt
> out of future commercial
> messages, please let us know and we will remove you from our distribution
> list.
> Thank you.~
> ******************************************************************************************

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message