Is there a way to set the duration for which JMeter waits for a response
I googled this but didn't find anything. Is there a way to force JMeter to terminate the current thread and move on to another if an HTTP Sampler receives no response for a certain amount of time? This is a situation where there was no response whatsoever for over an hour and JMeter kept waiting for a response. Regards Sam
Re: Is there a way to set the duration for which JMeter waits for a response
see timeout http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request The action you want to take on error can be configured on the thread group http://jmeter.apache.org/usermanual/component_reference.html#Thread_Group You rarely want to stop the thread though - you usually just want it to skip the rest of the steps of that test and move onto the next data item On Thu, Jun 20, 2013 at 12:29 PM, nmq nmq0...@gmail.com wrote: I googled this but didn't find anything. Is there a way to force JMeter to terminate the current thread and move on to another if an HTTP Sampler receives no response for a certain amount of time? This is a situation where there was no response whatsoever for over an hour and JMeter kept waiting for a response. Regards Sam
RE: Is there a way to set the duration for which JMeter waits for a response
The HTTP sampler includes several 'timeout' values. I use them. It reports an error if the timeout expires, then moves on to the next request (either within the same thread, or in the next - depending on how you setup the thread group). -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 http://www.kingsisle.com -Original Message- From: nmq [mailto:nmq0...@gmail.com] Sent: Thursday, June 20, 2013 2:30 PM To: JMeter Users List Subject: Is there a way to set the duration for which JMeter waits for a response I googled this but didn't find anything. Is there a way to force JMeter to terminate the current thread and move on to another if an HTTP Sampler receives no response for a certain amount of time? This is a situation where there was no response whatsoever for over an hour and JMeter kept waiting for a response. Regards Sam - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Is there a way to set the duration for which JMeter waits for a response
Thank you On Jun 20, 2013 3:38 PM, Deepak Shetty shet...@gmail.com wrote: see timeout http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request The action you want to take on error can be configured on the thread group http://jmeter.apache.org/usermanual/component_reference.html#Thread_Group You rarely want to stop the thread though - you usually just want it to skip the rest of the steps of that test and move onto the next data item On Thu, Jun 20, 2013 at 12:29 PM, nmq nmq0...@gmail.com wrote: I googled this but didn't find anything. Is there a way to force JMeter to terminate the current thread and move on to another if an HTTP Sampler receives no response for a certain amount of time? This is a situation where there was no response whatsoever for over an hour and JMeter kept waiting for a response. Regards Sam
Re: Reusable JMeter Modules
look at module and include controllers On Thu, Jun 20, 2013 at 2:15 PM, Wanjun Wang wang...@us.ibm.com wrote: Is it possible to design reusable modules within JMeter? For example, there are 3 pages with same design. Each has main response and an additional AJAX request. I'd like to have one module that takes a parameter to navigate to the specified page. This way, if there's any change, I just need to change one place instead of 3. Can JMeter test be written just through Java API's without using the GUI, as the GUI doesn't seem to support any modularization? Thanks. Regards, Wanjun
Re: Reusable JMeter Modules
Also look at using variables to parameterise tests http://wiki.apache.org/jmeter/JMeterFAQ#How_do_I_pass_parameters_into_my_Test_scripts.3F_I_want_to_be_able_to_use_the_same_script_to_test_with_different_numbers_of_threads_and_loops.2C_and_I_don.27t_want_to_have_to_change_the_script_each_time. On 20 June 2013 22:19, Deepak Shetty shet...@gmail.com wrote: look at module and include controllers On Thu, Jun 20, 2013 at 2:15 PM, Wanjun Wang wang...@us.ibm.com wrote: Is it possible to design reusable modules within JMeter? For example, there are 3 pages with same design. Each has main response and an additional AJAX request. I'd like to have one module that takes a parameter to navigate to the specified page. This way, if there's any change, I just need to change one place instead of 3. Can JMeter test be written just through Java API's without using the GUI, as the GUI doesn't seem to support any modularization? Thanks. Regards, Wanjun - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
RE: Reusable JMeter Modules
We do this all the time. Our test cases include 'modules' to do things like 'login', and 'registration', etc. You want to use User Variables, and User Parameters, and Include Controllers and Module Controllers in order to accomplish this. -- Robin D. Wilson Sr. Director of Web Development KingsIsle Entertainment, Inc. VOICE: 512-777-1861 http://www.kingsisle.com -Original Message- From: Wanjun Wang [mailto:wang...@us.ibm.com] Sent: Thursday, June 20, 2013 4:16 PM To: user@jmeter.apache.org Subject: Reusable JMeter Modules Is it possible to design reusable modules within JMeter? For example, there are 3 pages with same design. Each has main response and an additional AJAX request. I'd like to have one module that takes a parameter to navigate to the specified page. This way, if there's any change, I just need to change one place instead of 3. Can JMeter test be written just through Java API's without using the GUI, as the GUI doesn't seem to support any modularization? Thanks. Regards, Wanjun - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: Reusable JMeter Modules
As mentioned, read up on Test Fragments and Module Controllers. Also explore the use of properties files to seed your test variables. I make functional tests that I use to assert the consistency of disparate environments. I put all the environmentally unique variables (hosts, ports, passwords...) into a single property file like so: DEV.WEB.HOST=devserver.com DEV.WEB.PORT=8080 PROD.WEB.HOST=myserver.com PROD.WEB.PORT=443 I run my tests with something like: java -jar ApacheJMeter.jar -JTARGETENVIRONMENT=PROD Then I run a little script in the setup thread to use the right set of properties based on the TARGETENVIRONMENT value It's a little bit of setup work, but then serves me well in the long run. Mark On Thu, Jun 20, 2013 at 3:15 PM, Wanjun Wang wang...@us.ibm.com wrote: Is it possible to design reusable modules within JMeter? For example, there are 3 pages with same design. Each has main response and an additional AJAX request. I'd like to have one module that takes a parameter to navigate to the specified page. This way, if there's any change, I just need to change one place instead of 3. Can JMeter test be written just through Java API's without using the GUI, as the GUI doesn't seem to support any modularization? Thanks. Regards, Wanjun
Regular expression in jmeter
I have a scenario where i'm getting values for a request in the header Response headers: HTTP/1.1 302 Moved Temporarily Server: Apache X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP02 (build: SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)/JBossWeb-2.0 x-wily-info: Clear guid=63C4869C0A07194D00C5AC0C23205359 x-wily-servlet: Clear appServerIp=10.7.25.77agentName=STG-portal-1servletName=ControllerServletagentHost=vm0109ussac1agentProcess=JBoss Location: https://test-www.nike.net/portal/site/nike/template.PAGE/;jsessionid=9rU1wzkHOBC7skzvqr9FIg**.node1 I need to use regular expression and i have used regular expression for jsession id jsessionid=([^]+?) where do i see whether it is capturing or not
Different logins
I have parameterized the users for loging I need to capture for which thread which data is using. How do i write bean shell programming to save the values in the file
Re: Regular expression in jmeter
add a debug sampler and view in view results tree - the response tab for the debug sampler should have the variables that got set Ensure that you have selected Headers in the regex extractor for response field to check Your regex seems wrong though On Thu, Jun 20, 2013 at 3:53 PM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have a scenario where i'm getting values for a request in the header Response headers: HTTP/1.1 302 Moved Temporarily Server: Apache X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP02 (build: SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)/JBossWeb-2.0 x-wily-info: Clear guid=63C4869C0A07194D00C5AC0C23205359 x-wily-servlet: Clear appServerIp=10.7.25.77agentName=STG-portal-1servletName=ControllerServletagentHost=vm0109ussac1agentProcess=JBoss Location: https://test-www.nike.net/portal/site/nike/template.PAGE/;jsessionid=9rU1wzkHOBC7skzvqr9FIg**.node1 I need to use regular expression and i have used regular expression for jsession id jsessionid=([^]+?) where do i see whether it is capturing or not
Re: Different logins
the simplest is to use sample_variables in jmeter.properties which will save the values to the result file/ How do i write bean shell programming to save the values in the file depends what you want to do - the thread number and variable are both available in the sampler so you can do whatever you want On Thu, Jun 20, 2013 at 3:56 PM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have parameterized the users for loging I need to capture for which thread which data is using. How do i write bean shell programming to save the values in the file
Re: Regular expression in jmeter
I have added debug sampler but nothing it is showing. What would be the correct syntax for regular expression? On Thu, Jun 20, 2013 at 4:08 PM, Deepak Shetty shet...@gmail.com wrote: add a debug sampler and view in view results tree - the response tab for the debug sampler should have the variables that got set Ensure that you have selected Headers in the regex extractor for response field to check Your regex seems wrong though On Thu, Jun 20, 2013 at 3:53 PM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have a scenario where i'm getting values for a request in the header Response headers: HTTP/1.1 302 Moved Temporarily Server: Apache X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP02 (build: SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)/JBossWeb-2.0 x-wily-info: Clear guid=63C4869C0A07194D00C5AC0C23205359 x-wily-servlet: Clear appServerIp=10.7.25.77agentName=STG-portal-1servletName=ControllerServletagentHost=vm0109ussac1agentProcess=JBoss Location: https://test-www.nike.net/portal/site/nike/template.PAGE/;jsessionid=9rU1wzkHOBC7skzvqr9FIg**.node1 I need to use regular expression and i have used regular expression for jsession id jsessionid=([^]+?) where do i see whether it is capturing or not
Re: Different logins
I would like to display value in the parameter which is used for the current thread how do i do. What is the exact function. On Thu, Jun 20, 2013 at 4:22 PM, Deepak Shetty shet...@gmail.com wrote: the simplest is to use sample_variables in jmeter.properties which will save the values to the result file/ How do i write bean shell programming to save the values in the file depends what you want to do - the thread number and variable are both available in the sampler so you can do whatever you want On Thu, Jun 20, 2013 at 3:56 PM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have parameterized the users for loging I need to capture for which thread which data is using. How do i write bean shell programming to save the values in the file
Re: Different logins
You can use Debug Sampler. That will give you parameters value for the Current thread. On Fri, Jun 21, 2013 at 4:58 AM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I would like to display value in the parameter which is used for the current thread how do i do. What is the exact function. On Thu, Jun 20, 2013 at 4:22 PM, Deepak Shetty shet...@gmail.com wrote: the simplest is to use sample_variables in jmeter.properties which will save the values to the result file/ How do i write bean shell programming to save the values in the file depends what you want to do - the thread number and variable are both available in the sampler so you can do whatever you want On Thu, Jun 20, 2013 at 3:56 PM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have parameterized the users for loging I need to capture for which thread which data is using. How do i write bean shell programming to save the values in the file
Re: Regular expression in jmeter
Put this regular expression in regular expression tester. That will tell you by using this reg ex what value you are extracting. On Fri, Jun 21, 2013 at 4:55 AM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have added debug sampler but nothing it is showing. What would be the correct syntax for regular expression? On Thu, Jun 20, 2013 at 4:08 PM, Deepak Shetty shet...@gmail.com wrote: add a debug sampler and view in view results tree - the response tab for the debug sampler should have the variables that got set Ensure that you have selected Headers in the regex extractor for response field to check Your regex seems wrong though On Thu, Jun 20, 2013 at 3:53 PM, Shashidhar Shivaramaiah shashidhar.shivarama...@gmail.com wrote: I have a scenario where i'm getting values for a request in the header Response headers: HTTP/1.1 302 Moved Temporarily Server: Apache X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA_CP02 (build: SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)/JBossWeb-2.0 x-wily-info: Clear guid=63C4869C0A07194D00C5AC0C23205359 x-wily-servlet: Clear appServerIp=10.7.25.77agentName=STG-portal-1servletName=ControllerServletagentHost=vm0109ussac1agentProcess=JBoss Location: https://test-www.nike.net/portal/site/nike/template.PAGE/;jsessionid=9rU1wzkHOBC7skzvqr9FIg**.node1 I need to use regular expression and i have used regular expression for jsession id jsessionid=([^]+?) where do i see whether it is capturing or not