Re: Monitoring results

2018-09-17 Thread Deepak Shetty
Hi
Since you are using Jmeter plugins , Im guessing you will find more answers
on the plugins on their support forum rather than on the JMeter mailing
list.

JMeter listeners usually have a write results to file , it needs to be its
own file if I remember correctly. i believe a common pattern is to add
timestamp to file name or pass in a run number/name. You can use any JMeter
property for the file name and so you can even set it from command line
(i.e. set the property and use the property in filename field
using${__P(name)} function)

If the plugin doesnt do aggregate then you only option is to load the
result file into something that does or put in a feature request for the
plugin.

> Any other idea how to compare resource utilization for two different runs?
I believe there is a merge results plugin (there was a thread a week or so
ago). I usually do these kind of things outside JMeter

Note I havent used this plugin or the Jenkins plugin so I cant really say.
Usually for the application, one needs to monitor much more than the raw OS
numbers (like a java  VM) and the tools available server side are much more
sophisticated and provide all the OS numbers correlated to the actual
running code (YMMV).

regards
deepak

regards
deepak

On Thu, Sep 13, 2018 at 7:17 PM Alexander Podelko
 wrote:

> Hi,
> I am trying to add server monitoring results and got quite a few
> questions. Sorry for such simple questions - but all numerous posts I found
> describe how to setup monitoring, but I have found none describing it
> deeper
> So I setup the agent / jp@gc - PerfMon Metrics Collector and it is
> working.
> By the way, what jp@gc, used in numerous places, stands for?
> The first question: how should we configure the files for keeping test
> results and monitoring results? May they be recorded in the same jtl file
> or it should be different files?
>
> It appears that for monitoring results the file should be explicitly named
> inside jp@gc - PerfMon Metrics Collector UI file name filed. Any other
> way? Doesn't look like we have command line option for that
> Monitoring charts looks nice - any way to see aggregate numbers? Say,
> average CPU utilization?
> Any idea if monitoring data may be fed into Jenkins performance plug-in?
> Any other idea how to compare resource utilization for two different runs?
> Will much appreciate any information on any of above questions.
> Thanks,Alex
>


Re: Monitoring results

2018-09-17 Thread Deepak Shetty
Oh and i believe JP@GC ==> Jmeter plugins @ Google code

regards
deepak

On Mon, Sep 17, 2018 at 1:31 PM Deepak Shetty  wrote:

> Hi
> Since you are using Jmeter plugins , Im guessing you will find more
> answers on the plugins on their support forum rather than on the JMeter
> mailing list.
>
> JMeter listeners usually have a write results to file , it needs to be its
> own file if I remember correctly. i believe a common pattern is to add
> timestamp to file name or pass in a run number/name. You can use any JMeter
> property for the file name and so you can even set it from command line
> (i.e. set the property and use the property in filename field
> using${__P(name)} function)
>
> If the plugin doesnt do aggregate then you only option is to load the
> result file into something that does or put in a feature request for the
> plugin.
>
> > Any other idea how to compare resource utilization for two different
> runs?
> I believe there is a merge results plugin (there was a thread a week or so
> ago). I usually do these kind of things outside JMeter
>
> Note I havent used this plugin or the Jenkins plugin so I cant really say.
> Usually for the application, one needs to monitor much more than the raw
> OS numbers (like a java  VM) and the tools available server side are much
> more sophisticated and provide all the OS numbers correlated to the actual
> running code (YMMV).
>
> regards
> deepak
>
> regards
> deepak
>
> On Thu, Sep 13, 2018 at 7:17 PM Alexander Podelko
>  wrote:
>
>> Hi,
>> I am trying to add server monitoring results and got quite a few
>> questions. Sorry for such simple questions - but all numerous posts I found
>> describe how to setup monitoring, but I have found none describing it
>> deeper
>> So I setup the agent / jp@gc - PerfMon Metrics Collector and it is
>> working.
>> By the way, what jp@gc, used in numerous places, stands for?
>> The first question: how should we configure the files for keeping test
>> results and monitoring results? May they be recorded in the same jtl file
>> or it should be different files?
>>
>> It appears that for monitoring results the file should be explicitly
>> named inside jp@gc - PerfMon Metrics Collector UI file name filed. Any
>> other way? Doesn't look like we have command line option for that
>> Monitoring charts looks nice - any way to see aggregate numbers? Say,
>> average CPU utilization?
>> Any idea if monitoring data may be fed into Jenkins performance plug-in?
>> Any other idea how to compare resource utilization for two different runs?
>> Will much appreciate any information on any of above questions.
>> Thanks,Alex
>>
>


Re: Delay Between Http Requests

2018-09-17 Thread Deepak Shetty
>https://jmeter.apache.org/usermanual/component_reference.html#timers
You could also use the JSR223 timer to read the current time and determine
how much delay to return. You do however need to figure out what you want
to do when your previous sampler takes more than (in your example) 1 minute
since the window has already passed.

