Re: non-POST methods for SOAP/XML-RPC sampler?
On 11/06/07, andrew m. boardman [EMAIL PROTECTED] wrote: If you are using (or can use) files to contain the XML, then there have been some changes to JMeter that allow these to be sent as is without adding any wrapping. It turns out this (specifying a filename for Send a File With the Request, using the r543291 build) works fine for POST and PUT, but is ignored for DELETE. If I'm reading things right, there's simply no allowance made for this in HTTPSampler2.java, which seems to be a bug. Yes - I added the new methods en masse so there are probably other bugs... (Not so much the lack of support, though of course I'd prefer to have it, but the lack of any UI indication that the filename is only used for a subset of the available HTTP methods.) Is it appropriate to file bugs against the nightly builds for stuff like this? Yes, just specify which build(s) are relevant. In this case I think it also applies to 2.2 as DELETE was added there. For a more generalized answer to this, while I'd still love to be able to give the SOAP/XML-RPC Request sampler a method specifier, it seems like it and the base HTTP samplers are covering a lot of the same ground, and perhaps what's really called for is an overhaul of the UI to consolidate the functionality; the ideas in bugzilla #41917 look like a good direction for this. Yes, I do think the HTTP UI needs to be tidied. However, there are some reasons against merging the UIs: - compatibility with existing test plans - task-specific UIs are generally easier to use. - documentation changes ;-) These can be addressed, but it would be easier initially to enhance SOAP/XML separately (and I don't think this would make the merge task any more difficult). Feel free to add an enhancement request for it. I can probably add that fairly quickly. andrew - 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]
SOAP and slow connection
Hi, I need to test a SOAP application using SlowSocket to simulate real users links. So I modified jmeter.properties to use HTTPSampler2 and setted the cps property. Last, to get it work I had to overwrite in a custom library SlowHttpClientSocketFactory because the createSocket method returned always a null value. public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3, HttpConnectionParams arg4) throws IOException, UnknownHostException, ConnectTimeoutException { return new SlowSocket(JMeterUtils.getPropDefault(httpclient.socket.http.cps, 0),arg0,arg1); } That's not really the best solution... but works better than a null socket :) Is there a nicer way to get slow connection simulation working with the SOAP Sampler (and maybe other samplers...)? Thank you in advance. Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP and slow connection
On 11/06/07, Luca Maragnani [EMAIL PROTECTED] wrote: Hi, I need to test a SOAP application using SlowSocket to simulate real users links. Which version of JMeter are you using? Which SOAP sampler are you using? So I modified jmeter.properties to use HTTPSampler2 and setted the cps property. Last, to get it work I had to overwrite in a custom library SlowHttpClientSocketFactory because the createSocket method returned always a null value. Yes - I did not bother implementing the method, as it was not needed for HTTPSampler2, but it should really have have thrown a NotSupported exception... public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3, HttpConnectionParams arg4) throws IOException, UnknownHostException, ConnectTimeoutException { return new SlowSocket(JMeterUtils.getPropDefault(httpclient.socket.http.cps, 0),arg0,arg1); } That's not really the best solution... but works better than a null socket :) Please file a Buzgilla report so it does not get forgotten. Is there a nicer way to get slow connection simulation working with the SOAP Sampler Not sure what you mean by nicer - if the null method is fixed, does the SOAP sampler work OK? Perhaps there should be a separate property for slow SOAP sockets. And/or a GUI field for the CPS value on all the samplers that support it? (and maybe other samplers...)? The SlowSocket feature can only work where it is possible to override the SocketFactory - so it cannot work with the Java HTTP sampler - but I guess it could be added to at least some other samplers. Feel free to create a Buzilla enhancement request. Luca - 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]
# Samples in Aggregate Graph
Hi All, We have come across this kind of problem during our test execution on a web application using HTTP protocol: We would like to know whether the #samples in the aggregate graph are a) the total no. HTTP requests to the server or b) are they the no. of requests to which the server has responded to? It would be great if you could throw some light on this!! Thx in advance, Santosh Kumar B DISCLAIMER: This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.DISCLAIMER: This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: # Samples in Aggregate Graph
Hi, #samples means how many requests u r Jmeter sent to server. ---Mahesh On 6/11/07, Santosh Kumar B [EMAIL PROTECTED] wrote: Hi All, We have come across this kind of problem during our test execution on a web application using HTTP protocol: We would like to know whether the #samples in the aggregate graph are a) the total no. HTTP requests to the server or b) are they the no. of requests to which the server has responded to? It would be great if you could throw some light on this!! Thx in advance, Santosh Kumar B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Monitor result
Hi, I've a little problem to use monitor result; in a thread group i put 1 http auth. manager, 1 http request with correct value of each field , 1 constant timer and 1 monitor result graph. when i launch it, i can't get any performance graph from monitor result. Must i set them in a particular order? I've many http request (for my webservices test), where must i set monitor result component? So?example Thread group Http aut. manager http request monitor status timer http request http request http request http request http request monitor result. well so, doesn't work! can anybody help me?
Re: SOAP and slow connection
Thank you Sebb. sebb wrote: Which version of JMeter are you using? Which SOAP sampler are you using? I'm using version 2.2 from stable downloads (for both SOAP Sampler and SlowHttpClientSocketFactory). Last, to get it work I had to overwrite in a custom library SlowHttpClientSocketFactory because the createSocket method returned always a null value. Yes - I did not bother implementing the method, as it was not needed for HTTPSampler2, but it should really have have thrown a NotSupported exception... I tried to find in trunk repository org.apache.jmeter.protocol.http.util.SlowHttpClientSocketFactory but it's no longer there. Documentation tell nothing about any exception in createSocket (http://jakarta.apache.org/jmeter/api/org/apache/jmeter/protocol/http/util/SlowHttpClientSocketFactory.html), so I think it lacks at least in version 2.2. Is there a nicer way to get slow connection simulation working with the SOAP Sampler Not sure what you mean by nicer - if the null method is fixed, does the SOAP sampler work OK? I mean that the code I wrote in previuos post is the quickest dirty solution. Accessing cps configuration for http exclude the https setting and even trying to understand setting from port is not correct... so I think other parameters are needed. Last but not least, this code does not honour the HttpConnectionParameters. I confirm that if the null method is fixed, SOAP Sampler works with slow socket. Luca
monitor result
Hi, I've a little problem to use monitor result; in a thread group i put 1 http auth. manager, 1 http request with correct value of each field , 1 constant timer and 1 monitor result graph. when i launch it, i can't get any performance graph from monitor result. Must i set them in a particular order? I've many http request (for my webservices test), where must i set monitor result component? So?example Thread group Http aut. manager http request monitor status timer http request http request http request http request http request monitor result. well so, doesn't work! can anybody help me? Can i have a example of a test plan with monitor result? Thanks
RE: monitor result
The Monitor Results listener is meant to hook into a server status servlet and graphs server status. See http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Monitor _Results. It appears that you want to see how the server is responding to your http requests. For this you can use Graph Results (http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Graph_ Results) or Aggregate Graph (http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Aggreg ate_Graph). Regards, Matt C. -Original Message- From: neth [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 8:32 AM To: JMeter Users List Subject: monitor result Hi, I've a little problem to use monitor result; in a thread group i put 1 http auth. manager, 1 http request with correct value of each field , 1 constant timer and 1 monitor result graph. when i launch it, i can't get any performance graph from monitor result. Must i set them in a particular order? I've many http request (for my webservices test), where must i set monitor result component? So?example Thread group Http aut. manager http request monitor status timer http request http request http request http request http request monitor result. well so, doesn't work! can anybody help me? Can i have a example of a test plan with monitor result? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Check system status and performances
I guess it depends on what all you want to do. But I think just JMeter would be a good start. See http://jakarta.apache.org/jmeter/usermanual/get-started.html. Regards, Matt C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 10, 2007 11:37 AM To: jmeter-user Subject: Check system status and performances I'm a novice and I'd like to know if - apart from JMeter - are there some= others tools that i should install to check system status and performanc= es of J2EE web apps based on Apache + Tomcat + JBoss + MySQL. Thanks in advance. -- Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada - 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: Check system status and performances
[EMAIL PROTECTED] wrote: Are there some others tools that i should install to check system status and performanc = es of J2EE web apps based on Apache + Tomcat + JBoss + MySQL. AFAIK jmeter is primarily a functional load performance analysis tool, and not a network status monitoring tool. So, if you want to check how many users you can throw at your services before it breaks use JMeter. If you want a system that continuously watches your business-vital production servers, and sends you a email/sms/pages when it doesn't respond or has too little memory available, or the network is down, use a network status monitoring tool. For continuous status monitoring you could look at systems like Nagios or OpenNMS if you want java. There are plenty more, just search for network monitoring on your nearest search engine... http://www.nagios.org/ http://www.opennms.org/ Oh, and in nagios (I don't know OpenNMS) you can log the response time when it makes a check, so you'll be able to log responsiveness too. -- Fredrik Jonson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP and slow connection
On 11/06/07, Luca Maragnani [EMAIL PROTECTED] wrote: Thank you Sebb. sebb wrote: Which version of JMeter are you using? Which SOAP sampler are you using? Are you using SOAP/XML-RPC or WebService (SOAP) ? I'm using version 2.2 from stable downloads (for both SOAP Sampler and SlowHttpClientSocketFactory). Last, to get it work I had to overwrite in a custom library SlowHttpClientSocketFactory because the createSocket method returned always a null value. Yes - I did not bother implementing the method, as it was not needed for HTTPSampler2, but it should really have have thrown a NotSupported exception... I tried to find in trunk repository The trunk is old; the current code is in branches/rel-2-2. org.apache.jmeter.protocol.http.util.SlowHttpClientSocketFactory but it's no longer there. Documentation tell nothing about any exception in createSocket (http://jakarta.apache.org/jmeter/api/org/apache/jmeter/protocol/http/util/SlowHttpClientSocketFactory.html), so I think it lacks at least in version 2.2. I meant that the method should have thrown an Exception instead of returning null. Is there a nicer way to get slow connection simulation working with the SOAP Sampler Not sure what you mean by nicer - if the null method is fixed, does the SOAP sampler work OK? I mean that the code I wrote in previuos post is the quickest dirty solution. Accessing cps configuration for http exclude the https setting and even trying to understand setting from port is not correct... so I think other parameters are needed. Last but not least, this code does not honour the HttpConnectionParameters. OK, understood. I confirm that if the null method is fixed, SOAP Sampler works with slow socket. But which SOAP Sampler ... (see above) Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: monitor result
the monitor is only designed to work with tomcat 5.x status servlet. peter On 6/11/07, neth [EMAIL PROTECTED] wrote: Hi, I've a little problem to use monitor result; in a thread group i put 1 http auth. manager, 1 http request with correct value of each field , 1 constant timer and 1 monitor result graph. when i launch it, i can't get any performance graph from monitor result. Must i set them in a particular order? I've many http request (for my webservices test), where must i set monitor result component? So?example Thread group Http aut. manager http request monitor status timer http request http request http request http request http request monitor result. well so, doesn't work! can anybody help me? Can i have a example of a test plan with monitor result? Thanks
Re: SOAP and slow connection
Quoting sebb [EMAIL PROTECTED]: Are you using SOAP/XML-RPC or WebService (SOAP) ? I'm using SOAP/XML-RPC. Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Markov4JMeter: JMeter extension for probabilistic user behavior (Markov chains)
It works great. Please keep us posted on further updates. -Original Message- From: Mark McWhinney [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 4:48 PM To: 'JMeter Users List' Subject: RE: Markov4JMeter: JMeter extension for probabilistic user behavior (Markov chains) Hello André, That is very timely. I was just about to post a message about how to set up a Markov style load model in JMeter using the various types of controllers and branching logic. I will spend tomorrow setting up and using your controllers. Mark -Original Message- From: Andre van Hoorn [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 7:18 AM To: jmeter-user@jakarta.apache.org Subject: Markov4JMeter: JMeter extension for probabilistic user behavior (Markov chains) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, in order to generate workload based on probabilistic user behavior models (Markov chains) with a varying number of simulated users, I developed an extension for JMeter named Markov4JMeter. It adds two new logic controllers (Markov Session Controller, Markov State) representing a session model for an application and its states. Transitions between states can then be assigned guards (conditions) and actions (e.g. variable assignments) known from state machines. The transition probabilities are specified within external behavior model files (CSV files containing the transition matrix; templates can be generated conveniently). A mix of behavior models with associated relative frequencies of their occurence during a test execution can be specified. Moreover, the number of threads can be varied based on mathematical formulae e.g. specified using a BeanShell script. I implemented Markov4JMeter as a JMeter component (Jar file) which is installed by simply adding it to JMeter's lib/ext folder (it requires at least JRE 1.5). It is licensed under the Apache 2.0 license. The release (binary and source) including a tutorial (for getting a first idea) can be downloaded from http://markov4jmeter.sourceforge.net/ I would be glad if this extension is helpful to someone else. Feedback is greatly appreciated! Best regards, André - -- André van Hoorn Birkenweg 21 D-26725 Emden Telefon: +49 (4921) 954231 E-Mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGZXB/LKwmE5jzZmkRAjecAKCwN51wUbEylqybIAQoQ45r0INKkQCcDjkA TM0iVERrqp0Yi/7boJyP2UQ= =oaBU -END PGP SIGNATURE- - 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: SOAP and slow connection
Thanks. Tried a test - HTTPSampler2 also fails if the slow socket is enabled, so obviously the unimplemented method is now needed. I've added the missing code in SVN r546346; this will be in a nightly build shortly. Thanks for reporting the problem - no need to file a Bugzilla report now. I still need to fix the HTTPS version (not sure that ever can have worked). S. On 11/06/07, Luca Maragnani [EMAIL PROTECTED] wrote: Quoting sebb [EMAIL PROTECTED]: Are you using SOAP/XML-RPC or WebService (SOAP) ? I'm using SOAP/XML-RPC. Luca - 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: Writing regular expressions to log file
Great!! This works perfectly. Thank you for your help. -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 5:28 PM To: JMeter Users List Subject: Re: Writing regular expressions to log file One way would be to use the Java Request to return the value, and then add a listener to it to save the value. S. On 08/06/07, Jason Hane [EMAIL PROTECTED] wrote: I set up some tests in JMeter and they work beautifully. My only requirement is to extract certain text from the web pages using regular expression extractors and writing them to a log file. I haven't been able to find how to do this. Is there a way to write your regex's to a log file without a lot of junk? Thanks, Jason - 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]