tag:blogger.com,1999:blog-10045102.post2810071795062348356..comments2023-06-10T04:11:00.343-07:00Comments on Workaholic: Dynamic Parameters in JMeterDeepak Shettyhttp://www.blogger.com/profile/04324456947895848248noreply@blogger.comBlogger71125tag:blogger.com,1999:blog-10045102.post-34771479429700209052019-07-16T09:24:44.793-07:002019-07-16T09:24:44.793-07:00>how top capture multiple dynamics values in sa...>how top capture multiple dynamics values in same request(jmeter).<<br /><br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-42138166454499340142017-01-26T00:27:07.443-08:002017-01-26T00:27:07.443-08:00Hi Deepak,
How to handle the Cache buster value i...Hi Deepak,<br /><br />How to handle the Cache buster value in j meter.<br />Brief explanation of cache buster is below:<br /><br />[A cache-buster is a unique piece of code that prevents a browser from reusing an ad it has already seen and cached, or saved, to a temporary memory file.<br /><br />What Does a Cache-Buster Do?<br />The cache-buster doesn’t stop a browser from caching the file, it just prevents it from reusing it. In most cases, this is accomplished with nothing more than a random number inserted into the ad tag on each page load. The random number makes every ad call look unique to the browser and therefore prevents it from associating the tag with a cached file, forcing a new call to the ad server.<br /><br />Cache-busting maximizes publisher inventory, keeps the value and meaning of an impression constant, and helps minimize discrepancies between Publisher and Marketer delivery reports.]<br /><br />I am getting a dynamic value for cache buster how to handle it in j meter.whenever we are sending a request to server cache buster value is generated.how to handle it .In response the cache buster value is not shown.Please help me.Pavan Kumarhttps://www.blogger.com/profile/12547841959699668337noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-36702492760782332002016-10-03T01:19:26.464-07:002016-10-03T01:19:26.464-07:00How do I configure a parameter so that a distinct ...How do I configure a parameter so that a distinct value is used for each occurrence of the parameter in a single request?<br /><br /><br />Here is an example of the request:<br />http://blahblahblah.com/api/symbol=${stock},${stock},${stock}<br /><br /><br />I want the request to be sent like this:<br />http://blahblahblah.com/api/symbol=GOOG,MSFT,CSCO<br /><br />the values of the parameter "stock" are defined in the csv file. Its a single thread execution test.<br />rajhttps://www.blogger.com/profile/17620218766593718598noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-28081039478323445282016-09-01T15:28:25.716-07:002016-09-01T15:28:25.716-07:00sorry meant to ask , is this what you want to do ?...sorry meant to ask , is this what you want to do ?Deepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-22093603296333912832016-09-01T15:28:02.476-07:002016-09-01T15:28:02.476-07:00Im not sure I understand.
If say pcount=5 , and pv...Im not sure I understand.<br />If say pcount=5 , and pvalues looks like<br />pvalues_0=xxx0<br />pvalues_1=xxx1<br />pvalues_2=xxx2<br />pvalues_3=xxx3<br />pvalues_4=xxx4<br />And in post you want to send<br />pselect_xxx0=1&pselect_xxx1=1&....&pselect_xxx4=1<br />Deepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-6433686704612718172016-09-01T15:20:52.807-07:002016-09-01T15:20:52.807-07:00Hi Deepak,
I am using JMeter 3.0 version and crea...Hi Deepak, <br />I am using JMeter 3.0 version and creating the scripts for web application. <br /><br />I have a Get request which have JSON response. After that I have POST request which send the request based on previous response values. Like In response I am getting the total records and each record numerical value (I have captured them using Regular expression extractor names like pcount and pvalues) . Here is the POST request format..<br />pselect_123=1&pselect_1234=1&.......<br />So here the number pselect_xxx=1 are based o number of pcount and xxx values are coming from pvalues. Now here I am looking for formatted request to substitute in place of request because each request have different sets of pselect_xxx=1 values. <br /><br />Could you please provide me the beanshell script to resolve this ? I really appeciate all our help.PerfTester_0321https://www.blogger.com/profile/04060466013109820301noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-24871970333879718932016-06-29T02:36:48.182-07:002016-06-29T02:36:48.182-07:00Nice post!! It is very helpfulNice post!! It is very helpfulAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-37365279107525629542016-05-16T17:05:39.054-07:002016-05-16T17:05:39.054-07:00Thanks Deepak for the reply.I was able to capture ...Thanks Deepak for the reply.I was able to capture the response.<br /><br />-ADAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-22842095457481254242016-05-13T10:46:58.076-07:002016-05-13T10:46:58.076-07:00>.I am able to extract the CSRF code from the p...>.I am able to extract the CSRF code from the page using Regular expression extractor <br />Did you verify this ? Immediately after the sampler in which you extract the data into a variable , add a debug sampler + view results tree and see if you did indeed extract the value<br />>but when i make the post call but the in the same sample<br />This statement doesnt make sense - The token is for the <b>next</b> sample. <br />>How i can extract the code in the same sample and send in the post.<br />Again - you do not seem to understand how CSRF or the browser does this. You have to first request a page or something which gives you a token , then you extract it and then you send it in the next sampleDeepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-64350982281734590632016-05-12T17:02:11.240-07:002016-05-12T17:02:11.240-07:00Hi Deepak,
I am working on a login page where we ...Hi Deepak,<br /><br />I am working on a login page where we get a CSRF token and i need to pass the token with the login credentials.I am able to extract the CSRF code from the page using Regular expression extractor but when i make the post call but the in the same sample CSRF code goes blank as the Regular expression extractor is post processor.How i can extract the code in the same sample and send in the post.<br /><br /><br />Thanks<br />ADAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-59202387202896355942015-08-08T10:27:36.306-07:002015-08-08T10:27:36.306-07:00is this happening for any website that you are att...is this happening for any website that you are attempting to record ? In which case probably you have a setup issue (if its only happening for your site then it likely might be a defect in JMeter or your site) - <br />Its difficult to say since the error message you get is a generic java thing <br />You could try alternatives like https://chrome.google.com/webstore/detail/blazemeter-the-load-testi/mbopgmdnpcbohhpnfglgohlbhfongabi?hl=enDeepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-54448745357480232015-08-07T00:36:45.860-07:002015-08-07T00:36:45.860-07:00Deepak,
I am using Jmeter 2.11 version and java 1...Deepak,<br /><br />I am using Jmeter 2.11 version and java 1.7 version.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-19940621568080605122015-08-06T07:08:59.685-07:002015-08-06T07:08:59.685-07:00And imported and setup your browser correctly ?
En...And imported and setup your browser correctly ?<br />Ensure you are using latest jmeter / supported java version.<br />Otherwise you will have to ask on the Jmeter mailing group..Deepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-45438315568769124212015-08-06T03:15:35.242-07:002015-08-06T03:15:35.242-07:00Deepak,
I have followed all the steps mentioned in...Deepak,<br />I have followed all the steps mentioned in PDF, but still getting the same exception.<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-68844323405535366582015-08-04T07:40:07.419-07:002015-08-04T07:40:07.419-07:00Did you follow all the steps listed in
https://jme...Did you follow all the steps listed in<br />https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf<br />http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder ( HTTPS recording and certificates )<br />HTTPS recording needs some further setup in Jmeter and browserDeepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-77523921779592097152015-08-04T00:38:08.883-07:002015-08-04T00:38:08.883-07:00Hi Deepak,
During recording through Jmeter, I got ...Hi Deepak,<br />During recording through Jmeter, I got the following exception:-<br /><b><br />javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake<br /> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)<br /> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)<br /> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)<br /> at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)<br /> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)<br /> at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)<br /> at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)<br /> at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)<br /> at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)<br /> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)<br /> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)<br /> at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481)<br /> at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298)<br /> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)<br /> at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)<br /> at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236)<br />Caused by: java.io.EOFException: SSL peer shut down incorrectly<br /> at sun.security.ssl.InputRecord.read(Unknown Source)<br /> ... 16 more<br /></b><br /><br />Please suggest why this is coming.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-24501114858012085932015-05-08T08:12:46.552-07:002015-05-08T08:12:46.552-07:00JMeter is not a server monitoring tool - The inter...JMeter is not a server monitoring tool - The interface that is provided for Tomcat for e.g. can be implemented on any other server if you wish , however most Java app servers or even Java VMs have good monitoring capabilities (like JConsole) - if you are using something other than Java then you'll have to see specific to your platform. <br />Deepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-11348378116545142972015-05-08T00:18:57.907-07:002015-05-08T00:18:57.907-07:00Hi,
I want to use Monitor Results Listener in Jmet...Hi,<br />I want to use Monitor Results Listener in Jmeter. I want to monitor server as well of the application.<br />But how can I achieve this?<br /><br /><b>The monitor only works with Tomcat5 build 5.0.19 and newer. It means if application is deployed some other server, then it will not capture the server performance?</b><br /><br />Please suggest.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-84129868370812552382015-04-07T05:23:51.199-07:002015-04-07T05:23:51.199-07:00Hi Deepak, I am confused in the below step:
After...Hi Deepak, I am confused in the below step:<br /><br />After logging in, I get the homepage of my application and I fill a form, now as I click on submit button after filling the form, I find that resultant page has a new dynamically generated id under the URL, which I am not able to find out.<br /><br />because before proceeding to this url I need to get it actually.<br /><br />suppose after clicking on submit URL says : www.abc.com/25/mytask<br /><br />Here I need to capture this id(25) so that when I put a load that time I could write the variable name in this url to get this id.<br /><br />Also I want to mention that I need this id in my one previous request.<br /><br />Please guide me on this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-16918948214399141822015-02-05T10:53:01.103-08:002015-02-05T10:53:01.103-08:00>What is the maximum limit of load in jmeter?
N...>What is the maximum limit of load in jmeter?<br />None - You are limited by what ypur machine can do - but you can always use multiple machines<br /><br />> if there will be 350 users then (350*47) 16450 steps will be executed. <br />Assuming users = threads and number of iterations (on thread group) =1 then yes 16450 steps.Deepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-32442039901710680122015-02-05T04:55:10.505-08:002015-02-05T04:55:10.505-08:00What is the maximum limit of load in jmeter?
I wan...<b>What is the maximum limit of load in jmeter?</b><br />I want to run Load test with 350 users with ramp up of 50 users every few minutes. While recording there were 47 steps being recorded. if there will be 350 users then (350*47) 16450 steps will be executed. <br /><br />Please correct me if I am going wrong.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-28268108362435318922015-01-29T08:25:59.031-08:002015-01-29T08:25:59.031-08:00I was trying to record in Chrome but application i...<i> I was trying to record in Chrome but application is not getting recorded.</i><br />All browsers support proxy so all can be used along with JMeter - (But configuration steps might differ).<br />However you should probably see why FF is not making the requests - The two most common settings are cache or Network settings (Tools -->Options -->Advanced -->Network-->Settings )<br /><br />One more possibility is that you are mistaking HTTP requests and browser clicks. Everytime you click a link in the browser does not necessarily mean that browser makes an HTTP request (for e.g. DHTML popups )Deepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-20756386812776559742015-01-29T04:55:11.282-08:002015-01-29T04:55:11.282-08:00Thanks Deepak,
Yes, I checked with the Firefox an...Thanks Deepak,<br /><br />Yes, I checked with the Firefox and through firebug I found that Firefox only records 22 pages out of 512 pages. So as you described, Jmeter will record in the same way the firefox is requested for. <br />One more doubt here, <b>"How will I record script in Chrome using JMeter. Will it be same like with the other browsers (IE, Mozilla). I was trying to record in Chrome but application is not getting recorded."</b>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10045102.post-20451207306845937552015-01-22T08:27:44.780-08:002015-01-22T08:27:44.780-08:00@Anonymous
"Is there any limitaion of Jmete...@Anonymous <br /><i> "Is there any limitaion of Jmeter that it can only record some amount of data?"</i><br />No. But there are valid reasons for the recorder doing things different than what you expect.<br />I believe your question is to do with recording (but the latter half of your question deals with the execution of the script - which is a different thing). <br />So assuming you are talking about recording the script - I suppose you are saying that you clicked some links 521 times but only 22 of them got recorded into the script (note you shouldnt have yet run the script)- Look at the script that got recorded - do you have 521 steps or 21?<br /><br />JMeter records browser actions by configuring itself as a proxy - as such the first basic thing is JMeter will record whatever the browser requested it for. It follows that if the browser didnt request something to the proxy then Jmeter wont record it. The cases when user did something but browser didnt make the request can be due to <br />a. Browser cache (so ensure that you always clear cache and also that you configure browser to not cache anything - IE for example may cache per session and you can change the settings)<br />b. You configured browser to bypass some requests from proxy (For e.g. No Proxy for setting in Firefox)<br /><br />The other reasons fall under Jmeter configuration<br />a. You manually excluded some URL patterns but there is a mistake in your regular expression causing some requests to not get recorded (URL Patterns to exclude)<br />b. You are facing some issues due to HTTPS not being setup correctlyDeepak Shettyhttps://www.blogger.com/profile/04324456947895848248noreply@blogger.comtag:blogger.com,1999:blog-10045102.post-76449714845044693492015-01-21T23:00:50.969-08:002015-01-21T23:00:50.969-08:00Hi Deepak,
I am recording some reports through Jm...Hi Deepak,<br /><br />I am recording some reports through Jmeter. Lets say there are 521 pages in a single report. When I execute the recorded script, In HTML view (View Result Tree Listener)I can see only 22 of 521 pages.<br /><br />My question is:- <b>"Is there any limitaion of Jmeter that it can only record some amount of data?"</b><br /><br />Thanks in advanceAnonymousnoreply@blogger.com