Re: Firing requests at a given rate

2005-04-12 Thread Michael Stover
Throughput Timer
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Constant_Throughput_Timer

-Mike

On Tue, 2005-04-12 at 19:46 +0200, Nop Lists wrote:
> Hello all,
> Do you know of any possibility to cause JMeter to fire requests at a given 
> rate?
> 
> The problem I am facing is how to build a testcase with the requirement of 
> firing N requests per second (say 100 requests per second).
> While I can define that N threads are to be dealt in parallel using a thread 
> group, this does not give me a notion as to the rate in which the requests 
> being sent. My understanding is that JMeter can show me the rate (e.g. in 
> the aggregate report) but does not let me determine it.
> 
> If I define for example 100 threads in my thread group, than all I know is 
> that the server being tested serves 100 requests at each given point in 
> time. Now if the tested server replies by rare chance at an average of 1 
> second, I am luckily fulfiling the requirements, but this is of course a 
> rare coincidence...
> Thanks for your ideas and thoughts!
> Nop


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamically changing the number of threads

2005-04-12 Thread Michael Stover
Only crudely with

A) Ramp up delays and 
B) Multiple Threadgroups.

and interesting combinations of those two.

-Mike

On Tue, 2005-04-12 at 19:49 +0200, Nop Lists wrote:
> Dear all,
> is there a possibility to change the number of threads while the test is 
> running?
> Thanks
> Nop


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cookie Manager Question

2005-04-12 Thread Jennifer Ward
Hello All,
I'm using JMeter to test a login session that basically involves 
sending two requests. The first request sends a static Cookie 
(predefined in my CSV file). The response for that request includes 
some set-cookie headers that I want to use for the request #2. However, 
I also want to include my static Cookie from the first request as so:

Request 1: GET /someurl
Cookie: un=123456
Response:
set-cookie: wosid=jGhVyqhtLM7s; version="1"; path=/somepath
set-cookie: woinst=1; version="1"; path=/somepath
Request 2: GET /someurl/login
Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
I've defined my test plan with the following User Parameters:

Then, a header manager that defines the Cookie header using my static 
cookie:

Then, my cookie manager explicitly stores that cookie:
 
This works fine for the first request, but the second request is 
missing my un cookie.

Any suggestions would be appreciated.
Thanks
Jennifer Ward
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Cookie Manager Question

2005-04-12 Thread Jennifer Ward
Hello All,
I'm sending this again since it looks like my attachments got stripped 
out the first time.

I'm using JMeter to test a login session that basically involves 
sending two requests. The first request sends a static Cookie 
(predefined in my CSV file). The response for that request includes 
some set-cookie headers that I want to use for the request #2. However, 
I also want to include my static Cookie from the first request as so:

Request 1: GET /someurl
Cookie: un=123456
Response:
set-cookie: wosid=jGhVyqhtLM7s; version="1"; path=/somepath
set-cookie: woinst=1; version="1"; path=/somepath
Request 2: GET /someurl/login
Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
I've defined my test plan with the following User Parameters:
username  ${__CSVRead(...)}
password  ${__CSVRead(...)}
uname-cookie  ${__CSVRead(...)}
Then, a header manager that defines the Cookie header using my static 
cookie:

Cookie  ${uname-cookie}
Then, my cookie manager explicitly stores that cookie:
un  ${uname-cookie}
This works fine for the first request, but the second request is 
missing my un cookie.

Any suggestions would be appreciated.
Thanks
Jennifer Ward
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cookie Manager Question

2005-04-12 Thread sebb
Have you got more than one cookie manager in the test plan?

If so, you need to make sure that they are not both in scope at the
same time, as only one will be actioned.

You can do this by adding each as a child of the relevant sampler.

S.
On 4/12/05, Jennifer Ward <[EMAIL PROTECTED]> wrote:
> Hello All,
> 
> I'm sending this again since it looks like my attachments got stripped
> out the first time.
> 
> I'm using JMeter to test a login session that basically involves
> sending two requests. The first request sends a static Cookie
> (predefined in my CSV file). The response for that request includes
> some set-cookie headers that I want to use for the request #2. However,
> I also want to include my static Cookie from the first request as so:
> 
> Request 1: GET /someurl
> Cookie: un=123456
> 
> Response:
> set-cookie: wosid=jGhVyqhtLM7s; version="1"; path=/somepath
> set-cookie: woinst=1; version="1"; path=/somepath
> 
> Request 2: GET /someurl/login
> Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
> 
> I've defined my test plan with the following User Parameters:
> 
> username  ${__CSVRead(...)}
> password  ${__CSVRead(...)}
> uname-cookie  ${__CSVRead(...)}
> 
> Then, a header manager that defines the Cookie header using my static
> cookie:
> 
> Cookie  ${uname-cookie}
> 
> Then, my cookie manager explicitly stores that cookie:
> 
> un  ${uname-cookie}
> 
> This works fine for the first request, but the second request is
> missing my un cookie.
> 
> Any suggestions would be appreciated.
> 
> Thanks
> Jennifer Ward
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: help with Javascript function

