System configuration
Hi All, I would like to know the system configuration details to run 1000 threads in jmeter. Physical memory: 2GB OS: Windows XP JVM: 1.7 Jmeter: 2.9 Will the above specification workout? Thanks and regards, Saranya C == Disclaimer: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. ==
Can Jmeter Read input from a multiple file?
Hi , I am wondering if Jmeter can read inputs from multiple file. If yes how can I achieve it.
Re: Can Jmeter Read input from a multiple file?
yes it can. You can either use __StringFromFile() function or CSV data set configuration. You can use either of these per file. By the way what is your complete requirement. I believe most of the requirements are well satisfied by CSV data set configuration. http://jmeter.apache.org/usermanual/component_reference.html#config_elements On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati praumes...@gmail.comwrote: Hi , I am wondering if Jmeter can read inputs from multiple file. If yes how can I achieve it.
Re: Can Jmeter Read input from a multiple file?
I have tried CSV configuration but CSV configuration is only possible to read from a single file...Could give me an example on how to read input from a different files using _StringFromFile() and I have one other question. Is there anyway we can call java program from jmeter. My requirement regarding if we can read java program from jmeter is as follow I am trying to do load test on secured web services. And I am using HTTP Request sampler with Raw Post Body and I have to load different content for Raw Post Body for each request. So How can I achieve this? Your help will be very helpful and great. On Mon, Jun 24, 2013 at 9:21 AM, hame hame...@gmail.com wrote: yes it can. You can either use __StringFromFile() function or CSV data set configuration. You can use either of these per file. By the way what is your complete requirement. I believe most of the requirements are well satisfied by CSV data set configuration. http://jmeter.apache.org/usermanual/component_reference.html#config_elements On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati praumes...@gmail.com wrote: Hi , I am wondering if Jmeter can read inputs from multiple file. If yes how can I achieve it.
Re: Can Jmeter Read input from a multiple file?
I have a java class which can return the content for Raw Post Body for each request...So, If i can call that java class using jmeter would be great On Mon, Jun 24, 2013 at 9:27 AM, umesh prajapati praumes...@gmail.comwrote: I have tried CSV configuration but CSV configuration is only possible to read from a single file...Could give me an example on how to read input from a different files using _StringFromFile() and I have one other question. Is there anyway we can call java program from jmeter. My requirement regarding if we can read java program from jmeter is as follow I am trying to do load test on secured web services. And I am using HTTP Request sampler with Raw Post Body and I have to load different content for Raw Post Body for each request. So How can I achieve this? Your help will be very helpful and great. On Mon, Jun 24, 2013 at 9:21 AM, hame hame...@gmail.com wrote: yes it can. You can either use __StringFromFile() function or CSV data set configuration. You can use either of these per file. By the way what is your complete requirement. I believe most of the requirements are well satisfied by CSV data set configuration. http://jmeter.apache.org/usermanual/component_reference.html#config_elements On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati praumes...@gmail.com wrote: Hi , I am wondering if Jmeter can read inputs from multiple file. If yes how can I achieve it.
Re: Can Jmeter Read input from a multiple file?
Look into this beanshell examples http://stackoverflow.com/questions/6675711/how-to-use-bean-shell-sampler-in-jmeter On Mon, Jun 24, 2013 at 9:31 AM, umesh prajapati praumes...@gmail.comwrote: I have a java class which can return the content for Raw Post Body for each request...So, If i can call that java class using jmeter would be great On Mon, Jun 24, 2013 at 9:27 AM, umesh prajapati praumes...@gmail.com wrote: I have tried CSV configuration but CSV configuration is only possible to read from a single file...Could give me an example on how to read input from a different files using _StringFromFile() and I have one other question. Is there anyway we can call java program from jmeter. My requirement regarding if we can read java program from jmeter is as follow I am trying to do load test on secured web services. And I am using HTTP Request sampler with Raw Post Body and I have to load different content for Raw Post Body for each request. So How can I achieve this? Your help will be very helpful and great. On Mon, Jun 24, 2013 at 9:21 AM, hame hame...@gmail.com wrote: yes it can. You can either use __StringFromFile() function or CSV data set configuration. You can use either of these per file. By the way what is your complete requirement. I believe most of the requirements are well satisfied by CSV data set configuration. http://jmeter.apache.org/usermanual/component_reference.html#config_elements On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati praumes...@gmail.com wrote: Hi , I am wondering if Jmeter can read inputs from multiple file. If yes how can I achieve it.
Re: System configuration
you could probably get it to work , but I doubt your results would be accurate. (i.e. you can run more threads but it might not simulate the same load as if you had as many machines as threads) Usually with a windows client class machine , dont exceed 100-200 threads unless your tests have large wait times In most cases you have to try it out and see and measure - both your client machine and your server since answers to questions like yours are too heavily dependent on environment and script. On Mon, Jun 24, 2013 at 2:36 AM, Saranya C saran...@maveric-systems.comwrote: Hi All, I would like to know the system configuration details to run 1000 threads in jmeter. Physical memory: 2GB OS: Windows XP JVM: 1.7 Jmeter: 2.9 Will the above specification workout? Thanks and regards, Saranya C == Disclaimer: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. ==
RE: System configuration
You also need to evaluate _all_ of the potential bottlenecks when running multiple threads from the same machine. For example, the network interface - if you are requesting pages that return 1MB of data, and you try to do 1000 threads - it is unlikely that your load-generating system can handle 1GB of data from each simultaneous page as easily as say 10 machines can handle 100MB each. (Of course, then you have to look at the test servers - to make sure that they are not similarly bottlenecked. Likewise, if your threads do a lot of pre and post processing (essentially parsing the data that comes back from the servers) and have a lot listeners, can your client machine really handle that amount of workload times 1000? It is unlikely unless you have the most basic of request/response values, and parsing rules. One example would be the 'tree listener'... If you are recording every response in the tree listener, it will eventually run your machine out of memory. Not only that, but before it runs you out of memory - it will dramatically slow down your test. So in our tests, we only use the 'tree listener' for recording errors. But even with just that, there is still a measurable difference in performance when it is enabled versus disabled. I run our load from 4 different load-generator machines (all running JMeter), each with Core i7 processors, and 8GB of RAM. We never run more than 200 threads simultaneously (50 per box) - simply because we've found that when we ramp up the testing clients beyond that level, the slowdown comes from the clients - not the servers. But then our tests are pretty involved, with lots of pre/post processors and assertions. What you want to look for is how do you generate sufficient load on the servers - and how many load-generating clients are required for that. You can try 1000 threads on a single client, but you look at the load on the servers and see it nowhere near capacity, and then you look at the load on the load-generating client and see it maxed out in CPU, Memory, I/O, (any single one will block it from generating more load), then you need to lower the number of simultaneous threads on that client until you see the best mix of performance from the client vs. capacity on the server. Then you can add more clients to meet your goal of 1000 simultaneous threads hitting the server. -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 http://www.kingsisle.com -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Monday, June 24, 2013 12:05 PM To: JMeter Users List Subject: Re: System configuration you could probably get it to work , but I doubt your results would be accurate. (i.e. you can run more threads but it might not simulate the same load as if you had as many machines as threads) Usually with a windows client class machine , dont exceed 100-200 threads unless your tests have large wait times In most cases you have to try it out and see and measure - both your client machine and your server since answers to questions like yours are too heavily dependent on environment and script. On Mon, Jun 24, 2013 at 2:36 AM, Saranya C saran...@maveric-systems.comwrote: Hi All, I would like to know the system configuration details to run 1000 threads in jmeter. Physical memory: 2GB OS: Windows XP JVM: 1.7 Jmeter: 2.9 Will the above specification workout? Thanks and regards, Saranya C == == == Disclaimer: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. == == == - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: System configuration
On 24 June 2013 19:08, Robin D. Wilson rwils...@gmail.com wrote: You also need to evaluate _all_ of the potential bottlenecks when running multiple threads from the same machine. For example, the network interface - if you are requesting pages that return 1MB of data, and you try to do 1000 threads - it is unlikely that your load-generating system can handle 1GB of data from each simultaneous page as easily as say 10 machines can handle 100MB each. (Of course, then you have to look at the test servers - to make sure that they are not similarly bottlenecked. Likewise, if your threads do a lot of pre and post processing (essentially parsing the data that comes back from the servers) and have a lot listeners, can your client machine really handle that amount of workload times 1000? It is unlikely unless you have the most basic of request/response values, and parsing rules. One example would be the 'tree listener'... If you are recording every response in the tree listener, it will eventually run your machine out of memory. Not only that, but before it runs you out of memory - it will dramatically slow down your test. So in our tests, we only use the 'tree listener' for recording errors. But even with just that, there is still a measurable difference in performance when it is enabled versus disabled. For maximum performance, don't use the tree listener. Or, better, use non-GUI mode - the GUI parts of Listeners are deactivated. I run our load from 4 different load-generator machines (all running JMeter), each with Core i7 processors, and 8GB of RAM. We never run more than 200 threads simultaneously (50 per box) - simply because we've found that when we ramp up the testing clients beyond that level, the slowdown comes from the clients - not the servers. But then our tests are pretty involved, with lots of pre/post processors and assertions. What you want to look for is how do you generate sufficient load on the servers - and how many load-generating clients are required for that. You can try 1000 threads on a single client, but you look at the load on the servers and see it nowhere near capacity, and then you look at the load on the load-generating client and see it maxed out in CPU, Memory, I/O, (any single one will block it from generating more load), then you need to lower the number of simultaneous threads on that client until you see the best mix of performance from the client vs. capacity on the server. Then you can add more clients to meet your goal of 1000 simultaneous threads hitting the server. -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 http://www.kingsisle.com -Original Message- From: Deepak Shetty [mailto:shet...@gmail.com] Sent: Monday, June 24, 2013 12:05 PM To: JMeter Users List Subject: Re: System configuration you could probably get it to work , but I doubt your results would be accurate. (i.e. you can run more threads but it might not simulate the same load as if you had as many machines as threads) Usually with a windows client class machine , dont exceed 100-200 threads unless your tests have large wait times In most cases you have to try it out and see and measure - both your client machine and your server since answers to questions like yours are too heavily dependent on environment and script. On Mon, Jun 24, 2013 at 2:36 AM, Saranya C saran...@maveric-systems.comwrote: Hi All, I would like to know the system configuration details to run 1000 threads in jmeter. Physical memory: 2GB OS: Windows XP JVM: 1.7 Jmeter: 2.9 Will the above specification workout? Thanks and regards, Saranya C == == == Disclaimer: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. == == == - 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
RegExp Extractor
Hi, I would like to extract a word that contains both letters and number from a url. How can I achieve this. For example: URL is: https://abc.com/defgh/chela/fff12deg21f/classes?includeDeleted=false If I would like to extract fff12deg21f from the above URL and use this on the other http request. How can I do this? I added Regular Express Extractor to my Http Reques Sampler In RegExp Extractor GUI Apply to: main sampley only Response Field to check: URL Reference Name:stud Regular Expression: */chela/(.+?)/* Template: Match No. (0 for Random): Default Value:
Re: RegExp Extractor
/chela/([^/]+)/ Note the way you are using * is incorrect for a regex On Mon, Jun 24, 2013 at 2:45 PM, umesh prajapati praumes...@gmail.comwrote: Hi, I would like to extract a word that contains both letters and number from a url. How can I achieve this. For example: URL is: https://abc.com/defgh/chela/fff12deg21f/classes?includeDeleted=false If I would like to extract fff12deg21f from the above URL and use this on the other http request. How can I do this? I added Regular Express Extractor to my Http Reques Sampler In RegExp Extractor GUI Apply to: main sampley only Response Field to check: URL Reference Name:stud Regular Expression: */chela/(.+?)/* Template: Match No. (0 for Random): Default Value:
Re: RegExp Extractor
Thank you for the response...what do I mention in Template, Match No: and default Value field. And is there any way I can decrypyt the MD5 Hash value because I am saving my response as MD5 Hash and when I get error I would like to know what my error is actually saying. So it would be nice if i can decrypt the Hash value On Mon, Jun 24, 2013 at 2:51 PM, Deepak Shetty shet...@gmail.com wrote: /chela/([^/]+)/ Note the way you are using * is incorrect for a regex On Mon, Jun 24, 2013 at 2:45 PM, umesh prajapati praumes...@gmail.com wrote: Hi, I would like to extract a word that contains both letters and number from a url. How can I achieve this. For example: URL is: https://abc.com/defgh/chela/fff12deg21f/classes?includeDeleted=false If I would like to extract fff12deg21f from the above URL and use this on the other http request. How can I do this? I added Regular Express Extractor to my Http Reques Sampler In RegExp Extractor GUI Apply to: main sampley only Response Field to check: URL Reference Name:stud Regular Expression: */chela/(.+?)/* Template: Match No. (0 for Random): Default Value:
Re: RegExp Extractor
http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor And is there any way I can decrypyt the MD5 Hash value Hashes by nature are usually one way - if you want the response , then you save the response, not the hash - listeners allow you to do this on error only On Mon, Jun 24, 2013 at 2:59 PM, umesh prajapati praumes...@gmail.comwrote: Thank you for the response...what do I mention in Template, Match No: and default Value field. And is there any way I can decrypyt the MD5 Hash value because I am saving my response as MD5 Hash and when I get error I would like to know what my error is actually saying. So it would be nice if i can decrypt the Hash value On Mon, Jun 24, 2013 at 2:51 PM, Deepak Shetty shet...@gmail.com wrote: /chela/([^/]+)/ Note the way you are using * is incorrect for a regex On Mon, Jun 24, 2013 at 2:45 PM, umesh prajapati praumes...@gmail.com wrote: Hi, I would like to extract a word that contains both letters and number from a url. How can I achieve this. For example: URL is: https://abc.com/defgh/chela/fff12deg21f/classes?includeDeleted=false If I would like to extract fff12deg21f from the above URL and use this on the other http request. How can I do this? I added Regular Express Extractor to my Http Reques Sampler In RegExp Extractor GUI Apply to: main sampley only Response Field to check: URL Reference Name:stud Regular Expression: */chela/(.+?)/* Template: Match No. (0 for Random): Default Value:
Re: RegExp Extractor
I am saving the responses as hash because I am trying to perform load test. I am thinking to run 2 test. First test, run with 5 seconds delay per request and save the responses and run the load test again with the same user and asser that the response I get during load test exactly matches the responses I got form the first test. To achieve this, I had to save the responses as hash and assert the hashes matches during the load test. But Now, the problem I am getting is that when it gives error during load test, I am not being able to find out what the error means. On Mon, Jun 24, 2013 at 3:06 PM, Deepak Shetty shet...@gmail.com wrote: http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor And is there any way I can decrypyt the MD5 Hash value Hashes by nature are usually one way - if you want the response , then you save the response, not the hash - listeners allow you to do this on error only On Mon, Jun 24, 2013 at 2:59 PM, umesh prajapati praumes...@gmail.com wrote: Thank you for the response...what do I mention in Template, Match No: and default Value field. And is there any way I can decrypyt the MD5 Hash value because I am saving my response as MD5 Hash and when I get error I would like to know what my error is actually saying. So it would be nice if i can decrypt the Hash value On Mon, Jun 24, 2013 at 2:51 PM, Deepak Shetty shet...@gmail.com wrote: /chela/([^/]+)/ Note the way you are using * is incorrect for a regex On Mon, Jun 24, 2013 at 2:45 PM, umesh prajapati praumes...@gmail.com wrote: Hi, I would like to extract a word that contains both letters and number from a url. How can I achieve this. For example: URL is: https://abc.com/defgh/chela/fff12deg21f/classes?includeDeleted=false If I would like to extract fff12deg21f from the above URL and use this on the other http request. How can I do this? I added Regular Express Extractor to my Http Reques Sampler In RegExp Extractor GUI Apply to: main sampley only Response Field to check: URL Reference Name:stud Regular Expression: */chela/(.+?)/* Template: Match No. (0 for Random): Default Value:
Re: RegExp Extractor
if you are running a test for a single user - then save the entire response - till you are sure your script is correct. note that if your page has a single dynamic value (like a timestamp or session id) then your test will always fail .. Also please raise separate questions for separate problems since this has nothing to do with your regex problem.. On Mon, Jun 24, 2013 at 3:13 PM, umesh prajapati praumes...@gmail.comwrote: I am saving the responses as hash because I am trying to perform load test. I am thinking to run 2 test. First test, run with 5 seconds delay per request and save the responses and run the load test again with the same user and asser that the response I get during load test exactly matches the responses I got form the first test. To achieve this, I had to save the responses as hash and assert the hashes matches during the load test. But Now, the problem I am getting is that when it gives error during load test, I am not being able to find out what the error means. On Mon, Jun 24, 2013 at 3:06 PM, Deepak Shetty shet...@gmail.com wrote: http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor And is there any way I can decrypyt the MD5 Hash value Hashes by nature are usually one way - if you want the response , then you save the response, not the hash - listeners allow you to do this on error only On Mon, Jun 24, 2013 at 2:59 PM, umesh prajapati praumes...@gmail.com wrote: Thank you for the response...what do I mention in Template, Match No: and default Value field. And is there any way I can decrypyt the MD5 Hash value because I am saving my response as MD5 Hash and when I get error I would like to know what my error is actually saying. So it would be nice if i can decrypt the Hash value On Mon, Jun 24, 2013 at 2:51 PM, Deepak Shetty shet...@gmail.com wrote: /chela/([^/]+)/ Note the way you are using * is incorrect for a regex On Mon, Jun 24, 2013 at 2:45 PM, umesh prajapati praumes...@gmail.com wrote: Hi, I would like to extract a word that contains both letters and number from a url. How can I achieve this. For example: URL is: https://abc.com/defgh/chela/fff12deg21f/classes?includeDeleted=false If I would like to extract fff12deg21f from the above URL and use this on the other http request. How can I do this? I added Regular Express Extractor to my Http Reques Sampler In RegExp Extractor GUI Apply to: main sampley only Response Field to check: URL Reference Name:stud Regular Expression: */chela/(.+?)/* Template: Match No. (0 for Random): Default Value:
Decrypt Hash
Hi Deepak, I am running the test for very large amout of users. So, I would like to make sure that the response I am getting during the load test exactly matches the responses I am getting when I run the test with 5 seconds delay per request
Re: Decrypt Hash
hi a) does it work even once i.e. for a single user does your script work? If not - then save the entire response - debug your script whatever b) if it fails at random (it might always be failing for the same user or something in which cause its same as a) ), under load then you have no way out of saving the response and discarding the performance of your tests But like I said even 1 dynamic value causes your test to fail - it might not be what you are looking for. regards deepak On Mon, Jun 24, 2013 at 3:21 PM, umesh prajapati praumes...@gmail.comwrote: Hi Deepak, I am running the test for very large amout of users. So, I would like to make sure that the response I am getting during the load test exactly matches the responses I am getting when I run the test with 5 seconds delay per request
Re: Decrypt Hash
My scenario is like this. Since I am trying to perform a load test with big amout of users. I want to make sure that when I run the load test it gives exact responses. Lets say i run the test for 1000 users under 5 Seconds delay. And each user request will have its own responses. I save those responses. And the test passes with no errors. Now, I run the load test for those 1000 users I would like to compare or assert the responses i get during the load test exactly matches the responses I got before without load test. Or in other words I would like to know that user1 is receiving the same response like the first test that was run. To achieve this, I had to save the responses as MD5 hash and save these in a file and run the load test and assert the responses exactly matches md5 hash from previous test. Now, when I approach my test saving the responses using MD5 hash, 1) if there is error on the first test (not under load test) I am unable to figure out what the error is. 2) if there is no error on the first test and there is error on the load test (which is during load test lets say user55 is not getting the correct response that he is suppose to get.) On Mon, Jun 24, 2013 at 3:53 PM, Deepak Shetty shet...@gmail.com wrote: hi a) does it work even once i.e. for a single user does your script work? If not - then save the entire response - debug your script whatever b) if it fails at random (it might always be failing for the same user or something in which cause its same as a) ), under load then you have no way out of saving the response and discarding the performance of your tests But like I said even 1 dynamic value causes your test to fail - it might not be what you are looking for. regards deepak On Mon, Jun 24, 2013 at 3:21 PM, umesh prajapati praumes...@gmail.com wrote: Hi Deepak, I am running the test for very large amout of users. So, I would like to make sure that the response I am getting during the load test exactly matches the responses I am getting when I run the test with 5 seconds delay per request
Re: Decrypt Hash
Before you try your test for a 1000 users did you try your script for a single user , then a handful of users and validate your script works as expected? While running this limited test you can enable saving the entire response in addition to the hash - so you can verify what the issue is. On Mon, Jun 24, 2013 at 4:13 PM, umesh prajapati praumes...@gmail.comwrote: My scenario is like this. Since I am trying to perform a load test with big amout of users. I want to make sure that when I run the load test it gives exact responses. Lets say i run the test for 1000 users under 5 Seconds delay. And each user request will have its own responses. I save those responses. And the test passes with no errors. Now, I run the load test for those 1000 users I would like to compare or assert the responses i get during the load test exactly matches the responses I got before without load test. Or in other words I would like to know that user1 is receiving the same response like the first test that was run. To achieve this, I had to save the responses as MD5 hash and save these in a file and run the load test and assert the responses exactly matches md5 hash from previous test. Now, when I approach my test saving the responses using MD5 hash, 1) if there is error on the first test (not under load test) I am unable to figure out what the error is. 2) if there is no error on the first test and there is error on the load test (which is during load test lets say user55 is not getting the correct response that he is suppose to get.) On Mon, Jun 24, 2013 at 3:53 PM, Deepak Shetty shet...@gmail.com wrote: hi a) does it work even once i.e. for a single user does your script work? If not - then save the entire response - debug your script whatever b) if it fails at random (it might always be failing for the same user or something in which cause its same as a) ), under load then you have no way out of saving the response and discarding the performance of your tests But like I said even 1 dynamic value causes your test to fail - it might not be what you are looking for. regards deepak On Mon, Jun 24, 2013 at 3:21 PM, umesh prajapati praumes...@gmail.com wrote: Hi Deepak, I am running the test for very large amout of users. So, I would like to make sure that the response I am getting during the load test exactly matches the responses I am getting when I run the test with 5 seconds delay per request
Re: Decrypt Hash
Thank you for the response. Yes the script run fine for 1 user..But, when I actually run lots of user, there might be some user that will have an error or may be not have error at all. But If it does give error for some user than I am wondering how can i find what the error is. On Mon, Jun 24, 2013 at 4:35 PM, Deepak Shetty shet...@gmail.com wrote: Before you try your test for a 1000 users did you try your script for a single user , then a handful of users and validate your script works as expected? While running this limited test you can enable saving the entire response in addition to the hash - so you can verify what the issue is. On Mon, Jun 24, 2013 at 4:13 PM, umesh prajapati praumes...@gmail.com wrote: My scenario is like this. Since I am trying to perform a load test with big amout of users. I want to make sure that when I run the load test it gives exact responses. Lets say i run the test for 1000 users under 5 Seconds delay. And each user request will have its own responses. I save those responses. And the test passes with no errors. Now, I run the load test for those 1000 users I would like to compare or assert the responses i get during the load test exactly matches the responses I got before without load test. Or in other words I would like to know that user1 is receiving the same response like the first test that was run. To achieve this, I had to save the responses as MD5 hash and save these in a file and run the load test and assert the responses exactly matches md5 hash from previous test. Now, when I approach my test saving the responses using MD5 hash, 1) if there is error on the first test (not under load test) I am unable to figure out what the error is. 2) if there is no error on the first test and there is error on the load test (which is during load test lets say user55 is not getting the correct response that he is suppose to get.) On Mon, Jun 24, 2013 at 3:53 PM, Deepak Shetty shet...@gmail.com wrote: hi a) does it work even once i.e. for a single user does your script work? If not - then save the entire response - debug your script whatever b) if it fails at random (it might always be failing for the same user or something in which cause its same as a) ), under load then you have no way out of saving the response and discarding the performance of your tests But like I said even 1 dynamic value causes your test to fail - it might not be what you are looking for. regards deepak On Mon, Jun 24, 2013 at 3:21 PM, umesh prajapati praumes...@gmail.com wrote: Hi Deepak, I am running the test for very large amout of users. So, I would like to make sure that the response I am getting during the load test exactly matches the responses I am getting when I run the test with 5 seconds delay per request
RegEx Extractor
Is it possible to extract data from the response body and if it is possible can anyone please guide me through it and can we save the extracted data into a file as well?
Modules in JMeter - Part 2
I've recorded several tests to use as modules and created a test plan using Include/Module controllers. I don't want to make any assumption on what the next module may be, so I saved the main response as a reference through Regular Expression Extractor. Now for the next module, how can I retrieve the reference and extract a specific link? Also, at which level should I specify Cookie/Cache Manager, in individual module or parent test plan? Thanks much. Regards, Wanjun Wang
How to Save RegEx value into a file
Hi, how can i save RegEx extracted value from a response body into a file. For example: user1 request will have response body ns6:OrganizationId8a9484c137a89754013805b79af145f8/ns6:OrganizationId user2 request will have response body ns6:OrganizationId9a9484d136a89754013805b79af145f8/ns6:OrganizationId So, I added RegEx extractor to the sampler request Refrence name: orgid Regular Expression:ns5:OrganizationId(.+?)/ns5:OrganizationId Template: $1$ Match No.:1 So, how do I save all this organization Id using RegEx into a single file
Re: How to Save RegEx value into a file
Sorry its 6 not 5 on the above post as below Regular Expression:ns6:OrganizationId(.+?)/ns6:OrganizationId On Mon, Jun 24, 2013 at 9:18 PM, umesh prajapati praumes...@gmail.comwrote: Hi, how can i save RegEx extracted value from a response body into a file. For example: user1 request will have response body ns6:OrganizationId8a9484c137a89754013805b79af145f8/ns6:OrganizationId user2 request will have response body ns6:OrganizationId9a9484d136a89754013805b79af145f8/ns6:OrganizationId So, I added RegEx extractor to the sampler request Refrence name: orgid Regular Expression:ns5:OrganizationId(.+?)/ns5:OrganizationId Template: $1$ Match No.:1 So, how do I save all this organization Id using RegEx into a single file