Return-Path: X-Original-To: apmail-jakarta-dev-archive@minotaur.apache.org Delivered-To: apmail-jakarta-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8D3216E9 for ; Thu, 21 Apr 2011 00:57:42 +0000 (UTC) Received: (qmail 84970 invoked by uid 500); 21 Apr 2011 00:57:42 -0000 Delivered-To: apmail-jakarta-dev-archive@jakarta.apache.org Received: (qmail 84885 invoked by uid 500); 21 Apr 2011 00:57:42 -0000 Mailing-List: contact dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jakarta.apache.org Delivered-To: mailing list dev@jakarta.apache.org Received: (qmail 84877 invoked by uid 99); 21 Apr 2011 00:57:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2011 00:57:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2011 00:57:34 +0000 Received: by vws12 with SMTP id 12so1218304vws.31 for ; Wed, 20 Apr 2011 17:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=zSqbR2hQ2RT9FcgyPQ9cyAbA6PTVB9Jh0yCUr++uiG4=; b=kT/6DiEiUGqgxbxDQ2fzBAmw7M6dSidTzBlup8xjeL9yxyE8SSgyBOw1Ls/DUIAsFh mNiZqDC5nZaA9j60hzcfxWH5keW8qNePWzTDqg33a0rCzOrU1ANXNMTz+AfbJycNwfcI lhmxx7+DidDhj+Tj/7MHfExeNzsiK4ly72//g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rBrfEkfuez0sVi/5eIx0ih1OSNXwmCVaqorwciVV/JVTN6uNh9jLWR1Jvk51PTi0Ar zaear26siBWl+nV90XhKyjvJOqGX5Qx2L9VftOzoHpl2R+cLBxkeAKst2/4/R3QKMjwd QVZwt5fv0qsO1aOY4ep2c9uJaXJhD9bv4BaJQ= MIME-Version: 1.0 Received: by 10.220.190.131 with SMTP id di3mr2465774vcb.71.1303347433340; Wed, 20 Apr 2011 17:57:13 -0700 (PDT) Received: by 10.220.169.193 with HTTP; Wed, 20 Apr 2011 17:57:13 -0700 (PDT) In-Reply-To: <4DAF5085.9040702@apache.org> References: <4DAF5085.9040702@apache.org> Date: Thu, 21 Apr 2011 01:57:13 +0100 Message-ID: Subject: Re: [JMeter] HTTP Sampler consolidation of implementations From: sebb To: Milamber Cc: dev@jakarta.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 20 April 2011 22:30, Milamber wrote: > Hello, > > HTTPClient 3.1 sampler always have a (hidden) Cookie Manager (the defaut > policy: ignore cookie seems don't works) Looks like this is a new bug - the example works correctly in JMeter 2.4. I must have messed something up when converting the HC3.1 sampler to the new class layout. I'll take a look shortly. > With JMeter trunk and HC3.1 sampler, if you test a website with a login page > which used a auth session ID cookie to keep track user session and *without* > a JMeter cookie manager, the connection works and we can accessed on > protected resources. > The normal case is: if no cookie manager, we don't have a access on > protected resources (we have a error 408 with tomcat examples) > > > (an example Webapp is provided with tomcat archive : > http://localhost:8080/examples/jsp/security/protected/ > don't forget to uncommented users/roles in tomcat_home/conf/tomcat-users.xml > before running tomcat) > > Simple test case. Thanks - well spotted! > Milamber > > Le 25/11/2010 16:45, sebb a ecrit : > > Just a heads up that I'm currently working on trying to combine the > HTTP implementations (Java, HttpClient3) into a single GUI, with > run-time choice of implementation. > > The rationale for this is that HttpClient 4 is now available, and it > would be good to add that, but I think we should keep HttpClient for > backwards compatibility and comparison. > > Creating another GUI/Sampler set is easy enough, but it would be > useful to be able to switch implementations easily - currently that > requires switching samplers (e.g. by editting the JMX file). > > The current plan is to allow the implementation to be specified on the > HTTP Request Defaults config screen as well as on the HTTP Request > screen. > > The code is a bit involved, because the Config settings are processed > at run-time after the test plan has been built. > [But even the Sampler GUI needs to create the sampler before it can > store the sampler settings - and the implementation can then be > changed.] > Currently I use a Sampler Proxy that dispatches to the appropriate > implementation class. > These classes have to extend an abstract class that provides the > necessary methods to interface with the Proxy test element and thus > provide access to the test element properties. > That part seems to be working OK. > > The next phase is to ensure that existing JMX files can be converted > (during load) to use the new sampler. > > The intention is to keep the existing Java and HttpClient samplers, so > that subclasses will continue to work, but not expose them in the GUI. > > I've not finally decided about the AJP sampler - it can be easily > converted, but I don't think there's much of a use case for switching > between AJP and another implementation. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: dev-help@jakarta.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: dev-help@jakarta.apache.org