[Webtest] problem with the proxy - grinder work

Michael Habbert Michael Habbert <Michael.Habbert@netpioneer.de>
Mon, 02 Apr 2007 08:13:17 +0200

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Folks,

I wrote last week about my problems using webtest to record a web-session for our load-test with 

I wrote to the grinder-mailing-list and got:
 >First, I'll ask the obvious question: Did you modify your web tests to
 >tell the Apache httpclient library to use the TCPProxy as an HTTP proxy?

So what is my answer? Did I tell the apache httpclient to use the tcpproxy as an http-proxy by setting:

<setproxy proxyhost="${ant.proxyHost}" proxyport="${ant.proxyPort}" />

or did I not?

hopefully this is the reason of my http-timeout after some tests ...


Mit freundlichen Grüßen
Michael Habbert

Content-Type: message/rfc822;
 name="Re: [Grinder-development] problem with the proxy"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: [Grinder-development] problem with the proxy"

Received: from mx01.netpioneer.de ([]) by sato.ka.netpioneer.de with Microsoft SMTPSVC(6.0.3790.1830);
	 Sun, 1 Apr 2007 14:41:00 +0200
Received: from repmmg02.bea.com ([])
	by mx01.netpioneer.de with esmtp 
	id 1HXzMe-000688-UG
	for <Michael.Habbert@netpioneer.de>; Sun, 01 Apr 2007 14:41:00 +0200
Received: from repmmr02.bea.com (repmmr02.bea.com [])
	by repmmg02.bea.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l31Cek5d026315;
	Sun, 1 Apr 2007 05:40:46 -0700
Received: from ukhwex10.emea.bea.com (ukhwex10.bea.com [])
	by repmmr02.bea.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l31CeiiD028648;
	Sun, 1 Apr 2007 05:40:45 -0700
Received: from [] ([]) by ukhwex10.emea.bea.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Sun, 1 Apr 2007 13:40:45 +0100
Message-ID: <460FA84B.6070304@bea.com>
Date: Sun, 01 Apr 2007 13:40:43 +0100
From: Philip Aston <paston@bea.com>
User-Agent: Thunderbird (X11/20070306)
MIME-Version: 1.0
To: Michael Habbert <Michael.Habbert@netpioneer.de>
CC: grinder-development@lists.sourceforge.net
Subject: Re: [Grinder-development] problem with the proxy
References: <460CCCFF.6030502@netpioneer.de>
In-Reply-To: <460CCCFF.6030502@netpioneer.de>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 01 Apr 2007 12:40:45.0642 (UTC) FILETIME=[F7C9BAA0:01C7745A]
x-BEA-PMX-Instructions: AV
x-BEA-MM: Internal-To-External
X-Spam-Status: No
X-Spam-Score: -2.6 (--)
X-Spam-Report: -2.6/5.0 ---- Start SpamAssassin results 
	* -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1%
	*      [score: 0.0000]
	---- End SpamAssassin results
Return-Path: paston@bea.com

Michael Habbert wrote:
> Recently we came up with a new idea:
> Why don't we start the proxy while our webtest are running?
> The idea is:
> 1. Starting the grinder-proxy.
> 2. Running our webtests
> 3. Stopping the proxy.
> 4. Running the grinder with the webtest-recorded script.py.
> Well after doing the configuration-changes the recording fails:
> ------------
>       [java]      [java] createSimpleWorkflowDef:
>       [java]      [java] [clickButton] ERROR (com.gargoylesoftware.htmlunit.html.HtmlPage) - Error 
> loading javascript from [http://bendera:8888/adds/functions.js]:
>       [java]      [java] [clickButton] org.apache.commons.httpclient.NoHttpResponseException: The 
> server bendera failed to respond
> --------------
> So the proxy is still running (using the -console parameter), but no error-log, no recording script ;-/
> Without the proxy my webtests are running fine without any failure. Starting the proxy befor 
> starting the webtest the tests fail after the 12.th test with different not-responding-exceptions 
> (different js-files loading). In fact the failing test is not special - one of the prior test is 
> doing a similar test and works well.
> So is there a bug in the Proxy, who can I increase the debug-output of the proxy?

First, I'll ask the obvious question: Did you modify your web tests to 
tell the Apache httpclient library to use the TCPProxy as an HTTP proxy?

Best (only) debug for the TCPProxy is to run it in echo mode (don't 
specify -http). You should see everything it sees. Things to look for: 
Do you see an outbound request? Do you see the response coming back from 
the server? Are connections unexpectedly terminated? Check the server 
logs - any complaints there?

- Phil

Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.