Transaction Controller Bug
Hi Im using JMeter 2.3.2. I have the following structure Thread Group Transaction Controller HTTP Request BeanShell preprocessor The Pre processor does a sampler.addArgument(test,value); If the Generate Parent Sample on the Transaction Controller is unchecked the argument gets added to the Post HTTP Request. If the Generate Parent Sample on the Transaction Controller is checked, then this doesn't work. I could not find this as a bug in the Jmeter bugzilla. Can anyone confirm that this is indeed a bug? regards deepak
Re: Transaction Controller Bug
Hi The BSH is getting executed in both cases, however sampler.addArgument only works when the Generate Parent Sample is unchecked regards deepak On Fri, Apr 24, 2009 at 7:23 AM, sebb seb...@gmail.com wrote: On 23/04/2009, Deepak Shetty shet...@gmail.com wrote: Hi Im using JMeter 2.3.2. I have the following structure Thread Group Transaction Controller HTTP Request BeanShell preprocessor The Pre processor does a sampler.addArgument(test,value); If the Generate Parent Sample on the Transaction Controller is unchecked the argument gets added to the Post HTTP Request. If the Generate Parent Sample on the Transaction Controller is checked, then this doesn't work. I could not find this as a bug in the Jmeter bugzilla. Can anyone confirm that this is indeed a bug? I've not tried it, but it does look like a bug. Try adding a print() statement to the preprocessor. If it only appears in one case, then there's clearly a bug. Please raise a Bugzilla issue if so, thanks. regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Transaction Controller Bug
Hi thanks , that worked. regards deepak On Sun, Apr 26, 2009 at 10:59 AM, sebb seb...@gmail.com wrote: If you look in the log file, you should see why - the BSH sampler variable is set to the TransactionSampler. This is obviously a bug. As a temporary work-round, you can add the following to the BSH code: if (sampler instanceof org.apache.jmeter.control.TransactionSampler) { sampler=sampler.getSubSampler(); } On 26/04/2009, Deepak Shetty shet...@gmail.com wrote: Hi The BSH is getting executed in both cases, however sampler.addArgument only works when the Generate Parent Sample is unchecked regards deepak On Fri, Apr 24, 2009 at 7:23 AM, sebb seb...@gmail.com wrote: On 23/04/2009, Deepak Shetty shet...@gmail.com wrote: Hi Im using JMeter 2.3.2. I have the following structure Thread Group Transaction Controller HTTP Request BeanShell preprocessor The Pre processor does a sampler.addArgument(test,value); If the Generate Parent Sample on the Transaction Controller is unchecked the argument gets added to the Post HTTP Request. If the Generate Parent Sample on the Transaction Controller is checked, then this doesn't work. I could not find this as a bug in the Jmeter bugzilla. Can anyone confirm that this is indeed a bug? I've not tried it, but it does look like a bug. Try adding a print() statement to the preprocessor. If it only appears in one case, then there's clearly a bug. Please raise a Bugzilla issue if so, thanks. regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Bug when Module Controllers are named the same in the same transaction controller
Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak
Re: Bug when Module Controllers are named the same in the same transaction controller
Hi Its 2.3.2 r665936 regards deepak On Thu, May 7, 2009 at 7:47 AM, sebb seb...@gmail.com wrote: Which version of JMeter are you using? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Bug when Module Controllers are named the same in the same transaction controller
Hi just tried it out , it fails in both cases. regards deepak On Thu, May 7, 2009 at 8:56 AM, sebb seb...@gmail.com wrote: And are you using Generate parent sample or not on the Transaction Controller? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi Its 2.3.2 r665936 regards deepak On Thu, May 7, 2009 at 7:47 AM, sebb seb...@gmail.com wrote: Which version of JMeter are you using? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Bug when Module Controllers are named the same in the same transaction controller
D'oh I forgot to tell you the most important part, this only happens when I run in command line mode regards deepak On Thu, May 7, 2009 at 9:15 AM, sebb seb...@gmail.com wrote: In that case, please file a Bugzilla issue and attach the JMX file and the jmeter.log file. I've tried, and cannot reproduce the fault. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi just tried it out , it fails in both cases. regards deepak On Thu, May 7, 2009 at 8:56 AM, sebb seb...@gmail.com wrote: And are you using Generate parent sample or not on the Transaction Controller? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi Its 2.3.2 r665936 regards deepak On Thu, May 7, 2009 at 7:47 AM, sebb seb...@gmail.com wrote: Which version of JMeter are you using? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Bug when Module Controllers are named the same in the same transaction controller
Hi ok , it doesn't happen across Thread Groups. I have raised Bug 47165https://issues.apache.org/bugzilla/show_bug.cgi?id=47165and attached a sample script regards deepak On Thu, May 7, 2009 at 9:37 AM, sebb seb...@gmail.com wrote: Now I see the NPE. The Transaction Controller is not relevant and can be omitted. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: D'oh I forgot to tell you the most important part, this only happens when I run in command line mode regards deepak On Thu, May 7, 2009 at 9:15 AM, sebb seb...@gmail.com wrote: In that case, please file a Bugzilla issue and attach the JMX file and the jmeter.log file. I've tried, and cannot reproduce the fault. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi just tried it out , it fails in both cases. regards deepak On Thu, May 7, 2009 at 8:56 AM, sebb seb...@gmail.com wrote: And are you using Generate parent sample or not on the Transaction Controller? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi Its 2.3.2 r665936 regards deepak On Thu, May 7, 2009 at 7:47 AM, sebb seb...@gmail.com wrote: Which version of JMeter are you using? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Bug when Module Controllers are named the same in the same transaction controller
I meant that if I use two different thread groups I can have the module controller have the same name. (but just 1 per thread group with the same name) regards deepak On Thu, May 7, 2009 at 11:38 AM, sebb seb...@gmail.com wrote: On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi ok , it doesn't happen across Thread Groups. Not sure what you mean by that. I have raised Bug 47165https://issues.apache.org/bugzilla/show_bug.cgi?id=47165and attached a sample script Thanks. regards deepak On Thu, May 7, 2009 at 9:37 AM, sebb seb...@gmail.com wrote: Now I see the NPE. The Transaction Controller is not relevant and can be omitted. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: D'oh I forgot to tell you the most important part, this only happens when I run in command line mode regards deepak On Thu, May 7, 2009 at 9:15 AM, sebb seb...@gmail.com wrote: In that case, please file a Bugzilla issue and attach the JMX file and the jmeter.log file. I've tried, and cannot reproduce the fault. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi just tried it out , it fails in both cases. regards deepak On Thu, May 7, 2009 at 8:56 AM, sebb seb...@gmail.com wrote: And are you using Generate parent sample or not on the Transaction Controller? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi Its 2.3.2 r665936 regards deepak On Thu, May 7, 2009 at 7:47 AM, sebb seb...@gmail.com wrote: Which version of JMeter are you using? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: basic newbie question
Hi have it included within the Name text field of your Test. e.g. In an HTTP request sampler you would have Request Page with ${Value_1} regards deepak On Thu, May 7, 2009 at 1:27 PM, Otwell, Christopher E (N-SAIC) christopher.e.otw...@lmco.com wrote: Hi, I'm very new to JMeter and trying to learn it. Under the Test Plan (top) section, If I create a bunch of User Defined Variables such as: Value_1${__Random(500,1000,,)} Value_2${__Random(1000,1500,,)} Value_3${__Random(1500,2000,,)} Then latest, I use Constant Timer with a Thread Delay field value of: $(Value_1) How can I also report this $(Value_1) Variable back to the Aggregate Chart table section under the Label column, or in some other location, so that I can tell what Random number was assigned? Chris =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I love it when a plan comes together. -- Col. John Hannibal Smith, The A-Team =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Christopher E. Otwell -- AOC WSI -- Integration Specialist Work: 719-277-4659 -- christopher.e.otw...@lmco.com Home: 719-205-1584 -- otwe...@gmail.com FAX#: 719-277-9555 -- christopher.e.otw...@saic.com - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Bug when Module Controllers are named the same in the same transaction controller
Hi thanks. I wont be able to test out the fix anytime soon though , test writing is taking precedence :) regards deepak On Fri, May 8, 2009 at 10:27 AM, sebb seb...@gmail.com wrote: OK, I see. BTW, I think I have fixed the bug. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: I meant that if I use two different thread groups I can have the module controller have the same name. (but just 1 per thread group with the same name) regards deepak On Thu, May 7, 2009 at 11:38 AM, sebb seb...@gmail.com wrote: On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi ok , it doesn't happen across Thread Groups. Not sure what you mean by that. I have raised Bug 47165https://issues.apache.org/bugzilla/show_bug.cgi?id=47165and attached a sample script Thanks. regards deepak On Thu, May 7, 2009 at 9:37 AM, sebb seb...@gmail.com wrote: Now I see the NPE. The Transaction Controller is not relevant and can be omitted. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: D'oh I forgot to tell you the most important part, this only happens when I run in command line mode regards deepak On Thu, May 7, 2009 at 9:15 AM, sebb seb...@gmail.com wrote: In that case, please file a Bugzilla issue and attach the JMX file and the jmeter.log file. I've tried, and cannot reproduce the fault. On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi just tried it out , it fails in both cases. regards deepak On Thu, May 7, 2009 at 8:56 AM, sebb seb...@gmail.com wrote: And are you using Generate parent sample or not on the Transaction Controller? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi Its 2.3.2 r665936 regards deepak On Thu, May 7, 2009 at 7:47 AM, sebb seb...@gmail.com wrote: Which version of JMeter are you using? On 07/05/2009, Deepak Shetty shet...@gmail.com wrote: Hi I have the following structure Disabled Thread Group Simple Controller HTTP Request Thread Group Transaction Controller Module Controller named Test -- Using Simple Controller Defined above Module Controller named Test -- Using Simple Controller Defined above This fails with NullPointerException 2009/05/06 22:22:36 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: java.lang.NullPointerException at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:976) at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:959) at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:337) at java.lang.Thread.run(Thread.java:595) If i change the name of the second module to some other value e.g. Test 2 then this works correctly. Is there some limitation on using Module Controllers? regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
Re: How to group multiple HTTP requests into one logical unit and measure its response time?
Hi use the transaction controller from Under Add Logic Controller and create all your requests under it regards deepak On Fri, May 8, 2009 at 1:55 PM, Nguyen Dao mr.nguyen...@gmail.com wrote: Hi everyone, I am new to JMeter and new to the field of Software Testing. I have a problem that I hope some of you would have the time to help me with. I have searched the archived email threads but did not get any hits. We have an AJAX application in which one user action (such as a click on a button) would trigger multiple HTTP requests (seen from Fiddler or Firefox HTTP Header). I am asked to measure the performance on each of those actions under a certain load (say 100 users). Is there a way to configure JMeter to group those individual HTTP requests into one transaction and sum up the response their response times? The Aggregate Report does provide min/avg/max measurement for each HTTP request but seems impossible to visually see which request belongs to which user action. Likewise, the test result raw data does have elapsed/response time for each individual HTTP requests, but it seems almost impossible to organize the data based on the user action/transaction. Please help or point me to the right direction. Thank you, Nguyen Dao mr.nguyen...@gmail.com
Re: Qry: Help needed to parameterize SOAP/XML-RPC sampler?
Hi what do you want to parameterise and how do you want this data kept? If your structure of the SOAP request is the same and you only want to parameterise the data within the tag , you can still use a CSV data set along with a while loop . ( e.g. Thread group while controller (${__javascript(${var} != EOF)}) Make Request soap sometag${someothervar}/sometag /soap CSV Data Set Config If you have multiple files that you want to test , then by following a naming convention for them, or keeping the names within a File, you can still iterate and make the requests. regards deepak On Sat, May 9, 2009 at 3:13 AM, Mohamed Niyas niyas.m...@gmail.com wrote: Hi team, I am testing XML-RPC request on HTTP. I am using SOAP/XML-RPC sampler. It is working fine if a single request is being used in the test plan. The file input can be given in 2 ways here. we can use the XML request in the data field or we can provide the file name which contains the XML request. *What I want from here:* I can not parameterise the test script with multiple XML requests as we do in usual CSV data-set with input variable names. How can i dynamically give the input to my test script for this SOAP/XML-RPC sampler? If i use 5 threads, if my CSV input has 5 input data, Then it should iterate one by one as it will do in HTTP samplers. Any help in this highly appreciated. Regards Mohamed Niyas M +91 96633 29080
Re: Qry: Help needed to parameterize SOAP/XML-RPC sampler?
Hi cant see what you have marked in red, but just replace it with ${whateverVarNameYouWant} and use a CSV data set config with a while loop controller. The CSV Data Set config would have to read the variable data from your file (into the variable specified above). You can run it for single or multiple threads regards deepak On Sun, May 10, 2009 at 10:45 PM, Mohamed Niyas niyas.m...@gmail.comwrote: Hi Deepak, Thanks for your reply. i tried the settings that you have suggested. But i have some questions to clarify or i might have been misunderstood your reply. Before going to the actual, i just wanted to give you some details of my test with an XML request. I am not testing any SOAP request, rather i am just posting a XML request over HTTP thru soap/xml-rpc sampler. *A sample XML Request will be like this.* ?xml version=1.0 encoding=UTF-8?Request SourceRequestorID Client=XMLApp4 EMailAddress=octxmla...@gmail.com Password=oct...@app4 /RequestorPreferences Language=en RequestModeSYNCHRONOUS/RequestMode /RequestorPreferences /SourceRequestDetailsSearchCityRequest CountryCode=GBCityName![CDATA[AM]]/CityName /SearchCityRequest/RequestDetails/Request When i paste this content in the Sampler Data field area executing it that will be working well i am getting the right result. In the otherway, if i save the content of the above in a file given the file path as input, that will also working well. Questions: As you well said, my XML request format not going to be changed. But some of the XML tag data going to be changed dynamically to differ from each request. Those dynamic tags marked as RED color. From here please provide me some inputs how to iterate it for different number of threads? Even i am ready to make each single request in a different flat file. My ultimate goal is to traverse one by one if the no of threads are more than one. Hope you understand my questions well. Regards Mohamed Niyas M +91 96633 29080 On Sat, May 9, 2009 at 8:29 PM, Deepak Shetty shet...@gmail.com wrote: Hi what do you want to parameterise and how do you want this data kept? If your structure of the SOAP request is the same and you only want to parameterise the data within the tag , you can still use a CSV data set along with a while loop . ( e.g. Thread group while controller (${__javascript(${var} != EOF)}) Make Request soap sometag${someothervar}/sometag /soap CSV Data Set Config If you have multiple files that you want to test , then by following a naming convention for them, or keeping the names within a File, you can still iterate and make the requests. regards deepak On Sat, May 9, 2009 at 3:13 AM, Mohamed Niyas niyas.m...@gmail.com wrote: Hi team, I am testing XML-RPC request on HTTP. I am using SOAP/XML-RPC sampler. It is working fine if a single request is being used in the test plan. The file input can be given in 2 ways here. we can use the XML request in the data field or we can provide the file name which contains the XML request. *What I want from here:* I can not parameterise the test script with multiple XML requests as we do in usual CSV data-set with input variable names. How can i dynamically give the input to my test script for this SOAP/XML-RPC sampler? If i use 5 threads, if my CSV input has 5 input data, Then it should iterate one by one as it will do in HTTP samplers. Any help in this highly appreciated. Regards Mohamed Niyas M +91 96633 29080
Re: ThreadGroup and User Login Account
1. You can use a User Parameters Pre Processor to use a different username and password for each thread group. You can use a module controller so that you define the Login test in one place and just change the data you pass to it 2. Depends on your requirement. If you wish to test unique users then that is what you have to do , (since using the same username may give you better results if your application does caching. In test environments we simply update the password to known values and query the database to give us N number of usernames and use those, dunno how popular this approach is :) We also sometimes combine the creation of the user process as part of the script. regards deepak On Mon, May 11, 2009 at 11:46 AM, Nguyen Dao mr.nguyen...@gmail.com wrote: Hi everyone, I need to load test a JSF application with 500 users, and need your tips/recommendations on how to go about doing that. Please help! *MY CURRENT TEST PLAN:* ** ThreadGroup1 (100 threads) -- Login -- Search for a record of type # 1 -- Switching between different views -- Logout ThreadGroup2 (100 threads) -- Login -- Search for a record of type # 2 -- Switching between different views -- Logout ThreadGroup3 (100 threads) -- Login -- Search for a record of type # 1 -- Switching between different views -- Logout ThreadGroup4 (100 threads) -- Login -- Search for a record of type # 1 -- Switching between different views -- Logout ThreadGroup5 (100 threads) -- Login -- Search for a record of type # 1 -- Switching between different views -- Logout *QUESTIONS:* ** (1) How to configure each thread to use a unique test login account? The application does not allow one login account to have two concurrent logged-on sessions. For example, if thread # 1 of ThreadGroup1 logs on using testuser1, then thread # 2 of ThreadGroup1 must use something else, otherwise the session for thread # will be expired/destroyed requiring a logging in again. (2) What is a popular practice for load testing many users? Creating 500 test login accounts sounds a bit overkill. Thank you, Nguyen Dao mr.nguyen...@gmail.com
Re: Jmeter launcing prob
hi its not the jar its the version of Java thats in your Path.(should be atleast java 1.4). Change your path to point to the correct veresion of java regards deepak On Mon, May 11, 2009 at 10:53 PM, gpub affablepr...@gmail.com wrote: Hi, Jmeter batch file is showing errors Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/jmeter/NewDriver (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) But Jmeter gets launched with ApacheJMeter.jar file under \Jmeter\jakarta-jmeter-2.3\bin folder Does this affect any operation or any prob it will give in future ?? -- View this message in context: http://www.nabble.com/Jmeter-launcing-prob-tp23496603p23496603.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Jmeter launcing prob
Multiple ways In unix export PATH=pathtoyourjava:$PATH In windows set PATH=pathtoyourjava;%PATH% and then launch jmeter from the same window. OR You can also set the JM_LAUNCH enivornment variable to point to your java. To diagnose modify jmeter.bat or jmeter (depending on your OS) to print out the version (using -version) regards deepak On Mon, May 11, 2009 at 11:11 PM, gpub affablepr...@gmail.com wrote: yes and how could i be suppose to do it.. -- Change your path to point to the correct version of java i already have version j2sdk-1_4_2_16 on my sys Deepak Shetty wrote: hi its not the jar its the version of Java thats in your Path.(should be atleast java 1.4). Change your path to point to the correct veresion of java regards deepak On Mon, May 11, 2009 at 10:53 PM, gpub affablepr...@gmail.com wrote: Hi, Jmeter batch file is showing errors Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/jmeter/NewDriver (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) But Jmeter gets launched with ApacheJMeter.jar file under \Jmeter\jakarta-jmeter-2.3\bin folder Does this affect any operation or any prob it will give in future ?? -- View this message in context: http://www.nabble.com/Jmeter-launcing-prob-tp23496603p23496603.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Jmeter-launcing-prob-tp23496603p23496741.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Jmeter launcing prob
Hi perhaps Im missing something , how are you launching Jmeter (whatever you have sent is showing that you are using jre1.3.1 , you need atleast version 1.4)?. The instructions i have given are if you are running jmeter.bat . If you are running this via some IDE , then you'll have to change the IDE settings or the PATH environment variable Goto Control panel --system -- advanced system settings -- environment variables (This is for vista) Then In the System variables find PATH and append the path to your JDK1.4/bin at the start (note this changes the path for your entire system. you can do this just for your IDE or whatever if you want) regards deepak On Mon, May 11, 2009 at 11:32 PM, gpub affablepr...@gmail.com wrote: hey deepak, please let me know where to set this path as the jmeter is running fine on my system, with the this ApacheJMeter.jar under bin forlder but i need to know that will it cause any problem?? And another thing is that when i ran my scripsts ... the Jintiator runs and give me these Oracle JInitiator: Version 1.3.1.26 Using JRE version 1.3.1.26-internal Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\gubhi Proxy Configuration: Manual Configuration Proxy: localhost:8080 Proxy Overrides: JAR cache enabled Location: C:\Documents and Settings\gubhi\Oracle Jar Cache Maximum size: 50 MB Compression level: 0 --- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage q: hide console s: dump system properties t: dump thread list x: clear classloader cache 0-5: set trace level to n Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndforms.jarfrom JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar from JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndswing.jarfrom JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndctx.jar from JAR cache Loading http://smcorxxx.x.com:8003/OA_JAVA/oracle/apps/fnd/jar/fndlist.jarfrom JAR cache connectMode=Socket serverHost=smcoraapp1.X.com serverPort=9003 Forms Applet version is : 60825 Loading http://smcoraapp1.x.com:8003/OA_JAVA/oracle/apps/fnd/jar/fndutil.jar from JAR cache Any idea ?? Deepak Shetty wrote: Multiple ways In unix export PATH=pathtoyourjava:$PATH In windows set PATH=pathtoyourjava;%PATH% and then launch jmeter from the same window. OR You can also set the JM_LAUNCH enivornment variable to point to your java. To diagnose modify jmeter.bat or jmeter (depending on your OS) to print out the version (using -version) regards deepak On Mon, May 11, 2009 at 11:11 PM, gpub affablepr...@gmail.com wrote: yes and how could i be suppose to do it.. -- Change your path to point to the correct version of java i already have version j2sdk-1_4_2_16 on my sys Deepak Shetty wrote: hi its not the jar its the version of Java thats in your Path.(should be atleast java 1.4). Change your path to point to the correct veresion of java regards deepak On Mon, May 11, 2009 at 10:53 PM, gpub affablepr...@gmail.com wrote: Hi, Jmeter batch file is showing errors Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/jmeter/NewDriver (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) But Jmeter gets launched with ApacheJMeter.jar file under \Jmeter\jakarta-jmeter-2.3\bin folder Does this affect any operation or any prob it will give in future ?? -- View this message in context: http://www.nabble.com/Jmeter-launcing-prob-tp23496603p23496603.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Jmeter-launcing-prob-tp23496603p23496741.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View
Re: Help
Id say ask sebb for his bank details regards deepak On Tue, May 12, 2009 at 4:50 AM, Hembha, Ambanna ambanna.hem...@logica.comwrote: Hi all, If I need to get an instant technical support about Jmeter Tool whom should I contact? If it is payable also I'm ready for that. -Ambs -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: 23 April 2009 11:39 To: JMeter Users List Subject: Re: Help On 23/04/2009, Hembha, Ambanna ambanna.hem...@logica.com wrote: Hi Drew, Oh! Of course stubs will be responding quicker than the real environment I'll consider this Alarm, thank you very much . Still with this constraints Can use the Jmeter ? JMeter does not care how your application is constructed, but of course it must be able to interact with your application. All that matters is the method used to access the application. JMeter supports HTTP(S) and various other request/response protocols - please see the documentation for full details. Note that JMeter does not support testing GUI applications. Thank Ambs -Original Message- From: drubix [mailto:andrew.schr...@gmail.com] Sent: 23 April 2009 02:26 To: jmeter-user@jakarta.apache.org Subject: RE: Help Hi Ambs, As your stubs are going to be far quicker at servicing request than the third party application (presumably) the response times are going to be much shorter than they would be in the actual live environment. Your testing environment should be identical to your live environment in every way. A testing environment that has to do less work to service a request than a live environment is not going to give you meaningful results. Drew Hembha, Ambanna wrote: Hi Zack, Thanks for your support, actually I need to do performance and load test of some web application it self. We are getting incoming data to our product then process data with some other product then update the data base. Since the incoming data and processing of the data are the third party products, so we have developed some simulators i.e. nothing but stubs I called in last email So is it worth using for concurrent user test? I need to calculate the time taken to process the one request? Thanks Ambs -Original Message- From: Zakir Sayed [mailto:zakir.sa...@iolo.com] Sent: 21 April 2009 20:59 To: JMeter Users List Subject: RE: Hi Hi Ambs, What did you mean by test stubs? Please elaborate and also note that Jmeter is used to test web server's (web application) performance like something Load testing or Stress testing (Although Functional testing is still possible but it's not an ideal application). Thanks, Zack Sayed -Original Message- From: Hembha, Ambanna [mailto:ambanna.hem...@logica.com] Sent: Monday, April 20, 2009 8:12 AM To: JMeter Users List Subject: Hi Hi, I need to test a application with few test stubs, does the Jmeter supports this ? - thanks Ambs Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete
Re: Jmeter launcing prob
: dump system properties t: dump thread list x: clear classloader cache 0-5: set trace level to n Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndforms.jarfrom JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar from JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndewt.jarfrom JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndswing.jarfrom JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndctx.jar from JAR cache Loading http://smcorxxx.x.com:8003/OA_JAVA/oracle/apps/fnd/jar/fndlist.jarfrom JAR cache connectMode=Socket serverHost=smcoraapp1.X.com serverPort=9003 Forms Applet version is : 60825 Loading http://smcoraapp1.x.com:8003/OA_JAVA/oracle/apps/fnd/jar/fndutil.jar from JAR cache Deepak Shetty wrote: Hi perhaps Im missing something , how are you launching Jmeter (whatever you have sent is showing that you are using jre1.3.1 , you need atleast version 1.4)?. The instructions i have given are if you are running jmeter.bat . If you are running this via some IDE , then you'll have to change the IDE settings or the PATH environment variable Goto Control panel --system -- advanced system settings -- environment variables (This is for vista) Then In the System variables find PATH and append the path to your JDK1.4/bin at the start (note this changes the path for your entire system. you can do this just for your IDE or whatever if you want) regards deepak On Mon, May 11, 2009 at 11:32 PM, gpub affablepr...@gmail.com wrote: hey deepak, please let me know where to set this path as the jmeter is running fine on my system, with the this ApacheJMeter.jar under bin forlder but i need to know that will it cause any problem?? And another thing is that when i ran my scripsts ... the Jintiator runs and give me these Oracle JInitiator: Version 1.3.1.26 Using JRE version 1.3.1.26-internal Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\gubhi Proxy Configuration: Manual Configuration Proxy: localhost:8080 Proxy Overrides: JAR cache enabled Location: C:\Documents and Settings\gubhi\Oracle Jar Cache Maximum size: 50 MB Compression level: 0 --- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage q: hide console s: dump system properties t: dump thread list x: clear classloader cache 0-5: set trace level to n Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndforms.jarfrom JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar from JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndswing.jarfrom JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndctx.jar from JAR cache Loading http://smcorxxx.x.com:8003/OA_JAVA/oracle/apps/fnd/jar/fndlist.jarfrom JAR cache connectMode=Socket serverHost=smcoraapp1.X.com serverPort=9003 Forms Applet version is : 60825 Loading http://smcoraapp1.x.com:8003/OA_JAVA/oracle/apps/fnd/jar/fndutil.jar from JAR cache Any idea ?? Deepak Shetty wrote: Multiple ways In unix export PATH=pathtoyourjava:$PATH In windows set PATH=pathtoyourjava;%PATH% and then launch jmeter from the same window. OR You can also set the JM_LAUNCH enivornment variable to point to your java. To diagnose modify jmeter.bat or jmeter (depending on your OS) to print out the version (using -version) regards deepak On Mon, May 11, 2009 at 11:11 PM, gpub affablepr...@gmail.com wrote: yes and how could i be suppose to do it.. -- Change your path to point to the correct version of java i already have version j2sdk-1_4_2_16 on my sys Deepak Shetty wrote: hi its not the jar its the version of Java thats in your Path.(should be atleast java 1.4). Change your path to point to the correct
Re: Jmeter launcing prob
Your echo path shows C:\Program Files\Oracle\jre\1.3.1\bin which is what will get picked up. Modify you path using control panel -- system -- environment variables to change the Path to have a Java 1.4\bin at the start. OR create a file called runjmeter.bat in the jmeter bin directory and use something like set PATH=PATHTOJAVA1.4BIN;. jmeterw Note this is the Path to Sun JDK 1.4 (not jmeter) , if you dont have it , download it from sun's site regards deepak On Tue, May 12, 2009 at 11:39 PM, gpub affablepr...@gmail.com wrote: allright!! the java console error is removed[actually was nt an error :) ], option unchecked Checked version with echo %path% D:\oracle\ora92\bin; C:\Program Files\Oracle\jre\1.3.1\bin; C:\Program Files\Oracle\jre\1.1.8\bin; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\Program Files\Intel\DMIX Jmeter is in --gubhi\Desktop\Jmeter\jakarta-jmeter-2.3\bin now what path to modify in jmeter.bat and what to comment of below few details? Environment variables that can be defined externally: rem rem JMETER_BIN - JMeter bin directory (must end in \) rem JM_LAUNCH - java.exe (default) or javaw.exe rem JVM_ARGS - additional java options, e.g. -Dprop=val rem rem = if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe -- -- and last string is %JM_START% %JM_LAUNCH% %JVM_ARGS% %ARGS% -jar %JMETER_BIN%ApacheJMeter.jar %JMETER_CMD_LINE_ARGS% Regards -GP Deepak Shetty wrote: Oracle Client does put its version of java on the PATH. Open a command window and do an echo %PATH% see which version of java is first. Alternately modify jmeter.bat where it is launching java and comment out the rest and just have a -version to see what version of java is getting picked up. Secondly you need to see why you are getting a forbidden response . theres no performance impact disabling them, but your test may not be right with these disabled. The popup you are getting is the java console window for the browser is it not? You can goto control panel -- java -- advanced tab -- java console and you probably have show console checked or something. Your app is using applets and this is just the java console showing what its doing, these arent errors regards deepak On Tue, May 12, 2009 at 9:27 PM, gpub affablepr...@gmail.com wrote: Hi well i am sure about the version, Java web start shows this (Java Web Start 1.4.2_16 Console, started Wed May 13 09:04:12 IST 2009 Java 2 Runtime Environment: Version 1.4.2_16 by Sun Microsystems Inc.) Regarding the jmeter lauch i tell you what happened, 1. Installed Sdk 2. Then successsfully launced @ Desktop\Jmeter\jakarta-jmeter-2.3\bin with jmeter.bat file 3. Then i installed the oracle Oracle 9i client, jmeter.bat file gaves error (Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/jmeter/NewDriver (Unsupported major.minor version 48.0.. we all knew about this )) 4. Then i unintalled the jre and then installed again. 5. And jmeter sucessfully launched @ Desktop\Jmeter\jakarta-jmeter-2.3\bin with ApacheJMeter.jar but gives the same errror(Exception in thread main java.lang.UnsupportedClassVersionError: ) with jmeter.bat file 6. Now i record my script with http proxy and re-run it after saving the test plan 7. but 2 samplers got failed(permisson prb), i have dissabled them though, now its fine. 8. But what happened when i record my oracle application(at one stage some popups in my application with orcale FROMS need to be recorded) and there comes the Java console icon on the bottom right(where sys date shown) which reads this: Oracle JInitiator: Version 1.3.1.26 Using JRE version 1.3.1.26-internal Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\gubhi Proxy Configuration: Manual Configuration Proxy: localhost:8080 Proxy Overrides: JAR cache enabled Location: C:\Documents and Settings\gubhi.XX\Oracle Jar Cache Maximum size: 50 MB Compression level: 0 --- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage q: hide console s: dump system properties t: dump thread list x: clear classloader cache 0-5: set trace level to n Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndforms.jarfrom JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar from JAR cache Loading http://smcor..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar from JAR cache Loading http://smcorxxx..com:8003/OA_JAVA/oracle/apps/fnd/jar/fndswing.jarfrom JAR cache
Re: Does JMeter support these types of test cases?
1. JMeter should be able to record anything your browser does (using the HTTP Proxy), so webservice calls yes, never tried RMI calls. 2. What do you mean? You can write Beanshell tests that can run arbitrary java code (plus plugins for junit tests etc).You could also write your own sampler There is a checkbox called download embedded resources with the HTTPRequest which can download linked images, css etc. But for say javascripted urls (e.g. AJAX, you probably need to do a little more work either using regex extractors or I believe HTML Link processors) On Wed, May 13, 2009 at 10:42 AM, Tony Anecito adanec...@yahoo.com wrote: Hi, First I would like to thank the JMeter Team for producing such a great tool. I have used HP Performance Center and I am looking into JMeter to do the following: 1. Record/replay Web Start client that uses RMI or JAX_WS 2. Write java code that can be compiled/run by JMeter. After downloading the tool I have one question: 1. I tried a HTTP request and it looks as if it does not do any subsequent requests that are a part of the response such as images for example. Is there a way to do that? Seems you can not judge user experience without that capability. I am sure I will have other questions as I dig into the tool some more. Thanks, -Tony - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Does JMeter support these types of test cases?
I guess any TCP Proxy would work to record the script(assuming you can modify your code to call out through this proxy) .However you would have to write something to translate this into a Jmeter script I use beanshell mostly because I can modify the test scripts without the compile cycle, which in the initial stages saves a lot of time. regards deepak On Wed, May 13, 2009 at 12:32 PM, Tony Anecito adanec...@yahoo.com wrote: Hi sebb, Thanks. I appreciate the suggestions. Not knowing how complex the code might get my preference is to use the Java Request interface. Not sure yet what range of options or abilities it has but seems like Beanshell has it's own language and I want to stick to a standard that is currently supported and looks like Beanshell is quite old from what I saw on it's web site and no updates for some number of years. One of the problems I am looking at is being able to record RMI calls and generate a test script. I can not alter the java code of the client. I am not sure what can be done by JMeter to solve this since it seems designed to only record http or what goes through a http proxy. Definitely good for most cases but not unique ones like mine. My other option is to create java code that hopefully can be run by JMeter. This code would load up the factories for libraries that would in turn execute RMI calls. Many thanks and I will look more into what you said for Java Request Interface. -Tony --- On Wed, 5/13/09, sebb seb...@gmail.com wrote: From: sebb seb...@gmail.com Subject: Re: Does JMeter support these types of test cases? To: JMeter Users List jmeter-user@jakarta.apache.org Date: Wednesday, May 13, 2009, 1:08 PM Both the Java Request sampler and the BeanShell sampler can execute arbitrary Java code. The BeanShell sampler is good for prototyping, but of course needs the BSH interpreter to run the code. So if you want to run large numbers of threads it might be necessary to write an embedded Java sampler. This can either be done by implementing the Java Request interface, or by implementing your own sampler (there are some examples you can extend). In both cases you should be able to take the protoype code from the BSH and add that to the appropriate class. You then create a jar and stick it in the lib/ext directory. On 13/05/2009, Tony Anecito adanec...@yahoo.com wrote: Hi Adrian, I will look at that right away. Hopefully Beanshell does what I need I did see the Java Request sampler but it seemed too limited when I first saw it. I will check the java docs to see how it is used. Regards, -Tony --- On Wed, 5/13/09, Fitzpatrick, Adrian adri...@revenue.ie wrote: From: Fitzpatrick, Adrian adri...@revenue.ie Subject: RE: Does JMeter support these types of test cases? To: JMeter Users List jmeter-user@jakarta.apache.org Date: Wednesday, May 13, 2009, 12:24 PM Hi, Re. point #2, there's a Java Request sampler in JMeter - you can used this to orchestrate the execution of any Java code in Jmeter. Just implement the appropriate interface in your test class (see the docs), put the code on the jmeter class path and then add and configur the Java Request samplers. Simples :) - Adrian -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: 13 May 2009 18:48 To: JMeter Users List Subject: Re: Does JMeter support these types of test cases? 1. JMeter should be able to record anything your browser does (using the HTTP Proxy), so webservice calls yes, never tried RMI calls. 2. What do you mean? You can write Beanshell tests that can run arbitrary java code (plus plugins for junit tests etc).You could also write your own sampler There is a checkbox called download embedded resources with the HTTPRequest which can download linked images, css etc. But for say javascripted urls (e.g. AJAX, you probably need to do a little more work either using regex extractors or I believe HTML Link processors) On Wed, May 13, 2009 at 10:42 AM, Tony Anecito adanec...@yahoo.com wrote: Hi, First I would like to thank the JMeter Team for producing such a great tool. I have used HP Performance Center and I am looking into JMeter to do the following: 1. Record/replay Web Start client that uses RMI or JAX_WS 2. Write java code that can be compiled/run by JMeter. After downloading the tool I have one question: 1. I tried a HTTP request and it looks as if it does not do any subsequent requests that are a part of the response such as images for example. Is there a way
Re: how to process params after beeing read from file
Hi add a beanshell preprocessor to your http sample and use a String value = vars.get(YOURVARNAME); //manipulate the string vars.put(YOURVARNAME, value); regards deepak On Mon, May 18, 2009 at 2:50 PM, Reuben A Christie chris...@knewco.comwrote: I have csv file with all parameters that I want to use in my weburl test. I am using CSV data set config for reading these parameters in, and making them available in the HTTP Request Sampler. Now the problem is following : before I use this parameter in making HTTP Request, I want to preprocess it (like stripoff first few characters from the param value) how do i do it ? please help.
Re: How to generate a load of Y number of users using only X number of actual login accounts? (Where XY)
Hi you seem to have conflicting requirements. What you are simulating wont be anything close to what the browser actually does (I believe IE doesn't send more than 2 requests in parallel to any one domain). you are planning to have the same session hit the server with multiple threads , which isnt the workload of 500 users. Lets say each new User Session on the server has a footprint of 1 MB then your test would only simulate a memory usage of 1Mb not 500 MB (2) I want to simulate a workload of 500 users but do not want to create 500 actual test login accounts. Unless there is a license issue or something , dont have this restriction. In any case the only way I can think of is have two thread groups. Configure your test plan to run your thread groups serially. Login in the first thread group , extract session id, use beanshell to set this as a Jmeter Property (not variable) In the next thread group write your test for n Threads and use the session id from the property So Test Plan (Check Run Thread Groups Consecutively) Thread Group 1 Login Request RegEx Extractor for session Id Bean Shell listener to set session id as property (read the variable and set it using the props object) Thread Group 2 Test (Pass session id reading it from property) ${__property(sessionid)} Ive never tested this btw... regards deepak On Wed, May 20, 2009 at 8:06 AM, Nguyen Dao mr.nguyen...@gmail.com wrote: Hi everyone, *DESCRIPTION OF MY SITUATION:* (1) The application I am testing is session-sensitive; I can not log in the second time using the same user as the first time without expiring the first time's session. (2) I want to simulate a workload of 500 users but do not want to create 500 actual test login accounts. (3) I am currently using the CSV Data Set Config for obtaining login account for each thread. (4) I am also using the Regular Expression Extractor to extract the jsessionid from the URL for subsequent request. *QUESTION:* ** (1) How can I set up my test plan to login only once under a ThreadGroup, and share the session with all threads? I have attempted to use the Once Only Controller to include the login request, but results shows that JMeter sends it for every thread. In other words, the scope of Once Only Controller seems to be within the Thread, rather than the ThreadGroup. Or perhaps, I am doing something wrong. (2) If possible, can you provide a high level skeleton for the test plan? For example: ThreadGroup -- Once Only Controller Login Requests ... ... etc. Thank you, Nguyen mr.nguyen...@gmail.com
Re: how to escape special characters in response assertion
hi use \ Basically the same one you would use in a Java regex. regards deepak On Thu, May 21, 2009 at 7:51 AM, Sree ... gattasrika...@gmail.com wrote: Hi I was executing some scripts in JMeter, one of them contains Response assertion but my response assertion fails everytime if it contains special characters say / ' : etc.. I need to put some escape character for each of the special characters but i dont know what it should be Can someone please help and if there is any documentation related to that can you please link that to me? Thanks in advance Srikanth.G Google, Ind Hyderabad
Re: Performance Testing with JMeter on the cmd line or Ant???
Well all the advantages that ANT provides (You can make the test part of your build, be notified of failures, generate the HTMl report by styling etc) I On Thu, May 21, 2009 at 9:29 AM, Andyy andlo...@gmail.com wrote: Evening, When performance testing what are the benefits to using Ant versus the command line in non GUI Mode??? Or vise versa??? Cheers.. -- View this message in context: http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Anttp23656302p23656302.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Performance Testing with JMeter on the cmd line or Ant???
Jmeter only has as much memory as the Java VM (-Xmx) which is the same for ANT (though yes you would have ANT's footprint), I prefer ANT myself , more convenient , portable etc , havent had any memory issues that wouldnt have happened on the command line.we pass environment specific parameters etc easily from the Ant script... I guess its a matter of personal preference. I dont know if ANT works when you are using Jmeter to run clients remotely so that might be another reason for you... regards deepak On Thu, May 21, 2009 at 10:19 AM, Andyy andlo...@gmail.com wrote: Hi Deepak, Cheers for the reply. And tell me thou in terms of Stress Testing I would see the advantages you added as minor (as i may not want to include them in my build be manual monitoring its progress and results too large to convert to html) whereas on the downside Ant itself will require extra Memory on the box. Reducing its availability to JMeter. Whereas running from the cmd line JMeter can make use of all available memory. So in terms of handling resources etc where would the advantages lie in Ant?? Thanks again, Andyy... Deepak Shetty wrote: Well all the advantages that ANT provides (You can make the test part of your build, be notified of failures, generate the HTMl report by styling etc) I On Thu, May 21, 2009 at 9:29 AM, Andyy andlo...@gmail.com wrote: Evening, When performance testing what are the benefits to using Ant versus the command line in non GUI Mode??? Or vise versa??? Cheers.. -- View this message in context: http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Anttp23656302p23656302.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Anttp23656302p23657067.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Performance Testing with JMeter on the cmd line or Ant???
Hi you can write a preprocessor or a listener to null out or remove the variables. I assume you are doing something iteratively? You might experiment with the reset bsh.interpreter flag For out of memory jvmarg value=-Xmx1024m/ -- max Heap size , you have set it to 1 GB jvmarg value=-XX:MaxPermSize=64m/ -- max Perm space , should be enough Increasing Xmx may cause the problem to show up later or might even fix it , but you should have enough RAM on your machine.. regards deepak On Thu, May 21, 2009 at 11:06 AM, Andyy andlo...@gmail.com wrote: I get you, that makes sense. I've actually been using ant all along but have been getting out of memory errors and taught Ant might have something to do with it. I ran jprofiler on it and It seems the beanshell variables are using an increasing amount of memory to the point of it causing an out of Memory exception. Can editing of the following properties clear these variables at the end of a thread without having a heavy effect on performance?? I don't understand too much the effects of the properties. I really just added them to the xml when running in ant to change the Xmx size and saw they were available too. jvmarg value=-server/ jvmarg value=-Xms256m/ jvmarg value=-Xmx1024m/ jvmarg value=-XX:NewSize=128m/ jvmarg value=-XX:MaxNewSize=1024m/ jvmarg value=-XX:PermSize=64m/ jvmarg value=-XX:MaxLiveObjectEvacuationRatio=50%/ jvmarg value=-XX:SurvivorRatio=8/ jvmarg value=-XX:MaxTenuringThreshold=2/ jvmarg value=-Dsun.rmi.dgc.client.gcInterval=6/ jvmarg value=-XX:MaxPermSize=64m/ Any suggestions or info on these would be greatly appreciated (and I apologise for going off topic slightly) Thanks, Andyy... Deepak Shetty wrote: Jmeter only has as much memory as the Java VM (-Xmx) which is the same for ANT (though yes you would have ANT's footprint), I prefer ANT myself , more convenient , portable etc , havent had any memory issues that wouldnt have happened on the command line.we pass environment specific parameters etc easily from the Ant script... I guess its a matter of personal preference. I dont know if ANT works when you are using Jmeter to run clients remotely so that might be another reason for you... regards deepak On Thu, May 21, 2009 at 10:19 AM, Andyy andlo...@gmail.com wrote: Hi Deepak, Cheers for the reply. And tell me thou in terms of Stress Testing I would see the advantages you added as minor (as i may not want to include them in my build be manual monitoring its progress and results too large to convert to html) whereas on the downside Ant itself will require extra Memory on the box. Reducing its availability to JMeter. Whereas running from the cmd line JMeter can make use of all available memory. So in terms of handling resources etc where would the advantages lie in Ant?? Thanks again, Andyy... Deepak Shetty wrote: Well all the advantages that ANT provides (You can make the test part of your build, be notified of failures, generate the HTMl report by styling etc) I On Thu, May 21, 2009 at 9:29 AM, Andyy andlo...@gmail.com wrote: Evening, When performance testing what are the benefits to using Ant versus the command line in non GUI Mode??? Or vise versa??? Cheers.. -- View this message in context: http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Anttp23656302p23656302.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Anttp23656302p23657067.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Anttp23656302p23657806.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: JDBC connection error in Gui mode
This name must match the value specified in Variable Name field in the JDBC Connection Configuration On Mon, May 25, 2009 at 9:10 PM, gpub affablepr...@gmail.com wrote: Hi, i was doing the intial setup for JDBC configuration, and earlier i was having the prob with jar as i was using 4 jars in the Jmeter/lib folder, then Noel told me use only 1 jar(ojdbc12). Script works ok in Non gui mode. But in Gui mode, i run the simple test and getting error on JDBC Request on View result tree. Response message: java.sql.SQLException: No pool found named: 'CRP3' (this is variable name- no idea about this) The jmter log file shows below errors: 2009/05/26 09:33:32 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2009/05/26 09:33:35 INFO - jmeter.protocol.http.sampler.HTTPSampler: Maximum connection retries = 10 2009/05/26 09:33:35 WARN - jmeter.gui.util.MenuFactory: Missing jar? Could not create org.apache.jmeter.visualizers.MailerVisualizer. java.lang.NoClassDefFoundError: javax/mail/MessagingException -- View this message in context: http://www.nabble.com/JDBC-connection-error-in-Gui-mode-tp23716582p23716582.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Configure and Run Jmeter tests automatically
http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php OR http://jakarta.apache.org/jmeter/usermanual/get-started.html 2.4.3 Non-GUI Mode (Command Line mode) *2.4.3 Non-GUI Mode (Comm and Line mode)* On Tue, May 26, 2009 at 12:48 PM, SUCIU Flori flori.su...@alcatel-lucent.com wrote: Hello, I am interested in being able to use JMeter from the command line rather than the GUI. That would help me run automated tests. Thank you, Flori
Re: read data from file ( in loop ) and put into Variables
Use CSV Data Set Config http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config regards deepak On Wed, May 27, 2009 at 11:40 PM, jmeter-user michal...@o2.pl wrote: Hello I need read data from file user.txt ( in loop ) and put into Variables: FILE : http://www.nabble.com/file/p23756075/jmeter2.jpg USER PARAMETRES - what i should change in this section ??? I need read data in one loop from first line , next loop from next line and put into variables First line : 48668375729 Next line : 12312312331 http://www.nabble.com/file/p23756075/jmeter1.jpg -- View this message in context: http://www.nabble.com/read-data-from-file-%28-in-loop-%29-and-put-into-Variables-tp23756075p23756075.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Regular expression extractor
An XPATH extractor is probably easier? If you still want to try regex Id prbably try something like topic.*?(.*?)/topic regards deepak On Thu, May 28, 2009 at 5:48 PM, Maya Hague mhague94...@yahoo.com wrote: Hi, A xml/rpc soap response 3 responses. How do I get the third response into a regular expression. I tried the following . The response returns an interger - ([\d]*) Reference Name: topic Regular Expression: topic xsi:type='xsd:int'([\d]*)/topic Template:$1$ Match No.:3 Default Value: -1 The default value gets passed for every call. What am I doing wrong? Thanks, maya
Re: Regular expression extractor
Hi you are right , the square brackets shouldnt be present regards deepak On Thu, May 28, 2009 at 6:32 PM, drubix andrew.schr...@gmail.com wrote: Actually, on second thought, I'm not sure that's right. Make sure the regex extractor is acting on the Body of the response. drubix wrote: I don't think \d is supposed to be in square brackets. That would probably make it search for words consisting of only the characters d and \ try removing them. Maya Hague wrote: Hi, A xml/rpc soap response 3 responses. How do I get the third response into a regular expression. I tried the following . The response returns an interger - ([\d]*) Reference Name: topic Regular Expression: topic xsi:type='xsd:int'([\d]*)/topic Template:$1$ Match No.:3 Default Value: -1 The default value gets passed for every call. What am I doing wrong? Thanks, maya -- View this message in context: http://www.nabble.com/Regular-expression-extractor-tp23772597p23772923.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Regular expression extractor
oh good to know that thanks deepak On Fri, May 29, 2009 at 3:51 AM, sebb seb...@gmail.com wrote: .* grabs everything, and the ? then makes it back-track when it tries to match the next part of the RE. It's usually more efficient to pick the terminator character - in this case '' and '' - and use all but that character in the repeat, for example: topic[^]*([^]*)/topic i.e. topic followed by characters which aren't '' followed by '' etc. But it probably won't make much difference. On 29/05/2009, Maya Hague mhague94...@yahoo.com wrote: topic.*?(.*?)/topic worked like a charm. Thanks From: Deepak Shetty shet...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Thursday, May 28, 2009 9:39:33 PM Subject: Re: Regular expression extractor An XPATH extractor is probably easier? If you still want to try regex Id prbably try something like topic.*?(.*?)/topic regards deepak On Thu, May 28, 2009 at 5:48 PM, Maya Hague mhague94...@yahoo.com wrote: Hi, A xml/rpc soap response 3 responses. How do I get the third response into a regular expression. I tried the following . The response returns an interger - ([\d]*) Reference Name: topic Regular Expression: topic xsi:type='xsd:int'([\d]*)/topic Template:$1$ Match No.:3 Default Value: -1 The default value gets passed for every call. What am I doing wrong? Thanks, maya - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: testing upload facility with Jmeter
just create the requests under the thread group in the order you want them to run. On Fri, May 29, 2009 at 5:28 AM, Prashanth Mylvarabatla prashanth.mylvaraba...@gmail.com wrote: I would like to test the upload photo facility for a site. For example http://www.bigadda.com/login this is the login page. You need to first login with a username and passwod then it brings you to the page where you can upload the photo. Can I send two requests sequentially ? So how should this be done with Jmeter? thanks in advance Prashanth
Re: Redirection problem
Hi Use something that records browser actions (e.g. LiveHTTPHeaders for Firefox) , inspect the request log and create these requests manually in jmeter(with the data posted etc). regards deepak On Mon, Jun 1, 2009 at 5:56 AM, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: I have done the above process...But I am being unable to record while trying to record http://www.icicibank.com. Can I send my code to you, so that you can get a clear idea how the code is working... With Regards, Suvendu -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Monday, June 01, 2009 6:13 PM To: JMeter Users List Subject: Re: Redirection problem On 01/06/2009, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Thank you very much for your suggestion. I forgot to mention that you might be able to use HTTPS spoofing if the HTTPS URL is different from the HTTP URLs. I have a code which is able to redirect from http to https sites. The problem is that I do not have much more idea about the jmeter architecture where I can plug the code. Any suggestion in this regard? JMeter does not have any problem redirecting from http to https or vice-versa. However, it cannot record https. Not sure how your code can help here. With Regards, Suvendu -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Monday, June 01, 2009 5:48 PM To: JMeter Users List Subject: Re: Redirection problem On 01/06/2009, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Hi, I am using jmeter 2.3.3. When I am trying to redirect from http to https site during recording process, I am getting the 501 method not implemented. So how can I fix this error? JMeter does not support recording HTTPS. So you will either have to do that part of the plan by hand, or use some other method to record the session. With Regards, Suvendu DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Redirection problem
hi Auto/Follow redirect from Http to HTTPS is implemented. Whats not implemented is Proxy recording of https correct? There are issues with proxy recording HTTPS as far as i know , either you cant snoop the traffic or you have to terminate the HTTPS at your proxy and reinitiate HTTPS to the server or you have to do it once the browser has decrypted the https (as firefox does) regards deepak On Mon, Jun 1, 2009 at 8:21 PM, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Hi Deepak, I agree and thank you very much for the suggestion. But I am not understanding why jmeter team has not implemented the redirection process from http to https. If we will plug some code in the recording tool, then our problem will be solved. Any suggestion regarding this?? With Regards, Suvendu -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Monday, June 01, 2009 9:17 PM To: JMeter Users List Subject: Re: Redirection problem Hi Use something that records browser actions (e.g. LiveHTTPHeaders for Firefox) , inspect the request log and create these requests manually in jmeter(with the data posted etc). regards deepak On Mon, Jun 1, 2009 at 5:56 AM, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: I have done the above process...But I am being unable to record while trying to record http://www.icicibank.com. Can I send my code to you, so that you can get a clear idea how the code is working... With Regards, Suvendu -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Monday, June 01, 2009 6:13 PM To: JMeter Users List Subject: Re: Redirection problem On 01/06/2009, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Thank you very much for your suggestion. I forgot to mention that you might be able to use HTTPS spoofing if the HTTPS URL is different from the HTTP URLs. I have a code which is able to redirect from http to https sites. The problem is that I do not have much more idea about the jmeter architecture where I can plug the code. Any suggestion in this regard? JMeter does not have any problem redirecting from http to https or vice-versa. However, it cannot record https. Not sure how your code can help here. With Regards, Suvendu -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Monday, June 01, 2009 5:48 PM To: JMeter Users List Subject: Re: Redirection problem On 01/06/2009, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Hi, I am using jmeter 2.3.3. When I am trying to redirect from http to https site during recording process, I am getting the 501 method not implemented. So how can I fix this error? JMeter does not support recording HTTPS. So you will either have to do that part of the plan by hand, or use some other method to record the session. With Regards, Suvendu DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
Re: Redirection problem
hi I would use livehttpheaders and convert it manually into a Jmeter script if this is a one time thing or about 10-20 requests. if not you can probably write a tool that can read livehttpheaders output and create the JMeter script file regards deepak On Mon, Jun 1, 2009 at 9:07 PM, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Yes...proxy recording of https has not been implemented. Can you suggest once again if I want to record the following scenarios: 1) browse the page www.icicibank.com (which uses http protocol) 2) Click the personal tab under Login label in that page (which will redirect to another page which uses https protocol) With Regards, Suvendu -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, June 02, 2009 9:03 AM To: JMeter Users List Subject: Re: Redirection problem hi Auto/Follow redirect from Http to HTTPS is implemented. Whats not implemented is Proxy recording of https correct? There are issues with proxy recording HTTPS as far as i know , either you cant snoop the traffic or you have to terminate the HTTPS at your proxy and reinitiate HTTPS to the server or you have to do it once the browser has decrypted the https (as firefox does) regards deepak On Mon, Jun 1, 2009 at 8:21 PM, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Hi Deepak, I agree and thank you very much for the suggestion. But I am not understanding why jmeter team has not implemented the redirection process from http to https. If we will plug some code in the recording tool, then our problem will be solved. Any suggestion regarding this?? With Regards, Suvendu -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Monday, June 01, 2009 9:17 PM To: JMeter Users List Subject: Re: Redirection problem Hi Use something that records browser actions (e.g. LiveHTTPHeaders for Firefox) , inspect the request log and create these requests manually in jmeter(with the data posted etc). regards deepak On Mon, Jun 1, 2009 at 5:56 AM, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: I have done the above process...But I am being unable to record while trying to record http://www.icicibank.com. Can I send my code to you, so that you can get a clear idea how the code is working... With Regards, Suvendu -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Monday, June 01, 2009 6:13 PM To: JMeter Users List Subject: Re: Redirection problem On 01/06/2009, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Thank you very much for your suggestion. I forgot to mention that you might be able to use HTTPS spoofing if the HTTPS URL is different from the HTTP URLs. I have a code which is able to redirect from http to https sites. The problem is that I do not have much more idea about the jmeter architecture where I can plug the code. Any suggestion in this regard? JMeter does not have any problem redirecting from http to https or vice-versa. However, it cannot record https. Not sure how your code can help here. With Regards, Suvendu -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Monday, June 01, 2009 5:48 PM To: JMeter Users List Subject: Re: Redirection problem On 01/06/2009, Suvendu_Mohapatra suvendu_mohapa...@satyam.com wrote: Hi, I am using jmeter 2.3.3. When I am trying to redirect from http to https site during recording process, I am getting the 501 method not implemented. So how can I fix this error? JMeter does not support recording HTTPS. So you will either have to do that part of the plan by hand, or use some other method to record the session. With Regards, Suvendu DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY
Re: unable to save test plan?
how did you verify your JVM? Are there any spaces etc in the path to your jmeter install? On Tue, Jun 2, 2009 at 12:35 PM, Daniel Wood dw...@digitaljiggery.comwrote: Hi Folks- Just starting with JMeter and have run into a probably noob issue. I did check the online and mail list faq, but nothing found. Here is the question. I'm on mac osx, I can start jmeter and it runs great, but when I try to save the test plan, it fails -- creates a zero size file -- and I get the following exception in the jmeter.log file : 2009/06/02 12:00:26 ERROR - jmeter.gui.action.Save: java.lang.NoClassDefFoundError at org.apache.jmeter.gui.action.Save.doAction(Save.java:139) at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80) at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42) at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) I'm using jmeter 2.3.3 binary, and my jvm is : java version 1.5.0_16 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) Do I need to download and install a supporting JAR file? Thanks in advance! daniel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: unable to save test plan?
should be ok (i wouldve modified bin/jmeter.sh so that it printed out the version) Sounds like you have a problem with your jmeter install , jmeter.properties should have been there regards deepak On Tue, Jun 2, 2009 at 12:56 PM, Daniel Wood dw...@digitaljiggery.comwrote: verified might be a bit strong for what i did. I typed java -v from the command line. If you have another command, I'd be happy to run that and post the output for smarter eyes than mine. no spaces in the path or filename. Thanks for helping! daniel On Jun 2, 2009, at 12:49 PM, Deepak Shetty wrote: how did you verify your JVM? Are there any spaces etc in the path to your jmeter install? On Tue, Jun 2, 2009 at 12:35 PM, Daniel Wood dw...@digitaljiggery.com wrote: Hi Folks- Just starting with JMeter and have run into a probably noob issue. I did check the online and mail list faq, but nothing found. Here is the question. I'm on mac osx, I can start jmeter and it runs great, but when I try to save the test plan, it fails -- creates a zero size file -- and I get the following exception in the jmeter.log file : 2009/06/02 12:00:26 ERROR - jmeter.gui.action.Save: java.lang.NoClassDefFoundError at org.apache.jmeter.gui.action.Save.doAction(Save.java:139) at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80) at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42) at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) I'm using jmeter 2.3.3 binary, and my jvm is : java version 1.5.0_16 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) Do I need to download and install a supporting JAR file? Thanks in advance! daniel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: HTTP Request - Exclude Pattern for embedded URLs
Can you inspect the .jtl file and check what message it generates(by saving the output to the file)? If its something unique , you can change the XSL file that jmeter ships with to provide you a custom report. Alternately , dont check the download embed resource and instead write Regex/XPATh extractors to extract href= and src= and loop through them yourself... Ive never used this but it sounds similar to what you might be able to use http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTML_Link_Parser regards deepak On Wed, Jun 3, 2009 at 6:52 AM, sebastian.ben...@t-systems.com wrote: The HTTP Sampler has the following field: Embedded URLs must match: which can be used to limit which embedded items are processed: I also tried this one, but is it possible to use this field for the inverse like: NOT http://some.url/some.file Thanks, Sebastian - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Problem generating report in Ant using large result file
Hi this used to apply years ago, but Saxon had the best memory usage at that time. For such large files , if you are only interested in some summary report, write your own SAX Event handler to generate your report, or preprocess this file to remove things you dont need. regards deepak On Wed, Jun 3, 2009 at 9:03 AM, sebb seb...@gmail.com wrote: On 03/06/2009, uzfarid faridshari...@yahoo.com wrote: Hi, Yes i checked and it was missing closing of testResults tag. But why it is too slow for ant to process the file... It's not Ant itself that processes the file, it is XSLT which is called by Ant. AFAIK, that has to read the whole file into memory. Not sure there's anything that can be done about it. When i wanted to generate result graphs with perl script, perl was very fast to process over 600MB Jmeter results. Br, Farid. sebb-2-2 wrote: On 03/06/2009, uzfarid faridshari...@yahoo.com wrote: Hi I changed heap memory into 1220M. then it tried to process .jtl result for 262 minutes and 51 seconds. However build failed. It said FATAL error during transformation: XML document structures must start and end within the same entity. Now I am thinking this might be related to JTL result itself. Yes, that seems the most likely. I would check the start and end for any obvious errors, e.g. missing trailer. If you create a very short JTL file you can use this to see what the contents should look like. Br, Farid sebb-2-2 wrote: On 03/06/2009, uzfarid faridshari...@yahoo.com wrote: Hi, I have abt 600MB result file. Trying to generate html report using ant tool. Which ant tool? First it was giving heap size error. I changed ant heap memory size. But still ant could not generate html file. What happened this time? How much memory did you give it? Did anyone experience such problem before? Br, Farid -- View this message in context: http://www.nabble.com/Problem-generating-report-in-Ant-using-large-result-file-tp23847484p23847484.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Problem-generating-report-in-Ant-using-large-result-file-tp23847484p23848865.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Problem-generating-report-in-Ant-using-large-result-file-tp23847484p23851985.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Regular Expression Extractor and its Variables
if (vars.get(${city_10}) == null) is wrong should be vars.get(city_10) Im sure theres a better way to do what you want though :) regards deepak On Fri, Jun 5, 2009 at 9:19 AM, mattlamignat mateusz_grode...@o2.pl wrote: This is my test plan: |-User Defined Variable |-HTTP Request |-Regular Expression Extractor |-SOAP Request |-Response Assertion What I have to do is to capture strings from the HTTP response and check if they do exist in the SOAP response. The thing is that I don't know how many strings I need to capture (for instance Cities) will be in the HTTP response. I set regexp to capture all of them: Match No.(0 for Random) -1 I set 10 variables in the Response Assertion ${city_1} ${city_2} ${city_10} The problem is when I have less than 10 Cities in the HTTP response. In this case my assertions fail with the message Test failed: text expected to contain /${city_10}/ I try to replace null in the ${city_10} with some string that exist in the SOAP response so my test will not fail. I added BeanShell PreProcessor as a child of SOAP Request: if (vars.get(${city_10}) == null){ vars.put( ${city_10}, a ); print(vars.get(${city_10})); // just to ensure above line changed the value to a } but it's not working - I'm still getting the message Test failed: text expected to contain /${city_10}/ please help.. -- View this message in context: http://www.nabble.com/Regular-Expression-Extractor-and-its-Variables-tp23891274p23891274.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Regular Expression Extractor and its Variables
hi if you have a simple text match then BeanShell Assertion(or java or bsf) even if you have regexes you could use the java API's. However I would still like to see if there was a way to use a test like HTTPRequest Regex Post processor For Each Controller on the regex returned value Once Only Controller SOAP Request Response Assertion -- Not sure if this will work regards deepak On Fri, Jun 5, 2009 at 10:13 AM, mattlamignat mateusz_grode...@o2.plwrote: I changed the code to if (vars.get(city_10) == null){ vars.put( city_10, a ); print(vars.get(city_10)); } and it's working! thank you Sir! I was suprised that this part was wrong because it was printing a.. :) anyway do you know that better way by any chance? :) Deepak Shetty wrote: if (vars.get(${city_10}) == null) is wrong should be vars.get(city_10) Im sure theres a better way to do what you want though :) regards deepak On Fri, Jun 5, 2009 at 9:19 AM, mattlamignat mateusz_grode...@o2.pl wrote: This is my test plan: |-User Defined Variable |-HTTP Request |-Regular Expression Extractor |-SOAP Request |-Response Assertion What I have to do is to capture strings from the HTTP response and check if they do exist in the SOAP response. The thing is that I don't know how many strings I need to capture (for instance Cities) will be in the HTTP response. I set regexp to capture all of them: Match No.(0 for Random) -1 I set 10 variables in the Response Assertion ${city_1} ${city_2} ${city_10} The problem is when I have less than 10 Cities in the HTTP response. In this case my assertions fail with the message Test failed: text expected to contain /${city_10}/ I try to replace null in the ${city_10} with some string that exist in the SOAP response so my test will not fail. I added BeanShell PreProcessor as a child of SOAP Request: if (vars.get(${city_10}) == null){ vars.put( ${city_10}, a ); print(vars.get(${city_10})); // just to ensure above line changed the value to a } but it's not working - I'm still getting the message Test failed: text expected to contain /${city_10}/ please help.. -- View this message in context: http://www.nabble.com/Regular-Expression-Extractor-and-its-Variables-tp23891274p23891274.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Regular-Expression-Extractor-and-its-Variables-tp23891274p23892094.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How to get the current HTTP RequestName
Hi in a beanshell preprocessor you could use sampler.getName(). not sure if you could call it as a function though.. regards deepak On Fri, Jun 5, 2009 at 12:29 PM, Sree ... gattasrika...@gmail.com wrote: Hi, When I use ${__javaScript(theadName,)} it returns me the Thread Group Name In a similar way is there anything I can use in order to get the NAME which i given to the current HTTP Request which is in execution -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad
Re: How to use different data sets in a loop or foreach controller for a single thread
You have to make the variable name dependent on the iteration count and use __javaScript (or beanshell etc) to read the value . The problem you will run into is how to save the variable data e.g. you could use a User Parameters with a single user and mutliple variables like firstName_1, firstName_2, lastName_1,lastName_2 or you could use BeanShell PreProcess and set data into the vars object, reading from an array(indexed by the current count) in the beanshell script itself OR you could just let go of your prejudice against having test data external to the script and use a CSV data set config regards deeak On Mon, Jun 8, 2009 at 11:40 AM, Bakul Mukherjee bmukher...@stratify.comwrote: Hi, I have a use case where one user is performing the same set of actions multiple times one after the other and is providing different data sets for each set of actions. Thread Group | | --Loop or For Each Controller | | -- Action 1 | | -- Action 2 . . . -- Action N So I have to use a single thread with either a loop or for each controller and each iteration of the loop will use a different set of values for a set of variables. Is there any way to achieve this without using CSV Data set or CSV read. I would prefer to set variables in the test plan itself without creating external files to read from. I tried using User Parameters where I had defined multiple variable with multiple values per variable, with update once per iteration option checked, but that didn't work. For each iteration it always picked the first value of each variable, I believe it is because I have only one thread. If this is not a supported feature, it would be a nice feature to add support for. I believe lots of users would find this feature useful without having to create a bunch of additional files. Any help would be appreciated. Thanks.
Re: Problems extracting data using XPath extractor
hi try //*[local-name()='Soda' ]/*[local-name()='Name' and contains(text(),'Coke')]/following-sibling::*[local-name()='ID']/text() I use XPATH Checker in firefox to test out my XPATH queries...( https://addons.mozilla.org/en-US/firefox/addon/1095) regards deepak On Mon, Jun 8, 2009 at 6:12 PM, lkeith laura.ke...@ensequence.com wrote: I am trying to using the XPath extractor in JMeter to extract data from a Soap response only if another node contains a certain keyword. Here is a example of part of the response: ... b:Soda b:NameDiet Coke/b:Name b:DescriptionDiet Cola/b:Description b:ID100/b:ID /b:Soda b:Soda b:NameCoke Classic/b:Name DescriptionCola/b:Description b:ID110/b:ID /b:Soda ... I want to extract the ID of each of the sodas that have Coke in their name. I've got as far as being able to identify the Sodas that have Coke in their name with this: //*[local-name()='Soda'][contains(Name,'Coke')] , but I don't know what else to put in to extract the ID. I'm just guessing at this point. Here are a couple that I thought might be close: //*[local-name()='Soda'][contains(Name,'Coke')]//*[local-name()='Soda']/*[local-name()='ID']/text() //*[local-name()='Soda'][contains(Name,'Coke')]/following-sibling::ID/text() Any assistance would be greatly appreciated! Cheers, Laura -- View this message in context: http://www.nabble.com/Problems-extracting-data-using-XPath-extractor-tp23934824p23934824.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Need Clarification on session info in Once only controller
The 'session' is determined by the server - anytime you send it a sessionid (which isnt invalid or timed out) either encoded into the URL or as a cookie , the server will treat it as the same session. It has no direct relation to JMeter threads / controller etc. For eg: No of users is 2 Used Once only controller for login and logout. so irrespective of run duration, number of loops there will be 2 sessions only, one for each useris it correct? Assuming you have a HTTP Cookie manager (and your server is using cookies for the session id), then first request should probably start your session (depends on server code)- Subsequent requests pass the same session id. Login should probably attach your credentials to your existing session (but can in some cases start a new session depending on the server code). If you logout then your session should be destroyed/invalidated (unless coded otherwise). Any requests after that will create a new session . so your once only for logout does not work, it should only be executed after all your tests have run for the thread. so what happens if i put all the requests including login and logut in a loop controller for a certain nuber of iterations? New session will be created for each user for iteration ? Probably, observe the cookies, session ids being sent regards deepak On Tue, Jun 9, 2009 at 8:02 AM, TSurendar s9884906...@gmail.com wrote: Hi All, I want to know how the sessions are managed in once only and loop controller. For eg: No of users is 2 Used Once only controller for login and logout. so irrespective of run duration, number of loops there will be 2 sessions only, one for each useris it correct? so what happens if i put all the requests including login and logut in a loop controller for a certain nuber of iterations? New session will be created for each user for iteration ? Thanks in advance. Thanks, Surendar -- View this message in context: http://www.nabble.com/Need-Clarification-on-session-info-in-Once-only-controller-tp23944654p23944654.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Is there a replace function in JMeter?
Beanshell can replace the file content (using java regexes) , however In each iteration for the same SOAP action I want to use different SOAP data Does the structure of your XML change or is just the value of some element/attribute? If the structure remains the same , then you are better of using a CSV data set config and copying the structure into the SOAP sampler with vrariables (which would either be from the CSV config or previously extracted regards deepak On Tue, Jun 9, 2009 at 10:11 AM, QA Echo qae...@gmail.com wrote: I have a use case where I have a set of SOAP samplers in a For Each Controller. In each iteration for the same SOAP action I want to use different SOAP data. So I can have the data in different files instead of pasting the data in the SOAP Data section and include a counter in the filename such that for each iteration it uses a different filename for the same action. However some of the content in the data is dynamically generated by the previous SOAP actions. I cannot include variables in the content in the files, because they don't get resolved. So I was wondering if there is a replace function that will replace certain text from the input file with some other text. I am not familiar with BeanShell scripts, if this can be done with bean shell scripts. I think one way to get around this would be to put an Interleave or Random Controller inside the For Each Controller with as many samplers for the SOAP action as the number of different SOAP data that I want to use. But it's not ideal if I want to use many different SOAP data. Thanks.
Re: Need Clarification on session info in Once only controller
Your end result may be correct , but your reasoning is wrong. Typically what you say is the behavior , each thread begins a new request , and the server probably sends you a Set-Cookie with a new session id for each thread, hence you have two sessions, one per thread (since JMeter would maintain the cookies per thread) but for e.g. if i use the Cookie Manager to specify a valid JSessionID(for java web servers) when i start the test, then all threads will use the same session. My point is dont think of sessions in terms of Jmeter threads, understand how HTTPSession works regards deepak On Tue, Jun 9, 2009 at 10:37 AM, ankush jethi ankush.je...@gmail.comwrote: hi deepak, U just read your reply. Dont you think each jmeter request has its own session? For example I have two threads being hit at once. Won't they use separate session Ids? Just like two browsers sending requests independently Please correct me if I am wrong Regards Ankush On Tue, Jun 9, 2009 at 9:54 PM, Deepak Shetty shet...@gmail.com wrote: The 'session' is determined by the server - anytime you send it a sessionid (which isnt invalid or timed out) either encoded into the URL or as a cookie , the server will treat it as the same session. It has no direct relation to JMeter threads / controller etc. For eg: No of users is 2 Used Once only controller for login and logout. so irrespective of run duration, number of loops there will be 2 sessions only, one for each useris it correct? Assuming you have a HTTP Cookie manager (and your server is using cookies for the session id), then first request should probably start your session (depends on server code)- Subsequent requests pass the same session id. Login should probably attach your credentials to your existing session (but can in some cases start a new session depending on the server code). If you logout then your session should be destroyed/invalidated (unless coded otherwise). Any requests after that will create a new session . so your once only for logout does not work, it should only be executed after all your tests have run for the thread. so what happens if i put all the requests including login and logut in a loop controller for a certain nuber of iterations? New session will be created for each user for iteration ? Probably, observe the cookies, session ids being sent regards deepak On Tue, Jun 9, 2009 at 8:02 AM, TSurendar s9884906...@gmail.com wrote: Hi All, I want to know how the sessions are managed in once only and loop controller. For eg: No of users is 2 Used Once only controller for login and logout. so irrespective of run duration, number of loops there will be 2 sessions only, one for each useris it correct? so what happens if i put all the requests including login and logut in a loop controller for a certain nuber of iterations? New session will be created for each user for iteration ? Thanks in advance. Thanks, Surendar -- View this message in context: http://www.nabble.com/Need-Clarification-on-session-info-in-Once-only-controller-tp23944654p23944654.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards Ankush Jethi It Is Very Easy To Be Brave From A Safe Distance.
Re: User Parameter
Hi Its pretty straight forward to use.. For your example , say you have login.csv with list of username,password Variable Names -- username,password You can then use ${username} and ${password} in your tests Delimiter -- , Allow quoted data -- If your usernames or passwords can contain commas then you have to quote the values e.g. login.csv should have testuser,test,password. If thats the case specify Allow quoted data = true, else you can keep this as false. Recycle on EOF -- What should JMeter do when it reaches the end of the file. If recycle is true then it will start again from the first line. If false , the value of ${username} will remain as EOF (configurable). In your test if you just want to check user login for as many rows as you have in your csv file, you can have this as false. if you wanted to test say 100 logins but only had say 2 user name /passwords you would keep this as true so that it would continue the test. Stop thread on EOF -- If the end of file is reached , should the thread in jmeter stop?. If true then your test stops, if false then it continues. Again depends on your test. Sharing mode -- If you have multiple threads then how is the data shared. Typically you want this as all threads (or current thread group) so that each thread will read a different row. My typical structure is Thread Group While Controller (${__javaScript(${MY_VARIABLE}!=EOF)}) Tests (i have to have a if here to check for EOF as well) CSV Data Set Config Recycle - false Stop Thread - false Sharing mode - all threads regards deepak On Wed, Jun 10, 2009 at 5:45 AM, C.Vijayakumar bcvijayaku...@altechindia.com wrote: Hi , Thanks for the reply , but very sorry to ask this question . I have gone through the ' CSV Data Set Config ' . But can any one please explain the process in detailed . Its quite confusing on using this 'CSV Data set config' . Pls Help Thanks in Advance . Vijayakumar.C -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, June 10, 2009 5:10 PM To: JMeter Users List Subject: Re: User Parameter On 10/06/2009, C.Vijayakumar bcvijayaku...@altechindia.com wrote: Hi All , I have used the following steps to Parameterize my Test Plan after getting the information from JMeter-Nabble . For passing values like user name and password using ' User parameter ' file. This is the solution for u r problem: 1. go to options-function Helper Dialog 2. Choose a functionCSV Read 3. Then create one csv file(Ex: login.csv) in JMETER bin folder.That file contains first column as username and second column password. 4. In function parameters,function name is csv file name and column number is 0; 5. Then click on Generate button.then it will generate one function(${__CSVRead(login.csv,0)}) copy this function. 6. Then add user parameter (Add-preprocessor-user parameter) to the thread group. 7. click on add variable.In parameters list enter name filed(Ex:Username) and corresponding User_1 paste the function(${__CSVRead(login.csv,0)}) 8. and add one more variable name as password and function name as (${__CSVRead(login.csv,1)}. 9.And add one more variable name as next and function as ${__CSVRead( login.csv,next)} 10. then use these names into the script. -Go to u r script and instead of username(ex: john) place ${Username} and instead of password(ex:@lt456) place ${password} I have paste these ${username} ${password} in Http Request parameters of Login page . ( Send Parameter with Request pane ) But after executing the Test Plan am getting the following error message in Tomcat server . WARNING: Parameters: Character decoding failed. Parameter skipped. java.io.CharConversionException: isHexDigit Can any one pls explain what i need to do to sort out this problem . Use the http://jakarta.apache.org/jmeter/usermanual/component_reference.html#View_Re sults_Tree Listener to show what you are sending. By the way http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Dat a_Set_Config is easier to use than User Parameters + __CSVRead. Thanking you . With warm regards., Vijayakumar.C - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: User Parameter
hi did you specify the file encoding in CSV Data Set config (I cant remember offhand if its UTF8 or UTF-8)? If yes and you still have this problem These characters are the first two bytes used to specify how the file is encoded in UTF-8 ( i think whether its big endian or little endian). You can open this in any binary editor (like xvi32) and delete these characters. In addition if your file only has ASCII characters then save it as ascii... regards deepak On Thu, Jun 11, 2009 at 2:40 AM, C.Vijayakumar bcvijayaku...@altechindia.com wrote: Hi Sebb / All , Thank you all for your wonderful co-operations . I have configured the CSV Data set Config and this is my Test Plan Structure . -Test Plan -- Thread Group ---CSV Data Set Config ---HTTP Request Default ---Debug Sampler ---View Results Tree HTTP Requests HTTP Requests HTTP Requests I have stored the txt file with the contents ( Values of username and passwords ) in UTF-8 format. And the Plan is working fine , BUT while seeing the login.do pages the values are shown as below username=1297684password=1297684 username=1197580password=1197580 username=1297688password=1297688 I really wondered , why for the first username only have the junk values and also in tomcat log file the user ids are not displaying where as it is display properly in View results Tree . Please explain where I need to change . Thanks in Advance. Thanking you . With warm regards., Vijayakumar.C -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Wednesday, June 10, 2009 9:38 PM To: JMeter Users List Subject: Re: User Parameter Hi Its pretty straight forward to use.. For your example , say you have login.csv with list of username,password Variable Names -- username,password You can then use ${username} and ${password} in your tests Delimiter -- , Allow quoted data -- If your usernames or passwords can contain commas then you have to quote the values e.g. login.csv should have testuser,test,password. If thats the case specify Allow quoted data = true, else you can keep this as false. Recycle on EOF -- What should JMeter do when it reaches the end of the file. If recycle is true then it will start again from the first line. If false , the value of ${username} will remain as EOF (configurable). In your test if you just want to check user login for as many rows as you have in your csv file, you can have this as false. if you wanted to test say 100 logins but only had say 2 user name /passwords you would keep this as true so that it would continue the test. Stop thread on EOF -- If the end of file is reached , should the thread in jmeter stop?. If true then your test stops, if false then it continues. Again depends on your test. Sharing mode -- If you have multiple threads then how is the data shared. Typically you want this as all threads (or current thread group) so that each thread will read a different row. My typical structure is Thread Group While Controller (${__javaScript(${MY_VARIABLE}!=EOF)}) Tests (i have to have a if here to check for EOF as well) CSV Data Set Config Recycle - false Stop Thread - false Sharing mode - all threads regards deepak On Wed, Jun 10, 2009 at 5:45 AM, C.Vijayakumar bcvijayaku...@altechindia.com wrote: Hi , Thanks for the reply , but very sorry to ask this question . I have gone through the ' CSV Data Set Config ' . But can any one please explain the process in detailed . Its quite confusing on using this 'CSV Data set config' . Pls Help Thanks in Advance . Vijayakumar.C -Original Message- From: sebb [mailto:seb...@gmail.com] Sent: Wednesday, June 10, 2009 5:10 PM To: JMeter Users List Subject: Re: User Parameter On 10/06/2009, C.Vijayakumar bcvijayaku...@altechindia.com wrote: Hi All , I have used the following steps to Parameterize my Test Plan after getting the information from JMeter-Nabble . For passing values like user name and password using ' User parameter ' file. This is the solution for u r problem: 1. go to options-function Helper Dialog 2. Choose a functionCSV Read 3. Then create one csv file(Ex: login.csv) in JMETER bin folder.That file contains first column as username and second column password. 4. In function parameters,function name is csv file name and column number is 0; 5. Then click on Generate button.then it will generate one function(${__CSVRead(login.csv,0)}) copy this function. 6. Then add user parameter (Add-preprocessor-user parameter) to the thread group. 7. click on add variable.In parameters list enter name filed(Ex:Username) and corresponding User_1 paste the function(${__CSVRead(login.csv,0)}) 8. and add one more variable name as password and function name as (${__CSVRead(login.csv,1)}. 9.And add one more variable
Re: http request property replacement
Hi Im not sure if i understand your requirement correctly , but I assume this is what you want to do? Thread Group HttpRequest1 Regex Extractor to var1 HttpRequest2 , in the request parameters use ${var1} ? Does this work for you? If not Instead of Regex Extractor , you can use XPath Extractor or Beanshell Post Processor to extract values as well , depending on your requirement. To set the values you can directly use the ${var} If you need to change this value in some way you can use a Bean Shell Pre Processor (or any of the __javaScript/Beanshell functions) So this would work as Thread Group HttpRequest1 Regex Extractor to var1(or Bean Shell post processor or XPath extractor) HttpRequest2 BeanShell Pre Processor String var1 =vars.get(var1); //do stuff sampler.addArgument(requestParam1,changedVar1); It would be useful if you could tell us what exactly you want to do with an example. regards deepak On Sat, Jun 13, 2009 at 1:12 AM, Andre Arnold andrearn...@gmx.de wrote: Hi, I struggled to find a way to replace some http request properties which are dynamicly build. The best way I can imagine is some regex to find and replace it with the variable name I will use in the tests. Because of the dynamic nature of the value I can't use the testplan variable replacement (the value differs from page to page). I've read around and as I understand it, there may be a possibility to use some other function than the regex function at testplan level. So can I use the Beanshell function in a testplanvariable to be processed on the recording request and replace some request parameter values? sry for my english André - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: http request property replacement
sorry I dont think i know how to do what you want On Sat, Jun 13, 2009 at 12:06 PM, Andre Arnold andrearn...@gmx.de wrote: Deepak Shetty schrieb: It would be useful if you could tell us what exactly you want to do with an example. regards deepak First thanks for your answer and sorry for confusing you. I want to record Http Requests with the Proxy. In every request I want to replace one of the paramter values with a ${Variable}. Similar to the functionality of the testplan user variable (e.g. password=...) . The problem is the values of the parameter are dynamic and differ from request to request. That's why I cant use a static value in a variable. What I wanted to know was, can i use maybe the beanshell function in a testplan-variable to be processed on the paramters of the sampler? By the way I also have the need for placing a RegexExtractor under nearly each recorded Sampler (maybe not the first :) ). I saw the functionality for placing timer elements automaticly and because it would be a great benefit not copy and pasting 10 times i searched for the mechanism and extended it to process not just timers but also PostProcessor elements and place them under the sampler. This was a small tweak of the addTimer() method of the ProxControl but saves me from a lot of copy paste. I also have gone further since it's weekend ... I created a new GuiElement to be processed under the Proxy like a Timer. Through this gui I manage to either search a request parameter name or a value and replace the corresponding value with the variable reference of an RegexExtractor, which I generate acording to specific values in the gui. I have to replace a value that is just a simple increasing number so i can't search the request value for this but its parameter which has always the same structure / name... So if the beanshell function (or some other smart way) can't access the samplers paramters to modify them I suggest this thread is closed. André - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Regular Expression Extractor and its Variables
independent of number of assertions to be made, more descriptive without needing to read the code regards deepak On Mon, Jun 15, 2009 at 11:29 AM, mattlamignat mateusz_grode...@o2.plwrote: I agree that would be more efficient to do all assertions useing BeanShell I have never used Controllers, not sure why would that be a better way? Thanks, mattlamignat hi if you have a simple text match then BeanShell Assertion(or java or bsf) even if you have regexes you could use the java API's. However I would still like to see if there was a way to use a test like HTTPRequest Regex Post processor For Each Controller on the regex returned value Once Only Controller SOAP Request Response Assertion -- Not sure if this will work regards deepak -- View this message in context: http://www.nabble.com/Regular-Expression-Extractor-and-its-Variables-tp23891274p24040218.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: expected Response code: 500
hi Can you try to put in a response assertion and assert that response code should be 500, regards deepak On Mon, Jun 15, 2009 at 11:34 AM, mattlamignat mateusz_grode...@o2.plwrote: I'm getting 'Response code: 500' responces for several SOAP/XML-RPC requests and they are expected responses. How I can force JMeter to not mark such responces as failures. I mean marked as red transactions in 'View Results Tree' -- View this message in context: http://www.nabble.com/expected-Response-code%3A-500-tp24040330p24040330.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Populating HTTP request with values from page elements
hi you use one of the Post Processor on the first request to extract the data (Regex, Xpath, Beanshell), you store the extracted value into a variable and then use ${variableName} in the next request. regards deepak On Tue, Jun 16, 2009 at 10:07 AM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Greetings, I'm feeling my way around JMeter, so I apologise in advance if I'm asking ignorant questions. Basically, I have recorded a test plan using an HTTP proxy. Next, I modified it, so that each thread will invoke the test with a different parameter. After the initial request submitted, I need to populate the follow-up request with values form the page served as a response to the initial request, such as items from select elements. How can that be done? I assume there is some scripting involved. Please steer me in the right direction. TIA. -a
Re: Cookie Manager
Hi this is correct behavior, you cant specify a different path for Set-Cookie than the path value you are requesting for(or parents of the path). Does this site work when you access it using a browser(use firefox plus livehttpheaders)? If so can you compare what you are getting in Set-Cookie (the path, domain) when you access it via the browser. This looks to be a server problem, JSESSIONID should always have a path as '/' unless you have multiple web-apps regards deepak On Wed, Jun 17, 2009 at 12:05 PM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Greetings again! The log shows that the cookie returned by the Oracle SSO server isn't stored by the Cookie Manager, which is a big problem. A show stopper, in fact. Can anyone help me with this? Here is what the log shows: 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Received Cookie: JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe; path=/auth From: http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Not storing invalid cookie: JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe; path=/auth for URL http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10(Illegal path attribute /auth. Path of origin: /eraservices/grantfolder/viewGrantFolder.do) 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Found 0 cookies for http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10 -Original Message- From: Stromas, Aaron (NIH/OD) [C] Sent: Wednesday, June 17, 2009 1:31 PM To: 'JMeter Users List' Subject: RE: Cookie Manager Hello again! I have turned on debugging for the Cookie Manager: 2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Received Cookie: JSESSIONID=9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe; path=/auth From: http://webappdev4.era.nih.gov:7781/auth/login.jsp 2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Add cookie to store webappdev4.era.nih.gov TRUE/auth FALSE 0 JSESSIONID 9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe 2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Found 0 cookies for http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10 If I'm reading this correctly, the cookie isn't used for the second request because it is associated with a different URL. Is there a way to associate the returned cookie with /eraservices/grantfolde/viewGrantFolder.do? -a -Original Message- From: Noel O'Brien [mailto:nobr...@newbay.com] Sent: Wednesday, June 17, 2009 11:45 AM To: JMeter Users List Subject: Re: Cookie Manager Whereabouts in the test plan have you added the Cookie Manager? See http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_supportfor more info. Regards, Noel - Aaron Stromas (NIH/OD) [C] stroma...@od.nih.gov wrote: Hello again, I have added a Cookie Manager to my hand coded test plan. The first response sets a cookie: Set-Cookie: JSESSIONID= but the next request has no cookies ([no cookies] under the Response data tab. What am I doing wrong? TIA -a -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: building a string from a list of values
hi you are probably better off with a beanshell preprocessor script that formats the string and adds it to the request regards deepak On Thu, Jun 18, 2009 at 8:37 AM, illogic qb...@mailinator.com wrote: I would like to build a string from a list of numbers. I'm working with the following data (example): testints = 34,495,234,549 However, I don't know ahead of time how many numbers will be in the list. I can split the list with ${__split(${testints},testint)} so I get: testint_1 = 34 testint_2 = 495 etc testint_n = 4 What I'm trying to build is something like the following string as a post parameter: testlist:[[test34],[test495],[test234],[test549]],datalist:[[data34],[data495],[data234],[data549]] How can I achieve this? I figured I could do a ForEach loop and append each testint to a testlist string and datalist string, but I'm not sure how to go about initializing and appending to string variables like that. Thanks! -- View this message in context: http://www.nabble.com/building-a-string-from-a-list-of-values-tp24095095p24095095.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Problem with script execution.
Did you check if there were any errors on the server? Did all your samples have correct assertions(e.g. success messages that get displayed when your guarantor is created) to allow you to detect any errors on the Jmeter samplers? Using Results Tree you can verify that the request to create is being sent by jmeter... On Thu, Jun 18, 2009 at 4:47 AM, ankush jethi ankush.je...@gmail.comwrote: Hi all, I have recorded a script where I need to enter three accounts . One as primary and others as Owner and Guarantor. Now when I run the script with 10 threads without think time the scripts with creating all three accounts. But when the number of threads are increased to say 15. The scripts run but the Guarantors are skipped for many threads. I check this when the run is over and I see that 8 parties are saved with all three accounts and another 7 donnot have guarantors. I am not sure why this issue is coming. ANy help wpuld be highly appreciated. -- Regards Ankush Jethi It Is Very Easy To Be Brave From A Safe Distance.
Re: Cookie Manager
Hi the sample you have posted isnt the same as for the one in your earlier emails (here you already have a session and no login request , earlier you had a login request). You will have to record what your browser gets (using livehttpheaders) and when running jmeter, enable View results tree and compare each request with what LiveHttpHeaders shows. You may have missed some posted data or variable or something I dont think the HTTPManager's cookie policy is causing your problem but I assume its using compatibility? regards deepak On Thu, Jun 18, 2009 at 4:50 AM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Hi, Yes, the site works. Thanks for explaining and the tip about Live HTTP Headers. I see now that it is the browser that sends the cookie (see below). I haven't expected that at all! And I can also see that the returned cookie is for the correct path. On the other hand, WRT my previous attempt to use the HTTP Proxy, it seemingly detected SSL, but there is no trace of the SSL at all. Thanks again for your help. -a http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10 GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10 HTTP/1.1 Host: webappdev4.era.nih.gov:7783 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe; newuser=stromasam; SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4 HTTP/1.x 302 Redirect to Oracle SSO Server Date: Thu, 18 Jun 2009 11:20:25 GMT Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Location: http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4~D3D5AF18~641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA Set-Cookiehttp://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4%7ED3D5AF18%7E641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA%0ASet-Cookie: JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe; path=/eraservices Cache-Control: private Osso-Paranoid: false Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Wednesday, June 17, 2009 3:37 PM To: JMeter Users List Subject: Re: Cookie Manager Hi this is correct behavior, you cant specify a different path for Set-Cookie than the path value you are requesting for(or parents of the path). Does this site work when you access it using a browser(use firefox plus livehttpheaders)? If so can you compare what you are getting in Set-Cookie (the path, domain) when you access it via the browser. This looks to be a server problem, JSESSIONID should always have a path as '/' unless you have multiple web-apps regards deepak On Wed, Jun 17, 2009 at 12:05 PM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Greetings again! The log shows that the cookie returned by the Oracle SSO server isn't stored by the Cookie Manager, which is a big problem. A show
Re: Need help using Restlet with JMeter
you should be able to specify proxyHost and port in the Eclipse window where you run junit (there is a text box for system parameters - under where you can specify command line arguments -Dhttp.proxyHost=*proxyhost* [-Dhttp.proxyPort=*portNumber*] regards deepak On Thu, Jun 18, 2009 at 12:18 PM, Whatis myname myname.wha...@gmail.comwrote: Hello, I am trying to make a client request through the proxy server for Restlets, so that I can use the JMeter Proxy Server to record it and play back. I was able to do some tweaking around to be able to do this for SOAP requests, but am unable to find anything for Restlets. Does anyone have any idea how to do this? I am running my rest application in Eclipse. Maybe some config file that can be added in my project within eclipse, before I run the junits?
Re: Java Sampler causing Memory Leak
Hi i mean use the beanshell pre processor for diagnostics. Right click the sample and add a beanshell pre processor and in the script type print(vars.entrySet()); or the size or something and see if this keeps growing with every iteration (I dont think the HttpSample holds on to the parameters so this shouldnt be the cause of your outofmemory). the other source of the leak might be your sampler code. regards deepak On Sun, Jun 21, 2009 at 1:31 PM, tomada thomas.ra...@gmail.com wrote: Hi ! I do not use different variable names each time. No I did not use the beanshell pre processors. How do you use it ? When I did the load test I removed the listeners and execute Jmeter without GUI. Regards Tomada Deepak Shetty wrote: hi just a couple of queries a. are you using different variable names each time? can you print out vars say using beanshell preprocessors and see if this keeps growing? b. are you using some listeners like view results tree? if so can you run your test with these listeners disabled? regards deepak On Fri, Jun 19, 2009 at 3:33 PM, tomada thomas.ra...@gmail.com wrote: Hi all ! I am little new in Jmeter community and I am currently using it for Load test on a server with a lot of datas (400kb/thread) In order to generate those datas I need (in form of xmlstream) I use the java sampler to do it. You can see below the part of my scenario about it : Loop Controller : Forever (I just have to stop the test when I want to) |---Java Sampler : generating a xmlstream and put it in the response message |---RegExpExtractor : get the xmlstream in response message and put it in a variable ${myXmlStream} |---HttpRequest : sendValues?${myXmlStream} Unfortunately, as I am doing a forever loop on it (my Java Sampler and my sendvalues http request)to keep control on the load test time, I quickly get memory issues (out of Memory errors)which make Jmeter crashes. I already have increase the heap size but it just postpones it. I look into the heap dump and apparently it is the queryString object in the httpSampler which contains my xmlStream which is keeping (maybe too long) the xmlStream. One solution I find (and please tell me if it is right one or if may choose another one) is to directly generate the XmlStream in a a kind of new HTTPSampler object. So I create a NewHTTPSampler object extending HTTPSampler, first override the sample () method to not send the queryString content, then build my component which actually becomes a plugin, and then put the jar in the lib/ext folder but when I am executing Jmeter I see nothing new in the sampler menu. What can I do to succeed in doing what i want to do ? Is what I did the right way to deal with the memory leak or can I handle it in easier way ? Thank you for your help. Tomada -- View this message in context: http://www.nabble.com/Java-Sampler-causing-Memory-Leak-tp24119770p24119770.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/Java-Sampler-causing-Memory-Leak-tp24119770p24138544.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Java Sampler causing Memory Leak
if it gives you just your xmlstream you should be fine , the vars is similar to the java.util.Map , so you can just print out size (number of elements , not the memory footprint) , vars.entrySet().size(). Alternately, at the end of every iteration you could reset all the variables using a beanshell post - processor, but it doesnt sound as if your vars is a problem. but when I look into the heap dump it seems to be in the httpSampler part where there is the memory leak. However, I do not know how to be really sure. if you take multiple heap dumps and compare the differences and see whats growing . I cant remember whether you can do this with JHAT(i think you can, plus there is a flag which says XX:HeapDumpOnCtrlBreak or something like that), but you could with jprobe/optimize it (you get evaluation editions for 15 days), you probably would need to add a delay between each iteration so that you can run an iteration, force a GC, and then run another iteration, force a GC and see what has remained behind, thats your leak. id probably also create a reduced version of your test so that it minimises the number of things that could be causing your problem. regards deepak On Sun, Jun 21, 2009 at 2:04 PM, tomada thomas.ra...@gmail.com wrote: Hi ! Ok so I use print(vars.entrySet()); and it gives me my xmlstream for each iteration. What is the script to get the size or something else ? At the beginning, I thought it was my Sampler code but when I look into the heap dump it seems to be in the httpSampler part where there is the memory leak. However, I do not know how to be really sure. Regards Tomada Deepak Shetty wrote: Hi i mean use the beanshell pre processor for diagnostics. Right click the sample and add a beanshell pre processor and in the script type print(vars.entrySet()); or the size or something and see if this keeps growing with every iteration (I dont think the HttpSample holds on to the parameters so this shouldnt be the cause of your outofmemory). the other source of the leak might be your sampler code. regards deepak On Sun, Jun 21, 2009 at 1:31 PM, tomada thomas.ra...@gmail.com wrote: Hi ! I do not use different variable names each time. No I did not use the beanshell pre processors. How do you use it ? When I did the load test I removed the listeners and execute Jmeter without GUI. Regards Tomada Deepak Shetty wrote: hi just a couple of queries a. are you using different variable names each time? can you print out vars say using beanshell preprocessors and see if this keeps growing? b. are you using some listeners like view results tree? if so can you run your test with these listeners disabled? regards deepak On Fri, Jun 19, 2009 at 3:33 PM, tomada thomas.ra...@gmail.com wrote: Hi all ! I am little new in Jmeter community and I am currently using it for Load test on a server with a lot of datas (400kb/thread) In order to generate those datas I need (in form of xmlstream) I use the java sampler to do it. You can see below the part of my scenario about it : Loop Controller : Forever (I just have to stop the test when I want to) |---Java Sampler : generating a xmlstream and put it in the response message |---RegExpExtractor : get the xmlstream in response message and put it in a variable ${myXmlStream} |---HttpRequest : sendValues?${myXmlStream} Unfortunately, as I am doing a forever loop on it (my Java Sampler and my sendvalues http request)to keep control on the load test time, I quickly get memory issues (out of Memory errors)which make Jmeter crashes. I already have increase the heap size but it just postpones it. I look into the heap dump and apparently it is the queryString object in the httpSampler which contains my xmlStream which is keeping (maybe too long) the xmlStream. One solution I find (and please tell me if it is right one or if may choose another one) is to directly generate the XmlStream in a a kind of new HTTPSampler object. So I create a NewHTTPSampler object extending HTTPSampler, first override the sample () method to not send the queryString content, then build my component which actually becomes a plugin, and then put the jar in the lib/ext folder but when I am executing Jmeter I see nothing new in the sampler menu. What can I do to succeed in doing what i want to do ? Is what I did the right way to deal with the memory leak or can I handle it in easier way ? Thank you for your help. Tomada -- View this message in context: http://www.nabble.com/Java-Sampler-causing-Memory-Leak-tp24119770p24119770.html Sent from the JMeter - User mailing list archive at Nabble.com
Re: Java Sampler causing Memory Leak
Hi i find it hard to believe that the problem is in HttpSampler (because then this should be reported quite often). Would it be possible to post your entire test?(or a reduced form that shows the error?) Another thing to try out would be to see if this problem is present in the HttpClient -HttpSampler? Im not sure how to extend the HttpSampler , but you can always make the call from your custom JavaSampler.. regards deepak On Sun, Jun 21, 2009 at 9:25 PM, tomada thomas.ra...@gmail.com wrote: Hi ! I took multiple heap dumps. It confirms that the memory issues are in the HttpSampler and HttpSamplerBase objects of JMeter and not in the Sampler I coded. I navigated in the heap dump but I really do not know to well diagnose a memory leak so the best solution is to come back to program a new httpSampler plugin which dynamically generate the xmlstream and directly send it to the server. So can you please give me some advices about it ? I know that it will have to extend AbstractSamplerGUI to appear in the GUI but who does really know how the httpSampler is functionning ? Regards Tomada Deepak Shetty wrote: if it gives you just your xmlstream you should be fine , the vars is similar to the java.util.Map , so you can just print out size (number of elements , not the memory footprint) , vars.entrySet().size(). Alternately, at the end of every iteration you could reset all the variables using a beanshell post - processor, but it doesnt sound as if your vars is a problem. but when I look into the heap dump it seems to be in the httpSampler part where there is the memory leak. However, I do not know how to be really sure. if you take multiple heap dumps and compare the differences and see whats growing . I cant remember whether you can do this with JHAT(i think you can, plus there is a flag which says XX:HeapDumpOnCtrlBreak or something like that), but you could with jprobe/optimize it (you get evaluation editions for 15 days), you probably would need to add a delay between each iteration so that you can run an iteration, force a GC, and then run another iteration, force a GC and see what has remained behind, thats your leak. id probably also create a reduced version of your test so that it minimises the number of things that could be causing your problem. regards deepak On Sun, Jun 21, 2009 at 2:04 PM, tomada thomas.ra...@gmail.com wrote: Hi ! Ok so I use print(vars.entrySet()); and it gives me my xmlstream for each iteration. What is the script to get the size or something else ? At the beginning, I thought it was my Sampler code but when I look into the heap dump it seems to be in the httpSampler part where there is the memory leak. However, I do not know how to be really sure. Regards Tomada Deepak Shetty wrote: Hi i mean use the beanshell pre processor for diagnostics. Right click the sample and add a beanshell pre processor and in the script type print(vars.entrySet()); or the size or something and see if this keeps growing with every iteration (I dont think the HttpSample holds on to the parameters so this shouldnt be the cause of your outofmemory). the other source of the leak might be your sampler code. regards deepak On Sun, Jun 21, 2009 at 1:31 PM, tomada thomas.ra...@gmail.com wrote: Hi ! I do not use different variable names each time. No I did not use the beanshell pre processors. How do you use it ? When I did the load test I removed the listeners and execute Jmeter without GUI. Regards Tomada Deepak Shetty wrote: hi just a couple of queries a. are you using different variable names each time? can you print out vars say using beanshell preprocessors and see if this keeps growing? b. are you using some listeners like view results tree? if so can you run your test with these listeners disabled? regards deepak On Fri, Jun 19, 2009 at 3:33 PM, tomada thomas.ra...@gmail.com wrote: Hi all ! I am little new in Jmeter community and I am currently using it for Load test on a server with a lot of datas (400kb/thread) In order to generate those datas I need (in form of xmlstream) I use the java sampler to do it. You can see below the part of my scenario about it : Loop Controller : Forever (I just have to stop the test when I want to) |---Java Sampler : generating a xmlstream and put it in the response message |---RegExpExtractor : get the xmlstream in response message and put it in a variable ${myXmlStream} |---HttpRequest : sendValues?${myXmlStream} Unfortunately, as I am doing a forever loop on it (my Java Sampler and my sendvalues http request)to keep control on the load test time, I quickly
Re: How to pass on Session id in case of Web Services
depends on how you are getting the session id . Most webservices do not use the Server http session id, are you making a separate call to get the session id? regards deepak On Sun, Jun 21, 2009 at 10:48 PM, Rekha Malik rekha_ma...@infosys.comwrote: Hi, I am using JMeter for testing of web services. But my I am not able to pass on the session id. Please guide me how to do it as I am using Jmeter for the first time. Thanks, Rekha CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Loop controller question
Hi you can with a ForEach Controller In Match no specify -1 for the Regex extractor Use a Foreach controller and in the input variable prefix specify the reference name of the RegEx extractor regards deepak On Mon, Jun 22, 2009 at 11:13 AM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Greetings, Is it possible to use the outcome of Regular Expression Post-processor, namely, the number of matches to govern the number of loop executions? I suspect not but would like to know for sure. TIA. -a
Re: Loop controller question
Youll have to use beanshell(or equivalent scripts) as far as I know. the above approach works if you had to use the templated version as is.and since you want to find the individual groups , it wont work directly I would try something like Sampler Regex extractor For Each Sampler Bean shell preproc get the groups and set it as you want into the sampler using add argument You could if you want specify template like $1$~$2$~$4$ and parse it based on the ~(or whatever delimiter) which keeps your beanshell fairly simple. Various ways you can do the same thing above (e.g. maintain an index in the loop and use one of the __ functions to get the group value) regards deepak On Mon, Jun 22, 2009 at 12:25 PM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Hello again, I'm running into a problem with this approach: my RE picks up several matching groups and the RE Extractor template looks something like this: $1$$2$$4$$5$. I was hoping to use the ForEach controller with an Http Request sampler, where the sampler has parameters whose values are the results of the RE match. If I define the Reference Name in RE Extractor as tuple, I was hoping to use the match results in assigning parameters as follows: Name Value --- ID ${tuple_g1} Type ${tuple_g2} But it turns out I need the loop index as part of the parameter value designator: Name Value --- ID ${tuple_1_g1} Type ${tuple_1_g2} This defeats the whole rational of using the ForEach controller. Am missing something again? TIA. -a -Original Message- From: Deepak Shetty [mailtos:shet...@gmail.commailtos%3ashet...@gmail.com ] Sent: Monday, June 22, 2009 2:31 PM To: JMeter Users List Subject: Re: Loop controller question Hi you can with a ForEach Controller In Match no specify -1 for the Regex extractor Use a Foreach controller and in the input variable prefix specify the reference name of the RegEx extractor regards deepak On Mon, Jun 22, 2009 at 11:13 AM, Stromas, Aaron (NIH/OD) [C] stroma...@od.nih.gov wrote: Greetings, Is it possible to use the outcome of Regular Expression Post-processor, namely, the number of matches to govern the number of loop executions? I suspect not but would like to know for sure. TIA. -a - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Error while launching JMeter 2.3.3
you are probably using java 1.3, set your path to have the correct version of java(atleast 1.4).. regards deepak On Tue, Jun 23, 2009 at 1:33 AM, Anwaruddin Mohammad anwaruddi...@ocimumbio.com wrote: I did try to comment set DUMP=-XX:+ HeapDumpOnOutOfMemoryError, but following exception is given by system Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/jmeter/NewDriver (Unsupported major.minor version 48.0) Regards Anwar -Original Message- From: M.Vijaya Bhaskar [mailto:vijayabhaska...@sigmainfo.net] Sent: Tuesday, June 23, 2009 11:38 AM To: JMeter Users List Subject: Re: Error while launching JMeter 2.3.3 Hi Anwar, Try this one its worked for me. Edit the jmeter.bat file Comment this line in jmeter.bat set DUMP=-XX:+ HeapDumpOnOutOfMemoryError It will work Thanks Vijay On Tue, Jun 23, 2009 at 11:26 AM, Anwaruddin Mohammad anwaruddi...@ocimumbio.com wrote: Dear JMeter users, While launching JMeter (jmeter.bat) i got the following error message. Unrecognized VM option '+HeapDumpOnOutOfMemoryError' Could not create the Java virtual machine. errorlevel=1 Press any key to continue . . . I am using jdk1.6.0. JAVA_HOME, CLASSPATH and PATH have already been set. Also tried commenting set DUMP=-XX:+HeapDumpOnOutOfMemoryError this line in jmeter.bat, but invain. Please help. regards Anwar - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Variances between automated and manual tests
hi Some things to think about a. Are you including all resources in your jmeter tests (e.g. all embedded resources like css/images/javascript which may or may not be cached by the browser). b. Do you have assertions for all your tests that validate that your response is as expected (no error messages , expected text etc?) c. Have you suitably parameterised your jmeter tests (say for e.g. using different users so that if your application is caching some bits per user , then you dont get better results than you should) d. Have you distributed your tests across multiple machines correctly (500 concurrent users wont normally be supported by a single client machine)? regards deepak On Tue, Jun 23, 2009 at 8:04 AM, Badeau, Kevin (DPH) kevin.bad...@state.ma.us wrote: Hello folks, We are using jMeter to capacity test an application we are considering purchasing. When we ramp up to 500 concurrent users jMeter is reporting response times under 5 seconds and it appears it is stepping through all the functionality we are asking it to do. This is very acceptable for us. However, while the test is running we try to hit the application manually and we find it is unresponsive. Manual testing is quick outside of a concurrent jMeter test running. Manual testing performance degrades as we in range from 100 to 200 concurrent users. Manual testing is unresponsive when we run 500 concurrent users. jMeter reports response times only degrade by about a ½ second for each level of concurrent users we try. There seems to be some wide performance variance from what jMeter is seeing vs. what we see manually. I'm wondering if anyone has any general suggestions as to why this might be or how we might go about isolating this anomaly. I can provide more specific details if needed but I feel the question is pretty basic in terms what we understand the tool is supposed to be accomplishing in simulating real world scenarios and benchmarking them. Thanks in advance. Kevin
Re: Variances between automated and manual tests
No rule of thumb , I just watch the perf counters and see that the cpu load is light to moderate and that memory doesn't exceed the physical ram on the machine regards deepak On Tue, Jun 23, 2009 at 9:02 AM, Scott McFadden smcfad...@criticaltech.comwrote: What is the recommended maximum number of simulated jmeter users / threads per machine? Assuming Windows multi core environments. -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, June 23, 2009 10:57 AM To: JMeter Users List Subject: Re: Variances between automated and manual tests hi Some things to think about a. Are you including all resources in your jmeter tests (e.g. all embedded resources like css/images/javascript which may or may not be cached by the browser). b. Do you have assertions for all your tests that validate that your response is as expected (no error messages , expected text etc?) c. Have you suitably parameterised your jmeter tests (say for e.g. using different users so that if your application is caching some bits per user , then you dont get better results than you should) d. Have you distributed your tests across multiple machines correctly (500 concurrent users wont normally be supported by a single client machine)? regards deepak On Tue, Jun 23, 2009 at 8:04 AM, Badeau, Kevin (DPH) kevin.bad...@state.ma.us wrote: Hello folks, We are using jMeter to capacity test an application we are considering purchasing. When we ramp up to 500 concurrent users jMeter is reporting response times under 5 seconds and it appears it is stepping through all the functionality we are asking it to do. This is very acceptable for us. However, while the test is running we try to hit the application manually and we find it is unresponsive. Manual testing is quick outside of a concurrent jMeter test running. Manual testing performance degrades as we in range from 100 to 200 concurrent users. Manual testing is unresponsive when we run 500 concurrent users. jMeter reports response times only degrade by about a ½ second for each level of concurrent users we try. There seems to be some wide performance variance from what jMeter is seeing vs. what we see manually. I'm wondering if anyone has any general suggestions as to why this might be or how we might go about isolating this anomaly. I can provide more specific details if needed but I feel the question is pretty basic in terms what we understand the tool is supposed to be accomplishing in simulating real world scenarios and benchmarking them. Thanks in advance. Kevin - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Excluding jpeg, js, png files while recording
hi Depends on what you want out of your test and on other factors a. Do you want to find out if there are logical/functional problems when your application is accessed concurrently only, then you can exclude static files b. Do you want to see generally how your application responds to different loads and how well it scales, then you can exclude static files c. If you need to figure out to a reasonable degree of accuracy , how much time a page takes (perhaps to see if your response time SLA's are met )then you might need to consider these if a. You do not have a separate webserver for your static content v/s your app b. You do not have caching headers configured for your static content Note that even in this case you cant really measure browser render times, browser cache behaviors, proxy caches etc all of which will influence the response time. The browser will also execute some requests in parallel.If this is your requirement, You might consider using a different tool for your test which actually drives the browser and records it. Im sure other factors/scenarios exist as well. regards deepak On Tue, Jun 23, 2009 at 9:54 PM, Jmeter_User umesh.hosa...@wipro.comwrote: Hi All, I have a question regarding excluding the .jpeg, .png, .js, .gif files while recording. Is it advisable to exclude these while recording and performing the load test excluding those? Because if I dont exclude, many http request's get created for each of the js or jpeg files. When I will do the load test, it will request the server for each of those files and will consume server. Which will affect the response times for other transactions/steps. If I disable or exclude the images or js files, the response time may be improved for other transactions/steps. Some places its mentioned its advisable to exclude it, just want to confirm on it. Thanks in advance. -- View this message in context: http://www.nabble.com/Excluding-jpeg%2C-js%2C-png-files-while-recording-tp24178689p24178689.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: wait time for response
Typically you use Equals when you are asserting a response code or response message (and rarely response text unless it just returns something like success/false) So if you had a test that accesses a secured page without logging in you say in the Assertion choose Response Code , Equals and 401 in the Patterns to test. For the difference between matches and contains you need to read up on regular expressions. (equals and substrings are not regex based comparisons , but contains and matches are regex based) Contains is any match anywhere in the value being tested . Matches is the test must match the while string If you are testing the string Ankush k.?s will satisfy contains but fail matches. .*?k.?s.*? will satisfy both regards deepak On Wed, Jun 24, 2009 at 11:58 AM, ankush jethi ankush.je...@gmail.comwrote: Hi all, How much is the default wait time for jmeter when it executes the script. Means for how long by default i waits for the response. also is there any option to change that. -- Regards Performance learner
Re: Assertions
sorry for the repost, doing this to get the response in the correct thread Typically you use Equals when you are asserting a response code or response message (and rarely response text unless it just returns something like success/false) So if you had a test that accesses a secured page without logging in you say in the Assertion choose Response Code , Equals and 401 in the Patterns to test. For the difference between matches and contains you need to read up on regular expressions. (equals and substrings are not regex based comparisons , but contains and matches are regex based) Contains is any match anywhere in the value being tested . Matches is the test must match the while string If you are testing the string Ankush k.?s will satisfy contains but fail matches. .*?k.?s.*? will satisfy both regards deepak On Wed, Jun 24, 2009 at 12:06 PM, ankush jethi ankush.je...@gmail.comwrote: Hi friends, Can any one give some example of the usage of respinse assertion from text. 1. Using Contains 2. Equals 3. Matches Although using contains I successfully implement assertions but still I am not able to get how to use these other two assertion types. any generici example would help -- Regards Performance Learner It Is Very Easy To Be Brave From A Safe Distance.
Re: Calculating average response time for each transactions when it contains many images
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request Retrieve All Embedded Resources from HTML Files However note that the browser behavior is mostly unpredictable and a function of various caches so the values you get here are just ballpark estimates . This wont include browser render times etc.. regards deepak P.S. if you just want to group requests http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Transaction_Controller On Mon, Jul 6, 2009 at 2:02 AM, Andrew Melnyk melnykena...@gmail.comwrote: Can anybody expand on the problem below mentioned? 2009/7/5 Jmeter_User tptes...@gmail.com Hi All, I have started using Jmeter recently. I am having a query on how to find out the average respone time of the transaction when it includes images and java scripts as part of its transaction. Because I could see the response time given by Jmeter is less than response time given by Load Runner for the same transaction recorded in jmeter and load runner, when there are some images in the page. The reason I could guess is, in Load runner, the response time is including the images downloaded on the page along with the transaction, but in case of jmeter, the transaction response time is excluding the images downloaded, because the images repsones time will be shown as separate request, as its records each images as a separate request. I am testing one application which is similar to search engine, While recording, if the page is having many images and some java scripts, then all those are added in as individual http requests and along with the actual searchresults.aspx request. In this situation I am not able to find out exact time taken for the search along with image download, because if I just consider the response time of searchresults.aspx, it may be less, as it is excluding the resposne times of the images and java scripts on the same page. For eaxmple : If I have the page with http requests recorded scripts are like: http://forexample.com/download.gif http://forexample.com/required.js http://actualsearchresults.aspx http://forexample.com/finalimage.gif If I run the script like above, I will get response times of individual reuquests and total avergae at the end in aggragte and summery report. How can I consolidate all the images, jave sripts and actual search aspx response times. Application having many images and java scripts, there will be many http requests separtely shown in Jmeter for each image and each java script. Which is confusing me to find the exact response time of the transaction which includes images and java scripts as part of its transaction. Please let me know is there any way to do it or is there any way of recording. I dont want to exclude images, becasue if I tried excluding the images and java scripts, I get response times very less compared to running the same transaction in load runner. -- View this message in context: http://www.nabble.com/Calculating-average-response-time-for-each-transactions-when-it-contains-many-images-tp24340237p24340237.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Modifying data while filling forms and basic Jmeter help
Its very difficult to diagnose your problem when the only information you provide is that it didnt work and you got an error Attach a View Results Tree listener and observe the requests you are making and the responses you are getting and see where the problem lies . Ensure that all your tests have assertions so you can figure out the first place of failure easily. also take a look at what the error actually is e.g. if your CSS file gace you a 404 error its likely that this is a problem with your site(the browser would ignore this error) if you have recorded the test, if it gave a 401 it might mean that your login probably didnt work. You can also compare what your test does with what the browser does (using any browser sniffing tool like HTTPWatch or LiveHTTPHeaders) See http://jakarta.apache.org/jmeter/usermanual/functions.html#__Random for the random function On Tue, Jul 7, 2009 at 4:25 AM, phanikishan phanikis...@gmail.com wrote: Hey guys, I'm a new user to Jmeter and have a few doubts. I am testing my web-application for performance. It involves logging in, making a database query, modifying a certain parameter, saving it and then logging out. I want to modify the parameter dynamically (rand() etc.) Please suggest how exactly to go about it? Till now I have: Used the recording feature and recorded the steps involved. Tried running the test for a single user by simply modifying by hardcoding a different value to the parameter (which didnt work). I have also had a sampler error as my browser tried requesting a css sheet. I also am not able to figure out if the test plan has been executed the way I think it to be. Please help me or point me to the right forums/threads. Thank you Phani Kishan -- View this message in context: http://www.nabble.com/Modifying-data-while-filling-forms-and-basic-Jmeter-help-tp24371548p24371548.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Help with response time (URL and Enbedded Resources)
Hi asked many times on this list , you can look through the archives. The summarised answer is none of them(mostly somewhere in between or worst case slightly more) , and also depends on what you mean by response time. A browser would not download all files in a single thread (I believe IE's restriction is two threads per domain), if you had already visited the site some of the images/js/css might be cached(so first time access will be slower than subsequent access). This doesnt include render time within a browser (which may or may not be significant e.g. a DHTML heavy site) If you use firefox with TamperData /YSlow you can get a graph of how the browser is making the requests (what gets done in parallel/serial etc) and calculate your response times if you are really enthusiastic. regards deepak On Thu, Jul 9, 2009 at 7:49 AM, pneves xpedro.ne...@gmail.com wrote: I have a question and I would like help from you. I am using jmeter for testing of stress. My question is to test on a single URL or include all enbedded resources to calculate response time. Ex: Ther URL www.google.com has 5 sub urls endedded resources (See list below) 1 www.google.com/ ( response time: 1040 ) 2 www.google.com/intl/pt-BR_br/images/logo.gif( response time: 454 ) 3 www.google.com/extern_js/f/xxx.js ( response time: 435 ) 4 www.google.com/generate_204 ( response time: 381 ) 5 www.google.com/images/nav_logo6.png ( response time: 239 ) 6 www.google.com/csi ( response time: 199 ) Only the URL www.google.com the response time is 1040 mileseconds, but the sub urls is (454 + 435 + 381 + 239 + 199 in order in list) = 1708 My question is: What is response time to page www.google.com ? only 1040 or 1040 + 1708 = 2748 ? The www.google.com is only example Thank you. Pedro Neves Brazil -- View this message in context: http://www.nabble.com/Help-with-response-time-%28URL-and-Enbedded-Resources%29-tp24410718p24410718.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Modifying data while filling forms and basic Jmeter help
a 404 means file not found. Observe the Requested URL and check whether the URL is right and the file really doesnt exist or if the URL is wrong. Directly typing this URL in the browser should give you the same error. Most browser incompatibilities are due to js/css which JMeter doesnt care about. On Wed, Jul 8, 2009 at 11:55 PM, phanikishan phanikis...@gmail.com wrote: Attach a View Results Tree listener and observe the requests you are making and the responses you are getting and see where the problem lies . Ensure that all your tests have assertions so you can figure out the first place of failure easily. also take a look at what the error actually is e.g. if your CSS file gace you a 404 error its likely that this is a problem with your site(the browser would ignore this error) if you have recorded the test, if it gave a 401 it might mean that your login probably didnt work. Hey, I did get a 404 - Not found error. So what exactly might be the problem with the site? I will try add the results of the view results listener soon. My site doesnt exactly conform to standards i.e some settings dont even work in firefox and stuff. Does this have something to do with it too? I will try what you suggested and get back anyways. Thank you! Phani Kishan -- View this message in context: http://www.nabble.com/Modifying-data-while-filling-forms-and-basic-Jmeter-help-tp24371548p24405097.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Modifying data while filling forms and basic Jmeter help
Hi Hey the url doesnt really exist indeed, but why is it appearing in the recorded commands? Because the HTML page contains a reference to your css file in the form of link, the browser will make a request to this CSS file and it will get recorded (the browser however ignores this error) (I said stop test on sampler error and it didnt- so I guess this means no errors) Not necessarily. This means there are no HTTP errors (like a 500 error) that JMeter can detect. You must have good assertions in your test if you want to be able to make this statement But the main problem lies in the fact that when I go to http request which contains my login details and change them to a wrong id, the test still runs without any error. If your application returns an error message (e.g. Invalid username/password) with a 200 status code, JMeter wont know this an error. You must assert the content of the returned HTML page (either it must contain a success message, or it must not contain the error message or it must contain a particular text only found on success) - depends on your app Use View results tree to view the response you obtain(render it as HTML and see what you are getting). On Mon, Jul 13, 2009 at 2:23 AM, phanikishan phanikis...@gmail.com wrote: Deepak Shetty wrote: a 404 means file not found. Observe the Requested URL and check whether the URL is right and the file really doesnt exist or if the URL is wrong. Directly typing this URL in the browser should give you the same error. Most browser incompatibilities are due to js/css which JMeter doesnt care about. Hey the url doesnt really exist indeed, but why is it appearing in the recorded commands? (if it doesnt exist, I never even go to the page right?). Also I'm running it on ie 6 and my web-application/page has loads of java scripts. So while recording what should I include the .*\.js and .*\.css patterns? (right now I include .* and dont exclude any). I have removed the css file from the http requests and run the test plan and it ran without any errors (I said stop test on sampler error and it didnt - so I guess this means no errors) . But the main problem lies in the fact that when I go to http request which contains my login details and change them to a wrong id, the test still runs without any error. I think this is the reason why i'm not able to change data while running a test. (What I tried doing was - recorded a test case which involves modifying a database parameter. Once recorded I tried using the Random() method to modify this parameter but it remains the same.) Can you help me as to what to do? Phani Kishan -- View this message in context: http://www.nabble.com/Modifying-data-while-filling-forms-and-basic-Jmeter-help-tp24371548p24458475.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: How to distinguish performance drawback source
hi possible problems that i can think of are a. You have loaded the Jmeter client with more load than it can handle (as a rule of thumb i wouldn't run more than 20-25 threads from a single client jmeter). You would need to distribute your test across multiple machines (You can check whether your machine is overloaded by using your OS specific perf monitoring tool - reliability and perf monitor on windows) b. There is something that you need to tweak in your tests(e.g. if your application uses caches , and the browser based tests are hitting the cache, whereas the Jmeter tests are not) c. You are downloading embedded resources (e.g. big flash/movie files or something whereas the browser either has it cached or is streaming it).This can easily be tested by checking your script and clearing your browser cache before accessing the site while your load test is running. regards deepak On Tue, Jul 14, 2009 at 3:03 AM, ziohausam ziohau...@gmail.com wrote: Hello All, I have a Question. I use Jmeter in my Performance test execution. Actually i always face drawback when number of users increases and of course this is normal. what is not normal is that while i check the performance live with the test execution running, i open a browser session for navigating the web application and i can't find any drawbacks. also i try this from different PCs, and no noticeable drawbacks. For example: in the testing tool, some request takes 2 seconds with 1 user. and 90 seconds with 75 users running with ramp-up period 40 seconds. that's fine that's a noticeable drawback. but actually when i use the same PC or any different PC to call this request though the browser while it is processed by the test tool, i find no noticeable drawbacks. How can i explain this? how can i understand this, and also how can i distinguish performance drawback source (server, application, client machine hardware or bandwidth, etc) I had sent this post before in QA forums and had really helpful ideas to explain the reason, but they still do not represent the real cause as i have checked all suggestions and found every thing is ok. i hope i can find more ideas and explanations here too am Note: as i am only a beginner using JMETER. most possibly is that i am missing something configuring my tool or test execution process. Regards, Hosam -- View this message in context: http://www.nabble.com/How-to-distinguish-performance-drawback-source-tp24476707p24476707.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Steps to record HTTP request
Hi you just click the start button. Are you testing HTTP or HTTPS? If HTTPS did you check use this setting for all protocols? Also ensure that the server you are testing is not listed in No proxy for and why should I change proxy server settings Im not sure what this question means. regards deepak On Tue, Jul 14, 2009 at 10:38 AM, Vijay vi...@flatworldindia.com wrote: Yeah, I've set the connection as manual proxy and added the appl. Ip with port no. 8080 on ff 3.5. How to start the proxy server and why should I change proxy server settings? I am not clear on that -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, July 14, 2009 11:04 PM To: JMeter Users List Subject: Re: Steps to record HTTP request Did you configure your browser to use your proxy server (and started the proxy server) ? On Tue, Jul 14, 2009 at 7:33 AM, Vijay vi...@flatworldindia.com wrote: Hi Kindly guide me thru recording http request Steps followed: 1. From work bench, created a Non test element - Http proxy server 2. In http proxy server pane a. Checked Attempt https spoofing 3. Test plan content a. Target controller - Workbench-http proxy server b. Grouping - Add separators between groups 4. HTTP sampler settings a. Type - HTTP request b. Checked 'Redirect automatically, Checked follow redirects and clicked on Start button 5. Then started accessing the application in server (not thru web, thru lan) Nothing is getting recorded Could any one please guide me the steps to record HTTP requests, since I am new to Jmeter Thanks Vijay - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Steps to record HTTP request
Hi I am accessing an application from the server machine using http protocol (just giving the ip address of the server machine - static ip, not thru internet and also thru internet when connected remotely) Im assuming you are accessing the application with a browser which has been configured to use the Jmeter you set up as a proxy , correct?if so it should work - it doesnt matter where you access your app from , so long as the app can resolve the proxy address and the browser doesnt bypass the proxy (e.g. if you typed 127.0.0.1) (try making the same setting in IE if FF isnt working for you , with Bypass proxy for local addresses unchecked , and access your app in IE). Also check the jmeter logs. Finally what version of jmeter? regards deepak On Tue, Jul 14, 2009 at 11:18 AM, Vijay vi...@flatworldindia.com wrote: Hi Deepak Thanks for being patient to give a reply to me. The request is http only. Let me explain my scenario I am accessing an application from the server machine using http protocol (just giving the ip address of the server machine - static ip, not thru internet and also thru internet when connected remotely) Jmeter is not extracted in server. I've extracted Jmeter in my local machine Clicked on jmeter.bat so from Jmeter gui, I've followed the steps mentioned in 'http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf ' But then too recording is not done. Kindly could you clear my doubts or tell me how to proceed from this Thanks Vijay -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, July 14, 2009 11:31 PM To: JMeter Users List Subject: Re: Steps to record HTTP request Hi you just click the start button. Are you testing HTTP or HTTPS? If HTTPS did you check use this setting for all protocols? Also ensure that the server you are testing is not listed in No proxy for and why should I change proxy server settings Im not sure what this question means. regards deepak On Tue, Jul 14, 2009 at 10:38 AM, Vijay vi...@flatworldindia.com wrote: Yeah, I've set the connection as manual proxy and added the appl. Ip with port no. 8080 on ff 3.5. How to start the proxy server and why should I change proxy server settings? I am not clear on that -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, July 14, 2009 11:04 PM To: JMeter Users List Subject: Re: Steps to record HTTP request Did you configure your browser to use your proxy server (and started the proxy server) ? On Tue, Jul 14, 2009 at 7:33 AM, Vijay vi...@flatworldindia.com wrote: Hi Kindly guide me thru recording http request Steps followed: 1. From work bench, created a Non test element - Http proxy server 2. In http proxy server pane a. Checked Attempt https spoofing 3. Test plan content a. Target controller - Workbench-http proxy server b. Grouping - Add separators between groups 4. HTTP sampler settings a. Type - HTTP request b. Checked 'Redirect automatically, Checked follow redirects and clicked on Start button 5. Then started accessing the application in server (not thru web, thru lan) Nothing is getting recorded Could any one please guide me the steps to record HTTP requests, since I am new to Jmeter Thanks Vijay - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Which Sampler to use to test RESTful Web Service?
hi Sampler HTTP Request (with HTTPClient or the normal one) regards deepak On Tue, Jul 14, 2009 at 10:17 PM, Anwaruddin Mohammad anwaruddi...@ocimumbio.com wrote: Dear Team, I was told that JMeter can be used for testing RESTful webservice. I was wondering whether to use Sampler HTTP Request HTTPClient or Sampler WebService(SOAP Request)? Please guide. Anwar
Re: Steps to record HTTP request
Hi no javascript support, AJAX requests are supported depending on what you want (an AJAX request is still an HTTP request). The main thing is JMeter is not a browser , it can make HTTP requests and get its response . If you want to run a test within a browser then you should look at Selenium/QTP/Watir (but none of these are load test tools) Jmeter is sort of equivalent to load Runner regards deepak On Tue, Jul 14, 2009 at 11:42 PM, Vijay vi...@flatworldindia.com wrote: Hi Deepak Does Jmeter supports Javascript and AJAX request since we use these both at maximum -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Wednesday, July 15, 2009 12:02 AM To: JMeter Users List Subject: Re: Steps to record HTTP request Hi I am accessing an application from the server machine using http protocol (just giving the ip address of the server machine - static ip, not thru internet and also thru internet when connected remotely) Im assuming you are accessing the application with a browser which has been configured to use the Jmeter you set up as a proxy , correct?if so it should work - it doesnt matter where you access your app from , so long as the app can resolve the proxy address and the browser doesnt bypass the proxy (e.g. if you typed 127.0.0.1) (try making the same setting in IE if FF isnt working for you , with Bypass proxy for local addresses unchecked , and access your app in IE). Also check the jmeter logs. Finally what version of jmeter? regards deepak On Tue, Jul 14, 2009 at 11:18 AM, Vijay vi...@flatworldindia.com wrote: Hi Deepak Thanks for being patient to give a reply to me. The request is http only. Let me explain my scenario I am accessing an application from the server machine using http protocol (just giving the ip address of the server machine - static ip, not thru internet and also thru internet when connected remotely) Jmeter is not extracted in server. I've extracted Jmeter in my local machine Clicked on jmeter.bat so from Jmeter gui, I've followed the steps mentioned in ' http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf ' But then too recording is not done. Kindly could you clear my doubts or tell me how to proceed from this Thanks Vijay -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, July 14, 2009 11:31 PM To: JMeter Users List Subject: Re: Steps to record HTTP request Hi you just click the start button. Are you testing HTTP or HTTPS? If HTTPS did you check use this setting for all protocols? Also ensure that the server you are testing is not listed in No proxy for and why should I change proxy server settings Im not sure what this question means. regards deepak On Tue, Jul 14, 2009 at 10:38 AM, Vijay vi...@flatworldindia.com wrote: Yeah, I've set the connection as manual proxy and added the appl. Ip with port no. 8080 on ff 3.5. How to start the proxy server and why should I change proxy server settings? I am not clear on that -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Tuesday, July 14, 2009 11:04 PM To: JMeter Users List Subject: Re: Steps to record HTTP request Did you configure your browser to use your proxy server (and started the proxy server) ? On Tue, Jul 14, 2009 at 7:33 AM, Vijay vi...@flatworldindia.com wrote: Hi Kindly guide me thru recording http request Steps followed: 1. From work bench, created a Non test element - Http proxy server 2. In http proxy server pane a. Checked Attempt https spoofing 3. Test plan content a. Target controller - Workbench-http proxy server b. Grouping - Add separators between groups 4. HTTP sampler settings a. Type - HTTP request b. Checked 'Redirect automatically, Checked follow redirects and clicked on Start button 5. Then started accessing the application in server (not thru web, thru lan) Nothing is getting recorded Could any one please guide me the steps to record HTTP requests, since I am new to Jmeter Thanks Vijay - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org - To unsubscribe, e-mail: jmeter-user-unsubscr
Re: Which Sampler to use to test RESTful Web Service?
Not true. A REST client has to support PUT,GET,DELETE (and other HTTP verbs) , not just POST regards deepak On Tue, Jul 14, 2009 at 10:41 PM, Mathumathi Palani Bommu, EAS-Chennai mathumat...@hcl.in wrote: Sampler -- Web Services will work for this From: Deepak Shetty [shet...@gmail.com] Sent: Wednesday, July 15, 2009 11:03 AM To: JMeter Users List Subject: Re: Which Sampler to use to test RESTful Web Service? hi Sampler HTTP Request (with HTTPClient or the normal one) regards deepak On Tue, Jul 14, 2009 at 10:17 PM, Anwaruddin Mohammad anwaruddi...@ocimumbio.com wrote: Dear Team, I was told that JMeter can be used for testing RESTful webservice. I was wondering whether to use Sampler HTTP Request HTTPClient or Sampler WebService(SOAP Request)? Please guide. Anwar DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Modifying data while filling forms and basic Jmeter help
You have to use one of the Post Processors (e.g. Regex) to extract this token from the Servers response into a variable and post the data back to the server whenever its needed regards deepak On Wed, Jul 15, 2009 at 2:33 AM, phanikishan phanikis...@gmail.com wrote: Deepak Shetty wrote: Hi Hey the url doesnt really exist indeed, but why is it appearing in the recorded commands? Because the HTML page contains a reference to your css file in the form of link, the browser will make a request to this CSS file and it will get recorded (the browser however ignores this error) (I said stop test on sampler error and it didnt- so I guess this means no errors) Not necessarily. This means there are no HTTP errors (like a 500 error) that JMeter can detect. You must have good assertions in your test if you want to be able to make this statement But the main problem lies in the fact that when I go to http request which contains my login details and change them to a wrong id, the test still runs without any error. If your application returns an error message (e.g. Invalid username/password) with a 200 status code, JMeter wont know this an error. You must assert the content of the returned HTML page (either it must contain a success message, or it must not contain the error message or it must contain a particular text only found on success) - depends on your app Use View results tree to view the response you obtain(render it as HTML and see what you are getting). Hey, I believe I found the source of my problem. Apparently the session Id generated by my server and that of Jmeter are not matching because of which my server is not accepting a change to the database. The server generates tokens and database is updated if the tokens match. Is there anyway I can go around this problem? Thanks a lot. Phani Kishan -- View this message in context: http://www.nabble.com/Modifying-data-while-filling-forms-and-basic-Jmeter-help-tp24371548p24494666.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: JMeter and Ant Logging
hi whoops sorry, didnt read your message carefully. Possibly a different log4j.properties file is being used - i.d change the name to something other than log4j.properties and use -Dlog4j.configuration to explicitly specify this file You also have log4j: setFile called: c:/brol7/application3.log, false , but your log4j.properties doesnt have any such log file mentioned. Also you dont have anything named stderr but it shows up as well. And the log you've attached shows that no file is being set for stdout.. regards deepak On Wed, Jul 15, 2009 at 3:31 AM, SGE0 stefangee...@hotmail.com wrote: Hi, thx for the response. Please note that the consoleappender is in comment (please note the cross sign at the beginning of the line #) and that the stdout is pointing to a FileAppender ! So basically I want to suppress that logs are coming in the console. Regards, S. Deepak Shetty wrote: Hi im not sure what your question is. The log4j.properties file specifies a console appender , so you would get to see the messages appearing on your console regards deepak On Tue, Jul 14, 2009 at 1:55 PM, SGE0 wrote: Hi, I have been using Ant Jmeter successfully the last months. No I want to use the log4j package to have more control on the logging of messages I have a log4j.properties file with following contents: log4j.rootCategory=WARN,application,stdout, #out to console #log4j.appender.stdout=org.apache.log4j.ConsoleAppender #log4j.appender.stdout.layout=org.apache.log4j.PatternLayout #log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x -%m%n log4j.appender.stdout= org.apache.log4j.FileAppender log4j.appender.stdout.file = c:/brol7/application2.log log4j.appender.stdout.layout = org.apache.log4j.PatternLayout log4j.appender.stdout.layout.conversionPattern = %d [%t] %-5p %c - %m%n log4j.appender.stdout.append = false #out to file log4j.appender.application = org.apache.log4j.FileAppender log4j.appender.application.file = c:/brol7/application.log log4j.appender.application.layout = org.apache.log4j.PatternLayout log4j.appender.application.layout.conversionPattern = %d [%t] %-5p %c - %m%n log4j.appender.application.append = false At startup I get following; Buildfile: monitor.xml log4j: Trying to find [log4j.properties] using context classloader java.net.URLC lassloa...@de6ced. log4j: Using URL [file:/C:/brol7/log4j.properties] for automatic log4j configura tion. log4j: Reading configuration from URL file:/C:/brol7/log4j.properties log4j: Parsing for [root] with value=[WARN,application,stdout, stderr]. log4j: Level token is [WARN]. log4j: Category root set to WARN log4j: Parsing appender named application. log4j: Parsing layout options for application. log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n]. log4j: End of parsing for application. log4j: Setting property [file] to [c:/brol7/application.log]. log4j: Setting property [append] to [false]. log4j: setFile called: c:/brol7/application.log, false log4j: setFile ended log4j: Parsed application options. log4j: Parsing appender named stdout. log4j: Parsing layout options for stdout. log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n]. log4j: End of parsing for stdout. log4j: Setting property [file] to [c:/brol7/application2.log]. log4j: Setting property [append] to [false]. log4j: setFile called: c:/brol7/application2.log, false log4j: setFile ended log4j: Parsed stdout options. log4j: Parsing appender named stderr. log4j: Parsing layout options for stderr. log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n]. log4j: End of parsing for stderr. log4j: Setting property [append] to [false]. log4j: Setting property [file] to [c:/brol7/application3.log]. log4j: setFile called: c:/brol7/application3.log, false log4j: setFile ended log4j: Parsed stderr options. log4j: Finished configuring. The problem is that the messages (generated by JMeter and Ant build file) keep coming in the console. Some one an idea of how to solve this ? Stefan -- View this message in context: http://www.nabble.com/JMeter-and-Ant-Logging-tp24487650p24487650.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- View this message in context: http://www.nabble.com/JMeter-and-Ant-Logging-tp24487650p24495331.html Sent from the JMeter - User mailing list archive at Nabble.com.
Re: How to distinguish performance drawback source
hi There is a HTTP Cache Manager in JMeter but Ive never tried it. the first thing is , is this your problem though ? Enable View results tree and see the requests and check what is taking time in jmeter / what response times you are getting v/s what you see on the browser (say using firefox and Tamper data/yslow etc) Also monitor your CPU and memory to see whether 25 is still too much load per client (how much memory is given to Jmeter as Xmx?) (in my case I get 20 threads for 2.4Ghz 2GB - 512MB Xmx , but then I have vista) regards deepak On Wed, Jul 15, 2009 at 6:07 AM, ziohausam ziohau...@gmail.com wrote: Deepak Shetty wrote: hi possible problems that i can think of are a. You have loaded the Jmeter client with more load than it can handle (as a rule of thumb i wouldn't run more than 20-25 threads from a single client jmeter). You would need to distribute your test across multiple machines (You can check whether your machine is overloaded by using your OS specific perf monitoring tool - reliability and perf monitor on windows) b. There is something that you need to tweak in your tests(e.g. if your application uses caches , and the browser based tests are hitting the cache, whereas the Jmeter tests are not) c. You are downloading embedded resources (e.g. big flash/movie files or something whereas the browser either has it cached or is streaming it).This can easily be tested by checking your script and clearing your browser cache before accessing the site while your load test is running. regards deepak Thanks for your help Yes i do simulate only 25 users from1 3 GHz 1GB RAM client. How can i configure JMETER to use the cached data instead of downloading it each time ? Thanks for your help Regards, Hosam -- View this message in context: http://www.nabble.com/How-to-distinguish-performance-drawback-source-tp24476707p24497557.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Do Jmeter Support Java Script calls..?
how practical with you consider using the __javaScript() function in this type of situations? (or any other way to process client side actions when they are strictly needed) I ran into this problem recently and decided to write java code that simulated what the function does (generating complex XML from variables , dynamic field names etc..). If I'm interested in testing functionality that is browser/javascript dependent I normally use selenium (or QTP). Its far more difficult to get any accuracy of browser render or script execution times , considering the various hardware configurations that can exist. I got the help of two developers and we found one variable expected from the applet, no appropiate value was found in all the traffic recorded, so they assumed that it is sent directly from the applet to the server If it's using HTTP it must work (the applet however could do other stuff), You'd probably need to use a network sniffer tool like Wireshark and verify. In any case what an applet can do(in terms of client-server communication) , you can do in Java/BSH. regards deepak On Thu, Jul 16, 2009 at 7:29 AM, Adrian Speteanu asp.ad...@gmail.comwrote: well since this question was re-re-asked (again :) ), here goes nothing: how practical with you consider using the __javaScript() function in this type of situations? (or any other way to process client side actions when they are strictly needed) ( I am thinking of situations were the application might be so obfuscated that without running a certain js you cannot generate a certain variable value to pass back to the server, so whatever you do, your requests will never be well formatted or complete. would it be recommended/possible to adapt that js to what JMeter recognises / can do? ) I encountered this problem with applets: all apparent requests encountered in proxy server were replicated and I even managed to get the id's right for all applet elements and for repository resources. however, the application returned null pointer exception for one of the most simple request of all. I got the help of two developers and we found one variable expected from the applet, no appropiate value was found in all the traffic recorded, so they assumed that it is sent directly from the applet to the server (I have my doubts on that but could not prove them wrong). so, the test simply didn't act like the application no matter what. On Thu, Jul 16, 2009 at 4:23 PM, Tony Lotts tljme...@gmail.com wrote: What is it that you want to accomplish? If this is for a scalability test, the performance of client side code execution is irrelevant. On Thu, Jul 16, 2009 at 2:10 AM, MITRAJ rajesh.mittapa...@gs.com wrote: Tabs are loaded on demand and contents in the tab are pre-loaded.. Thanks, Raj Noel O'Brien wrote: How is the content of the tab gotten from the server? Is it pre-loaded or loaded on demand.? Either way, it's probably obtained using a http call. Try using a tool like wireshark to to analyze the call flow or you could use JMeters HTTP Proxy to recore the call flows directly. Regards, Noel - MITRAJ rajesh.mittapa...@gs.com wrote: Thanks Noel In my application have 3 tabs. If i click on the tab, A frame is loaded. Those tabs are based on Java script. (HTTP request url is not there for these tabs). Is there any way to test tabs..? Thanks Raj Noel O'Brien wrote: Hi, See the JMeter is not a browser section in http://jakarta.apache.org/jmeter/index.html Regards, Noel - MITRAJ rajesh.mittapa...@gs.com wrote: -- View this message in context: http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24493378.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel -- View this message in context: http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24496582.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel -- View this message in context: http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24510645.html Sent from the JMeter - User mailing list archive at Nabble.com.
Re: Do Jmeter Support Java Script calls..?
However what I think the op wants to do is performance test loading each tab, which is implemented in client side code (javascript). Yep , I was replying to adrian. I agree with the rest of your points. On Thu, Jul 16, 2009 at 10:19 AM, Tony Lotts tljme...@gmail.com wrote: Deepak is right. However what I think the op wants to do is performance test loading each tab, which is implemented in client side code (javascript). The performance of executing client side code is based upon the user's own machine, and browser; which is irrelevant to web application scalability and thus not served by JMeter. In this case you may want to deliver a comparison of tab navigation across each of your supported browsers, reporting the baseline hardware that the test was conducted with. However unless the tab navigation is a suspect of a poorly performing implementation, it's not worth investigation. On Thu, Jul 16, 2009 at 12:30 PM, Deepak Shetty shet...@gmail.com wrote: how practical with you consider using the __javaScript() function in this type of situations? (or any other way to process client side actions when they are strictly needed) I ran into this problem recently and decided to write java code that simulated what the function does (generating complex XML from variables , dynamic field names etc..). If I'm interested in testing functionality that is browser/javascript dependent I normally use selenium (or QTP). Its far more difficult to get any accuracy of browser render or script execution times , considering the various hardware configurations that can exist. I got the help of two developers and we found one variable expected from the applet, no appropiate value was found in all the traffic recorded, so they assumed that it is sent directly from the applet to the server If it's using HTTP it must work (the applet however could do other stuff), You'd probably need to use a network sniffer tool like Wireshark and verify. In any case what an applet can do(in terms of client-server communication) , you can do in Java/BSH. regards deepak On Thu, Jul 16, 2009 at 7:29 AM, Adrian Speteanu asp.ad...@gmail.com wrote: well since this question was re-re-asked (again :) ), here goes nothing: how practical with you consider using the __javaScript() function in this type of situations? (or any other way to process client side actions when they are strictly needed) ( I am thinking of situations were the application might be so obfuscated that without running a certain js you cannot generate a certain variable value to pass back to the server, so whatever you do, your requests will never be well formatted or complete. would it be recommended/possible to adapt that js to what JMeter recognises / can do? ) I encountered this problem with applets: all apparent requests encountered in proxy server were replicated and I even managed to get the id's right for all applet elements and for repository resources. however, the application returned null pointer exception for one of the most simple request of all. I got the help of two developers and we found one variable expected from the applet, no appropiate value was found in all the traffic recorded, so they assumed that it is sent directly from the applet to the server (I have my doubts on that but could not prove them wrong). so, the test simply didn't act like the application no matter what. On Thu, Jul 16, 2009 at 4:23 PM, Tony Lotts tljme...@gmail.com wrote: What is it that you want to accomplish? If this is for a scalability test, the performance of client side code execution is irrelevant. On Thu, Jul 16, 2009 at 2:10 AM, MITRAJ rajesh.mittapa...@gs.com wrote: Tabs are loaded on demand and contents in the tab are pre-loaded.. Thanks, Raj Noel O'Brien wrote: How is the content of the tab gotten from the server? Is it pre-loaded or loaded on demand.? Either way, it's probably obtained using a http call. Try using a tool like wireshark to to analyze the call flow or you could use JMeters HTTP Proxy to recore the call flows directly. Regards, Noel - MITRAJ rajesh.mittapa...@gs.com wrote: Thanks Noel In my application have 3 tabs. If i click on the tab, A frame is loaded. Those tabs are based on Java script. (HTTP request url is not there for these tabs). Is there any way to test tabs..? Thanks Raj Noel O'Brien wrote: Hi, See the JMeter is not a browser section in http://jakarta.apache.org/jmeter/index.html Regards, Noel - MITRAJ rajesh.mittapa...@gs.com wrote: -- View this message in context
Re: BSF Scripts and User Defined Variables
In the documentation RANDOM_NAME is a variable whose value is the actual script contents that you wish to run. (i.e. the code itself) If your sampler is working fine , why not just do vars.put(GUID, YOURCALCULATEDVALUE); regards deepak On Thu, Jul 16, 2009 at 10:59 AM, S.D. sidd.da...@gmail.com wrote: Hello. I am a little confused by how to use the BSF Sampler. I'm hoping someone can assist. I'm either misunderstanding the documentation or am just not setting it up correctly. I have a BSF Sampler that is attached to a groovy script file. The sampler runs fine and I see the response. I want to capture this response and include it in the Http header with my test case. I'm not sure how this is supposed to work. I have a UDV, titled GUID and its set to ${__BeanShell(${RANDOM_NAME})}. In my Http Headers, I have a header that is set to ${GUID} but I always see the full string: ${__BeanShell(${RANDOM_NAME})}. In the JMeter doc, it states: Once the script is working properly, it can be stored as a variable on the Test Plan. The script variable can then be used to create the function call. For example, suppose a BeanShell script is stored in the variable RANDOM_NAME. The function call can then be coded as ${__BeanShell(${RANDOM_NAME})}. What is RANDOM_NAME ? The name of the groovy script file? Is there a particular way I need to structure my script? Does it only work for BeanShell scripts (.bsh) ? Is the name a filename or something else? Does it have to be a PreProcessor or PostProcessor or Assertion? Any assistance is much appreciated. Thanks, --sidd - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: BSF Scripts and User Defined Variables
Also note that (from docs) ${__BeanShell(source(function.bsh))} - processes the script in function.bsh is what you'd probably use to run a script... regards deepak On Thu, Jul 16, 2009 at 11:23 AM, Deepak Shetty shet...@gmail.com wrote: Hi You mean that RANDOM_NAME contains actual beanshell code? Yes. Does it matter that it's Groovy code in a file? Never tried it , I dont think it will work. The __Beanshell is only for beanshell scripts. And vars.put(GUID, YOURCALCULATEDVALUE) goes where? In your Groovy script. You can remove the UDV defn. Once you add a value in vars, its available in Jmeter as ${GUID} or vars.get(GUID). This wont be the same for every iteration , as the code would get executed every iteration , presumably updating the value. You can see the variables available to your script in the sampler.. regards deepak On Thu, Jul 16, 2009 at 11:16 AM, S.D. sidd.da...@gmail.com wrote: Hi .. I'm not sure I understand what you mean .. You mean that RANDOM_NAME contains actual beanshell code? Does it matter that it's Groovy code in a file? Can you provide a simple example so I can just see something working? And vars.put(GUID, YOURCALCULATEDVALUE) goes where? In the value for the UDV ? If that's the case, wouldn't it be the same thing for every iteration? What would be the difference between this and just hard-coding something? Thanks .. On Thu, 2009-07-16 at 11:06 -0700, Deepak Shetty wrote: In the documentation RANDOM_NAME is a variable whose value is the actual script contents that you wish to run. (i.e. the code itself) If your sampler is working fine , why not just do vars.put(GUID, YOURCALCULATEDVALUE); regards deepak On Thu, Jul 16, 2009 at 10:59 AM, S.D. sidd.da...@gmail.com wrote: Hello. I am a little confused by how to use the BSF Sampler. I'm hoping someone can assist. I'm either misunderstanding the documentation or am just not setting it up correctly. I have a BSF Sampler that is attached to a groovy script file. The sampler runs fine and I see the response. I want to capture this response and include it in the Http header with my test case. I'm not sure how this is supposed to work. I have a UDV, titled GUID and its set to ${__BeanShell(${RANDOM_NAME})}. In my Http Headers, I have a header that is set to ${GUID} but I always see the full string: ${__BeanShell(${RANDOM_NAME})}. In the JMeter doc, it states: Once the script is working properly, it can be stored as a variable on the Test Plan. The script variable can then be used to create the function call. For example, suppose a BeanShell script is stored in the variable RANDOM_NAME. The function call can then be coded as ${__BeanShell(${RANDOM_NAME})}. What is RANDOM_NAME ? The name of the groovy script file? Is there a particular way I need to structure my script? Does it only work for BeanShell scripts (.bsh) ? Is the name a filename or something else? Does it have to be a PreProcessor or PostProcessor or Assertion? Any assistance is much appreciated. Thanks, --sidd - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: asserting PDF responses?
but is there a way to assert against text WITHIN the PDF If you really wanted to do this then you'd have to interpret the response(for any binary file) and check it in this case BSH Post Processor (or equivalent) plus iText (to parse the PDF and get its text out) regards deepak On Thu, Jul 16, 2009 at 11:32 AM, blackgaff joseph.kill...@gmail.comwrote: This is handy for asserting what KIND of file was returned, but is there a way to assert against text WITHIN the PDF? IE, I want to create an assertion that tells me if the rendered document contains the word free bird. The aforementioned solution involves using an HTTP sampler to retrieve the PDF file, checking the response to ensure that it starts with a standard PDF header, %PDF-1.4 or something similar. If the response doesn't start with a PDF header, then there has likely been an error, and you have not been given a PDF file. -- View this message in context: http://www.nabble.com/asserting-PDF-responses--tp16863041p24521998.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: asserting PDF responses?
I made a mistake , it looks like iText doesnt extract text out of PDF's , you need something like http://incubator.apache.org/pdfbox/ There are some caveats to extracting text out of PDF, as well as there are other libraries too i suppose... regards deepak On Thu, Jul 16, 2009 at 11:49 AM, blackgaff joseph.kill...@gmail.comwrote: Thanks for the quick response - looks like Ill get to learn BeanSheel and iText. Deepak Shetty wrote: but is there a way to assert against text WITHIN the PDF If you really wanted to do this then you'd have to interpret the response(for any binary file) and check it in this case BSH Post Processor (or equivalent) plus iText (to parse the PDF and get its text out) regards deepak On Thu, Jul 16, 2009 at 11:32 AM, blackgaff joseph.kill...@gmail.comwrote: This is handy for asserting what KIND of file was returned, but is there a way to assert against text WITHIN the PDF? IE, I want to create an assertion that tells me if the rendered document contains the word free bird. -- View this message in context: http://www.nabble.com/asserting-PDF-responses--tp16863041p24522298.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: BSF Scripts and User Defined Variables
Hi I believe the .bsh file should be in the bin directory . check your jmeter.log for errors This is the Structure I have and it seems to work Thread Group Http Request HTTPHeaderManager val1 ${GUID} User Defined Variables GUID ${__BeanShell(source(function.bsh))} What version of JMeter are you using? regards deepak On Thu, Jul 16, 2009 at 12:01 PM, S.D. sidd.da...@gmail.com wrote: I apologize .. but I must be missing something very basic here. As you can see I'm just trying to see it work: This is my function.bsh. It is in the same directory as the jmeter jmx: return this is a test; This is the GUID user defined variable: name=GUID value=${__BeanShell(source(function.bsh))} This is in the JMETER_ID in the Http Headers: name=JMETER_ID value=${GUID} All I ever see in the response is this: JMETER_ID: ${__BeanShell(source(function.bsh))} Thanks again for any insight. On Thu, 2009-07-16 at 11:27 -0700, Deepak Shetty wrote: Also note that (from docs) ${__BeanShell(source(function.bsh))} - processes the script in function.bsh is what you'd probably use to run a script... regards deepak - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: overriding http request
I normally add a BSH pre processor. and use sampler.addArgument or write a Utility java class and call out to it. regards deepak On Thu, Jul 16, 2009 at 12:21 PM, Paul Rogers paul.rog...@shaw.ca wrote: The web app Im currently testing has requests with a lot of parameters, which is getting difficult to understand. I was thinking of overriding the http request to be a more specific implementation of the request I need, and possibly the ability to do some more logging. Does this sound a reasonable thing to do, or does it seem like a waste of time? Paul - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Modifying data while filling forms and basic Jmeter help
Hi Create a Regex Extraction Post Processor , give it a name like inputTimeStamp In regex expression type something like name=[']token[']\s*?value=[']([^']*) --test with some online regex tester. (this one is case sensitive and order of name and value matters) In template type $1$ -- extract the match within the first parantheses and in match no enter 1 -- first match rest should work. if it doesnt check whether the value was extracted correctly and whether its being sent in the right parameter regards deepak On Thu, Jul 16, 2009 at 11:07 PM, phanikishan phanikis...@gmail.com wrote: Deepak Shetty wrote: You have to use one of the Post Processors (e.g. Regex) to extract this token from the Servers response into a variable and post the data back to the server whenever its needed regards deepak Hey Deepak, Thanks for the help, but the help feature in Jmeter is not as helpful as you are! :) Please tell me how to use the regular expression extractor. The following is the info I wish to extract (highlighted in bold) - input type = hidden name=token value=2009-07-17 01:51:22.0. What I plan to do is send a http request, use the post-processor regular expression extractor to get the value of the token, store it in a variable, send another http request but with this time value would be the one stored in the variable. Will it work? Thanks a lot, Phani Kishan -- View this message in context: http://www.nabble.com/Modifying-data-while-filling-forms-and-basic-Jmeter-help-tp24371548p24529077.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: Do we have a mechanism to execute test(s) specific amount of time ?
does this work for you? http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Runtime_Controller On Fri, Jul 17, 2009 at 5:55 AM, Andrew Melnyk melnykena...@gmail.comwrote: Hi guys, I wonder if Jmeter provides a mechanism to set up test(s) execution time frame. For example, i want test A to be executed for a 5 minutes.
Re: Unique Identifiers for Test Samples?
I use Jmeter User Parameters with Update once per iteration to achieve something similar. You can also use BSH and vars to set the variable and only update it whenever you want (each thread would have its own value ) regards deepak On Fri, Jul 17, 2009 at 12:18 PM, S.D. sidd.da...@gmail.com wrote: Hello. I have a group of http request samplers. I would like to mark each sample in the group with a unique identifer. I have three different http request samples. I would like the label for the sample to be like below and have the guid be the same for each one. Thread Group |-User-Defined-Variable - {guid} |-{guid}-search |-{guid}-authenticate |-{guid}-display My goal is to tie each test to it's counterpart in the server logs. Currently, I'm trying to use a user-defined variable, but it looks like it changes for each sample. Does anyone have any suggestions as to how I might do this? Thanks, --sidd - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org