2005-04-12 Thread sebb
On 4/12/05, Dantes, Ed <[EMAIL PROTECTED]> wrote:
> Hi all,
> Just load testing my web application, which is mainly in HTML.
> There is however some JavaScript embedded into it.
> So load testing the app is fine up until I get to the JavaScript code,
> which of course shows nothing. The following javascript code shows this:
> 
> var tmenuItems =
> [
>   ['H4607243' name="key">,'blahblah','blahblah']
> ];
> 
> I need to extract the 'value' out of there so I can equate it to the key
> and append to the path

This is a job for the regular expression (regex) extractor:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor

To extract the value, you can use the following regex:

value="(\d+?)"

This will match the digits.

If value appears elsewhere on the page, you will need to add extra
context before and/or after to ensure you only match the correct
value.

> How would I go about doing that using the javascript function?

See above; javascript is not suitable here.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About regular Expressions

2005-04-12 Thread sebb
On 4/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi Everybody
> 
> I´m trying to find a regular expressions for :
> 
> News
> 
> Trying to got "/!E1LnPrsdGf2fFN" in a regular Expression preprocesor
> but I haven´t find any match expression yet.
> 
> Is there any way to specify this: I tried
> 
> News
> 
> but it doesnt seem to work. Any ideas?

What do you mean by "not work"?
Does it match too much? 
Nothing at all?

Any errors in jmeter.log?

I would start with

News

which will at least stop it matching past the trailing ".

See the Wiki for some links on Regexes.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: No JDBC-Connection to local Server?

2005-04-12 Thread sebb
All I can suggest is to try running the tests with only one thread.

S.
On 4/12/05, Andre Dittmar <[EMAIL PROTECTED]> wrote:
> Hello sebb,
> 
> > That seems to be saying:
> > Unknown database "wzf"
> > Does that database exist?
> 
> Thanks for your quick response. This was my fault, I mixed different
> logfile-results in the hurry :-/ Here again the lastest testcases. This time,
> everything should be fine. This tests were started on my local machine, trying
> to connect on localhost which also running as a WAMP-server. Still using a
> JDBC-Request with the mysql_connector-JAR-file
> 
> TEST_1
> JDBC URL: jdbc:mysql://127.0.0.1:3306/wzm2004
> Driver Class: com.mysql.jdbc.Driver
> User:mysql
> Password:* (same like the user, at local machine)
> 
> Using a Query like: SELECT * FROM `be_users` WHERE email LIKE 
> '%werkzeugforum%',
> which will return some data for sure
> 
> Response Asseration using the pattern werkzeugforum, which should be found for
> sure I guess?
> 
> RESULT_1
> 1. Graph result stays empty
> 
> 2. Assertion result stays empty
> In both cases there is nothing particular in the files:
> 
> 
> 
> 
> 3. Logfile seems allright:
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Running the
> test!
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: About to call
> test listeners
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.reporters.ResultCollector
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.reporters.ResultCollector
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.protocol.http.control.CookieManager
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.gui.MainFrame
> 2005/04/12 14:32:44 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,local)
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Starting 10
> threads for group JDBC Users. Ramp up = 2.
> 2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Continue on
> error
> 2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-1
> started
> 2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-1
> is done
> 2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-2
> started
> 2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-2
> is done
> 2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-3
> started
> 2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-3
> is done
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-4
> started
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-4
> is done
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-5
> started
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-5
> is done
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-6
> started
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-6
> is done
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-7
> started
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-7
> is done
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-8
> started
> 2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-8
> is done
> 2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-9
> started
> 2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-9
> is done
> 2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 
> 1-10
> started
> 2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 
> 1-10
> is done
> 2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
> listeners of end of test
> 2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler
> 2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.reporters.ResultCollector
> 2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.reporters.ResultCollector
> 2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.protocol.http.control.CookieManager
> 2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
> listener: org.apache.jmeter.gui.MainFrame
> 2005/04/12 14:32:46 INFO  - jmeter.gui.uti

Re: Cookie Manager Question

2005-04-12 Thread Jennifer Ward
No, there is only one cookie manager in my test plan.
The strange thing is that if I deselect "Clear cookies each iteration" 
then I end up with the following cookie for my second request:

Cookie: un=${uname-cookie}; wosid=lI3iPzwi; woinst=3; un=123456;
So, it's picking up the un cookie that I have stored in my cookie 
manager, but it's not resolving it.

Thanks for your help. I'd appreciate any further suggestions you may 
have.

Jennifer Ward
On Apr 12, 2005, at 4:24 PM, sebb wrote:
Have you got more than one cookie manager in the test plan?
If so, you need to make sure that they are not both in scope at the
same time, as only one will be actioned.
You can do this by adding each as a child of the relevant sampler.
S.
On 4/12/05, Jennifer Ward <[EMAIL PROTECTED]> wrote:
Hello All,
I'm sending this again since it looks like my attachments got stripped
out the first time.
I'm using JMeter to test a login session that basically involves
sending two requests. The first request sends a static Cookie
(predefined in my CSV file). The response for that request includes
some set-cookie headers that I want to use for the request #2. 
However,
I also want to include my static Cookie from the first request as so:

