jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Using Regular Expression Extractor to extract the "id"
Date Sat, 12 Jun 2010 02:45:59 GMT
>The above url is the path which is coming while i create the user..
What do you mean by this statement? Does your application redirect to this
URL?  Or is this part of the content in the response? Your response field to
check is probably wrong since you are checking the URL.
Second your expression is too broad. it will capture any number , something
like id=([^&]*)& . Also you can use a debug sampler to see what values are
getting extracted if at all.


On Fri, Jun 11, 2010 at 7:11 PM, Nithya Prakash
<nithyaprakash86@gmail.com>wrote:

> Hi
>
> I'm using Jmeter since one month...In learning process.... the scenario is
> like this..... I login as Org admin and create an user......As soon i
> create
> an User in return value it creates an User ID which i'll be using it for
> further HTTP requests.... The problem am facing is i'm unable to fetch the
> "syntax" to be used in the regular expression extractor....
>
> -----
> http://172.18.10.1:3128/Web/performAction?view=orgManageUser&id=30
> &_tabId_orgUserGrid=orgUserGrid_Users&showOrgUserMode=addMode<http://172.18.10.1:3128/Web/performAction?view=orgManageUser&id=30%0A&_tabId_orgUserGrid=orgUserGrid_Users&showOrgUserMode=addMode>
> -----
>
> The above url is the path which is coming while i create the user..... The
> "id=30" is the Org id......... Now in order to extract the id i use a
> regular expression extractor. I make the following settings.....
>                            Response Field to check : URL
>                            Regular Expression         : (\d+)
>
> Its not working..... Can anyone tell me a possible solution please ??
>
> Regards
> --
> Nithya Prakash.L
> nithyaprakash86@gmail.com
> +919623320453
>

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