Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 370 invoked from network); 4 Jun 2006 18:53:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jun 2006 18:53:35 -0000 Received: (qmail 36933 invoked by uid 500); 4 Jun 2006 18:53:33 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 36905 invoked by uid 500); 4 Jun 2006 18:53:33 -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 36894 invoked by uid 99); 4 Jun 2006 18:53:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jun 2006 11:53:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 66.249.82.207 as permitted sender) Received: from [66.249.82.207] (HELO wx-out-0102.google.com) (66.249.82.207) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jun 2006 11:53:31 -0700 Received: by wx-out-0102.google.com with SMTP id h26so711367wxd for ; Sun, 04 Jun 2006 11:53:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MX1hT8CZIXdx4Sy2jMRPcC0m2nk2klhTNyAip7uf+NHPpfDW2feZCmiw889mJ5zhE1rn6+uZfBosfK6x5fgubbtbxSEFtaJoiV/8C/DUurbqgQaupF6rH9nntpj/TZc9YxG+9/n5udPvk5AUqitL3alSyhp53jRB/TDwR7MDtOQ= Received: by 10.70.47.1 with SMTP id u1mr5182267wxu; Sun, 04 Jun 2006 11:53:10 -0700 (PDT) Received: by 10.70.94.7 with HTTP; Sun, 4 Jun 2006 11:53:10 -0700 (PDT) Message-ID: <25aac9fc0606041153v19fc5abfua7eb685b6ff7f907@mail.gmail.com> Date: Sun, 4 Jun 2006 19:53:10 +0100 From: sebb To: "JMeter Users List" Subject: Re: Embedded resources in WML pages In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 30/05/06, Bennett McElwee wrote: > The HTML samplers can automatically retrieve embedded images from web > pages, but it doesn't work for all XHTML pages or WML pages. I thought > I'd warn users about this, and bounce my solution off you good people. > > JMeter determines whether a file is HTML by checking that its media type > is text/html. If it's something else, for example application/xhtml+xml, > application/xml, text/xml or text/vnd.wap.wml, then it won't try to > parse the file to retrieve embedded resources. So if you're trying to > test a WAP or XHTML application, JMeter may not be able to do what you > want. > > As far as I can tell, this could be fixed most simply by changing > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase as follows: > > 1. In downloadPageResources(), "text/html" is hardcoded. Either read a > list of allowed media types from properties, or hardcode a list of media > types. Maybe just allow any media type that contains "html" or "wml". Sounds like a good idea. Perhaps you could create a Bugzilla enhancement for this? > 2. If parsing a WML page, ignore the configured parser and use > RegexpHTMLParser. (I guess the other parsers won't handle WML.) Not sure about parsing WML pages - they seem to be rather different from (X)HTML. But it should not be too difficult to specify a different parser for certain types of content - we could just add a wmlParser.classname property alongside the htmlParser.classname. Perhaps we could also add: htmlParser.mimetypes wmlParser.mimetypes to specify the MIME media types that JMeter can handle, as well as which is HTML and which is WML? > Could some knowledgeable person confirm that this should work? If so, I > will hunt down a JDK and try to make it happen. If I can find time I > will try to submit a patch, but don't hold your breath... A Bugzilla enhancement would be useful... S. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org