Request 1: GET /someurl
Cookie: un=123456
Response:
set-cookie: wosid=jGhVyqhtLM7s; version="1"; path=/somepath
set-cookie: woinst=1; version="1"; path=/somepath
Request 2: GET /someurl/login
Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
I've defined my test plan with the following User Parameters:
username  ${__CSVRead(...)}
password  ${__CSVRead(...)}
uname-cookie  ${__CSVRead(...)}
Then, a header manager that defines the Cookie header using my static
cookie:
Cookie  ${uname-cookie}
Then, my cookie manager explicitly stores that cookie:
un  ${uname-cookie}
This works fine for the first request, but the second request is
missing my un cookie.
Any suggestions would be appreciated.
Thanks
Jennifer Ward
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cookie Manager Question

2005-04-12 Thread sebb
On 4/13/05, Jennifer Ward <[EMAIL PROTECTED]> wrote:
> No, there is only one cookie manager in my test plan.
> 
> The strange thing is that if I deselect "Clear cookies each iteration"
> then I end up with the following cookie for my second request:
> 
> Cookie: un=${uname-cookie}; wosid=lI3iPzwi; woinst=3; un=123456;

If a variable is not recognised, it is left as is.

So either the variable is not defined, or the Cookie Manager is not
processing variables at all.

I now remember there was a bug for this:

http://issues.eu.apache.org/bugzilla/show_bug.cgi?id=28715

So it's not possible at present to use variables in the Cookie Manager.

Sorry, should have remembered that before...

> 
> So, it's picking up the un cookie that I have stored in my cookie
> manager, but it's not resolving it.
> 
> Thanks for your help. I'd appreciate any further suggestions you may
> have.
> 
> Jennifer Ward
> 
> On Apr 12, 2005, at 4:24 PM, sebb wrote:
> 
> > Have you got more than one cookie manager in the test plan?
> >
> > If so, you need to make sure that they are not both in scope at the
> > same time, as only one will be actioned.
> >
> > You can do this by adding each as a child of the relevant sampler.
> >
> > S.
> > On 4/12/05, Jennifer Ward <[EMAIL PROTECTED]> wrote:
> >> Hello All,
> >>
> >> I'm sending this again since it looks like my attachments got stripped
> >> out the first time.
> >>
> >> I'm using JMeter to test a login session that basically involves
> >> sending two requests. The first request sends a static Cookie
> >> (predefined in my CSV file). The response for that request includes
> >> some set-cookie headers that I want to use for the request #2.
> >> However,
> >> I also want to include my static Cookie from the first request as so:
> >>
> >> Request 1: GET /someurl
> >> Cookie: un=123456
> >>
> >> Response:
> >> set-cookie: wosid=jGhVyqhtLM7s; version="1"; path=/somepath
> >> set-cookie: woinst=1; version="1"; path=/somepath
> >>
> >> Request 2: GET /someurl/login
> >> Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
> >>
> >> I've defined my test plan with the following User Parameters:
> >>
> >> username  ${__CSVRead(...)}
> >> password  ${__CSVRead(...)}
> >> uname-cookie  ${__CSVRead(...)}
> >>
> >> Then, a header manager that defines the Cookie header using my static
> >> cookie:
> >>
> >> Cookie  ${uname-cookie}
> >>
> >> Then, my cookie manager explicitly stores that cookie:
> >>
> >> un  ${uname-cookie}
> >>
> >> This works fine for the first request, but the second request is
> >> missing my un cookie.
> >>
> >> Any suggestions would be appreciated.
> >>
> >> Thanks
> >> Jennifer Ward
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread ravishankar . sreedharan




Thnx  for your detailed explanation, sebb.

"If you set the mask to
0, and the sleep to the extracted sleep time, then the generated Java
sample should have an actual elapsed time very close to the extracted
sleep time."

Kindly clarify what is "extracted sleep time".

If the details( like the mask and the extracted sleep time) provided is not
appropriate does it mean that we will end up in approximate/irrelevant
results?

Thanks & Regards
Ravi shankar S





   
  sebb  
   
  <[EMAIL PROTECTED]To:   JMeter Users List 

  >cc:  
   
   Subject:  Re: How To Get 
Individual Response Time from Multiple servers 
  04/12/2005 09:19  
   
  PM
   
  Please respond to 
   
  "JMeter Users 
   
  List" 
   

   

   




The Elapsed Time for the Java Samples in the log (and any listeners)
will be the amount of time it took to actually run the Java Sampler.

The Java Sampler has sleep and mask parameters. If you set the mask to
0, and the sleep to the extracted sleep time, then the generated Java
sample should have an actual elapsed time very close to the extracted
sleep time.

The net result is that the Java Sampler can be used to generate a
sample with roughly the correct details.

Of course the start/end times will not correspond with the part of the
original sample that you are simulating - they will be later.

This assumes that variables work in the Sleep field - I think they do
- if not, that could/should be fixed.

