jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li, Charles" <Charles...@dep.state.fl.us>
Subject how to pass in username and password for load testing?
Date Mon, 15 Nov 2004 15:24:42 GMT
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?

In the source, I have the following:
====================================
  if( frm.j_username.value == "" ) { 
    alert("Please enter your Username");
    frm.j_username.focus();
    return ;
  }

  if( frm.j_password.value == "" ) {    
    alert("Please enter your password");
    frm.j_password.focus();
    return ;
====================================

I added the following parameter:
frm.j_username.value=electowner
frm.j_password.value=welcome

But, first I want to test that it actually reads the username and password,
so I did this:

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=electowner&frm.
j_password.value=welcome)

How should I pass in the username and password?

Thanks,
Charles Li

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message