RE: Remote testing hangs

2006-10-04 Thread McCune, Tim
-Original Message-
From: Rajesh Balamohan [mailto:[EMAIL PROTECTED] 
 http://jakarta.apache.org/jmeter/usermanual/remote-test.html (See the tips
 section for the reason). Instead of 127.0.0.1 in /etc/hosts, try giving ur
 ip and the hostname.

Well, I have both lines there.  I can't remove the loopback line or all
kinds of other things break.

127.0.0.1   localhost
10.xx.xx.xx mymachinename.mydomain

 Looking at the threaddump, surely its the connect which is causing the
 problem.
 Do u start the JMeter GUI and then start ur rmi server in the remote
 machine?.

I start all of the servers first, then the GUI.

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



RE: Remote testing hangs

2006-10-04 Thread McCune, Tim
-Original Message-
From: Philip Peake [mailto:[EMAIL PROTECTED] 
 Random guess -- check that you are using EXACLTY the same version of 
 Java on the Windows machine. RMI seems picky about this.

Using 1.5.0_08 on both.

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



Nested variables

2006-10-04 Thread McCune, Tim
I'm trying to use the following expression in JMeter:

 

${myId_${__JavaScript(Math.floor(Math.random() * ${myId_matchNr}) + 1,
randomId)}}

 

and JMeter is evaluating it to:

 

${) * ${myId_matchNr}) + 1, randomId)}}

 

It seems to be able to handle 1 nested variable, inside of the JavaScript
function, but not the 2nd?  For instance, if I just use:

 

${__JavaScript(Math.floor(Math.random() * ${myId_matchNr}) + 1, randomId)}

 

this evaluates fine.  If I just use:

 

${myId_2}

 

this evaluates fine.  I basically have a list of strings that were extracted
by the Regular Expression Extractor (and stored in myId_n variables), and
I want to select one of them at random.  Is there a better way to do this?
I would appreciate any suggestions.

 

Thanks.

 

--Tim



Suggest me a load testing tool

2006-10-04 Thread pradeep_2731

Hi friends,

I am in need of a load testing tool which will simulate 100 KBPS load over
WAN. I am not sure weather JMeter will do this.If its possible to do this
with JMeter plz let me kno how to do it.If any body know which tool will be
appropriate for this requirment plz let me know as this requirment is the
main objective for my project.
-- 
View this message in context: 
http://www.nabble.com/Suggest-me-a-load-testing-tool-tf2381877.html#a6638056
Sent from the JMeter - User mailing list archive at Nabble.com.


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



Re: regexp . ignore newline

2006-10-04 Thread sebb

You cannot ignore new-lines; all you can do is set the single-line
modifier (?s) which allows . to match new-line. However, any new-lines
that are matched will be included in the matched data.

See:

http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html

If you could give a concrete example of the data you are getting, and
what you want to extract, perhaps we could give more explicit help.

On 30/09/06, R R [EMAIL PROTECTED] wrote:

Hi,

Is there a way of getting the regexp in Jmeter to make the . ignore new
lines?

I am getting a string that should be one line but the server is breaking it
up into chunks.

I can get it working by using:

ATTENDEE;(.*\s.*\s.*\s.*\s)com

but this means I need to get more lines than I need and then clean it up in
a bean shell afterwards. If I could make the . ignore new lines then the
following should work.. I think..

ATTENDEE;(.+)com

Thanx for any help on this...

R

_
Download the new Windows Live Toolbar, including Desktop search!
http://toolbar.live.com/?mkt=en-gb


-
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: Header Manager bug?

2006-10-04 Thread sebb

There's already a similar bug report; I suggest you update it with
your information if necessary.

On 03/10/06, R R [EMAIL PROTECTED] wrote:

Hi,

Not sure if this is intended behaviour if not I will raise a bugzilla.

If you copy the Header Manager to another sampler in another thread group
and then change a value in the header (not the header name, so change the
value of Depth from 1 to 2 for example). It will change the value for all of
the Header Managers not just the one that was changed. I assume this is as
they are referring to the same object.

A workaround is to not use the copy and past but to either create a new
header manager in the thread group or delete the old value and then
re-insert it.

Intended?

R

_
Windows Liveā„¢ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb


-
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]



Log only extracted data from HTTP response

2006-10-04 Thread Hugh Hunter
I've been trying to figure this out for a while now.  I'm looking for a way
to log the data extracted using the Regular Expression Extractor (ideally to
a file, but to the GUI would work, too).  I see how to use it as a variable
in future requests, but not how to log it.

Any help would be greatly appreciated.

--Hugh

--
 
Hugh Hunter
QA Engineer
P:  310.360.4321   F:  310.360.4449
E:  [EMAIL PROTECTED]
 
Citysearch (Division of IAC/InterActiveCorp)
Leading local search, directory and media company
8833 W. Sunset Blvd.
West Hollywood, CA 90069
www.citysearch.com

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



Cookie Manager / View Results Tree

2006-10-04 Thread James Wuerflein
Are there any issues with the Cookie Manager in Jmeter 2.2 ? 
 
I can run the same HTTP commands in Internet Explorer, Netscape,
Firefox and it works fine, but when I try and create a script to do the
same thing, it doesn't seem to work at all.  I just have a single
ThreadGroup, with a Simple Controller with everything underneath that.
 
I seem to get bumped back to our Login page, and prompted to login
again.

I do have the HTTP cookie manager there with the cookie policy set to
Default and have the 'clear the cookies for each iteration' checked.
 
 
Second, 
 
Why does the ViewResultsTree - View not group each thread together
rather than just show you the responses sequentually as they come back?
 
Third,
 
Is there a way to record a script with Jmeter?
 
Thanks
James
 
 
 
 
 


__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_

Re: Cookie Manager / View Results Tree