S.
On Apr 12, 2005 1:51 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> I will try out with Java sampler but I am sorry I could not understand
about
> the elapsed time. Can't we get it straight away from Aggregate report as
we
> do for other samplers?
>
> Thanks & Regards
> Ravi shankar S
>
>  sebb
>  <[EMAIL PROTECTED]To:   JMeter Users List
, Peter Lin
>  > <[EMAIL PROTECTED]>
>   cc:
>  04/12/2005 06:04 Subject:  Re: How To Get
Individual Response Time from Multiple servers
>  PM
>  Please respond to
>  "JMeter Users
>  List"
>
> You can use the Java Sampler to save anything you like to the test log
> - just use the variables in the appropriate fields.
>
> However, you can't currently change the elapsed time recorded for the
> JavaTest sampler, so you would either have to extract the time later
> from the data, or you might be able to set the sleep time on the
> JavaTest sampler to the same as the extracted time, and it would then
> generate a similar elapsed time.
>
> S.
> On Apr 12, 2005 1:24 PM, Peter Lin <[EMAIL PROTECTED]> wrote:
> > http://jakarta.apache.org/jmeter/usermanual/functions.html
> >
> > take a look at the functions and see if one of the functions fits your
> > needs. you can use the function to parse the response. saving the
> > parsed result is a bit more tricky. if you want to just save the
> > extracted parts from the response, you will probably need to write a
> > plugin.
> >
> > peter
> >
> > On Apr 12, 2005 8:08 AM, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Thanks Peter.
> > >
> > > yes we do have unique activity on the each server which can be
observed
> with
> > > functions. In this case how to proceed?
> > >
> > > Thanks & Regards
> > > Ravi shankar S
> > >
> > >   Peter Lin
> > >   <[EMAIL PROTECTED]To:   JMeter Users
> List 
> > >   m>   cc:
> > >

No JDBC-Connection to local Server?

2005-04-12 Thread Andre Dittmar
Hi to all in the userlist!

I've some problems building a database testplan with jmeter. I'm running Jmeter
2.0.3 on my local machine (WinXP SP1). The Server is a Linux Suse Machine
running Apache 1.3.27 and MySQL 3.23.56 on it. Here's how I
tried to get a positive result so far:

1. I've downloaded an copied the MySQL-Connector in
[jmeterdir]/lib/mysql-connector-java-3.1.7-bin.jar

2. In jmeter I opened a new thread and a JDBC-Request:
JDBC URL: jdbc:mysql://127.0.0.1:3306/wzf (according to the mysql-manual)
Driver Class: com.mysql.jdbc.Driver (according to the mysql-manual)
Username: root
Password: **

3. Added a graph result, an response assertion which is watching for an pattern
which should be certainly in the results and finally assertion results for the
output of the results.

After starting jmeter I get results as follows:

1. Graph results painting its lines, looks fine.

2. Assertion results writes lines like:
...
jdbc:mysql://127.0.0.1:3306/wzf, user: root
SELECT * FROM tx_cmwlinklist_link WHERE 1
Response (or URL) was null
...

3. Result files includes rows like: 

4. In the logfile I have an error I don't understand and explain myself:
...
2005/04/12 12:21:57 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-3
started
2005/04/12 12:21:57 ERROR - jmeter.protocol.jdbc.util.JMeter19ConnectionPool:
Couldn't get connection to database java.sql.SQLException: Unbekannte Datenbank
'wzf'.
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1205)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1768)
at com.mysql.jdbc.Connection.(Connection.java:430)
at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
org.apache.jmeter.protocol.jdbc.util.JMeter19ConnectionPool.validateMaxConnections(JMeter19ConnectionPool.java:88)
at
org.apache.jmeter.protocol.jdbc.util.JMeter19ConnectionPool.(JMeter19ConnectionPool.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.apache.jmeter.protocol.jdbc.util.DBConnectionManager.createConnectionPool(DBConnectionManager.java:132)
at
org.apache.jmeter.protocol.jdbc.util.DBConnectionManager.getKey(DBConnectionManager.java:104)
at
org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.getKey(JDBCSampler.java:185)
at
org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:102)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:281)
at java.lang.Thread.run(Unknown Source)
...

Has somebody an idea whats going wrong or what I did wrong so far?
Thanks in advance,
Andre


---
Andre Dittmar | hot bytes

Hofstatt 29
74226 Nordheim

Tel: 0 71 33 / 20 46 43
Fax: 0 71 33 / 20 46 42
D1 : 01 60 / 97 22 03 03

Web : http://www.hotbytes.de
Mail: [EMAIL PROTECTED]






This message was sent using IMP, the Internet Messaging Program.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: No JDBC-Connection to local Server?

2005-04-12 Thread sebb
On Apr 12, 2005 11:29 AM, Andre Dittmar <[EMAIL PROTECTED]> wrote:
> Hi to all in the userlist!
> 
> I've some problems building a database testplan with jmeter. I'm running 
> Jmeter
> 2.0.3 on my local machine (WinXP SP1). The Server is a Linux Suse Machine
> running Apache 1.3.27 and MySQL 3.23.56 on it. Here's how I
> tried to get a positive result so far:
> 
> 1. I've downloaded an copied the MySQL-Connector in
> [jmeterdir]/lib/mysql-connector-java-3.1.7-bin.jar
> 
> 2. In jmeter I opened a new thread and a JDBC-Request:
> JDBC URL: jdbc:mysql://127.0.0.1:3306/wzf (according to the mysql-manual)
> Driver Class: com.mysql.jdbc.Driver (according to the mysql-manual)
> Username: root
> Password: **
> 
> 3. Added a graph result, an response assertion which is watching for an 
> pattern
> which should be certainly in the results and finally assertion results for the
> output of the results.
> 
> After starting jmeter I get results as follows:
> 
> 1. Graph results painting its lines, looks fine.
> 
> 2. Assertion results writes lines like:
> ...
> jdbc:mysql://127.0.0.1:3306/wzf, user: root
> SELECT * FROM tx_cmwlinklist_link WHERE 1
>Response (or URL) was null
> ...
> 
> 3. Result files includes rows like:  dataType="" threadName="JDBC Users 1-2" label="Links" time="71"
> responseMessage="org.apache.jmeter.protocol.jdbc.util.NoConnectionsAvailableException"
> responseCode="" success="false">
> 
> 4. In the logfile I have an error I don't understand and explain myself:
> ...
> 2005/04/12 12:21:57 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-3
> started
> 2005/04/12 12:21:57 ERROR - jmeter.protocol.jdbc.util.JMeter19ConnectionPool:
> Couldn't get connection to database java.sql.SQLException: Unbekannte 
> Datenbank
> 'wzf'.

