Re: Global code-based config element - defined/executed once then shared across threads/thread groups?

2016-06-01 Thread Pratapi Hemant Patel
>From component reference page
http://jmeter.apache.org/usermanual/component_reference.html#User_Defined_Variables

UDVs are shared between Thread Groups

By Default variables have thread scope, but variables defined in User
Defined Variables components have global scope.


With Best Regards
Hemant
9810752184 / 9013982184
<https://in.linkedin.com/pub/pratapi-hemant-patel/39/3b9/5a5>

On Thu, Jun 2, 2016 at 9:37 AM, Deepak Shetty  wrote:

> variables do not have "global" scope - in the sense that they are not
> shared across threads (even if the initial value could be same , changes
> are not reflected in a different thread)
>
> On Wed, Jun 1, 2016 at 8:58 PM, Pratapi Hemant Patel <
> hemantson...@gmail.com
> > wrote:
>
> > AS far as i understand, if you want to define some variable that can be
> > shared among thread groups, use USER DEFINED VARIABLE component. The
> > variables defined in it have global scope.
> >
> > Best Regards,
> > Hemant
> > 9810752184 / 9013982184 <%209013982184>
> > On 02-Jun-2016 5:47 AM, "David Luu"  wrote:
> >
> > > Is there any facility in JMeter already to define code/script based
> > > configuration once for threads or thread groups to then use later on?
> > > Meaning a single execution is done to dynamically generate the needed
> > test
> > > data (and utility methods) at test startup, then this whole config
> > "object"
> > > is referenced by threads in thread groups later on during the actual
> test
> > > run.
> > >
> > > Browsing over the JMeter docs, I'm not aware if that already exists, or
> > how
> > > best to implement this. Basically, in terms of JMeter
> extensions/plugins,
> > > I'm thinking of a config element that's like a static class or
> singleton,
> > > don't want each thread trying to instantiate their own instance. And/or
> > > something similar to user defined variables at the test plan root
> level,
> > > only the variable is a Java object/struct rather than simple string
> (that
> > > could be typecasted to int) - or that defining the Java object is a lot
> > of
> > > logic that can't simply be done with JMeter functions to then flatten
> > > object (serialized) to JSON string.
> > >
> > > If there already is such facility & best practice, that would be great
> > as I
> > > don't want to have to deal with instance checking, synchronization, and
> > > thread safety myself unless I have to, when instantiating the globally
> > > shared data across threads. Nor do I want each thread to have their own
> > > "copy" as that eats up memory/resources as we scale the load up.
> > >
> > > I'm currently using a Java-based config element based off the CSV Data
> > Set
> > > Config (from kafkameter project). Would placing the config element
> under
> > > test plan rather than under a thread group affect how it executes? E.g.
> > > execute once and result/output global to all threads, or would it also
> be
> > > executed X times for X threads, being globally used by them all, but
> not
> > > global in the sense of being already executed once with its output
> > readily
> > > accessible?
> > >
> > > This discussion would be with respect to things like config elements,
> or
> > > say pre-processors, in Java, Beanshell, javascript - but in the global
> > > execute once context rather than execute per thread, while providing
> its
> > > output (as JMeter variables, etc.) being global to all threads.
> > >
> >
>


Re: Global code-based config element - defined/executed once then shared across threads/thread groups?

2016-06-01 Thread Pratapi Hemant Patel
AS far as i understand, if you want to define some variable that can be
shared among thread groups, use USER DEFINED VARIABLE component. The
variables defined in it have global scope.

Best Regards,
Hemant
9810752184 / 9013982184
On 02-Jun-2016 5:47 AM, "David Luu"  wrote:

