Adda regex extractor post processor  [ regex=item_id"[^"]*"([^"])*" ,
template=$1$, reference name=itemId, matchnumber = 1] to the first request
and use the variable(itemId in example above) you define there as the path
of the next request. (/SemanticEngine/programs/${itemId}   See the docs for
help on regular expression extractor .

regards
deepak

On Mon, Dec 14, 2009 at 8:47 AM, Babak Shafian <[email protected]> wrote:

>
> Hi all,
>
> I get the following response data for my first HTTP request:
>
>    "item_id": "4573815200912140050",
>    "channel_id": "Vox",
>    "title": "James Bond",
>    "genre": [{"name": "Action"}]
>
> I want to extract the value of item_id (above number) to use it in the path
> of the second HTTP request like that:
>
> Path: /SemanticEngine/programs/item_id
>
> Is there any possibility in JMeter to do it??
>
> Thanks in advance!
> Babak
>
>
>
>
>
>
> _________________________________________________________________
> Windows Live: Make it easier for your friends to see what you’re up to on
> Facebook.
>
> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009

Reply via email to