That seems to be saying: 

Unknown database "wzf"

Does that database exist?

S.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread Peter Lin
that depends. is there something unique in each response that you can
parse with the functions? if not, you may need to write a plugin to
handle it

peter

On Apr 12, 2005 2:06 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> 
> Hi all,
> 
> The application under test has multiple servers. For example say, there are
> 3 servers A, B & C. The request has to pass through A, B & C to provide the
> response. In such a situation the response time will include the time spent
> in all the three servers.
> 
> How to identify the Response Time on each server?
> 
> Is there any option/work around to achieve the above through JMeter?
> 
> I kindly request you all to share your thoughts
> 
> Thanks  & Regards
> Ravi shankar S
> Important Email Information :- The  information  in  this  email is
> confidential and may  be  legally  privileged. It  is  intended  solely for
> the addressee. Access to  this email  by anyone  else  is  unauthorized.  If
> you are not the intended recipient, any disclosure, copying, distribution or
> any action taken or omitted to be taken in reliance on it, is prohibited
> and may be unlawful. If you are not the intended addressee please contact
> the sender and dispose of this e-mail immediately.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread ravishankar . sreedharan




Thanks Peter.

yes we do have unique activity on the each server which can be observed with
functions. In this case how to proceed?

Thanks & Regards
Ravi shankar S






   
  Peter Lin 
   
  <[EMAIL PROTECTED]To:   JMeter Users List 

  m>   cc:  
   
   Subject:  Re: How To Get 
Individual Response Time from Multiple servers 
  04/12/2005 05:40  
   
  PM
   
  Please respond to 
   
  "JMeter Users 
   
  List" 
   

   

   




that depends. is there something unique in each response that you can
parse with the functions? if not, you may need to write a plugin to
handle it

peter

On Apr 12, 2005 2:06 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> The application under test has multiple servers. For example say, there
are
> 3 servers A, B & C. The request has to pass through A, B & C to provide
the
> response. In such a situation the response time will include the time
spent
> in all the three servers.
>
> How to identify the Response Time on each server?
>
> Is there any option/work around to achieve the above through JMeter?
>
> I kindly request you all to share your thoughts
>
> Thanks  & Regards
> Ravi shankar S
> Important Email Information :- The  information  in  this  email is
> confidential and may  be  legally  privileged. It  is  intended  solely
for
> the addressee. Access to  this email  by anyone  else  is  unauthorized.
If
> you are not the intended recipient, any disclosure, copying, distribution
or
> any action taken or omitted to be taken in reliance on it, is prohibited
> and may be unlawful. If you are not the intended addressee please contact
> the sender and dispose of this e-mail immediately.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Important Email Information :- The  information  in  this  email is
confidential and may  be  legally  privileged. It  is  intended  solely for
the addressee. Access to  this email  by anyone  else  is  unauthorized.  If
you are not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. If you are not the intended addressee please contact
the sender and dispose of this e-mail immediately.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread Peter Lin
http://jakarta.apache.org/jmeter/usermanual/functions.html

take a look at the functions and see if one of the functions fits your
needs. you can use the function to parse the response. saving the
parsed result is a bit more tricky. if you want to just save the
extracted parts from the response, you will probably need to write a
plugin.

peter


