Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 2170 invoked from network); 15 Nov 2004 15:30:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Nov 2004 15:30:58 -0000 Received: (qmail 52449 invoked by uid 500); 15 Nov 2004 15:30:54 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 52429 invoked by uid 500); 15 Nov 2004 15:30:54 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 52412 invoked by uid 99); 15 Nov 2004 15:30:54 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=CLICK_BELOW,DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [199.73.167.11] (HELO tlhexsprot2.floridadep.net) (199.73.167.11) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 15 Nov 2004 07:30:53 -0800 Received: from tlhexsmb2.floridadep.net ([172.20.30.43]) by tlhexsprot2.floridadep.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 15 Nov 2004 10:30:51 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Disposition-Notification-To: "Li, Charles" Subject: RE: how to pass in username and password for load testing? Date: Mon, 15 Nov 2004 10:30:50 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to pass in username and password for load testing? Thread-Index: AcTLJ6PRb1wFbstJTy+lrjxRJiColAAABzeA From: "Li, Charles" To: "JMeter Users List" , "Peter Lin" X-OriginalArrivalTime: 15 Nov 2004 15:30:51.0060 (UTC) FILETIME=[168BAF40:01C4CB28] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N How can I tell? The login page has fields for me to enter username and password. Thanks, Charles Li This is the source of the page: +++++++++++++++++++++++++++++++++++ OTN WebStore Login Page
=20
=20 =20 =20 =20
     Home
     Welcome to OTN WebStore
=20 =20
=20

 

=20

New to OTN WebStore ?

= Sign Up Now to enjoy unrivalled online shopping experience

=20
=20

At OTN WebStore you will find

  • What you need. Fast.
  • Exceptional choice.
  • Great deals.
=20 =20
=20 =20
=20
Existing WebStore Users
Enter your username/ password here

=20 =20
User = Name
= Password


Forgot your password? = Click here to proceed=20

Change your password? = Click here to proceed

=20 =20
=20 Number of visitors:4 =20 =20 Questions, Comments, Suggestions ? Let us know your views through guest book. Terms of Use

Powered by Oracle = Application Server Containers for J2EE 10g (9.0.4.1.0) +++++++++++++++++++++++++++++++++++ -----Original Message----- From: Peter Lin [mailto:woolfel@gmail.com] Sent: Monday, November 15, 2004 10:27 AM To: JMeter Users List Subject: Re: how to pass in username and password for load testing? is the authentication form based or http protcol based. in other words. is the username passed as request parameters, or basic authentication? peter On Mon, 15 Nov 2004 10:24:42 -0500, Li, Charles wrote: > I have a sample application that I want to use for load test with = JMeter. > How do I pass in username and password to test pages that are = protected by > authentication? >=20 > In the source, I have the following: > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > if( frm.j_username.value =3D=3D "" ) { > alert("Please enter your Username"); > frm.j_username.focus(); > return ; > } >=20 > if( frm.j_password.value =3D=3D "" ) { > alert("Please enter your password"); > frm.j_password.focus(); > return ; > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > I added the following parameter: > frm.j_username.value=3Delectowner > frm.j_password.value=3Dwelcome >=20 > But, first I want to test that it actually reads the username and = password, > so I did this: >=20 > I try it on the browser and it did not read the username and password. > (http://server:port/vsm/authownerhome.do?frm.j_username.value=3Delectowne= r&frm. > j_password.value=3Dwelcome) >=20 > How should I pass in the username and password? >=20 > Thanks, > Charles Li >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- 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