> Is there any facility in JMeter already to define code/script based
> configuration once for threads or thread groups to then use later on?
> Meaning a single execution is done to dynamically generate the needed test
> data (and utility methods) at test startup, then this whole config "object"
> is referenced by threads in thread groups later on during the actual test
> run.
>
> Browsing over the JMeter docs, I'm not aware if that already exists, or how
> best to implement this. Basically, in terms of JMeter extensions/plugins,
> I'm thinking of a config element that's like a static class or singleton,
> don't want each thread trying to instantiate their own instance. And/or
> something similar to user defined variables at the test plan root level,
> only the variable is a Java object/struct rather than simple string (that
> could be typecasted to int) - or that defining the Java object is a lot of
> logic that can't simply be done with JMeter functions to then flatten
> object (serialized) to JSON string.
>
> If there already is such facility & best practice, that would be great as I
> don't want to have to deal with instance checking, synchronization, and
> thread safety myself unless I have to, when instantiating the globally
> shared data across threads. Nor do I want each thread to have their own
> "copy" as that eats up memory/resources as we scale the load up.
>
> I'm currently using a Java-based config element based off the CSV Data Set
> Config (from kafkameter project). Would placing the config element under
> test plan rather than under a thread group affect how it executes? E.g.
> execute once and result/output global to all threads, or would it also be
> executed X times for X threads, being globally used by them all, but not
> global in the sense of being already executed once with its output readily
> accessible?
>
> This discussion would be with respect to things like config elements, or
> say pre-processors, in Java, Beanshell, javascript - but in the global
> execute once context rather than execute per thread, while providing its
> output (as JMeter variables, etc.) being global to all threads.
>


Re: Less no of samples in AggregateReportGui.csv and SynthesisReportGui.csv

2016-04-26 Thread Pratapi Hemant Patel
Sorry, wrong window. This belongs to jmeter-plugins mailer.

With Best Regards
Hemant
9810752184 / 9013982184
<https://in.linkedin.com/pub/pratapi-hemant-patel/39/3b9/5a5>

On Tue, Apr 26, 2016 at 12:39 PM, Pratapi Hemant Patel <
hemantson...@gmail.com> wrote:

> Hi All,
>
> I have a simple test plan in which thread count is 5 and lopp count is
> 1000.
>
> My testplan looks like this
>
> ThreadGroup
> ++uploadRecording
> ++deleteRecording
> Simple Data Writer
> jp@gc Graph Generator
>
> Simple data writer writes reports to a file which has 5000 entries of
> uploadRecording, deleteRecording each.
>
> But AggregateReportGui.csv and SynthesisReportGui.csv have less no of
> samples
>
> uploadRecording- 4986
> deleteRecording-  4985.
>
> Any specific reason why some samples have been excluded from the reports.
>
> With Best Regards
> Hemant
> 9810752184 / 9013982184
> <https://in.linkedin.com/pub/pratapi-hemant-patel/39/3b9/5a5>
>


Less no of samples in AggregateReportGui.csv and SynthesisReportGui.csv

2016-04-26 Thread Pratapi Hemant Patel
Hi All,

I have a simple test plan in which thread count is 5 and lopp count is 1000.

My testplan looks like this

ThreadGroup
++uploadRecording
++deleteRecording
Simple Data Writer
jp@gc Graph Generator

Simple data writer writes reports to a file which has 5000 entries of
uploadRecording, deleteRecording each.

But AggregateReportGui.csv and SynthesisReportGui.csv have less no of
samples

uploadRecording- 4986
deleteRecording-  4985.

Any specific reason why some samples have been excluded from the reports.

With Best Regards
Hemant
9810752184 / 9013982184
<https://in.linkedin.com/pub/pratapi-hemant-patel/39/3b9/5a5>


Re: Jmeter master slavr architecture reporting pattern

2016-02-21 Thread Pratapi Hemant Patel
Please see inline

Best Regards,
Hemant
On 21 Feb 2016 21:49, "Pravesh Prajapati" 
wrote:
>
> Hi Team,
> I have created master slave architecture with jmeter . I have 7 machines
> out of six are slave and 1 is master.
> Now I am executing same script with 500 vu on single machine.
> So on six slave the total no of user will be 500×6.
> Is my assumption is right?.
  You will not get exact 500*6 but almost. Slave machines will be
sending reports to master machine, eating some CPU cycle. so it will impact
the load slave machines are generating.

>
> Now how the report will be generated.
> Will I get 500×6 vu on master machine or I will get report for 500 vu on
> each slave machine.
>
You will get all reports at master machine

> Regards.
> Pravesh Prajapati.
>
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170


Re: Requests per second, hit per second, transaction per second