2006-10-04 Thread Rinke Heida



James Wuerflein wrote:
Are there any issues with the Cookie Manager in Jmeter 2.2 ? 
 
I can run the same HTTP commands in Internet Explorer, Netscape,

Firefox and it works fine, but when I try and create a script to do the
same thing, it doesn't seem to work at all.  I just have a single
ThreadGroup, with a Simple Controller with everything underneath that.
 
I seem to get bumped back to our Login page, and prompted to login

again.
  
Maybe you have to send along HTTP headers with information on what 
browser you use. Some websites block browsers not complying to certain 
types or versions of browsers. (You'll see the headers after recording)

I do have the HTTP cookie manager there with the cookie policy set to
Default and have the 'clear the cookies for each iteration' checked.
 
 
Second, 
 
Why does the ViewResultsTree - View not group each thread together

rather than just show you the responses sequentually as they come back?
 
Third,
 
Is there a way to record a script with Jmeter?
  
Right-click Workbench and Add / Non-test elements / Http proxy 
server. Now you can set JMeter to be a proxy server. If you set you 
browser to the same proxy port all traffic will go through JMeter and 
JMeter will produce a nice tree of requests!

See manual for more information.
 
Thanks

James
 
 
 
 
 



__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_
  


--
Rinke Heida


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



Re: Cookie Manager / View Results Tree

2006-10-04 Thread James Wuerflein
yes, sorry, failed to mention I do have a User-Agent string in there as
well in the HTTP Header Manager.
 
Great, thanks for the heads up on the http proxy server.
 
 


 [EMAIL PROTECTED] 10/04 3:38 PM 



James Wuerflein wrote:
 Are there any issues with the Cookie Manager in Jmeter 2.2 ? 
  
 I can run the same HTTP commands in Internet Explorer, Netscape,
 Firefox and it works fine, but when I try and create a script to do
the
 same thing, it doesn't seem to work at all.  I just have a single
 ThreadGroup, with a Simple Controller with everything underneath
that.
  
 I seem to get bumped back to our Login page, and prompted to login
 again.
   
Maybe you have to send along HTTP headers with information on what 
browser you use. Some websites block browsers not complying to certain

types or versions of browsers. (You'll see the headers after
recording)

 I do have the HTTP cookie manager there with the cookie policy set
to
 Default and have the 'clear the cookies for each iteration'
checked.
  
  
 Second, 
  
 Why does the ViewResultsTree - View not group each thread together
 rather than just show you the responses sequentually as they come
back?
  
 Third,
  
 Is there a way to record a script with Jmeter?
   
Right-click Workbench and Add / Non-test elements / Http proxy 
server. Now you can set JMeter to be a proxy server. If you set you 
browser to the same proxy port all traffic will go through JMeter and 
JMeter will produce a nice tree of requests!
See manual for more information.
  
 Thanks
 James
  
  
  
  
  



__
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please
notify
 the system manager.

 Katun Corporation -- www.katun.com 

_
   

-- 
Rinke Heida


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_

Re: Start and Stop events in a ThreadGroup

2006-10-04 Thread sebb

On 29/09/06, Rajesh Balamohan [EMAIL PROTECTED] wrote:

Folks,


This is really a JMeter devel question ...


Are there any events which gets invoked in JMeter when a threadgroup
starts and ends?


No; there are only testStarted()/testEnded() and
threadStarted()/threadFinished() events.


Some more details are follows...
1. I am planning to include CPUMonitoring as a plugin in my JMeter. This
can take serverip:port as the parameter and connect to that server for
monitoring.


What type of test element will this be?


2. I am stuck up in a situation where I need to call start, stop of
cpumonitoring in a threadgroup.


Can you not use the testStarted()/testEnded() events?


3. I need plugin the CPUMonitor code when a threadgroup starts and
should invoke stop when the threadgroup ends.

Any pointers on this will be of great help.


Might be possible to add threadGroup Start/Stop events, but a
work-round in the meantime would be to count the number of calls to
threadStarted()/threadFinished() events and start the monitoring on
the first Started call, and stop on the last Finished call.


~Rajesh.B

-
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: Problem in Running Distributed Testing

2006-10-04 Thread sebb

Thanks for the report - this was due to a bug in de-serialisation.

The nightly build 2-2.20061004 has the fix if you want to try it.

On 26/09/06, Kannan.R [EMAIL PROTECTED] wrote:

Hi,

When I run the testing in Distributed Mode, the slave (which runs the
Jmeter-server) is reporting errors in the log as follows.

2006/09/26 16:14:27 ERROR - jmeter.threads.JMeterThread: Test failed!
java.lang.NullPointerException
 at
org.apache.jmeter.modifiers.CounterConfig.iterationStart(CounterConfig.j
ava:74)
 at
org.apache.jmeter.control.GenericController.fireIterationStart(GenericCo
ntroller.java:224)
 at
org.apache.jmeter.control.GenericController.fireIterEvents(GenericContro
ller.java:214)
 at
org.apache.jmeter.control.GenericController.next(GenericController.java:
83)
 at org.apache.jmeter.threads.ThreadGroup.next(ThreadGroup.java:123)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:233)
 at java.lang.Thread.run(Unknown Source)

I am using Jmeter 2.2 and Java 1.4.2_11.

Any solution to this?

Thanks,
R Kannan




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



RE: Nested variables

2006-10-04 Thread McCune, Tim
-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
 Why not pick a match at random initially? i.e. set Match No. to 0.

Because I don't want to reparse the entire list every time I go through the
thread.  I want them all loaded into memory once, and then select them
randomly while the test runs.

 Otherwise, you will need to do this with BeanShell, something like:
 ${__BeanShell(vars.get(myId_${random}))}

You rock.  This works great.  Thank you!

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