On Apr 12, 2005 8:08 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> 
> Thanks Peter.
> 
> yes we do have unique activity on the each server which can be observed with
> functions. In this case how to proceed?
> 
> Thanks & Regards
> Ravi shankar S
> 
>   Peter Lin
>   <[EMAIL PROTECTED]To:   JMeter Users List 
> 
>   m>   cc:
>Subject:  Re: How To Get 
> Individual Response Time from Multiple servers
>   04/12/2005 05:40
>   PM
>   Please respond to
>   "JMeter Users
>   List"
> 
> 
> that depends. is there something unique in each response that you can
> parse with the functions? if not, you may need to write a plugin to
> handle it
> 
> peter
> 
> On Apr 12, 2005 2:06 AM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi all,
> >
> > The application under test has multiple servers. For example say, there
> are
> > 3 servers A, B & C. The request has to pass through A, B & C to provide
> the
> > response. In such a situation the response time will include the time
> spent
> > in all the three servers.
> >
> > How to identify the Response Time on each server?
> >
> > Is there any option/work around to achieve the above through JMeter?
> >
> > I kindly request you all to share your thoughts
> >
> > Thanks  & Regards
> > Ravi shankar S
> > Important Email Information :- The  information  in  this  email is
> > confidential and may  be  legally  privileged. It  is  intended  solely
> for
> > the addressee. Access to  this email  by anyone  else  is  unauthorized.
> If
> > you are not the intended recipient, any disclosure, copying, distribution
> or
> > any action taken or omitted to be taken in reliance on it, is prohibited
> > and may be unlawful. If you are not the intended addressee please contact
> > the sender and dispose of this e-mail immediately.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Important Email Information :- The  information  in  this  email is
> confidential and may  be  legally  privileged. It  is  intended  solely for
> the addressee. Access to  this email  by anyone  else  is  unauthorized.  If
> you are not the intended recipient, any disclosure, copying, distribution or
> any action taken or omitted to be taken in reliance on it, is prohibited
> and may be unlawful. If you are not the intended addressee please contact
> the sender and dispose of this e-mail immediately.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread sebb
You can use the Java Sampler to save anything you like to the test log
- just use the variables in the appropriate fields.

However, you can't currently change the elapsed time recorded for the
JavaTest sampler, so you would either have to extract the time later
from the data, or you might be able to set the sleep time on the
JavaTest sampler to the same as the extracted time, and it would then
generate a similar elapsed time.

S.
On Apr 12, 2005 1:24 PM, Peter Lin <[EMAIL PROTECTED]> wrote:
> http://jakarta.apache.org/jmeter/usermanual/functions.html
> 
> take a look at the functions and see if one of the functions fits your
> needs. you can use the function to parse the response. saving the
> parsed result is a bit more tricky. if you want to just save the
> extracted parts from the response, you will probably need to write a
> plugin.
> 
> peter
> 
> On Apr 12, 2005 8:08 AM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Thanks Peter.
> >
> > yes we do have unique activity on the each server which can be observed with
> > functions. In this case how to proceed?
> >
> > Thanks & Regards
> > Ravi shankar S
> >
> >   Peter Lin
> >   <[EMAIL PROTECTED]To:   JMeter Users List 
> > 
> >   m>   cc:
> >Subject:  Re: How To Get 
> > Individual Response Time from Multiple servers
> >   04/12/2005 05:40
> >   PM
> >   Please respond to
> >   "JMeter Users
> >   List"
> >
> >
> > that depends. is there something unique in each response that you can
> > parse with the functions? if not, you may need to write a plugin to
> > handle it
> >
> > peter
> >
> > On Apr 12, 2005 2:06 AM, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi all,
> > >
> > > The application under test has multiple servers. For example say, there
> > are
> > > 3 servers A, B & C. The request has to pass through A, B & C to provide
> > the
> > > response. In such a situation the response time will include the time
> > spent
> > > in all the three servers.
> > >
> > > How to identify the Response Time on each server?
> > >
> > > Is there any option/work around to achieve the above through JMeter?
> > >
> > > I kindly request you all to share your thoughts
> > >
> > > Thanks  & Regards
> > > Ravi shankar S
> > > Important Email Information :- The  information  in  this  email is
> > > confidential and may  be  legally  privileged. It  is  intended  solely
> > for
> > > the addressee. Access to  this email  by anyone  else  is  unauthorized.
> > If
> > > you are not the intended recipient, any disclosure, copying, distribution
> > or
> > > any action taken or omitted to be taken in reliance on it, is prohibited
> > > and may be unlawful. If you are not the intended addressee please contact
> > > the sender and dispose of this e-mail immediately.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > Important Email Information :- The  information  in  this  email is
> > confidential and may  be  legally  privileged. It  is  intended  solely for
> > the addressee. Access to  this email  by anyone  else  is  unauthorized.  If
> > you are not the intended recipient, any disclosure, copying, distribution or
> > any action taken or omitted to be taken in reliance on it, is prohibited
> > and may be unlawful. If you are not the intended addressee please contact
> > the sender and dispose of this e-mail immediately.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: No JDBC-Connection to local Server?

2005-04-12 Thread Andre Dittmar
Hello sebb,

> That seems to be saying:
> Unknown database "wzf"
> Does that database exist?

Thanks for your quick response. This was my fault, I mixed different
logfile-results in the hurry :-/ Here again the lastest testcases. This time,
everything should be fine. This tests were started on my local machine, trying
to connect on localhost which also running as a WAMP-server. Still using a
JDBC-Request with the mysql_connector-JAR-file

TEST_1
JDBC URL: jdbc:mysql://127.0.0.1:3306/wzm2004
Driver Class: com.mysql.jdbc.Driver
User:mysql
Password:* (same like the user, at local machine)

Using a Query like: SELECT * FROM `be_users` WHERE email LIKE '%werkzeugforum%',
which will return some data for sure

Response Asseration using the pattern werkzeugforum, which should be found for
sure I guess?

RESULT_1
1. Graph result stays empty

2. Assertion result stays empty
In both cases there is nothing particular in the files:




