Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 70308 invoked from network); 7 May 2008 10:32:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 10:32:52 -0000 Received: (qmail 23135 invoked by uid 500); 7 May 2008 10:32:47 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 23114 invoked by uid 500); 7 May 2008 10:32:47 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 23103 invoked by uid 99); 7 May 2008 10:32:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 03:32:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 74.125.46.29 as permitted sender) Received: from [74.125.46.29] (HELO yw-out-2324.google.com) (74.125.46.29) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 10:32:02 +0000 Received: by yw-out-2324.google.com with SMTP id 9so133653ywe.13 for ; Wed, 07 May 2008 03:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4419Q4mQzo7+m2x9DyUCgsgIpsmqnv9967UeXpLTPIY=; b=VFAp5hSYSQk6RLcDJOG0XaBaFIHdRhBiQAj/7P1Lo9jxJ6xjUfqA/V8ml7ERL4UbhL0X2wCVYi1qU/5inT7ZAvXnt2t6IXMaBpZbmhiuNlDgVvRkSq8Es2m5KanPVrlGHpqbQISc+815xqm+ZW6mwqrWg0wCwQrzer+hpBiol8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ta6gLHmh2lQmGTsxGg2C38N/9A2lAfm/JCTfy6QLxd+z+NOmO692q1H3CCYRpLfoBoIVL+auDRmFA+TXxNz7TlExHCsKZvHEsUITGsFrnjXctoJ6vNXGAr8lo2uZlOssZxk7KjhaPQR6MKY0X0JtDSDAcvCxfIfAtZ/59JZawyc= Received: by 10.150.82.10 with SMTP id f10mr1772506ybb.150.1210156321179; Wed, 07 May 2008 03:32:01 -0700 (PDT) Received: by 10.150.91.10 with HTTP; Wed, 7 May 2008 03:32:01 -0700 (PDT) Message-ID: <25aac9fc0805070332r548eb220p964cc2b169201b96@mail.gmail.com> Date: Wed, 7 May 2008 11:32:01 +0100 From: sebb To: "JMeter Users List" Subject: Re: submitting forms with default values In-Reply-To: <4821650C.1000307@geodan.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4821650C.1000307@geodan.nl> X-Virus-Checked: Checked by ClamAV on apache.org 2008/5/7 John Pulles : > Hi list, > > I want to use JMeter to submit a form with has the default values already > filled in; in this case it should be sufficient to press the 'submit' > button, but I don't know what the JMeter equivalent of that action is. > What I can think of is a difficult way: > > - a http request sampler to GET request the form > - regular expression extractor to extract the values of the form fields > - a http request sampler to POST the form with the extracted values The GET and POST are both required; it's what the browser would have to do. The browser would also do the equivalent of extracting the values. JMeter does not support automatic form filling, so either you will have to use a regex, or you can use the JMeter proxy to record a browser doing the work. This will create the necessary parameters in the POST request, and will work fine as long as the values and names don't change. If the values or names change regularly, then you will need to use the regex method. [I believe some servers generate variable names for parameters, perhaps to hinder automated access] > Can someone please suggest an easier way for handling pages with forms? > > Regards, > John > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org