Re: Uploading random files
I tried your suggestion and I can't seem to get it to work. I assume I am doing something wrong somewhere. The current setup looks like this: http://i.imgur.com/kz9zR.png The error that it returns to me is C:\Test Data\EOF (The filename, directory name, or volume label syntax is incorrect) If I don't use double backslash (which I believe is wrong due to the $) in filepath it returns: C:\Test Data\${DATA} (The system cannot find the file specified) Hope you can help Dean On Fri, Jun 22, 2012 at 2:52 PM, sebb seb...@gmail.com wrote: On 22 June 2012 12:17, Dean Lozo dean.l...@gmail.com wrote: Hey Since my Cookie issue got helpful responses that helped me resolve the issue, and some future ones. I decided to post here again. (Gotten far since last time!). I am only missing one more thing for me to be happy with the load testing. I need a way to upload a random file every time the Upload POST reques is run. I tried cheating by simply changing the filename value in the post, sadly this was a no go. I figured this was a It should work. What exactly did not work? Using CSV Data Set Config with HTTP POST works fine for me. I set up a CSV file with 2 columns: name and path-name CSV DataSet - recycle on EOF: false - stop thread on EOF: true - variable names: NAME, PATH Then use ${PATH} in the File Path field and ${NAME} in the Parameter Name field of the Send Files with Request section. This works fine for me. comming issue and started googling around. I stumbled upon a thread that seems to do what I want to: http://stackoverflow.com/questions/8046447/testing-load-document-functionality-with-jmeter/8048644#8048644 Seems to be using BeanShell to generate a list of files at run-time. Much better to do this before starting the test - or if it does have to be done at run-time, that's work for a setUp thread group. But not necessary for your case, and seems to be unnecessarily complicated, even without the BeanShell sampler. I am new to JMeter i have little experience with JMeter and struggling to make sense out of javascript in the example. I understand the Java in the BeanShell. I can't find where the path for the folder location is defined. Is that sent in from JMeter? I also receive an error saying that the C:\Program Files (x86)\apache-jmeter-2.7\bin\bsh\generate-content-list.bsh could be located. This is obviously something big to dive into at once with only a couple of hours of JMeter experience. Does anyone have a simpler approach or a guide with more detail explenations? I would greatly appreciate it, I want to learn it as well. Not just copy paste and tinker like i am doing now (well that is a way of learning) Cheers Dean - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Uploading random files
On 25 June 2012 09:22, Dean Lozo dean.l...@gmail.com wrote: I tried your suggestion and I can't seem to get it to work. I assume I am doing something wrong somewhere. The current setup looks like this: http://i.imgur.com/kz9zR.png The error that it returns to me is C:\Test Data\EOF (The filename, directory name, or volume label syntax is incorrect) If I don't use double backslash (which I believe is wrong due to the $) in filepath it returns: C:\Test Data\${DATA} (The system cannot find the file specified) Use / instead of \. Hope you can help Dean On Fri, Jun 22, 2012 at 2:52 PM, sebb seb...@gmail.com wrote: On 22 June 2012 12:17, Dean Lozo dean.l...@gmail.com wrote: Hey Since my Cookie issue got helpful responses that helped me resolve the issue, and some future ones. I decided to post here again. (Gotten far since last time!). I am only missing one more thing for me to be happy with the load testing. I need a way to upload a random file every time the Upload POST reques is run. I tried cheating by simply changing the filename value in the post, sadly this was a no go. I figured this was a It should work. What exactly did not work? Using CSV Data Set Config with HTTP POST works fine for me. I set up a CSV file with 2 columns: name and path-name CSV DataSet - recycle on EOF: false - stop thread on EOF: true - variable names: NAME, PATH Then use ${PATH} in the File Path field and ${NAME} in the Parameter Name field of the Send Files with Request section. This works fine for me. comming issue and started googling around. I stumbled upon a thread that seems to do what I want to: http://stackoverflow.com/questions/8046447/testing-load-document-functionality-with-jmeter/8048644#8048644 Seems to be using BeanShell to generate a list of files at run-time. Much better to do this before starting the test - or if it does have to be done at run-time, that's work for a setUp thread group. But not necessary for your case, and seems to be unnecessarily complicated, even without the BeanShell sampler. I am new to JMeter i have little experience with JMeter and struggling to make sense out of javascript in the example. I understand the Java in the BeanShell. I can't find where the path for the folder location is defined. Is that sent in from JMeter? I also receive an error saying that the C:\Program Files (x86)\apache-jmeter-2.7\bin\bsh\generate-content-list.bsh could be located. This is obviously something big to dive into at once with only a couple of hours of JMeter experience. Does anyone have a simpler approach or a guide with more detail explenations? I would greatly appreciate it, I want to learn it as well. Not just copy paste and tinker like i am doing now (well that is a way of learning) Cheers Dean - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Uploading random files
I still receive an EOF issue, am I doing something wrong with the source file? I assume since I get an EOF it can't read the 1.docx,2.docx located in the FileUpload.csv? Thanks for the help so far man, and fast replies as well ;O On Mon, Jun 25, 2012 at 11:01 AM, sebb seb...@gmail.com wrote: On 25 June 2012 09:22, Dean Lozo dean.l...@gmail.com wrote: I tried your suggestion and I can't seem to get it to work. I assume I am doing something wrong somewhere. The current setup looks like this: http://i.imgur.com/kz9zR.png The error that it returns to me is C:\Test Data\EOF (The filename, directory name, or volume label syntax is incorrect) If I don't use double backslash (which I believe is wrong due to the $) in filepath it returns: C:\Test Data\${DATA} (The system cannot find the file specified) Use / instead of \. Hope you can help Dean On Fri, Jun 22, 2012 at 2:52 PM, sebb seb...@gmail.com wrote: On 22 June 2012 12:17, Dean Lozo dean.l...@gmail.com wrote: Hey Since my Cookie issue got helpful responses that helped me resolve the issue, and some future ones. I decided to post here again. (Gotten far since last time!). I am only missing one more thing for me to be happy with the load testing. I need a way to upload a random file every time the Upload POST reques is run. I tried cheating by simply changing the filename value in the post, sadly this was a no go. I figured this was a It should work. What exactly did not work? Using CSV Data Set Config with HTTP POST works fine for me. I set up a CSV file with 2 columns: name and path-name CSV DataSet - recycle on EOF: false - stop thread on EOF: true - variable names: NAME, PATH Then use ${PATH} in the File Path field and ${NAME} in the Parameter Name field of the Send Files with Request section. This works fine for me. comming issue and started googling around. I stumbled upon a thread that seems to do what I want to: http://stackoverflow.com/questions/8046447/testing-load-document-functionality-with-jmeter/8048644#8048644 Seems to be using BeanShell to generate a list of files at run-time. Much better to do this before starting the test - or if it does have to be done at run-time, that's work for a setUp thread group. But not necessary for your case, and seems to be unnecessarily complicated, even without the BeanShell sampler. I am new to JMeter i have little experience with JMeter and struggling to make sense out of javascript in the example. I understand the Java in the BeanShell. I can't find where the path for the folder location is defined. Is that sent in from JMeter? I also receive an error saying that the C:\Program Files (x86)\apache-jmeter-2.7\bin\bsh\generate-content-list.bsh could be located. This is obviously something big to dive into at once with only a couple of hours of JMeter experience. Does anyone have a simpler approach or a guide with more detail explenations? I would greatly appreciate it, I want to learn it as well. Not just copy paste and tinker like i am doing now (well that is a way of learning) Cheers Dean - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Uploading random files
On 25 June 2012 10:17, Dean Lozo dean.l...@gmail.com wrote: I still receive an EOF issue, am I doing something wrong with the source file? I assume since I get an EOF it can't read the 1.docx,2.docx located in the FileUpload.csv? What EOF issue? Thanks for the help so far man, and fast replies as well ;O On Mon, Jun 25, 2012 at 11:01 AM, sebb seb...@gmail.com wrote: On 25 June 2012 09:22, Dean Lozo dean.l...@gmail.com wrote: I tried your suggestion and I can't seem to get it to work. I assume I am doing something wrong somewhere. The current setup looks like this: http://i.imgur.com/kz9zR.png The error that it returns to me is C:\Test Data\EOF (The filename, directory name, or volume label syntax is incorrect) If I don't use double backslash (which I believe is wrong due to the $) in filepath it returns: C:\Test Data\${DATA} (The system cannot find the file specified) Use / instead of \. Hope you can help Dean On Fri, Jun 22, 2012 at 2:52 PM, sebb seb...@gmail.com wrote: On 22 June 2012 12:17, Dean Lozo dean.l...@gmail.com wrote: Hey Since my Cookie issue got helpful responses that helped me resolve the issue, and some future ones. I decided to post here again. (Gotten far since last time!). I am only missing one more thing for me to be happy with the load testing. I need a way to upload a random file every time the Upload POST reques is run. I tried cheating by simply changing the filename value in the post, sadly this was a no go. I figured this was a It should work. What exactly did not work? Using CSV Data Set Config with HTTP POST works fine for me. I set up a CSV file with 2 columns: name and path-name CSV DataSet - recycle on EOF: false - stop thread on EOF: true - variable names: NAME, PATH Then use ${PATH} in the File Path field and ${NAME} in the Parameter Name field of the Send Files with Request section. This works fine for me. comming issue and started googling around. I stumbled upon a thread that seems to do what I want to: http://stackoverflow.com/questions/8046447/testing-load-document-functionality-with-jmeter/8048644#8048644 Seems to be using BeanShell to generate a list of files at run-time. Much better to do this before starting the test - or if it does have to be done at run-time, that's work for a setUp thread group. But not necessary for your case, and seems to be unnecessarily complicated, even without the BeanShell sampler. I am new to JMeter i have little experience with JMeter and struggling to make sense out of javascript in the example. I understand the Java in the BeanShell. I can't find where the path for the folder location is defined. Is that sent in from JMeter? I also receive an error saying that the C:\Program Files (x86)\apache-jmeter-2.7\bin\bsh\generate-content-list.bsh could be located. This is obviously something big to dive into at once with only a couple of hours of JMeter experience. Does anyone have a simpler approach or a guide with more detail explenations? I would greatly appreciate it, I want to learn it as well. Not just copy paste and tinker like i am doing now (well that is a way of learning) Cheers Dean - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Async Message Sampler
I have found a new jmx file which uses a Async Message Sampler with Message Handler option as Modular and the class name has a java class name and the message name is the method name. When I actually run this, I get Response code: 500 Response message: Unable to create MessageProcessor of class === Test. What is missing here? The main intention of using a java class is to compute a few parameters dynamically. -- View this message in context: http://jmeter.512774.n5.nabble.com/Async-Message-Sampler-tp5713701.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How to use Dynamic ID ?
Hi, you need to use the ' http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor Regular Expression Extractor ' to 'grab' the dynamic ID for use later on in your test ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/How-to-use-Dynamic-ID-tp5713702p5713703.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
Team: I´m using jmeter 2.7 and I have a project on http proxy server but after the project is saved, that section is not saved. I´m doing something wrong ? Nico
Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
Nicolas Grossi nicolas.gro...@gmail.com wrote on 06/25/2012 10:16:22 AM: From: Nicolas Grossi nicolas.gro...@gmail.com To: JMeter Users List user@jmeter.apache.org Date: 06/25/2012 10:23 AM Subject: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Team: I´m using jmeter 2.7 and I have a project on http proxy server but after the project is saved, that section is not saved. I´m doing something wrong ? This is the way that Jmeter has always behaved. Nico -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
On 25 June 2012 16:30, llow...@oreillyauto.com wrote: Nicolas Grossi nicolas.gro...@gmail.com wrote on 06/25/2012 10:16:22 AM: From: Nicolas Grossi nicolas.gro...@gmail.com To: JMeter Users List user@jmeter.apache.org Date: 06/25/2012 10:23 AM Subject: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Team: I´m using jmeter 2.7 and I have a project on http proxy server but after the project is saved, that section is not saved. I´m doing something wrong ? This is the way that Jmeter has always behaved. Yes, items under the Workbench are not automatically saved. However you can select them and save them if required. Then can then be reloaded. Nico -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
RE: Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
BTW, I tend to agree that it would be nice to save non-test elements... It is handy to setup a proxy config with exclusions, and stuff - and have it all pre-configured in a template... -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 www.KingsIsle.com -Original Message- From: llow...@oreillyauto.com [mailto:llow...@oreillyauto.com] Sent: Monday, June 25, 2012 10:30 AM To: JMeter Users List Subject: Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Nicolas Grossi nicolas.gro...@gmail.com wrote on 06/25/2012 10:16:22 AM: From: Nicolas Grossi nicolas.gro...@gmail.com To: JMeter Users List user@jmeter.apache.org Date: 06/25/2012 10:23 AM Subject: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Team: I´m using jmeter 2.7 and I have a project on http proxy server but after the project is saved, that section is not saved. I´m doing something wrong ? This is the way that Jmeter has always behaved. Nico -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
On 25 June 2012 16:56, Robin D. Wilson rwils...@gmail.com wrote: BTW, I tend to agree that it would be nice to save non-test elements... It is handy to setup a proxy config with exclusions, and stuff - and have it all pre-configured in a template... Which you can already do. However, you have to manually load the template. -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 www.KingsIsle.com -Original Message- From: llow...@oreillyauto.com [mailto:llow...@oreillyauto.com] Sent: Monday, June 25, 2012 10:30 AM To: JMeter Users List Subject: Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Nicolas Grossi nicolas.gro...@gmail.com wrote on 06/25/2012 10:16:22 AM: From: Nicolas Grossi nicolas.gro...@gmail.com To: JMeter Users List user@jmeter.apache.org Date: 06/25/2012 10:23 AM Subject: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Team: I´m using jmeter 2.7 and I have a project on http proxy server but after the project is saved, that section is not saved. I´m doing something wrong ? This is the way that Jmeter has always behaved. Nico -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ?
Thanks to all of you! On Mon, Jun 25, 2012 at 1:01 PM, sebb seb...@gmail.com wrote: On 25 June 2012 16:56, Robin D. Wilson rwils...@gmail.com wrote: BTW, I tend to agree that it would be nice to save non-test elements... It is handy to setup a proxy config with exclusions, and stuff - and have it all pre-configured in a template... Which you can already do. However, you have to manually load the template. -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 www.KingsIsle.com -Original Message- From: llow...@oreillyauto.com [mailto:llow...@oreillyauto.com] Sent: Monday, June 25, 2012 10:30 AM To: JMeter Users List Subject: Re: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Nicolas Grossi nicolas.gro...@gmail.com wrote on 06/25/2012 10:16:22 AM: From: Nicolas Grossi nicolas.gro...@gmail.com To: JMeter Users List user@jmeter.apache.org Date: 06/25/2012 10:23 AM Subject: Jmeter 2.7 - non test element like proxy server are not saved on JMX ? Team: I´m using jmeter 2.7 and I have a project on http proxy server but after the project is saved, that section is not saved. I´m doing something wrong ? This is the way that Jmeter has always behaved. Nico -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. This communication and any attachments are confidential, protected by Communications Privacy Act 18 USCS § 2510, solely for the use of the intended recipient, and may contain legally privileged material. If you are not the intended recipient, please return or destroy it immediately. Thank you. - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Uploading random files
Hey Thanks for all the help Sebb. I got it all working now :) On Mon, Jun 25, 2012 at 12:00 PM, sebb seb...@gmail.com wrote: On 25 June 2012 10:17, Dean Lozo dean.l...@gmail.com wrote: I still receive an EOF issue, am I doing something wrong with the source file? I assume since I get an EOF it can't read the 1.docx,2.docx located in the FileUpload.csv? What EOF issue? Thanks for the help so far man, and fast replies as well ;O On Mon, Jun 25, 2012 at 11:01 AM, sebb seb...@gmail.com wrote: On 25 June 2012 09:22, Dean Lozo dean.l...@gmail.com wrote: I tried your suggestion and I can't seem to get it to work. I assume I am doing something wrong somewhere. The current setup looks like this: http://i.imgur.com/kz9zR.png The error that it returns to me is C:\Test Data\EOF (The filename, directory name, or volume label syntax is incorrect) If I don't use double backslash (which I believe is wrong due to the $) in filepath it returns: C:\Test Data\${DATA} (The system cannot find the file specified) Use / instead of \. Hope you can help Dean On Fri, Jun 22, 2012 at 2:52 PM, sebb seb...@gmail.com wrote: On 22 June 2012 12:17, Dean Lozo dean.l...@gmail.com wrote: Hey Since my Cookie issue got helpful responses that helped me resolve the issue, and some future ones. I decided to post here again. (Gotten far since last time!). I am only missing one more thing for me to be happy with the load testing. I need a way to upload a random file every time the Upload POST reques is run. I tried cheating by simply changing the filename value in the post, sadly this was a no go. I figured this was a It should work. What exactly did not work? Using CSV Data Set Config with HTTP POST works fine for me. I set up a CSV file with 2 columns: name and path-name CSV DataSet - recycle on EOF: false - stop thread on EOF: true - variable names: NAME, PATH Then use ${PATH} in the File Path field and ${NAME} in the Parameter Name field of the Send Files with Request section. This works fine for me. comming issue and started googling around. I stumbled upon a thread that seems to do what I want to: http://stackoverflow.com/questions/8046447/testing-load-document-functionality-with-jmeter/8048644#8048644 Seems to be using BeanShell to generate a list of files at run-time. Much better to do this before starting the test - or if it does have to be done at run-time, that's work for a setUp thread group. But not necessary for your case, and seems to be unnecessarily complicated, even without the BeanShell sampler. I am new to JMeter i have little experience with JMeter and struggling to make sense out of javascript in the example. I understand the Java in the BeanShell. I can't find where the path for the folder location is defined. Is that sent in from JMeter? I also receive an error saying that the C:\Program Files (x86)\apache-jmeter-2.7\bin\bsh\generate-content-list.bsh could be located. This is obviously something big to dive into at once with only a couple of hours of JMeter experience. Does anyone have a simpler approach or a guide with more detail explenations? I would greatly appreciate it, I want to learn it as well. Not just copy paste and tinker like i am doing now (well that is a way of learning) Cheers Dean - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org