Scott Eade | 1 Jul 07:31 2002
Picon

Load testing with unique users

Hi,

I have just started looking at JMeter to evaluate if it is going to be able
to be used for load testing my apache turbine based application.

Rather than HTTP basic authentication, my application just has the user type
in their user-id and password into a regular html form.  For the testing
that I am doing I need to use unique users - i.e. Each session must belong
to a unique user.

What I was hoping to see was something in HTTP Request that allowed me to
access say the number of the thread for use in the Value of a parameter to
send with a request, either as the value itself or part thereof.  So I might
create 1000 users for my site:

    test-user-1 <at> mysite.com
... through ...
    test-user-1000 <at> mysite.com

I could then configure 1000 threads and in the relevant HTTP Request specify
parameters something like this ("$" is a bad choice here, but I am only
illustrating a point):

    userid   test-user-${thread.no} <at> mysite.com
    password pw${thread.no}

I would imagine that other counters, e.g. the loop counter, might also be
useful. 

Is there some way to achieve this type of thing now?
(Continue reading)

Neal Bridges | 1 Jul 15:29 2002

NullPointer when running test

Hello all - Here's the situation - hope you can help.

Wrote a faily simple Test Plan:
 Thread Group
    Request defaults
    Cookie manager
    Page request
    File reporter

The request is being made to a secure(https) jakarta web server for an
login.jsp that performs a strut action.  So, my server is set up to
"secure.myserver.com" with the path "/pathname"  then in the Page request, i
request "/login.jsp".  The Thread test sequence is 5 threads at 2 loops.
When I start the test, it appears to run fine in the console window
displaying the program output.  Below is the output of the program:

Sampling url: https://login.providerlink.com/login.jsp
Sampling url: https://login.providerlink.com/login.jsp
Sampling url: https://login.providerlink.com/login.jsp
Sampling url: https://login.providerlink.com/login.jsp
Sampling url: https://login.providerlink.com/login.jsp
java.lang.NullPointerException
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTPSamp
ler.java:206)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:
437)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:
(Continue reading)

Scott Eade | 1 Jul 15:53 2002
Picon

Re: Load testing with unique users

Thanks for the reply Mike.  Can you please give me a clue as to how I access
the two components you mention - I don't see them anywhere in the "Add"
context menu.

Cheers,

Scott
--

-- 
Scott Eade
Backstage Technologies Pty. Ltd.

> From: "Stover, Michael" <Michael.Stover <at> usa.xerox.com>
> 
> There are a couple of components in JMeter that will allow you to do what
> you want.  One is the HTML User Parameter Modifier, and the other is the
> HTML Parameter Mask Modifier.  One works by incrementing a number and
> appending it to a value, and the other works by using an XML file populated
> with data.  What you described below could easily be accomplished with the
> HTML Parameter Mask Modifier.
> 
> But, yes, in general, the idea of variables in requests is a good one that I
> would like to enhance JMeter with.
> 
> -Mike
David Anderson | 1 Jul 16:08 2002

RE: NullPointer when running test

I had problems with authentication as well.  Instead of making the HTTP reuqest go to the login page
directly, I had it do a POST to the target servlet sending in the username and password.  From then on, all my
subsequent requests worked fine.

Dave

>  -----Original Message-----
> From: 	Neal Bridges [mailto:nbridges <at> providerlink.com] 
> Sent:	Monday, July 01, 2002 8:29 AM
> To:	JMeter Users List
> Subject:	NullPointer when running test
> 
> Hello all - Here's the situation - hope you can help.
> 
> Wrote a faily simple Test Plan:
>  Thread Group
>     Request defaults
>     Cookie manager
>     Page request
>     File reporter
> 
> The request is being made to a secure(https) jakarta web server for an login.jsp that performs a strut
action.  So, my server is set up to "secure.myserver.com" with the path "/pathname"  then in the Page
request, i request "/login.jsp".  The Thread test sequence is 5 threads at 2 loops.  When I start the test, it
appears to run fine in the console window displaying the program output.  Below is the output of the program:
> 
> Sampling url: https://login.providerlink.com/login.jsp
> Sampling url: https://login.providerlink.com/login.jsp
> Sampling url: https://login.providerlink.com/login.jsp
> Sampling url: https://login.providerlink.com/login.jsp
(Continue reading)

Neal Bridges | 1 Jul 16:17 2002

RE: NullPointer when running test

If I read your reply correctly, all your saying is change my default request
to go directly to the login.jsp servlet, and then on the HTTP Request, and
only add in the POST information.

If so, I did that and i'm still getting the same NullPointer.  Am I missing
something?

Neal

-----Original Message-----
From: David Anderson [mailto:david.anderson <at> notiva.com]
Sent: Monday, July 01, 2002 10:08 AM
To: JMeter Users List
Subject: RE: NullPointer when running test

I had problems with authentication as well.  Instead of making the HTTP
reuqest go to the login page directly, I had it do a POST to the target
servlet sending in the username and password.  From then on, all my
subsequent requests worked fine.

Dave

>  -----Original Message-----
> From: 	Neal Bridges [mailto:nbridges <at> providerlink.com]
> Sent:	Monday, July 01, 2002 8:29 AM
> To:	JMeter Users List
> Subject:	NullPointer when running test
>
> Hello all - Here's the situation - hope you can help.
>
(Continue reading)

David Anderson | 1 Jul 16:23 2002

RE: NullPointer when running test

Is your login.jsp a HTML form, and if so, what is the action of the form?  If the action posts to another page or
servlet to actually do the authentication, you need to add that as another HTTP request.

