Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 356 invoked from network); 16 Jul 2009 18:31:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jul 2009 18:31:33 -0000 Received: (qmail 72292 invoked by uid 500); 16 Jul 2009 18:32:38 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 72224 invoked by uid 500); 16 Jul 2009 18:32:38 -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 72213 invoked by uid 99); 16 Jul 2009 18:32:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 18:32:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 18:32:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MRVkW-0002py-1q for jmeter-user@jakarta.apache.org; Thu, 16 Jul 2009 11:32:08 -0700 Message-ID: <24521998.post@talk.nabble.com> Date: Thu, 16 Jul 2009 11:32:08 -0700 (PDT) From: blackgaff To: jmeter-user@jakarta.apache.org Subject: Re: asserting PDF responses? In-Reply-To: <96e951380902260504u3aab193fmfde995ab1ed4367f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: joseph.killian@gmail.com References: <009101c99805$06ca27e0$af01a8c0@Parcelhouse.lk> <96e951380902260504u3aab193fmfde995ab1ed4367f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org This is handy for asserting what KIND of file was returned, but is there a way to assert against text WITHIN the PDF? IE, I want to create an assertion that tells me if the rendered document contains the word "free bird". The aforementioned solution involves using an HTTP sampler to retrieve the PDF file, checking the response to ensure that it starts with a standard PDF header, "%PDF-1.4" or something similar. If the response doesn't start with a PDF header, then there has likely been an error, and you have not been given a PDF file. -- View this message in context: http://www.nabble.com/asserting-PDF-responses--tp16863041p24521998.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org