>Also please let me know if in JMeter its possible to submit requests
asynchronously?
Only if you are willing to code it yourself in for e.g. a java sampler -
The default HTTP requests do not have this feature.
See this for some other options -
https://www.blazemeter.com/blog/how-to-load-test-async-requests-with-jmeter

On Fri, Sep 14, 2018 at 9:13 PM Nayak, Soumya R.  wrote:

> Hi All,
>
> Can you please let me know like what is the best way to put delay between
> HTTP requests.
> In bean shell sampler pre processor I had used  "Thread.sleep(millis) " ,
> what I observed was if I run using one user and after coming of the
> response it sleeps for the specified time and then sends.
>
> Is there anything where we can send requests exactly at the specified time
> without considering the response time of the previous requests.
>
> For example : I submitted a HTTP request with one user at 1:00:00 PM and
> the response came at 1:00:50 PM , now my thread will sleep (let say delay
> of 60 seconds) and fire another http request at 1:01:50 Pm but my
> requirement is to fire the request at exactly 1:01:00 PM rather than
> considering the 50 seconds of response time.
>
> Is there any way of achieving this?
> Also please let me know if in JMeter its possible to submit requests
> asynchronously?
>
> Regards,
> Soumya
>
>
> **
> This message may contain confidential or proprietary information intended
> only for the use of the
> addressee(s) named above or may contain information that is legally
> privileged. If you are
> not the intended addressee, or the person responsible for delivering it to
> the intended addressee,
> you are hereby notified that reading, disseminating, distributing or
> copying this message is strictly
> prohibited. If you have received this message by mistake, please
> immediately notify us by
> replying to the message and delete the original message and any copies
> immediately thereafter.
>
> If you received this email as a commercial message and would like to opt
> out of future commercial
> messages, please let us know and we will remove you from our distribution
> list.
>
> Thank you.~
>
> **
> FAFLD
>


Regular Expression

2018-09-17 Thread Puneet Varma
I have used the following regular expression for the value
2C94854D656354990165E824FA460175  with the regular expression
value="(.+?)" />

it is not working.  it is a check box, Id changes every time I am running
it.

Any help is greatly appreciate it.


Re: Regular Expression

2018-09-17 Thread Deepak Shetty
Hi
name=" sg:cf:b"\s+checked="checked"\s+value="([^"]+)" should work - The
reason you have to add the name is because there are likely other html
elements. Its upto you if you want to retain the checked part (will break
whenever your html changes slightly) v/s a more generic .+? which is
inefficient. If you are willing to give up some efficiency and memory ,the
XPath selectors usually work better for HTML elements (in the sense of
easier to read and logical in how they deal with attributes)

Your original expression had   /> which is not in your text , so it would
not have worked (As well as you are likely to have matched some other value.


regards
deepak

On Mon, Sep 17, 2018 at 10:05 AM Puneet Varma 
wrote:

> Thanks for the response. Below is what I have for the checkbox.
>
>
>  value="2C94854D656354990165E824FA460175" int-ns-multiple="sgcfb">
>
> On Mon, Sep 17, 2018 at 12:50 PM Deepak Shetty  wrote:
>
> > Hi
> > you havent posted the text you are matching against so cant say why your
> > regex isnt working
> > Generally expressions like the above fail because . You have whitespace ,
> > or you are using a single quote or there is something between value and
> the
> > end of your tag like a css class and so on. Check the text of the
> response
> > and ensure that your regex is a child of the sampler returning the
> response
> >
> > regards
> > deepak
> >
> > On Mon, Sep 17, 2018 at 8:34 AM Puneet Varma 
> > wrote:
> >
> > > I have used the following regular expression for the value
> > > 2C94854D656354990165E824FA460175  with the regular expression
> > > value="(.+?)" />
> > >
> > > it is not working.  it is a check box, Id changes every time I am
> running
> > > it.
> > >
> > > Any help is greatly appreciate it.
> > >
> >
>


Re: Regular Expression

2018-09-17 Thread Puneet Varma
Thanks for the response. Below is what I have for the checkbox.




On Mon, Sep 17, 2018 at 12:50 PM Deepak Shetty  wrote:

> Hi
> you havent posted the text you are matching against so cant say why your
> regex isnt working
> Generally expressions like the above fail because . You have whitespace ,
> or you are using a single quote or there is something between value and the
> end of your tag like a css class and so on. Check the text of the response
> and ensure that your regex is a child of the sampler returning the response
>
> regards
> deepak
>
> On Mon, Sep 17, 2018 at 8:34 AM Puneet Varma 
> wrote:
>
> > I have used the following regular expression for the value
> > 2C94854D656354990165E824FA460175  with the regular expression
> > value="(.+?)" />
> >
> > it is not working.  it is a check box, Id changes every time I am running
> > it.
> >
> > Any help is greatly appreciate it.
> >
>