Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 97337 invoked from network); 11 Jun 2007 10:54:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 10:54:59 -0000 Received: (qmail 24599 invoked by uid 500); 11 Jun 2007 10:54:59 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 24583 invoked by uid 500); 11 Jun 2007 10:54:59 -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 24572 invoked by uid 99); 11 Jun 2007 10:54:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 03:54:59 -0700 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 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 03:54:55 -0700 Received: by wa-out-1112.google.com with SMTP id k40so2451920wah for ; Mon, 11 Jun 2007 03:54:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sYLE6UdaddrEn3gBZw3YaXpYN+QEZQ4XOq5m8XR7jAgkhEGB0Qxu2DCdcd1BsTLk3CcSTLFcAJ5RbIiv96bxpDpyu1f3/AzbzRLuZXKCJNxDHT6+1Fw8u57qwX3u78hdHGEVmIrPVZTV4LOqRpuTjSGAvYnFzt7IebZmmA+yhf4= 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=jkmEdz8FDcTH/UCcXdm96Y6f5LCvR7VFUXBjep/cuF0rZAVWCCGX0veQ85oAR/uFHRmQ1u6+M5UuQHMd7Xpbqa7MWeOWOCx7C89JnIsjmLozWRm96x6ffjyk5mqqhb69jLJfTyZqCdZ9kHzkpLngnIFYACNSD4VHJNleQ1mluE8= Received: by 10.114.175.16 with SMTP id x16mr5367898wae.1181559275193; Mon, 11 Jun 2007 03:54:35 -0700 (PDT) Received: by 10.114.168.12 with HTTP; Mon, 11 Jun 2007 03:54:35 -0700 (PDT) Message-ID: <25aac9fc0706110354p4356bcf8we76fdc5cdc093584@mail.gmail.com> Date: Mon, 11 Jun 2007 11:54:35 +0100 From: sebb To: "JMeter Users List" Subject: Re: SOAP and slow connection In-Reply-To: <466D231C.8000500@zeropiu.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <466D231C.8000500@zeropiu.it> X-Virus-Checked: Checked by ClamAV on apache.org On 11/06/07, Luca Maragnani wrote: > Hi, > I need to test a SOAP application using SlowSocket to simulate real > users links. Which version of JMeter are you using? Which SOAP sampler are you using? > So I modified jmeter.properties to use HTTPSampler2 and setted the cps > property. > > Last, to get it work I had to overwrite in a custom library > SlowHttpClientSocketFactory because the createSocket method returned > always a null value. Yes - I did not bother implementing the method, as it was not needed for HTTPSampler2, but it should really have have thrown a NotSupported exception... > public Socket createSocket(String arg0, int arg1, InetAddress arg2, > int arg3, HttpConnectionParams arg4) > throws IOException, UnknownHostException, > ConnectTimeoutException { > return new > SlowSocket(JMeterUtils.getPropDefault("httpclient.socket.http.cps", > 0),arg0,arg1); > } > > That's not really the best solution... but works better than a null > socket :) Please file a Buzgilla report so it does not get forgotten. > Is there a nicer way to get slow connection simulation working with the > SOAP Sampler Not sure what you mean by nicer - if the null method is fixed, does the SOAP sampler work OK? Perhaps there should be a separate property for slow SOAP sockets. And/or a GUI field for the CPS value on all the samplers that support it? > (and maybe other samplers...)? The SlowSocket feature can only work where it is possible to override the SocketFactory - so it cannot work with the Java HTTP sampler - but I guess it could be added to at least some other samplers. Feel free to create a Buzilla enhancement request. > Luca > > > --------------------------------------------------------------------- > 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