Re: Starting JMeter
Jmeter requires jdk1.4 or higher version to run. - Original Message - From: James Farrier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 4:33 PM Subject: Starting JMeter Hi all I am new to this list and have the following problem. When I try to start JMeter I get the following error: java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerErr or: java.lang.NullPointerException at org.apache.jmeter.gui.action.Help.clinit(Help.java:51) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jmeter.gui.action.ActionRouter.populateCommandMap(ActionRo uter.java:185) at org.apache.jmeter.gui.action.ActionRouter.getInstance(ActionRouter.ja va:220) at org.apache.jmeter.JMeter.startGui(JMeter.java:185) at org.apache.jmeter.JMeter.start(JMeter.java:237) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jmeter.NewDriver.main(NewDriver.java:165) Any help on this would be greatly appreciated Thanks in advance James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simulate several user submitting requests at the same time
Hi Mike , I have a situation where in Several users submit a specific request at the same time. I am testing a web based bank application. The requirement is to identify how the webserver would behave when a particular request or user action has been sent by several users at the same time. I checked in Loadrunner ,it provides an option - rendezouvs point.. to simulate this. Any pointers with Jmeter. I am using ver 1.9 rgs Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting JMeter
Which version of JMeter are you having problems with? JMeter 1.8 requires JVM 1.4+ JMeter 1.8.1 also 1.4+ (I think) JMeter 1.9 RC1/2 requires JVM 1.3+ -- The opinions expressed herein are my own, and are not necessarily endorsed by my employer ... -Original Message- From: Ramesh J.C [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 12:16 To: JMeter Users List Subject: Re: Starting JMeter Jmeter requires jdk1.4 or higher version to run. - Original Message - From: James Farrier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 4:33 PM Subject: Starting JMeter Hi all I am new to this list and have the following problem. When I try to start JMeter I get the following error: java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerErr or: java.lang.NullPointerException at org.apache.jmeter.gui.action.Help.clinit(Help.java:51) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jmeter.gui.action.ActionRouter.populateCommandMap(ActionRo uter.java:185) at org.apache.jmeter.gui.action.ActionRouter.getInstance(ActionRouter.ja va:220) at org.apache.jmeter.JMeter.startGui(JMeter.java:185) at org.apache.jmeter.JMeter.start(JMeter.java:237) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jmeter.NewDriver.main(NewDriver.java:165) Any help on this would be greatly appreciated Thanks in advance James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting JMeter
Thanks. The problem was my java version. I thought I had java 1.4 but it was not picking it up. After messing about with my path I now have it working. Thanks again James -Original Message- From: Ramesh J.C [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 12:16 To: JMeter Users List Subject: Re: Starting JMeter Jmeter requires jdk1.4 or higher version to run. - Original Message - From: James Farrier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 4:33 PM Subject: Starting JMeter Hi all I am new to this list and have the following problem. When I try to start JMeter I get the following error: java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerErr or: java.lang.NullPointerException at org.apache.jmeter.gui.action.Help.clinit(Help.java:51) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.jmeter.gui.action.ActionRouter.populateCommandMap(ActionRo uter.java:185) at org.apache.jmeter.gui.action.ActionRouter.getInstance(ActionRouter.ja va:220) at org.apache.jmeter.JMeter.startGui(JMeter.java:185) at org.apache.jmeter.JMeter.start(JMeter.java:237) at java.lang.reflect.Method.invoke(Native Method) at org.apache.jmeter.NewDriver.main(NewDriver.java:165) Any help on this would be greatly appreciated Thanks in advance James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 1.8.1 scripts in 1.9
I downloaded build 2003-06-24. I don't know if your fix was in that or not, but I still get the error. Thanks, Chris [EMAIL PROTECTED] rg To: JMeter Users List [EMAIL PROTECTED] cc: 06/23/2003 09:24 Subject: Re: 1.8.1 scripts in 1.9 PM Please respond to JMeter Users List Yeah, thanks - confirms my suspicions. It's a bug, I've fixed it now. -Mike On 23 Jun 2003 at 15:31, [EMAIL PROTECTED] wrote: ThreadGroup HTTP Request Defaults Simple Controler HTTP Request (MANY) HTTP Cookie Manger User Parameters Aggregate Report View Results Tree View Results in Table Regular Expression Extractor ( Couple of these, They were User Parameters, but I changed them to the Extractor) HTTP URL Re-writing Modifier ( 11 of these ) Is this want you wanted? Thanks, Chris [EMAIL PROTECTED] rg To: JMeter Users List jmeter- [EMAIL PROTECTED] cc: 06/23/2003 03:08 Subject: Re: 1.8.1 scripts in 1.9 PM Please respond to JMeter Users List Looks like probably a bug that was introduced. Can you outline your test plan for me? -Mike On 23 Jun 2003 at 14:55, [EMAIL PROTECTED] wrote: I seem to have some problems with my scripts created in 1.8.1 in 1.9. Is it backwards compatible? Is there some tweaking I must do? This is the error in jmeter.log. 06/23/2003 2:46:19 PM ERROR - jmeter.engine: java.lang.NullPointerException at org.apache.jmeter.protocol.http.modifier.URLRewritingModifier.process(URLR ewritingModifier.java:45) at org.apache.jmeter.threads.TestCompiler.runPreProcessors(TestCompiler.java: 132) at org.apache.jmeter.threads.TestCompiler.configureSampler(TestCompiler.java: 119) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261) at java.lang.Thread.run(Thread.java:536) Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assertion test
How can I set up the response assertion to show the value of a variable being returned from a servlet? Thanks, Ish This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webservice sampler
Has anyone used the new webservice soap sampler in 1.9RC2? I wrote the sampler and would like to see what people think. I was going back over bugzilla entries and several other people encountered similar problems with webservices and the SOAP/XML-RPC sampler. peter lin - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: Assertion test
Servlets return HTTP responses, generally headers + HTML. What do you mean by a variable being returned from a servlet? -Mike On 24 Jun 2003 at 8:55, [EMAIL PROTECTED] wrote: How can I set up the response assertion to show the value of a variable being returned from a servlet? Thanks, Ish This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael Stover [EMAIL PROTECTED] Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webservice sampler
out of curiousity, are you testing a webservice, or just a soap servlet of some kind. the webservice sampler takes soapaction and uses Apache soap driver. There is saxpath for doing XPath stuff. I'm actually considering modifying Apache SOAP to use XPP3 pull parser. this way it will be easier to get the node you want from the response and not have a huge performance impact. peter lin Brian Lundell [EMAIL PROTECTED] wrote: Hi Peter, I have been using the Soap/XML-RPC Sampler for a couple of weeks now an it works very well for me. The one thing I would love to see is an XPath Extractor. Much like the RegEx Extractor, it would pull the value of a node from the response, but using XPath instead. I don't know if something exists because I've just started looking for one. If anyone has heard of such a thing and can point me to where it exists, it would be much appreciated! Thanks, Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 9:08 AM To: [EMAIL PROTECTED] Subject: webservice sampler Has anyone used the new webservice soap sampler in 1.9RC2? I wrote the sampler and would like to see what people think. I was going back over bugzilla entries and several other people encountered similar problems with webservices and the SOAP/XML-RPC sampler. peter lin - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: webservice sampler
Peter, I'm testing a soap servlet. Thanks for the info! Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:32 AM To: JMeter Users List Subject: RE: webservice sampler out of curiousity, are you testing a webservice, or just a soap servlet of some kind. the webservice sampler takes soapaction and uses Apache soap driver. There is saxpath for doing XPath stuff. I'm actually considering modifying Apache SOAP to use XPP3 pull parser. this way it will be easier to get the node you want from the response and not have a huge performance impact. peter lin Brian Lundell [EMAIL PROTECTED] wrote: Hi Peter, I have been using the Soap/XML-RPC Sampler for a couple of weeks now an it works very well for me. The one thing I would love to see is an XPath Extractor. Much like the RegEx Extractor, it would pull the value of a node from the response, but using XPath instead. I don't know if something exists because I've just started looking for one. If anyone has heard of such a thing and can point me to where it exists, it would be much appreciated! Thanks, Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 9:08 AM To: [EMAIL PROTECTED] Subject: webservice sampler Has anyone used the new webservice soap sampler in 1.9RC2? I wrote the sampler and would like to see what people think. I was going back over bugzilla entries and several other people encountered similar problems with webservices and the SOAP/XML-RPC sampler. peter lin - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webservice sampler
if you could give it a try, I love to hear your feedback. SaxPath is relatively easy to use and is used by Jaxen. The challenge with providing XPath is the UI design. I guess one could provide a configuration element that applies to the several samplers or one sampler. normally, the results are passed to log elements by callsing SampleResult.setMessage(). what did you have in mind? pete Brian Lundell [EMAIL PROTECTED] wrote: Peter, I'm testing a soap servlet. Thanks for the info! Brian - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
__CSVRead always reads the same file.
Hi, I'm having a problem with using __CSVRead in a loop. Here is the construct I am using: |--- Loop Controller (set to run twice) |--- XMLSampler |--- RegExExtractor to get ParameterThatWorks |--- Interleave Controller |--- Request1 (Accesses File1.xml) |--- Request2 (Accesses File2.xml) Request1 is as follows: ${__CSVRead(File1.xml,next())} somexmlelements ${__CSVRead(File1.xml,0)}${ParameterThatWorks}${__CSVRead(File1.xml,1)} /elements/xml/some Request2 is identical, but contains File2.xml for File1.xml The problem I am having is that both times through the loop, the values from File1.xml are being sent, not File1.xml and then File2.xml (which is what I want). I have tried a few different constructs to accomplish, but with the same results every time. I'd gladly appreciate any suggestions on how to do this. Thank you! Brian Brian Lundell, Quality Assurance Specialist Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. - tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com http://www.timeindustrial.com/ - This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you.
Re: __CSVRead always reads the same file.
hi brian, are you using SOAP/XML-RPC sampler or the new webservice sampler. I'm guessing webservice sampler, since the older XML-RPC sampler doesn't take file. patching it to take comma separated file should be fairly easy. I did post/attach a patch to the webservice sampler in bugzilla that takes a directory containing multiple xml messages. when I get home I'll send ya a link, since the patches aren't in the nightly yet. the directory path option results in random selection of XML messages. peter lin Brian Lundell [EMAIL PROTECTED] wrote: Hi, I'm having a problem with using __CSVRead in a loop. Here is the construct I am using: |--- Loop Controller (set to run twice) |--- XMLSampler |--- RegExExtractor to get ParameterThatWorks |--- Interleave Controller |--- Request1 (Accesses File1.xml) |--- Request2 (Accesses File2.xml) Request1 is as follows: ${__CSVRead(File1.xml,next())} ${__CSVRead(File1.xml,0)}${ParameterThatWorks}${__CSVRead(File1.xml,1)} Request2 is identical, but contains File2.xml for File1.xml The problem I am having is that both times through the loop, the values from File1.xml are being sent, not File1.xml and then File2.xml (which is what I want). I have tried a few different constructs to accomplish, but with the same results every time. I'd gladly appreciate any suggestions on how to do this. Thank you! Brian Brian Lundell, Quality Assurance Specialist Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. - tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com - This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you. - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: __CSVRead always reads the same file.
I'm using a SOAP/XML-RPC Sampler. Is this my problem? I tried using the Webservice sampler when I started using 1.9RC2 but it didn't work for me. I assumed it was because we're not SOAP compliant, but it could be that I was using it wrong. We're just sending XML so a server. If _StringFromFile would work with the Webservice Sampler, I could use it instead. I can change my data files quickly to any format that's convenient. Thanks again for the help. Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:42 AM To: JMeter Users List Subject: Re: __CSVRead always reads the same file. hi brian, are you using SOAP/XML-RPC sampler or the new webservice sampler. I'm guessing webservice sampler, since the older XML-RPC sampler doesn't take file. patching it to take comma separated file should be fairly easy. I did post/attach a patch to the webservice sampler in bugzilla that takes a directory containing multiple xml messages. when I get home I'll send ya a link, since the patches aren't in the nightly yet. the directory path option results in random selection of XML messages. peter lin Brian Lundell [EMAIL PROTECTED] wrote: Hi, I'm having a problem with using __CSVRead in a loop. Here is the construct I am using: |--- Loop Controller (set to run twice) |--- XMLSampler |--- RegExExtractor to get ParameterThatWorks |--- Interleave Controller |--- Request1 (Accesses File1.xml) |--- Request2 (Accesses File2.xml) Request1 is as follows: ${__CSVRead(File1.xml,next())} ${__CSVRead(File1.xml,0)}${ParameterThatWorks}${__CSVRead(File1.xml,1)} Request2 is identical, but contains File2.xml for File1.xml The problem I am having is that both times through the loop, the values from File1.xml are being sent, not File1.xml and then File2.xml (which is what I want). I have tried a few different constructs to accomplish, but with the same results every time. I'd gladly appreciate any suggestions on how to do this. Thank you! Brian Brian Lundell, Quality Assurance Specialist Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. - tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com - This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you. - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: __CSVRead always reads the same file.
As far as I can make out from a recent look at the code, CSVRead only supports a single file. Each thread can maintain its own position in the file, but they all access the same file. By contrast, StringFromFile supports as many files as needed, but each reference in a test plan opens the file anew. If you can combine the data into a single CSV file, you could use CSVRead. Or if you can split it into individual files, you could use StringFromFile. Otherwise, you might be able to use a parameter element to populate a variable using _StringFromFile, and then use the regex function to split it into other variables for use in the XML sampler, but I've not tried that. Hope this helps a bit. If not, it could be time to update one or both of the functions... -- The opinions expressed herein are my own, and are not necessarily endorsed by my employer ... -Original Message- From: Brian Lundell [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 18:31 To: JMeter Users List Subject: __CSVRead always reads the same file. Hi, I'm having a problem with using __CSVRead in a loop. Here is the construct I am using: |--- Loop Controller (set to run twice) |--- XMLSampler |--- RegExExtractor to get ParameterThatWorks |--- Interleave Controller |--- Request1 (Accesses File1.xml) |--- Request2 (Accesses File2.xml) Request1 is as follows: ${__CSVRead(File1.xml,next())} somexmlelements ${__CSVRead(File1.xml,0)}${ParameterThatWorks}${__CSVRead(File1.xml,1)} /elements/xml/some Request2 is identical, but contains File2.xml for File1.xml The problem I am having is that both times through the loop, the values from File1.xml are being sent, not File1.xml and then File2.xml (which is what I want). I have tried a few different constructs to accomplish, but with the same results every time. I'd gladly appreciate any suggestions on how to do this. Thank you! Brian Brian Lundell, Quality Assurance Specialist Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. - tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com http://www.timeindustrial.com/ - This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: __CSVRead always reads the same file.
hi brian, I think sebastian's message explains it. unfortunately, Apache soap drivers uses soap formatting, so your servlet doesn't like it. if you post the eror you get I can look into it when I have time and see if I can tweak the sampler to work with XML-RPC also. peter lin Brian Lundell [EMAIL PROTECTED] wrote: I'm using a SOAP/XML-RPC Sampler. Is this my problem? I tried using the Webservice sampler when I started using 1.9RC2 but it didn't work for me. I assumed it was because we're not SOAP compliant, but it could be that I was using it wrong. We're just sending XML so a server. If _StringFromFile would work with the Webservice Sampler, I could use it instead. I can change my data files quickly to any format that's convenient. Thanks again for the help. Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:42 AM To: JMeter Users List Subject: Re: __CSVRead always reads the same file. hi brian, are you using SOAP/XML-RPC sampler or the new webservice sampler. I'm guessing webservice sampler, since the older XML-RPC sampler doesn't take file. patching it to take comma separated file should be fairly easy. I did post/attach a patch to the webservice sampler in bugzilla that takes a directory containing multiple xml messages. when I get home I'll send ya a link, since the patches aren't in the nightly yet. the directory path option results in random selection of XML messages. peter lin Brian Lundell wrote: Hi, I'm having a problem with using __CSVRead in a loop. Here is the construct I am using: |--- Loop Controller (set to run twice) |--- XMLSampler |--- RegExExtractor to get ParameterThatWorks |--- Interleave Controller |--- Request1 (Accesses File1.xml) |--- Request2 (Accesses File2.xml) Request1 is as follows: ${__CSVRead(File1.xml,next())} ${__CSVRead(File1.xml,0)}${ParameterThatWorks}${__CSVRead(File1.xml,1)} Request2 is identical, but contains File2.xml for File1.xml The problem I am having is that both times through the loop, the values from File1.xml are being sent, not File1.xml and then File2.xml (which is what I want). I have tried a few different constructs to accomplish, but with the same results every time. I'd gladly appreciate any suggestions on how to do this. Thank you! Brian Brian Lundell, Quality Assurance Specialist Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. - tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com - This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you. - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: __CSVRead always reads the same file.
Hey, I've tried a number of things using __CSVRead and _SFF and I'm very close to having this complete. I do have a question about CSVRead and why it's not working the way I understand that it should. The request below, in my understanding, should read the first column of the second line of file1.csv, but it doesn't. It reads the first column of the first line. Note: this is an XML-RPC Request. ${__CSVRead(file1.csv, next())} ${__CSVRead(file1.csv, next())} test${__CSVRead(file1.csv,0)}/test Any explanations as to why this is happening would be appreciated. Thanks again, Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 1:04 PM To: JMeter Users List Subject: RE: __CSVRead always reads the same file. hi brian, I think sebastian's message explains it. unfortunately, Apache soap drivers uses soap formatting, so your servlet doesn't like it. if you post the eror you get I can look into it when I have time and see if I can tweak the sampler to work with XML-RPC also. peter lin Brian Lundell [EMAIL PROTECTED] wrote: I'm using a SOAP/XML-RPC Sampler. Is this my problem? I tried using the Webservice sampler when I started using 1.9RC2 but it didn't work for me. I assumed it was because we're not SOAP compliant, but it could be that I was using it wrong. We're just sending XML so a server. If _StringFromFile would work with the Webservice Sampler, I could use it instead. I can change my data files quickly to any format that's convenient. Thanks again for the help. Brian -Original Message- From: peter lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:42 AM To: JMeter Users List Subject: Re: __CSVRead always reads the same file. hi brian, are you using SOAP/XML-RPC sampler or the new webservice sampler. I'm guessing webservice sampler, since the older XML-RPC sampler doesn't take file. patching it to take comma separated file should be fairly easy. I did post/attach a patch to the webservice sampler in bugzilla that takes a directory containing multiple xml messages. when I get home I'll send ya a link, since the patches aren't in the nightly yet. the directory path option results in random selection of XML messages. peter lin Brian Lundell wrote: Hi, I'm having a problem with using __CSVRead in a loop. Here is the construct I am using: |--- Loop Controller (set to run twice) |--- XMLSampler |--- RegExExtractor to get ParameterThatWorks |--- Interleave Controller |--- Request1 (Accesses File1.xml) |--- Request2 (Accesses File2.xml) Request1 is as follows: ${__CSVRead(File1.xml,next())} ${__CSVRead(File1.xml,0)}${ParameterThatWorks}${__CSVRead(File1.xml,1)} Request2 is identical, but contains File2.xml for File1.xml The problem I am having is that both times through the loop, the values from File1.xml are being sent, not File1.xml and then File2.xml (which is what I want). I have tried a few different constructs to accomplish, but with the same results every time. I'd gladly appreciate any suggestions on how to do this. Thank you! Brian Brian Lundell, Quality Assurance Specialist Time Industrial, Inc. An Outsourced Contractor Time and Cost Tracking Service. - tel: 780.413.1521 fax: 780.413.0474 http://www.TimeIndustrial.com - This message and attached files, if any, is (are) intended only for the addressee(s) and may contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited. If destined to our legal counsel, this transmission is privileged communication as between an attorney and its client. If you have received this message in error, please notify us immediately so that we may correct our internal records. Please then delete the original message. Thank you. - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]