You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ma...@netcom-gsm.no on 2008/03/10 16:21:31 UTC

Creating dynamic request with multiple values for same request parameter

 Hi All,

I want to send the multiple values (sending same request parameters
multiple times with different values) to a http sampler.

Like z.html?userId=xxx&userId=yyy&userId=zzz.

I am getting xxx, yyy, and zzz from the response of my previous
sampler's response.

I have tried out extracting the values from previous response using a
regularExpression post processors. Now i am having a list of all the
userIds in variable userid. 

 <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor"
testname="select the user" enabled="true">
              <stringProp
name="RegexExtractor.useHeaders">false</stringProp>
              <stringProp
name="RegexExtractor.refname">userid</stringProp>
              <stringProp name="RegexExtractor.regex">&lt;a
href=&quot;(.+?)link=(.+?)&quot;&gt;(.+?)&lt;/a&gt;</stringProp>
              <stringProp
name="RegexExtractor.template">$3$</stringProp>
              <stringProp name="RegexExtractor.default">No
Value</stringProp>
              <stringProp
name="RegexExtractor.match_number">-1</stringProp>
            </RegexExtractor>

Now i am facing problem in creating
z.html?userId=xxx&userId=yyy&userId=zzz as a request for my next
sampler.

Does anybody faced similar kind of problem?


With kind regards
Manish Bansal




-----Original Message-----
From: jmeter-user-help@jakarta.apache.org
[mailto:jmeter-user-help@jakarta.apache.org] 
Sent: 10. mars 2008 16:01
To: Bansal, Manish
Subject: WELCOME to jmeter-user@jakarta.apache.org

Hi! This is the ezmlm program. I'm managing the
jmeter-user@jakarta.apache.org mailing list.

I'm working for my owner, who can be reached at
jmeter-user-owner@jakarta.apache.org.

Acknowledgment: I have added the address

   Manish.Bansal@netcom-gsm.no

to the jmeter-user mailing list.

Welcome to jmeter-user@jakarta.apache.org!

Please save this message so that you know the address you are subscribed
under, in case you later want to unsubscribe or change your subscription
address.


--- Administrative commands for the jmeter-user list ---

I can handle administrative requests automatically. Please do not send
them to the list address! Instead, send your message to the correct
command address:

To subscribe to the list, send a message to:
   <jm...@jakarta.apache.org>

To remove your address from the list, send a message to:
   <jm...@jakarta.apache.org>

Send mail to the following for info and FAQ for this list:
   <jm...@jakarta.apache.org>
   <jm...@jakarta.apache.org>

Similar addresses exist for the digest list:
   <jm...@jakarta.apache.org>
   <jm...@jakarta.apache.org>

To get messages 123 through 145 (a maximum of 100 per request), mail:
   <jm...@jakarta.apache.org>

To get an index with subject and author for messages 123-456 , mail:
   <jm...@jakarta.apache.org>

They are always returned as sets of 100, max 2000 per request, so you'll
actually get 100-499.

To receive all messages with the same subject as message 12345, send a
short message to:
   <jm...@jakarta.apache.org>

The messages do not really need to be empty, but I will ignore their
content. Only the ADDRESS you send to is important.

You can start a subscription for an alternate address, for example
"john@host.domain", just add a hyphen and your address (with '=' instead
of '@') after the command word:
<jm...@jakarta.apache.org>

To stop subscription for this address, mail:
<jm...@jakarta.apache.org>

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the desired
results, please contact my owner at
jmeter-user-owner@jakarta.apache.org. Please be patient, my owner is a
lot slower than I am ;-)

--- Enclosed is a copy of the request I received.

Return-Path: <Ma...@netcom-gsm.no>
Received: (qmail 18002 invoked by uid 99); 10 Mar 2008 15:01:05 -0000
Received: from athena.apache.org (HELO athena.apache.org)
(140.211.11.136)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 08:01:05
-0700
X-ASF-Spam-Status: No, hits=0.5 required=10.0
	tests=HTML_MESSAGE,MISSING_SUBJECT,RCVD_IN_DNSWL_MED,SPF_NEUTRAL
X-Spam-Check-By: apache.org
Received-SPF: neutral (athena.apache.org: local policy)
Received: from [131.115.18.153] (HELO sehan002bb.han.telia.se)
(131.115.18.153)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 15:00:28
+0000
Received: from SEHAN022MB.tcad.telia.se ([131.115.18.163]) by
sehan002bb.han.telia.se with Microsoft SMTPSVC(6.0.3790.1830);
	 Mon, 10 Mar 2008 16:00:34 +0100
x-mimeole: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C882BF.7E1CDE7E"
Subject: 
Date: Mon, 10 Mar 2008 16:00:34 +0100
Message-ID:
<7A...@SEHAN022MB.tcad.telia.se>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Index: AciCv34tPSaKARLpQr6sKyv41b57+Q==
From: <Ma...@netcom-gsm.no>
To:
<jmeter-user-sc.1205160843.agbnhehjippnklgbmckl-Manish.Bansal=netcom-gsm
.no@jakarta.apache.org>
X-OriginalArrivalTime: 10 Mar 2008 15:00:34.0080 (UTC)
FILETIME=[7DC9CA00:01C882BF]
X-Virus-Checked: Checked by ClamAV on apache.org

This is a multi-part message in MIME format.

------_=_NextPart_001_01C882BF.7E1CDE7E
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



with kind regards
Manish Bansal | Nye MinBedrift project
+47 98654193


------_=_NextPart_001_01C882BF.7E1CDE7E
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7652.24"> <TITLE></TITLE> </HEAD> <BODY>
<!-- Converted from text/rtf format -->
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">with kind regards</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Manish Bansal | Nye MinBedrift =
project</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">+47 98654193</FONT> </P>

</BODY>
</HTML>
------_=_NextPart_001_01C882BF.7E1CDE7E--

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org