3. Logfile seems allright:
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Running the
test!
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: About to call
test listeners
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.reporters.ResultCollector
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.reporters.ResultCollector
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.protocol.http.control.CookieManager
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.gui.MainFrame
2005/04/12 14:32:44 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(true,local)
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Starting 10
threads for group JDBC Users. Ramp up = 2.
2005/04/12 14:32:44 INFO  - jmeter.engine.StandardJMeterEngine: Continue on
error
2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-1
started
2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-1
is done
2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-2
started
2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-2
is done
2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-3
started
2005/04/12 14:32:44 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-3
is done
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-4
started
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-4
is done
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-5
started
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-5
is done
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-6
started
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-6
is done
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-7
started
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-7
is done
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-8
started
2005/04/12 14:32:45 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-8
is done
2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-9
started
2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-9
is done
2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-10
started
2005/04/12 14:32:46 INFO  - jmeter.threads.JMeterThread: Thread JDBC Users 1-10
is done
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying
listeners of end of test
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.reporters.ResultCollector
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.reporters.ResultCollector
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.protocol.http.control.CookieManager
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test
listener: org.apache.jmeter.gui.MainFrame
2005/04/12 14:32:46 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(false,local)
2005/04/12 14:32:46 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended


TEST_2
JDBC URL: jdbc:mysql://127.0.0.1:3306/wzm2004?user=mysql&password=mysql
Driver Class: com.mysql.jdbc.Driver
User:
Password:
This time I leave User & Password still empty, extend the JDBC URL with
parameters according to

Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread ravishankar . sreedharan




I will try out with Java sampler but I am sorry I could not understand about
the elapsed time. Can't we get it straight away from Aggregate report as we
do for other samplers?

Thanks & Regards
Ravi shankar S




   
  sebb  
   
  <[EMAIL PROTECTED]To:   JMeter Users List 
, Peter Lin 
  > <[EMAIL PROTECTED]> 
   
   cc:  
   
  04/12/2005 06:04 Subject:  Re: How To Get 
Individual Response Time from Multiple servers 
  PM
   
  Please respond to 
   
  "JMeter Users 
   
  List" 
   

   

   




You can use the Java Sampler to save anything you like to the test log
- just use the variables in the appropriate fields.

However, you can't currently change the elapsed time recorded for the
JavaTest sampler, so you would either have to extract the time later
from the data, or you might be able to set the sleep time on the
JavaTest sampler to the same as the extracted time, and it would then
generate a similar elapsed time.

S.
On Apr 12, 2005 1:24 PM, Peter Lin <[EMAIL PROTECTED]> wrote:
> http://jakarta.apache.org/jmeter/usermanual/functions.html
>
> take a look at the functions and see if one of the functions fits your
> needs. you can use the function to parse the response. saving the
> parsed result is a bit more tricky. if you want to just save the
> extracted parts from the response, you will probably need to write a
> plugin.
>
> peter
>
> On Apr 12, 2005 8:08 AM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Thanks Peter.
> >
> > yes we do have unique activity on the each server which can be observed
with
> > functions. In this case how to proceed?
> >
> > Thanks & Regards
> > Ravi shankar S
> >
> >   Peter Lin
> >   <[EMAIL PROTECTED]To:   JMeter Users
List 
> >   m>   cc:
> >Subject:  Re: How To Get
Individual Response Time from Multiple servers
> >   04/12/2005 05:40
> >   PM
> >   Please respond to
> >   "JMeter Users
> >   List"
> >
> >
> > that depends. is there something unique in each response that you can
> > parse with the functions? if not, you may need to write a plugin to
> > handle it
> >
> > peter
> >
> > On Apr 12, 2005 2:06 AM, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi all,
> > >
> > > The application under test has multiple servers. For example say,
there
> > are
> > > 3 servers A, B & C. The request has to pass through A, B & C to
provide
> > the
> > > response. In such a situation the response time will include the time
> > spent
> > > in all the three servers.
> > >
> > > How to identify the Response Time on each server?
> > >
> > > Is there any option/work around to achieve the above through JMeter?
> > >
> > > I kindly request you all to share your thoughts
> > >
> > > Thanks  & Regards
> > > Ravi shankar S
> > > Important Email Information :- The  information  in  this  email is
> > > confidential and may  be  legally  privileged. It  is  intended
solely
> > for
> > > the addressee. Access to  this email  by anyone  else  is
unauthorized.
> > If
> > > you are not the intended recipient, any disclosure, copying,
distribution
> > or
> > > any action taken or omitted to be taken in reliance on it, is
prohibited
> > > and may be unlawful. If you are not the intended addressee please
contact
> > > the sender and dispose of this e-mail immediately.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional command

Re: How To Get Individual Response Time from Multiple servers

2005-04-12 Thread sebb
The Elapsed Time for the Java Samples in the log (and any listeners)
will be the amount of time it took to actually run the Java Sampler.

The Java Sampler has sleep and mask parameters. If you set the mask to
0, and the sleep to the extracted sleep time, then the generated Java
sample should have an actual elapsed time very close to the extracted
sleep time.

The net result is that the Java Sampler can be used to generate a
sample with roughly the correct details.

Of course the start/end times will not correspond with the part of the
original sample that you are simulating - they will be later.

This assumes that variables work in the Sleep field - I think they do
- if not, that could/should be fixed.