Dave

-----Original Message-----
From: Neal Bridges [mailto:nbridges <at> providerlink.com]
Sent: Monday, July 01, 2002 9:17 AM
To: JMeter Users List
Subject: RE: NullPointer when running test

If I read your reply correctly, all your saying is change my default request
to go directly to the login.jsp servlet, and then on the HTTP Request, and
only add in the POST information.

If so, I did that and i'm still getting the same NullPointer.  Am I missing
something?

Neal

-----Original Message-----
From: David Anderson [mailto:david.anderson <at> notiva.com]
Sent: Monday, July 01, 2002 10:08 AM
To: JMeter Users List
Subject: RE: NullPointer when running test

I had problems with authentication as well.  Instead of making the HTTP
reuqest go to the login page directly, I had it do a POST to the target
servlet sending in the username and password.  From then on, all my
subsequent requests worked fine.
(Continue reading)

Stirling, Scott | 1 Jul 17:25 2002

RE: Load testing with unique users

Funny, I just joined the list to see about this same topic.  I have a text file, could be easily made into an XML
file, full of about 200 userids and passwords that I want to feed into a test plan, one at a time as the test
plan loops.  The userid and password is POSTed to a Servlet, and then the user should be logged in.

Scott Stirling

> -----Original Message-----
> From: Scott Eade [mailto:seade <at> backstagetech.com.au]
> Sent: Monday, July 01, 2002 9:53 AM
> To: JMeter Users List
> Subject: Re: Load testing with unique users
> 
> 
> Thanks for the reply Mike.  Can you please give me a clue as 
> to how I access
> the two components you mention - I don't see them anywhere in 
> the "Add"
> context menu.
> 
> Cheers,
> 
> Scott
> -- 
> Scott Eade
> Backstage Technologies Pty. Ltd.
> 
> > From: "Stover, Michael" <Michael.Stover <at> usa.xerox.com>
> > 
> > There are a couple of components in JMeter that will allow 
> you to do what
(Continue reading)

Neal Bridges | 1 Jul 21:53 2002

RE: NullPointer when running test

LOL - okay.  Frustrated with the whole login situation, and getting the same
error message, no matter what I change, I decided to create a very simple
jsp to try and assertain user error or not.  I think it's user error.
Created a very simple, "Hello World" jsp page and sent Jmeter off to test
it.  Here's some more in-depth explanation of my tree:

Full URL to test:  https://login.providerlink.com/providerlink/nealtest.jsp

Thread Group (5 threads, 0 Ramp up, 2 Loops)
   HTTP Request defaults (server name: login.providerlink.com, nothing for
port number, HTTPS protocol, Method is GET, path is "/providerlink")
   HTTP Cookie Manager
   HTTP Request (the only thing filled in here is protocol is set to HTTPS,
Method is GET, and path is "/nealtest.jsp")
   File Reporter

The contents of the jsp are as follows:
<html>
<head>
<title>Neal's Load Test Page</title>
</head>
<body>
Hi Everybody
</body>
</html>

As you can see, very simple, straight forward HTTP request.  The following
is my output:

Sampling url: https://login.providerlink.com/nealtest.jsp
(Continue reading)

Singh, Surinder | 2 Jul 00:03 2002

RE: NullPointer when running test

do you connect to the web server via VPN? 

> -----Original Message-----
> From: Neal Bridges [mailto:nbridges <at> providerlink.com]
> Sent: Monday, July 01, 2002 3:53 PM
> To: JMeter Users List
> Subject: RE: NullPointer when running test
> 
> 
> LOL - okay.  Frustrated with the whole login situation, and 
> getting the same
> error message, no matter what I change, I decided to create a 
> very simple
> jsp to try and assertain user error or not.  I think it's user error.
> Created a very simple, "Hello World" jsp page and sent Jmeter 
> off to test
> it.  Here's some more in-depth explanation of my tree:
> 
> Full URL to test:  
> https://login.providerlink.com/providerlink/nealtest.jsp
> 
> Thread Group (5 threads, 0 Ramp up, 2 Loops)
>    HTTP Request defaults (server name: 
> login.providerlink.com, nothing for
> port number, HTTPS protocol, Method is GET, path is "/providerlink")
>    HTTP Cookie Manager
>    HTTP Request (the only thing filled in here is protocol is 
> set to HTTPS,
> Method is GET, and path is "/nealtest.jsp")
>    File Reporter
(Continue reading)

Scott Eade | 2 Jul 00:55 2002
Picon

Re: Load testing with unique users

Mike,

That's fine, I am running the code from CVS HEAD.

I see the Modifiers now - I obviously wasn't looking hard enough.

The CVS code seems to have some excellent enhancements over the 1.7 release.
I have it working on win2k, but I hit some problems on Mac OS X - I will try
and post these later.

Thanks,

Scott
--

-- 
Scott Eade
Backstage Technologies Pty. Ltd.

> From: "Stover, Michael" <Michael.Stover <at> usa.xerox.com>
> Date: Mon, 01 Jul 2002 10:33:14 -0400
> To: "'JMeter Users List'" <jmeter-user <at> jakarta.apache.org>,
> "'seade <at> backstagetech.com.au'" <seade <at> backstagetech.com.au>
> Subject: RE: Load testing with unique users
> 
> These components are called "Modifiers", and only appear in the "Add" menu
> of certain components.  Also, I am referring to JMeter 1.7.1 unstable
> release.  I don't think these components were available with JMeter 1.7.
> 
> -Mike
> 
>> -----Original Message-----
(Continue reading)


Gmane