2015-09-14 Thread Pratapi Hemant Patel
Request per Second: No of request goes out from jmeter in a second

Hit Per Second: No of request reached to server in a second
http://jmeter-plugins.org/wiki/HitsPerSecond/

Transaction per second: No of transaction(a request has been responded)
ended in a second.
http://jmeter-plugins.org/wiki/TransactionsPerSecond/



Thanks and Regards
Hemant
9810752184 / 9013982184

On Tue, Sep 15, 2015 at 12:16 PM, Dang Quoc Bao (FHO.FSB) <
bao...@fsoft.com.vn> wrote:

> Hello everyone!
> Can someone explain to me:" What is requests per second? What is hit per
> second and What is transaction per second".
> Thanks you very much.
> Best Regard
> BaoDQ
>


Re: How to add delay between Loops?

2015-09-07 Thread Pratapi Hemant Patel
adding simply a constant timer will not serve the purpose as it introduces
delay within each requests.
A workaround can be used

Threadgroup
>>req 1
>>req 2
>>req 3
>>req 4
>>req 5
>>req 6
>>Simple Controller
constant timer
any dummy sampler (say debug sampler, or a http request sampler to a
dummy url)

Thanks and Regards
Hemant
9810752184 / 9013982184

On Mon, Sep 7, 2015 at 6:29 PM, Nirdesh Pachoriya 
wrote:

> You can use constant timer which can help you to introduce the delay.
>
> Regards,
> Nirdesh M Pachoriya
> -Original Message-
> From: Amit Kumar [mailto:amit.sr...@gmail.com]
> Sent: Monday, September 7, 2015 6:19 PM
> To: JMeter Users List
> Subject: How to add delay between Loops?
>
> Hello,
>
> I want to perform load testing for an application with following scenario:
>
> What I want to do is-
>
> I want to schedule a load test for 10 mins (loop count = forever), but
> after each loop, I need a pause of 10 secs. So, how to add pause between
> loops? Is it possible to do this in JMeter?
>
> My Thread Group setup is as follows:
>
> *Thread Properties:*
> Number of Threads: 100
> Ram-up: 1 sec
> Loop Count: Forever
>
> *Scheduler:*
> Start Time: 2015/09/07 18:01:00
> End Time:  2015/09/07 18:11:00
> Duration: BLANK
> Startup Delay: BLANK
>
> And my Thread Group has 6 requests?
>
> --
> Thanks and Regards,
> Amit
> "Legal Disclaimer: This electronic message and all contents contain
> information from Cybage Software Private Limited which may be privileged,
> confidential, or otherwise protected from disclosure. The information is
> intended to be for the addressee(s) only. If you are not an addressee, any
> disclosure, copy, distribution, or use of the contents of this message is
> strictly prohibited. If you have received this electronic message in error
> please notify the sender by reply e-mail to and destroy the original
> message and all copies. Cybage has taken every reasonable precaution to
> minimize the risk of malicious content in the mail, but is not liable for
> any damage you may sustain as a result of any malicious content in this
> e-mail. You should carry out your own malicious content checks before
> opening the e-mail or attachment." www.cybage.com
>


Re: Different parameter values in request name and the actual request

2015-09-07 Thread Pratapi Hemant Patel
I think local variable ​ will not serve the purpose as accesstoken are
getting generated in one thread group and used in another.


Re: Different parameter values in request name and the actual request

2015-09-07 Thread Pratapi Hemant Patel
For your second question  *Why is token number used in name of http request
for **ThreadGroup_VerifyTokenInfo and actual token used in get request are
not **same.*

Property variables are shared among all threads. So when jmeter reads the
http request name via __P(accesstoken), before reading the same variable in
path, some other threads change its value. So u r geeting different value.

U can use parameterized controller with a variable (access-token,
__P(accesstoken)) and put your http request in it. In the name and path use
variable ${access-token}

For your first question, I didn't understand :)


Re: Jmeter remote execution

2015-09-06 Thread Pratapi Hemant Patel
Yes u r right

Best Regards,
Hemant
9810752184 / 9013982184
On 06-Sep-2015 4:16 pm, "Pravesh Prajapati" 
wrote:

> That mean I will get report for 200 vu user not for 100.
> Is I am right?
>
> Regards,
> Pravesh Prajapati
>
> On Sun, Sep 6, 2015 at 4:08 PM, Pratapi Hemant Patel <
> hemantson...@gmail.com
> > wrote:
>
> > Same test case will be executed on all machine so u will get n times data
> >
> > Best Regards,
> > Hemant
> > 9810752184 / 9013982184
> > On 06-Sep-2015 4:05 pm, "Pravesh Prajapati"  >
> > wrote:
> >
> > > Hi Team,
> > > I have one tharead group of 100 user & I am executing on 2 machines
> from
> > > non GUI mode, So will I get result of 200(100+100) execution OR 100
> > > execution(50+50)
> > > Please help.
> > >
> > > --
> > > Regards,
> > > Pravesh prajapati.
> > > Mob:-9702600170
> > >
> >
>
>
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Re: Jmeter remote execution

2015-09-06 Thread Pratapi Hemant Patel
Same test case will be executed on all machine so u will get n times data

Best Regards,
Hemant
9810752184 / 9013982184
On 06-Sep-2015 4:05 pm, "Pravesh Prajapati" 
wrote:

> Hi Team,
> I have one tharead group of 100 user & I am executing on 2 machines from
> non GUI mode, So will I get result of 200(100+100) execution OR 100
> execution(50+50)
> Please help.
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Re: BeanShell post processor or Beanshell assertion

2015-08-18 Thread Pratapi Hemant Patel
Use *prev.setSuccessful(false); *in the second if statement.

Thanks and Regards
Hemant
9810752184 / 9013982184

On Tue, Aug 18, 2015 at 5:46 PM, Erez Naim  wrote:

> Hello all,
>
>
>
> I am trying to fail in purpose a sampler in case it wont pass several
> criteiras I have defined before.
>
>
>
> I have this script (beanshell post processor):
>
>
>
> if(i==4){
>
>
>
>
>
>
> msg = getMessage(item,i,suggestions);
>
>
>
> System.out.println(msg+" "+ i);
>
>
>
> if(!msg.equals("Hi, I'm about to leave work. Need anything?")){
>
>
>
> System.out.println("Test
> failed");
>
>
> }
>
>
> }
>
>
>
>
>
> I want to fail the sampler in case it will get into the second if
> statement and will prompt to console the fail message (additionally I want
> to fail the sampler itself as a result).
>
>
>
> Thanks,
>
>
>
> Erez Naim  |  QA Lead  |   [image: LinkedIn]
>   [image: vCard]
>   [image: Twitter]
> 
>
> [image: cid:image004.png@01D01E1B.5F153500]
>
> EL AL 2 Street | Herzliya
> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
>
>
>
> website   |  blog 
>  |  twitter   |  map
> 
>
>
>
>
>


Re: jmeter integration with jenkins maven.

2015-07-20 Thread Pratapi Hemant Patel
Currently there is no official JMETER plugin on jenkins is available.

Use this plugin which supoports JMETER.
https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin

Thanks and Regards
Hemant
9810752184 / 9013982184

On Mon, Jul 20, 2015 at 11:57 AM, Pravesh Prajapati <
prajapati.prav...@gmail.com> wrote:

> Hi Team,
> I am planing to perform continues integration testing and I want to
> integrate jmeter with jenkins.
> can you please share me the proper steps,
> And what all other things I will be needing for doing this.
> If there is any link document or video is available. Please share.
>
> my email id is
> Prajapati. prav...@gmail.com
>
> Regards
> Pravesh prajapati
>
>
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Re: How to get dynamic parameters from a response

2015-05-20 Thread Pratapi Hemant Patel
you can also use plugin JSON-Path Extractor in case your response is JSON

Thanks and Regards
Hemant
9013982184

On Tue, May 19, 2015 at 6:44 PM, ZK  wrote:

> hi,
> you should take a look at the 'Regular Expression Extractor' post processor
>
>
>
> http://community.blazemeter.com/knowledgebase/articles/65150-using-regex-regular-expression-extractor-with-jm
> <
> http://community.blazemeter.com/knowledgebase/articles/65150-using-regex-regular-expression-extractor-with-jm
> >
>
>
>
> http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor
> <
> http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor
> >
>
>
>
> ZK
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/How-to-get-dynamic-parameters-from-a-response-tp5722481p5722482.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: the option of "Retrieve All embedded resources from html file" doesnt load ALL resourses

2015-05-07 Thread Pratapi Hemant Patel
Hi,
Jmeter can record only few types of embedded resources and not ALL.
According to the documentation of JMeter
.

Thanks and Regards
Hemant
9013982184

On Thu, May 7, 2015 at 11:54 AM, Jesse Zhang 
wrote:

> Hello everyone,
> There is an original http request such as "http://www.baidu.com/".I
> checked the option of "retrieve all embedded resources from html
> files".Then I add a View Results Tree to run the test.Comparing the results
> with those http requests captured by a packetcapture tool,I find that the
> results are few resources but not all.I dont konw what is the reaon causing
> that.I guess it is because the browser excute javascript and then send some
> http requests which cant be parsed from html.Is that right?How can i fix
> it?Do i need a JS interpreter into Jmeter(is this possible?) or to excute
> JS like a browser in Jmeter?Or is that some good idea else?
> Thanks & Regards
> Jesse
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Printing Run-time Value

2015-04-20 Thread Pratapi Hemant Patel
If you are planning to print some JMETER variables or a sampler
data(response time etc.), then you can use, beanshell/JSR 223, and use
System.out.println() to print anything on cmd.

Thanks and Regards
Hemant
9013982184

On Tue, Apr 21, 2015 at 7:59 AM, NaveenKumar Namachivayam <
catchnaveen.psgt...@gmail.com> wrote:

> Hi,
>
> Could you please let me know how to print the run-time value to the command
> prompt of JMeter? Thanks!
>
> --
> Thank you,
>
> Regards,
> NaveenKumar N
> Visit www.QAInsights.com and www.Testifications.com and www.MyTechCube.com
>


Re: Response Time Split Up

2015-03-27 Thread Pratapi Hemant Patel
Hi,
Jmeter can record only few types of embedded resources and not ALL.
According to the documentation of JMeter
<http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request>.
Also try to use concurrent pool for loading embedded resources.

While loading a webpage the response time also depends on the client we are
using (chrome, internet explorer).
In JMeter case client is Apache-HttpClient.
So u can't compare response time between the two (browser and Jmeter).


Thanks and Regards
Hemant
9013982184

On Fri, Mar 27, 2015 at 9:41 PM, Devath Naik 
wrote:

> Hi Hemanth,
>
> We have checked the "Retrieve all Embedded Resources" option in HTTP
> Request window and implemented the Regular expression to excluding those
> Embedded URLs and notified those URL's are not getting download in View
> Results tree but still observing High Response time.
>
> So, with this "Retrieve all Embedded Resources" option we are getting all
> non-html resources been downloaded , but getting very High Response Time(if
> we compare manual through) bcz of may be some other embedded resources
> included which are not tagged and located with main http request.
>
> So , we need to get only non-html resource which are tagged to main http
> request and located with it in a physical address and it's individual
> Response times
>
> Thanks,
> Devath.
>
>
>
>
>
> On Fri, Mar 27, 2015 at 7:10 PM, Pratapi Hemant Patel <
> hemantson...@gmail.com> wrote:
>
> > Hi Devath,
> > As discussed on phone, u can use regex in URL must match in http request.
> > For excluding some urls, u can write regex in such a way that exclude
> some
> > urls.
> > You can refer this
> >
> > *
> >
> http://community.blazemeter.com/knowledgebase/articles/140841-excluding-certain-domains-from-the-load-test
> > <
> >
> http://community.blazemeter.com/knowledgebase/articles/140841-excluding-certain-domains-from-the-load-test
> > >*
> >
> >
> >
> > Thanks and Regards
> > Hemant
> > 9013982184
> >
> > On Fri, Mar 27, 2015 at 6:50 PM, Devath Naik 
> > wrote:
> >
> > > Hi Hemanth,
> > >
> > > Thank you so much for your quick response and being patient in
> > > understanding our issue.
> > >
> > > As discussed, we have implemented the suggestion given by you but still
> > the
> > > luck is not in our favor.
> > >
> > > Thanks & Regards,
> > > Devath Naik
> > >
> > > On Fri, Mar 27, 2015 at 12:47 PM, Pratapi Hemant Patel <
> > > hemantson...@gmail.com> wrote:
> > >
> > > > Hi,
> > > > You can use BeanShell Listener/Jsr223 Listener
> > > > In which you can access JMeter api.
> > > > For example in JSR223 Listener,
> > > >
> > > > SampleResult[] subResults = sampleResult.getSubResults();
> > > >
> > > > for(int i=0; i > > >
> > > >   long time = subResults[i].getTime(); //response time
> > > >
> > > > }
> > > >
> > > > Now u can access response time of individuals request.
> > > > Use other jmeter apis for more functionality.
> > > >
> > > >
> > > >
> > > > Thanks and Regards
> > > > Hemant
> > > > 9013982184
> > > >
> > > > On Fri, Mar 27, 2015 at 12:15 PM, Devath Naik <
> devath.jme...@gmail.com
> > >
> > > > wrote:
> > > >
> > > > > Hi ALL,
> > > > >
> > > > >
> > > > >
> > > > > We are using JMeter 2.11 for doing detailed performance analysis
> of a
> > > web
> > > > > application.
> > > > >
> > > > >
> > > > >
> > > > > There are multiple embedded resources (js/css) in a good number of
> > web
> > > > > pages. Though we exclude them while recording, when we replay the
> > > server
> > > > > still responds by automatically a good number of these embedded
> > > resources
> > > > > too.
> > > > >
> > > > >
> > > > >
> > > > > Thus, to analyze the response time details further, we feel the
> need
> > of
> > > > the
> > > > > breakdown of response time of each hit. So, is there a way in
> JMeter
> > > > where
> > > > > we can get the response time split up of each of this hit
> separately
> > > > along
> > > > > with the total response time (elapsed time) of the http GET call.
> > > > >
> > > > >
> > > > >
> > > > > Do feel free to let us know if you need any other details.
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Devath
> > > > >
> > > >
> > >
> >
>


Re: Response Time Split Up

2015-03-27 Thread Pratapi Hemant Patel
Hi Devath,
As discussed on phone, u can use regex in URL must match in http request.
For excluding some urls, u can write regex in such a way that exclude some
urls.
You can refer this

*http://community.blazemeter.com/knowledgebase/articles/140841-excluding-certain-domains-from-the-load-test
<http://community.blazemeter.com/knowledgebase/articles/140841-excluding-certain-domains-from-the-load-test>*



Thanks and Regards
Hemant
9013982184

On Fri, Mar 27, 2015 at 6:50 PM, Devath Naik 
wrote:

> Hi Hemanth,
>
> Thank you so much for your quick response and being patient in
> understanding our issue.
>
> As discussed, we have implemented the suggestion given by you but still the
> luck is not in our favor.
>
> Thanks & Regards,
> Devath Naik
>
> On Fri, Mar 27, 2015 at 12:47 PM, Pratapi Hemant Patel <
> hemantson...@gmail.com> wrote:
>
> > Hi,
> > You can use BeanShell Listener/Jsr223 Listener
> > In which you can access JMeter api.
> > For example in JSR223 Listener,
> >
> > SampleResult[] subResults = sampleResult.getSubResults();
> >
> > for(int i=0; i >
> >   long time = subResults[i].getTime(); //response time
> >
> > }
> >
> > Now u can access response time of individuals request.
> > Use other jmeter apis for more functionality.
> >
> >
> >
> > Thanks and Regards
> > Hemant
> > 9013982184
> >
> > On Fri, Mar 27, 2015 at 12:15 PM, Devath Naik 
> > wrote:
> >
> > > Hi ALL,
> > >
> > >
> > >
> > > We are using JMeter 2.11 for doing detailed performance analysis of a
> web
> > > application.
> > >
> > >
> > >
> > > There are multiple embedded resources (js/css) in a good number of web
> > > pages. Though we exclude them while recording, when we replay the
> server
> > > still responds by automatically a good number of these embedded
> resources
> > > too.
> > >
> > >
> > >
> > > Thus, to analyze the response time details further, we feel the need of
> > the
> > > breakdown of response time of each hit. So, is there a way in JMeter
> > where
> > > we can get the response time split up of each of this hit separately
> > along
> > > with the total response time (elapsed time) of the http GET call.
> > >
> > >
> > >
> > > Do feel free to let us know if you need any other details.
> > >
> > >
> > > Thanks,
> > >
> > > Devath
> > >
> >
>


Re: Response Time Split Up

2015-03-27 Thread Pratapi Hemant Patel
Hi,
You can use BeanShell Listener/Jsr223 Listener
In which you can access JMeter api.
For example in JSR223 Listener,

SampleResult[] subResults = sampleResult.getSubResults();

for(int i=0; i
wrote:

> Hi ALL,
>
>
>
> We are using JMeter 2.11 for doing detailed performance analysis of a web
> application.
>
>
>
> There are multiple embedded resources (js/css) in a good number of web
> pages. Though we exclude them while recording, when we replay the server
> still responds by automatically a good number of these embedded resources
> too.
>
>
>
> Thus, to analyze the response time details further, we feel the need of the
> breakdown of response time of each hit. So, is there a way in JMeter where
> we can get the response time split up of each of this hit separately along
> with the total response time (elapsed time) of the http GET call.
>
>
>
> Do feel free to let us know if you need any other details.
>
>
> Thanks,
>
> Devath
>


Re: Post processor executing less than sampler

2015-03-26 Thread Pratapi Hemant Patel
Hi all, thanks for quick reply,
I solved the problem using
1) Critical Section Controller
2) Synchronized in BeanShell

