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
|