S.
On Apr 12, 2005 1:51 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> 
> I will try out with Java sampler but I am sorry I could not understand about
> the elapsed time. Can't we get it straight away from Aggregate report as we
> do for other samplers?
> 
> Thanks & Regards
> Ravi shankar S
> 
>  sebb
>  <[EMAIL PROTECTED]To:   JMeter Users List 
> , Peter Lin
>  > <[EMAIL PROTECTED]>
>   cc:
>  04/12/2005 06:04 Subject:  Re: How To Get 
> Individual Response Time from Multiple servers
>  PM
>  Please respond to
>  "JMeter Users
>  List"
> 
> You can use the Java Sampler to save anything you like to the test log
> - just use the variables in the appropriate fields.
> 
> However, you can't currently change the elapsed time recorded for the
> JavaTest sampler, so you would either have to extract the time later
> from the data, or you might be able to set the sleep time on the
> JavaTest sampler to the same as the extracted time, and it would then
> generate a similar elapsed time.
> 
> S.
> On Apr 12, 2005 1:24 PM, Peter Lin <[EMAIL PROTECTED]> wrote:
> > http://jakarta.apache.org/jmeter/usermanual/functions.html
> >
> > take a look at the functions and see if one of the functions fits your
> > needs. you can use the function to parse the response. saving the
> > parsed result is a bit more tricky. if you want to just save the
> > extracted parts from the response, you will probably need to write a
> > plugin.
> >
> > peter
> >
> > On Apr 12, 2005 8:08 AM, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Thanks Peter.
> > >
> > > yes we do have unique activity on the each server which can be observed
> with
> > > functions. In this case how to proceed?
> > >
> > > Thanks & Regards
> > > Ravi shankar S
> > >
> > >   Peter Lin
> > >   <[EMAIL PROTECTED]To:   JMeter Users
> List 
> > >   m>   cc:
> > >Subject:  Re: How To Get
> Individual Response Time from Multiple servers
> > >   04/12/2005 05:40
> > >   PM
> > >   Please respond to
> > >   "JMeter Users
> > >   List"
> > >
> > >
> > > that depends. is there something unique in each response that you can
> > > parse with the functions? if not, you may need to write a plugin to
> > > handle it
> > >
> > > peter
> > >
> > > On Apr 12, 2005 2:06 AM, [EMAIL PROTECTED]
> > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > The application under test has multiple servers. For example say,
> there
> > > are
> > > > 3 servers A, B & C. The request has to pass through A, B & C to
> provide
> > > the
> > > > response. In such a situation the response time will include the time
> > > spent
> > > > in all the three servers.
> > > >
> > > > How to identify the Response Time on each server?
> > > >
> > > > Is there any option/work around to achieve the above through JMeter?
> > > >
> > > > I kindly request you all to share your thoughts
> > > >
> > > > Thanks  & Regards
> > > > Ravi shankar S
> > > > Important Email Information :- The  information  in  this  email is
> > > > confidential and may  be  legally  privileged. It  is  intended
> solely
> > > for
> > > > the addressee. Access to  this email  by anyone  else  is
> unauthorized.
> > > If
> > > > you are not the intended recipient, any disclosure, copying,
> distribution
> > > or
> > > > any action taken or omitted to be taken in reliance on it, is
> prohibited
> > > > and may be unlawful. If you are not the intended addressee please
> contact
> > > > the sender and dispose of this e-mail immediately.
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---

help with Javascript function

2005-04-12 Thread Dantes, Ed
Hi all,
Just load testing my web application, which is mainly in HTML.
There is however some JavaScript embedded into it.  
So load testing the app is fine up until I get to the JavaScript code,
which of course shows nothing. The following javascript code shows this:

var tmenuItems = 
[ 
  ['H4607243','blahblah','blahblah']
];

I need to extract the 'value' out of there so I can equate it to the key
and append to the path
How would I go about doing that using the javascript function?

Thanks 
Ed


Firing requests at a given rate

2005-04-12 Thread Nop Lists
Hello all,
Do you know of any possibility to cause JMeter to fire requests at a given 
rate?

The problem I am facing is how to build a testcase with the requirement of 
firing N requests per second (say 100 requests per second).
While I can define that N threads are to be dealt in parallel using a thread 
group, this does not give me a notion as to the rate in which the requests 
being sent. My understanding is that JMeter can show me the rate (e.g. in 
the aggregate report) but does not let me determine it.

If I define for example 100 threads in my thread group, than all I know is 
that the server being tested serves 100 requests at each given point in 
time. Now if the tested server replies by rare chance at an average of 1 
second, I am luckily fulfiling the requirements, but this is of course a 
rare coincidence...
Thanks for your ideas and thoughts!
Nop


dynamically changing the number of threads

2005-04-12 Thread Nop Lists
Dear all,
is there a possibility to change the number of threads while the test is 
running?
Thanks
Nop


About regular Expressions

2005-04-12 Thread maherrera
Hi Everybody

I´m trying to find a regular expressions for :

News

Trying to got "/!E1LnPrsdGf2fFN" in a regular Expression preprocesor
but I haven´t find any match expression yet.

Is there any way to specify this: I tried 

News

but it doesnt seem to work. Any ideas?

Best Regards

Michel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]