Thanks and Regards
Hemant
9013982184

On Thu, Mar 26, 2015 at 2:33 AM, Mark Wilkinson  wrote:

> Or you could implement some kind of mutex (locking) mechanism but that's
> probably overkill for what you need.
>
> On 25 March 2015 at 20:54, Deepak Shetty  wrote:
>
> > >but the value of APDEX_LOWER in property is less than 500, (470 to 490);
> > You are using a multi-threaded system and using a shared variable (so if
> > two threads execute at exactly the same time they will read the same
> value
> > increment it and set it back ) - so the behavior above is expected.
> >
> > If you just need unique values then use thread numbers to determine
> buckets
> > (i.e thread 1 is 1-100 , thread 2  =101-200 etc). if you need the
> samplers
> > to really execute these variables incrementally then there you could use
> > JMeter Counter (element or function with a global counter) or Java +
> > synchronized - but there is no guarantee that the Sampler that executed
> the
> > block first will also make the HTTP request first
> >
> > On Wed, Mar 25, 2015 at 10:10 AM, Pratapi Hemant Patel <
> > hemantson...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > *Test plan, 5 thread, loop count 100*
> > >
> > > I m using a http request sampler, and a BeanShell PostProcessor as a
> > child
> > > of this request,
> > >
> > > Code of BeanShell PostProcessor is
> > >
> > > float apdex_lower = Float.parseFloat(props.get("APDEX_LOWER"));
> > > apdex_lower += 1;
> > > props.put("APDEX_LOWER", Float.toString(apdex_lower));
> > >
> > >
> > > So http request sampler is executing 500 times (also verified by
> summary
> > > reprt listener)
> > >
> > > but the value of APDEX_LOWER in property is less than 500, (470 to
> 490);
> > >
> > >
> > > Thanks and Regards
> > > Hemant
> > > 9013982184
> > >
> >
>
>
>
> --
> Mark Wilkinson
> inyab...@gmail.com 07968 398828
>


Post processor executing less than sampler

2015-03-25 Thread Pratapi Hemant Patel
Hi,

*Test plan, 5 thread, loop count 100*

I m using a http request sampler, and a BeanShell PostProcessor as a child
of this request,

Code of BeanShell PostProcessor is

float apdex_lower = Float.parseFloat(props.get("APDEX_LOWER"));
apdex_lower += 1;
props.put("APDEX_LOWER", Float.toString(apdex_lower));


So http request sampler is executing 500 times (also verified by summary
reprt listener)

but the value of APDEX_LOWER in property is less than 500, (470 to 490);


Thanks and Regards
Hemant
9013982184