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 A1C881036A for ; Tue, 11 Jun 2013 19:54:36 +0000 (UTC) Received: (qmail 94138 invoked by uid 500); 11 Jun 2013 19:54:36 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 94074 invoked by uid 500); 11 Jun 2013 19:54:36 -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 94065 invoked by uid 99); 11 Jun 2013 19:54:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 19:54:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shettyd@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-wg0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 19:54:29 +0000 Received: by mail-wg0-f49.google.com with SMTP id a12so4385089wgh.4 for ; Tue, 11 Jun 2013 12:54:08 -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; bh=Jvs2k71VTRZPfsy1eoHcGXSRKMLPXZ+jlRpgKiDT7+s=; b=ppp0vD9vRtr0o+Fcuy9lQnJEQIz9OQRG3Ek4NVBEjWa5IXINmMnbYNGi3TlgO22FpI glkOGtANxlGFvAYTMZ02xfy/xsmQFmwJQpe+DYAJ1RpHAGs0+R32V5ukDiFXbTcidUmk Kto2sva92rKxLJBHvUKhPt4Q/wGsmpYVwEEWSJmY0kKQCJmw0PDS7v9kOuWzGXsqBeA3 zkKGPnZkwAkO+N9RaK15dtqwgfIsOYfOooBqCIVFGSmXoRdL2RrDZ6OjfhOHXLxrhpb2 CXzuzIV2JbOkzoEwUmeDq8tPhTzNkAeUEFbQDR4gSYcoaN9fiuuAEMRPVOr+PGZnkooJ 977Q== MIME-Version: 1.0 X-Received: by 10.194.8.163 with SMTP id s3mr9805599wja.41.1370980448559; Tue, 11 Jun 2013 12:54:08 -0700 (PDT) Received: by 10.194.78.137 with HTTP; Tue, 11 Jun 2013 12:54:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 12:54:08 -0700 Message-ID: Subject: Re: Login failed - javascript From: Deepak Shetty To: JMeter Users List Content-Type: multipart/alternative; boundary=047d7b5d253ea16bba04dee642b9 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d253ea16bba04dee642b9 Content-Type: text/plain; charset=ISO-8859-1 Hi a. First you have to understand how your application works - i.e. how does it detect that the browser doesnt support javascript (there are some ways to do this - e.g. set a cookie in javascript or make an ajax call that dumps a value into session or generate a token in javascript etc) b. Then you simulate the same in JMeter. You usually debug this by running through the same steps on the browser but using a recording tool like fiddler/live http headers or whatever that captures the request and response headers. Then you compare the request and response in JMeter's view result tree. So if for e,g. a fresh(no cache) browser is sending some cookie (but there was no set-cookie , then its likely set from javascript and if your corresponding JMeter step doesn't send a cookie then you know where the issue is (note just an example - it depends on what your actual problem is) bottom line -You need to compare request / response of browser v/s Jmeter On Tue, Jun 11, 2013 at 12:40 PM, nmq wrote: > Hi everyone > > I have run into an issue running my basic login script for the AUT. It was > working fine till we got a new build this week. > > Now, I have been a functional tester my whole career. My company wanted me > to do some performance test for them and I figured why the heck not. I'll > learn along the way, so basically I'm a newbie in this area. > > Since JMeter is an open-source (translated: free of cost) tool that is > supposedly powerful, we decided to use it (stupidly, without finding out > its limitations). I've invested quite some time in learning the tool so I'm > not ready to give up or switch to another. I'm also not a programmer and > don't have much info on java or javascript. > > Anyways, getting back to the point..... I looked at the response in > ResultsTree in HTML format and this is the message I'm getting on the Login > page: > > "This website requires JavaScript > Please activate JavaScript and press F5" > > HELP!! > > Regards > Sam > --047d7b5d253ea16bba04dee642b9--