Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 96208 invoked from network); 4 Feb 2007 22:53:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2007 22:53:32 -0000 Received: (qmail 63373 invoked by uid 500); 4 Feb 2007 22:53:37 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 63335 invoked by uid 500); 4 Feb 2007 22:53:37 -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 63323 invoked by uid 99); 4 Feb 2007 22:53:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2007 14:53:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sebbaz@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2007 14:53:28 -0800 Received: by ug-out-1314.google.com with SMTP id 32so1422034ugm for ; Sun, 04 Feb 2007 14:53:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hZA4w5AvJs9q71U/urandpNSfXeEUUwg5n+AQRwTWPzS+FgMuMpqNQp3iiAlNzkTSYpuUlacfu+JV7XVo599izHMtNDzXYIrOWf3I3IfTjVCLx/CSch75YS9ffCnczH0j+Vhnjdai9G2L0ROJ8Z5GqBWR1GBmIpA9cYOlufVTSY= Received: by 10.78.170.17 with SMTP id s17mr978497hue.1170629585001; Sun, 04 Feb 2007 14:53:05 -0800 (PST) Received: by 10.78.105.8 with HTTP; Sun, 4 Feb 2007 14:53:04 -0800 (PST) Message-ID: <25aac9fc0702041453k4a78152kf51264a11e9cd806@mail.gmail.com> Date: Sun, 4 Feb 2007 22:53:04 +0000 From: sebb To: "JMeter Users List" Subject: Re: Questions about http post request In-Reply-To: <20070204T173000Z_01A700050000@Toronto.CBC.CA> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070204T173000Z_01A700050000@Toronto.CBC.CA> X-Virus-Checked: Checked by ClamAV on apache.org On 4 Feb 2007 17:30:00 -0500, Jian Tong wrote: > > Hi, > > I have been trying to simulate http post requests with Jmeter. But I cannot > understand the results I got. My test plan is like this: > > Test Plan > -Thread Group > --http default request > server: www.qa.nm.cbc.ca > --http request > path: testthenation/language/pretest/answers > method: post > files with the request: .../data1.xml > --view result tree Looks OK. > This xml file contains some data that the server will read and insert into > database. > > Before I tried with Jmeter, I use Curl to do the post request with the same > server name, path and xml file. All data are successfully picked and saved > into the database. But when I tried it with Jmeter, no data go to database. > The following info is given by "View Results Tree" listener: > > (1) view results tree - Sampler result > Thread Name: Thread Group 1-1 > Sample Start: Sun Feb 04 12:46:58 EST 2007 > Load time: 190 > HTTP response code: 200 > HTTP response message: OK > > HTTP response headers: > HTTP/1.1 200 OK > Date: Sun, 04 Feb 2007 17:46:54 GMT > Server: Apache/1.3.29 (Linux/SUSE) PHP/4.3.4 mod_gzip/1.3.26.1a > mod_jk/1.2.6-dev > Set-Cookie: Webtrends=1.130.12.83.260741170611214457; path=/; expires=Fri, > 03-Aug-07 17:46:54 GMT > Cache-Control: public, max-age=0 > Expires: Sun, 04 Feb 2007 17:46:54 GMT > Connection: close > Content-Type: text/plain > > (2) view results tree - Request > POST > http://www.qa.nm.cbc.ca/testthenation/language/pretest/answers > POST data: > [no cookies] > Request Headers: > User-Agent: IE/6.0 > (3) view results tree - Response data > 4 Rather odd. > There is on error according to the listener, but I have doubts on two > points, one is the post data showing above is empty, so I am wondering if > the xml file is really recieved by server. Second is the response data, > which is "4". > > Anybody can help me to find out what the problem is ? > Any errors in jmeter.log ? Perhaps the xml file could not be found? You could add a "Save Responses to a File" Post-Processor - this will store the exact responses from the server in case the Tree View is not displaying things correctly. Or you can use a proxy server or network sniffer to see what is happening. See http://wiki.apache.org/jakarta-jmeter/NetworkSniffer for some suggestions. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org