Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 907E39132 for ; Wed, 14 Mar 2012 16:36:34 +0000 (UTC) Received: (qmail 67333 invoked by uid 500); 14 Mar 2012 16:36:34 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 67213 invoked by uid 500); 14 Mar 2012 16:36:33 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 67184 invoked by uid 99); 14 Mar 2012 16:36:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 16:36:33 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-yx0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 16:36:28 +0000 Received: by yenl11 with SMTP id l11so2363683yen.2 for ; Wed, 14 Mar 2012 09:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ijpfpmR9rXp4s6lbQrlrNDCJJpZZSaOW+BsDxMcb1qU=; b=uxjwOOGuGyrGBJye8KXKupE8WXMvlfeaBjmfUIgdFkVAmKmGGb+xDRSVTRDRYE+XlV ZaqMERT/cKGwFTgTCoRICrrhZcQJLKIdwA7X4qatfzAIPunk4TxLfZ9gCtMgVTqDmrxX ywGDZ9gtO6FeAOxik032+sI+Dlz+dNedQ8ygS/rajHT5Ya+klXh65U+D+iTMnjTy0FWh MP4/ss7s7h7yAfbVaqLdggssS66QkT9qDv2qypiLyJ2msiKv08msNryDqFAlxpnDY9jh EDK6iPTl9B36zKmz2IpTpTr+O/kCtq6cRGQwd5BIElmXrzw+6IqhqYZ7jDks5246h2VQ Fypg== MIME-Version: 1.0 Received: by 10.60.5.193 with SMTP id u1mr4261290oeu.8.1331742967234; Wed, 14 Mar 2012 09:36:07 -0700 (PDT) Received: by 10.182.85.5 with HTTP; Wed, 14 Mar 2012 09:36:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Mar 2012 16:36:07 +0000 Message-ID: Subject: Re: Website Login Issue From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 14 March 2012 16:15, Ryan wrote: > Does anyone have any ideas on this? We're still having this issue. I've > made sure that the VIEWSTATE is captured, et cetera. Everything seems to = be > in order but something still isn't happy. This is a really simple test > case, so I'm confused as to why it isn't working. There must be something missing or otherwise wrong in the request(s) you are sending. If you can successfully login using a browser or other client, use a packet analyser such as Wireshark to compare what it sends with what JMeter sends. It could be something a simple as the user agent string - investigate each and every difference until you find the problem. > On Wed, Mar 7, 2012 at 5:12 PM, Ryan wrote: > >> The application doesn't use OAuth, so that does not apply here. Surely >> someone out there has an idea on how to get this to work? >> >> >> On Wed, Mar 7, 2012 at 3:43 PM, Shay Ginsbourg wro= te: >> >>> 1. Should check the possibility of working with -> "JMeter OAuth Sample= r". >>> >>> 2. Also, can download 30-days trial free RADVIEW WEBLOAD -> record, >>> replay, >>> auto-correlate, and gain some new insight into your Jmeter script. >>> >>> Good luck! >>> Shay >>> >>> >>> >>> On Wed, Mar 7, 2012 at 22:15, Ryan wrote: >>> >>> > I've double checked everything that the browser requests and all >>> > parameters match up with the JMeter http request configuration for th= e >>> > login action, including the ASP.Net parameters. I'm using JMeter 2.6, >>> for >>> > the record. >>> > >>> > I've attached an image showing the request configuration, the actual >>> > request contents and the browser's request contents for comparison. >>> > >>> > On Mon, Mar 5, 2012 at 3:09 PM, Deepak Shetty >>> wrote: >>> > >>> >> your probably not extracting out the dynamic asp.net parameters >>> >> (viewstate >>> >> ,eventvalidation etc) >>> >> otherwise compare what browser sends and receives. >>> >> >>> >> regards >>> >> deepak >>> >> >>> >> On Mon, Mar 5, 2012 at 12:57 PM, Ryan wrote: >>> >> >>> >> > It's been a while since I've used JMeter and recently started usin= g >>> it >>> >> > again to test one of our webapps here. It is a pretty standard >>> ASP.Net 4 >>> >> > app, nothing crazy. I implemented a simple test script just to mak= e >>> sure >>> >> > login works as expected, but I cannot get this thing to work. >>> >> > >>> >> > The steps are pretty simple: >>> >> > /login.aspx >>> >> > /default.aspx >>> >> > /logout.aspx >>> >> > /login.aspx >>> >> > >>> >> > For the first login.aspx call, I'm including two parameters in the >>> POST >>> >> to >>> >> > pass the login name and password values that are expected. In my V= iew >>> >> > Results Tree, this step does include the correct POST data and log= in >>> >> > parameters. >>> >> > >>> >> > However, once it moves to the /default.aspx step, the only respons= e I >>> >> get >>> >> > is: >>> >> > >>> >> > Object moved >>> >> >

