You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Felix Schumacher <fe...@internetallee.de> on 2017/11/16 08:05:49 UTC
URL parameter extraction
Hi all,
as Philippe is adding a few new functions to jmeter, I wondered whether we should add a function to extract parameter values from URLs.
Something along the lines
__extractParamValueFromUrl(${url}, paramName)
It could take a third parameter indicating which value to return, when the paramName is used multiple times in the URL path.
What do you think?
Felix
Re: URL parameter extraction
Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Looks good to me.
REgards
On Thu, Nov 16, 2017 at 10:07 AM, Felix Schumacher <
felix.schumacher@internetallee.de> wrote:
>
>
> Am 16. November 2017 09:16:16 MEZ schrieb Philippe Mouawad <
> philippe.mouawad@gmail.com>:
> >Hello Felix,
> >Just to be sure to understand, what is the use case you have in mind ?
>
> To help those, who have to extract a token from an url that was extracted
> from a HTML document. This is needed often, when trying to follow a sso
> page flow.
>
> If you search for jmeter url parameter extraction on the web, you will get
> many solutions based on regexes. But that seems a bit too complicated for
> most users.
>
> Felix
>
> >
> >Thank you
> >
> >On Thu, Nov 16, 2017 at 9:05 AM, Felix Schumacher <
> >felix.schumacher@internetallee.de> wrote:
> >
> >> Hi all,
> >>
> >> as Philippe is adding a few new functions to jmeter, I wondered
> >whether we
> >> should add a function to extract parameter values from URLs.
> >>
> >> Something along the lines
> >>
> >> __extractParamValueFromUrl(${url}, paramName)
> >>
> >> It could take a third parameter indicating which value to return,
> >when the
> >> paramName is used multiple times in the URL path.
> >>
> >> What do you think?
> >> Felix
>
--
Cordialement.
Philippe Mouawad.
Re: URL parameter extraction
Posted by Felix Schumacher <fe...@internetallee.de>.
Am 16. November 2017 09:16:16 MEZ schrieb Philippe Mouawad <ph...@gmail.com>:
>Hello Felix,
>Just to be sure to understand, what is the use case you have in mind ?
To help those, who have to extract a token from an url that was extracted from a HTML document. This is needed often, when trying to follow a sso page flow.
If you search for jmeter url parameter extraction on the web, you will get many solutions based on regexes. But that seems a bit too complicated for most users.
Felix
>
>Thank you
>
>On Thu, Nov 16, 2017 at 9:05 AM, Felix Schumacher <
>felix.schumacher@internetallee.de> wrote:
>
>> Hi all,
>>
>> as Philippe is adding a few new functions to jmeter, I wondered
>whether we
>> should add a function to extract parameter values from URLs.
>>
>> Something along the lines
>>
>> __extractParamValueFromUrl(${url}, paramName)
>>
>> It could take a third parameter indicating which value to return,
>when the
>> paramName is used multiple times in the URL path.
>>
>> What do you think?
>> Felix
Re: URL parameter extraction
Posted by Philippe Mouawad <ph...@gmail.com>.
Hello Felix,
Just to be sure to understand, what is the use case you have in mind ?
Thank you
On Thu, Nov 16, 2017 at 9:05 AM, Felix Schumacher <
felix.schumacher@internetallee.de> wrote:
> Hi all,
>
> as Philippe is adding a few new functions to jmeter, I wondered whether we
> should add a function to extract parameter values from URLs.
>
> Something along the lines
>
> __extractParamValueFromUrl(${url}, paramName)
>
> It could take a third parameter indicating which value to return, when the
> paramName is used multiple times in the URL path.
>
> What do you think?
> Felix
--
Cordialement.
Philippe Mouawad.