Object moved to here.

>>> >> > >>> >> > >>> >> > It then adds a step calling the /timeout.aspx page, which outputs = the >>> >> > following response: >>> >> > >>> >> > Object moved >>> >> >

Object moved to here.

>>> >> > >>> >> > >>> >> > It then calls the /login.aspx page. This is the correct behavior i= f >>> the >>> >> > user is not logged in any longer (meaning a specific session value >>> is no >>> >> > longer valid or has been removed)...it redirects to /timeout.aspx >>> which >>> >> > then forwards to /login.aspx. The question is why this is happenin= g, >>> as >>> >> > this is not what happens in the browser. >>> >> > >>> >> > I have an HTTP Cookie Manager to store the session values, and the >>> >> session >>> >> > cookie is showing up in the step request. >>> >> > >>> >> > I figured I screwed something up so I recorded a test script with = the >>> >> HTTP >>> >> > Proxy Server and it gave me the exact same steps and results as wh= en >>> I >>> >> > manually created it, so I'm stuck at this point. I've double-check= ed >>> the >>> >> > web site script tutorials on the JMeter site as well as around the >>> web >>> >> and >>> >> > it should be working. >>> >> > >>> >> > Any ideas? Any help would be appreciated. >>> >> > >>> >> >>> > >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org >>> > For additional commands, e-mail: user-help@jmeter.apache.org >>> > >>> >>> >>> >>> -- >>> >>> >>> Regulatory, Medical & Performance Testing Services: >>> >>> >>> * IEC 62304 Medical Device Software Life Cycle >>> >>> * IEEE 829 Software Test Documentation >>> >>> * ISO 14971 Medical Device Risk Management >>> >>> * FDA 21 CFR Part 11 Software Validation >>> >>> * IEC 60601-1:2005 3rd ED PEMS - Medical Electrical Equipment >>> >>> * End-to-end verification, validation, and testing (VV&T) >>> >>> * High quality service for FDA and CE submissions >>> >>> * Reliable open source free testing tools >>> >>> * Optional functionality and regression testing >>> >>> * Software Performance & Load Testing >>> >>> * Software Testing Advanced Automation >>> >>> * Medical Software Verification & Validation >>> >>> * Medical Device Verification & Validation >>> >>> * Medical Device Regulatory Submission >>> >>> * Organizational Regulatory Qualification >>> >>> >>> >>> =A0Shay Ginsbourg >>> >>> =A0Regulatory & Testing Affairs Consultant >>> >>> >>> >>> =A0Formerly QA Manager of LoadRunner at Mercury Interactive >>> >>> >>> =A0M.Sc. cum laude in Bio-Medical Engineering >>> >>> =A0M.Sc. in Mechanical Engineering >>> >>> >>> >>> >>> Work: =A0 035185873 >>> >>> Mobile: 0546690915 >>> >>> >>> Email: sginsbourg@gmail.com >>> >>> >>> http://il.linkedin.com/in/shayginsbourg >>> >>> >>> WWW.GINSBOURG.COM >>> >>> >>> >>> >>> >>> Please consider your environmental responsibility before printing this >>> e-mail. >>> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org