Re: Run single thread in the distributed mode

2020-04-05 Thread Deepak Shetty
Hi
That is the JMeter behavior. You have different ways to get this to work
a. Designate one JVM server to be the "single thread" server that runs the
test by a property that is only on that server , wrap the test step  in an
IF
b. Designate  one server to be the "single thread" server that runs the
test by passing in a command line parameter that indicates which server
needs to run it , wrap the test step in an IF that checks if this is the
matching server
(-GsingleThreadServer=ValueThatIsSpecificToOneServerLikeIPAddress)
c. Sophisticated distributed semaphore (E.g. a DB) - Every server tries to
obtain a lock - The one that succeeds gets to run the test , the ones that
fail , ignore it and carry on (e.g. insert the same row into a temp table
with a primary key defined , there can only be 1 winner)
But it might not be worth it

regards
deepak

On Fri, Apr 3, 2020 at 8:14 AM Alexander Boitsev 
wrote:

> Hello,
>
> We have a need to run one scenario in a single-thread mode (mandatory)
> during a load test. The test is being executed in a distributed mode.
> Is there any other workaround than to run a separate JMeter with a
> single thread? If we add this scenario to the main load test the number
> of single threads always equals the number of JMeter servers we use,
> i.e. it is not a single-thread process anymore.
>
> Thank you,
> Alexander
>


Re: JMeter error Response code: Non HTTP response code: java.net.SocketException Response message: Non HTTP response message: Connection reset

2020-02-01 Thread Deepak Shetty
Hi
the error represents the fact that the connection between your
client(Jmeter) and your application broke .
The next thing you need to see is whether its your client that is getting
limited or your application.
So in your case if you test 100 threads and you dont get the issue and you
try 200 and you get the issue then you could try 2 different Jmeters(as
independent as possible) running 100 each. if you still get your issue then
its likely your application cant handle the load (or is timing out ) rather
than your Jmeter test client. if you dont get the issue then its more
likely its your test client  that has a problem. But thats very roughly
speaking - You need a good idea of your network infrastructure too if
neither of the above seems to be a problem - firewall, OS settings ,
timeouts are also possible causes


On Wed, Jan 29, 2020 at 10:22 AM UserJMeter999 
wrote:

> JMeter during load test executions getting below error
> Already tried some suggestion from different post still getting error
> 1. JVM set HEAP=-Xms10g -Xmx26g -XX:MaxMetaspaceSize=2048m
> 2.  user.properties : httpclient4.retrycount=1 and
> hc.parameters.file=hc.parameters
> 3. hc.parameters : http.connection.stalecheck$Boolean=true
>
> Response code: Non HTTP response code: java.net.SocketException
> Response message: Non HTTP response message: Connection reset
>
>
> Test with 200 users with 200 seconds ramp up and duration of test =30 Mins
>
> java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.java:210)
> at java.net.SocketInputStream.read(SocketInputStream.java:141)
> at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
> at sun.security.ssl.InputRecord.read(InputRecord.java:503)
> at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
> at
> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
> at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
> at
> org.apache.http.impl.io
> .AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
> at
> org.apache.http.impl.io
> .SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
> at
> org.apache.http.impl.io
> .AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
> at
>
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
> at
>
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
> at
> org.apache.http.impl.io
> .AbstractMessageParser.parse(AbstractMessageParser.java:259)
> at
>
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
> at
>
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
> at
>
> org.apache.jmeter.protocol.http.sampler.hc.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:199)
> at
>
> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.receiveResponseHeader(MeasuringConnectionManager.java:212)
> at
>
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
> at
>
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
> at
>
> org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
> at
>
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
> at
>
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
> at
>
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:697)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:455)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
> at
>
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
> at
>
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
> at
>
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
> at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
> at java.lang.Thread.run(Thread.java:748)
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.o

Re: Probably Not a Bug

2020-01-06 Thread Deepak Shetty
Hi
whats the stack trace ?
if you arent using any plugins etc then you might want to file a bug with a
sample that replicates the problem

regards
deepak

On Fri, Jan 3, 2020 at 1:01 PM Alan Tan  wrote:

> Hello Developers,
>
> I have a question regarding throughput controllers in Jmeter. I've read
> all the documentation I can find as well as Stackoverflow and I can't seem
> to find anyone with my issue, which leads me to believe I must be doing
> something wrong. For the past few projects I've noticed that the throughput
> controller will cause a "uncaught exception: Stackoverflow" error in
> Jmeter. It's a bit inconsistent to produce but it happens often enough with
> my project that I'm concerned. I've also checked the jmeter log and
> "StackOverflowError: null" is as specific as it gets.
>
> I have the throughput controller set to limit total samples executed for a
> thread group. For example, I only want 100K total samples for each thread
> group and I have 8 thread groups. In each thread group is a very simple
> post request with variables read from CSV file, and only contain two
> assertions to make sure it's a valid post request (OK stsmsg and 200 code).
> I at first believed that this issue popped up from the throughput
> controller suddenly killing all threads after it reaches the quota, I try
> verifying this with 3 users and a throughput of 5 requests total. And I had
> a similar "stackoverflowerror" as mentioned previously.
>
> I'd appreciate some clarity on what could be causing this uncaught
> exception.
>


Re: Passing the JDBC query values list from one thread group to another

2020-01-06 Thread Deepak Shetty
Hi
if you want to pass complex data between thread groups /threads , you can
a. Use properties like you mentioned. Complex data needs complex schemes
(e.g. Store a JSON string which can have an array of objects and parse it)
- Messy for most,non simple, use cases
b. Use a plugin like
https://jmeter-plugins.org/wiki/InterThreadCommunication/ . Useful when
data is to be generated and consumed at the same time.
c. Use something that can be shared across thread groups - e.g. Files /
RDBMS / Redis etc. So in your example use a setup thread group and write
the data you want to a CSV file and then read it from the following
threadgroups that need it. In your case you seem to be implying that you
want to generate the data once and then read it from multiple thread groups.
d. Write your own java code that can deal with data as it wishes.
Bear in mind , what you want to happen if you distribute this script across
multiple JMeter servers - some sharing methods are scoped to the JVM(in
memory) , others to the host (files) and others to the script (DB)

regards
dee[al

On Mon, Jan 6, 2020 at 1:01 AM Soumya Nayak  wrote:

> Hi Divyang,
>
> For same thread group I am able to achieve.
> But my requirement is like I have the JDBC request in one thread group and
> want to pass the values from the JDBC request to another thread group. Why
> am asking so is there are 16 thread groups which will use the data from the
> JDBC request , so rather than calling it 16 times I wanted to call once.
>
> Regards,
> Soumya
>
> From: Divyang Raval 
> Sent: Monday, January 6, 2020 2:28 PM
> To: Soumya Nayak 
> Cc: JMeter Users List 
> Subject: Re: Passing the JDBC query values list from one thread group to
> another
>
> I would prefer in same thread group.
>
>
> On Mon, Jan 6, 2020 at 1:32 PM Soumya Nayak  sna...@firstam.com>> wrote:
> Hi Divyang,
>
> So the Step – 1 will be in one thread group.
> And the Step-2 will be in the other thread group right?
>
> Regards,
> Soumya
>
> From: Divyang Raval mailto:divyagra...@gmail.com>>
> Sent: Monday, January 6, 2020 12:53 PM
> To: Soumya Nayak mailto:sna...@firstam.com>>
> Cc: JMeter Users List  user@jmeter.apache.org>>
> Subject: Re: Passing the JDBC query values list from one thread group to
> another
>
> Hi Soumya,
>
> It can be achieved in 2 steps.
>
> Step-1:
> Add Regx extractor on JDBC query response to extract target field.
> While extracting list of values you can set Match No.= -1.
> Let's say variable name in Regx extractor is "listdata".
>
> Step-2 : Add For each controller in test plan and give input variable=
> listdata.
> And output variable let's say "data".
> Check the check box of add _.
>
> Under this controller add your next request where you want to iterate
> based on JDBC output you recieved and use ${data} to achieve the target.
>
> Feel free to let me know if you find any difficulty while execution.
>
> Regards,
> Divyang
>
>
> On Mon, Jan 6, 2020, 12:33 PM Soumya Nayak  sna...@firstam.com>>>
> wrote:
> Hi Team,
>
> I have a set up thread group where I am running a JDBC request to get some
> "n" no of row data into 4 variables.
> Now I want to access all the above variable values in a loop(for n DB
> records) in another thread group. How can I achieve this?
>
> For a single variable value access I was able to achieve by defining a
> bean shell assertion and setting the variable as a property
> (${__setProperty()) and accessing the property({__property()} in another
> thread group.  But , how to achieve the same when we have a list of values
> fetched from JDBC request in one thread group and access all the list
> another thread group ?
>
> 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
>


Re: Exclude mongo-java-driver 2.11.3 jar from jmeter plugin maven build

2019-12-16 Thread Deepak Shetty
Hi
I dont think thats an official supported plugin.
However your question is really a Maven question (what should I do when
different libraries refer to different version of the same jars?) - see for
e.g.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management
 or https://dzone.com/articles/solving-dependency-conflicts-in-maven

regards
deeopak

On Sat, Dec 14, 2019 at 9:54 PM Sachin Singh  wrote:

>  Hi All,
> I am using jmeter as maven plugin using below code and wanted to use
> mongodb version 3.5  but jmeter  download and uses only 2.11.3 version.
>  
> com.lazerycode.jmeter
> jmeter-maven-plugin
> 2.0.3
> 
> 
> org.mongodb:mongo-java-driver:3.5.0
> 
> 
> 
>
> Please let me know if we have some option to exclude mongo-java-driver
> 2.11.3 from maven build and point jmeter to use latest given version
>
>
> With Regards
>
> Sachin
>


Re: Problems Execute Linux Commands using JSR223 PrePrcessor with Groovy Engine and pipe-symbol

2019-12-02 Thread Deepak Shetty
Hi
you should be able to do something like (not tested) - also be careful with
your paths - I believe they will be relative to JMeter's bin directory so
you might want to try with absolute paths first(for your .key and .crt
files)
String path = sampler.getURL();
String s = "openssl smime -in " + path + " -sing -signer cert.crt -inkey
cert.key -outform der -binary -md sha384 -out blah.p7";
s.execute();

regards
deepak

On Mon, Dec 2, 2019 at 8:11 AM Markus Obermann
 wrote:

> Hi,
>
> i need to do some wired stuff where i have to call linux commands from
> jmeter - to be clear its openssl i need to run.Bevore the openssl command
> is executed i have to "echo" something to my system console and want that
> this is piped to openssl.So the command i want to execute is this (and it's
> working perfect on bash)
> echo -en "https://my-url.com:"; | openssl smime -sing -signer cert.crt
> -inkey cert.key -outform der -binary -md sha384 -out blah.p7
>
> I have a HTTP Sampler and there is a JSR223 PreProcessor as a child with
> this tiny code://First i get the URL from my Sampler
> import org.apache.jmeter.protocol.http.sampler.HTTPSampler;String path =
> sampler.getURL();
> This works and will print out the URL from the Sampler.Then i do this:
> log.info("echo -en $path | openssl smime -sing -signer cert.crt -inkey
> cert.key -outform der -binary -md sha384 -out blah.p7".execute().text)
> In my Jmeter console i do see the "log.info" output which looks perfect.
> BUT it seems that nothing happen. I do not see the -out blah.p7 fileCould
> it be that jmeter cant handle the pipe-symbol?
>
> If i do some changes to my command and do not echo my command but paste
> the url as -in directly to my openssl command then its working.Thus i can
> do this:log.info("openssl smime -in https//my-url.com: -sing -signer
> cert.crt -inkey cert.key -outform der -binary -md sha384 -out
> blah.p7".execute().text)
>
> But as im using different urls i cant make it static - i need to determine
> the url from sampler and paste it to my openssl command.
> For sure i will find a way which will work - but maybe someone have an
> idea about the "pipe-symbol" - or what i'm doing wrong?
> Br
>


Re: Proto requests via Jmeter

2019-11-30 Thread Deepak Shetty
Hi
I think you are asking 2 different questions here
a. How to generate a protobuf request in JMeter - That would need you to
use the Java API to generate the request -
https://developers.google.com/protocol-buffers/docs/javatutorial
b. How to actually send it to the API - Assuming this is still HTTP based
then I think either you need to save a file and send that or use the HTTP
Raw request from jmeter plugins.
There isnt a way to convert JSON to protobuf in jmeter as far as I know(Im
assuming your dev team has already provided you the .proto files which
could be generated from JSON) and record and replay is not much use when
you are dealing with binary formats unless you want to replicate exactly
the same thing , no parameterisation or variations (almost never the case
in any testing automation).

regards
deepak

On Thu, Nov 28, 2019 at 4:50 AM Prateek Dua 
wrote:

> Hi guys,
>
> Any idea on handling Protobuf requests via Jmeter ? Our Organization got
> shifted from Json to Proto for most of the apis request now .
>
> So is there any convenient way to record Proto requests  ?
>
>
> Thanks,
> Prateek
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: How to pass generated random number into 2 JMS Point to Point samplers

2019-10-21 Thread Deepak Shetty
Hi
attachments dont make it to the mailing list - in general if you need to
reuse some value that is regenerated then you need to store it the first
time into some memory
For e.g. if you used
https://jmeter.apache.org/usermanual/functions.html#__Random then you would
use variable name to store it and use ${variableName}
I also sometimes use UserParameters (With the update every iteration) for
the same purpose

On Wed, Oct 16, 2019 at 4:31 AM Anil Venkatappagari 
wrote:

> Hi All,
>
> I have generated a random number by writing a piece of code in JSR223
> PreProcessor. I am able to pass this into one Sampler of JMS Point to
> Point. It's all good until here.
>
> I have added second Sampler of JMS Point to Point under the 1st one. I
> would like to pass on the same random number into these 2 samplers. I tried
> as shown in the attachmentbut different random numbers are being passed
> into these 2 different JMS Point to Point samplers.
>
> Can someone please help me on this?
>
> Thank you very much with best regards,
> Anil
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org


Re: Sequential confirmation in Jmeter

2019-10-20 Thread Deepak Shetty
Hi
I understand your flow - i dont understand what your issue is

Thread Group
+User Parameter (Variable= id ,
User_1=${__threadNum()}${__time(ddMMHHmmssSSS)} )
+ JDBC Config
+JSON request (passing in ${id} )
+JDBC Request (Type=Prepared Select statement , Parameter Value =${id},
Parametertype=Varchar(or whatever), select id from table where id = ?,
Handle Resultset=Count records)
++Assert response (number of expected rows)

what isnt working ?

regards
deepak

On Sat, Oct 19, 2019 at 12:25 AM Mantanz  wrote:

> Hi Deepak,
>
> The flow of request is as below :
>
> JSON Request ( with ID field value as
> *${__threadNum}${__time(ddMMHHmmssSSS}* ) --> JSON Response True -->
> Query the DB to check if  *${__threadNum}${__time(ddMMyyy**yHHmmssSSS}* as
> column value in pre-defined table --> If value is available then success
> else failure.
>
> JSON Request ( with custom field
>  ${__threadNum}${__time(ddMMHHmmssSSS}) --> JSON Response False -->
>  failure.
>
> Warm Regards,
> Manish Taneja
>
>
> On Tue, Oct 15, 2019 at 4:16 AM Deepak Shetty  wrote:
>
> > Hi
> > If your question is how do i pass in variables to JDBC sampler - see
> > variable names
> >
> https://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request
> >
> > If your question is How do I validate response of a JDBC request then
> that
> > can be done in a variety of ways. For e.g. If you change the query to be
> a
> > simple select rather than count then you can change the JDBC Samplers
> > Handle Resultset to be "Count Records" And then assert as a response
> > assertion whether you see 0 or 1 records returned OR you could use the
> sql
> > query as count , then use result variable Name to store that value into a
> > variable and then use a response assertion (with the option selected to
> use
> > that variable name .) to check the value of the variable
> >
> >
> > regards
> > deepak
> >
> > On Mon, Oct 14, 2019 at 12:39 PM Divye Mahajan <
> > divye.maha...@customerxps.com> wrote:
> >
> > > Hi Deepak,
> > >
> > > Thanks for the update,
> > > This will help to use the unique key value used but the actual
> > requirement
> > > is to add an assertion of jdbc query and giving out true response only
> if
> > > the database has the respected value too.
> > >
> > > Giving a little clarity below:-
> > >
> > > Firing a json of below syntax will create a database entry having
> column
> > > name event_id as 1151020190106502 from
> > > ${__threadNum}${__time(ddMMHHmmssSSS}.
> > > Post that a select statement will be fired as  a JDBC query and check
> > > whether the record exist in the above table. If record exist only the
> > true
> > > response is given in the response body of a listener for ex:- *View
> > > Result Tree*
> > >
> > > Regards,
> > > Divye Mahajan
> > >
> > >
> > > On Sat, Oct 12, 2019 at 7:29 AM Deepak Shetty 
> wrote:
> > >
> > >> The __time function accept a variable name that you can pass in to
> save
> > >> the value generated at that time into a JMeter variable(
> > >> https://jmeter.apache.org/usermanual/functions.html#__time ) .
> > >> ${__threadNum}${__time(ddMMHHmmssSSS,yourVariableName)}
> > >> Then in your DB Query you can just pass that as the variable on which
> > you
> > >> are querying ${yourVariableName} - In general anything that you are
> > passing
> > >> in the request can always be saved for use later
> > >>
> > >> regards
> > >> deepak
> > >>
> > >>
> > >> On Fri, Oct 11, 2019 at 10:15 AM Mantanz <
> manish.tan...@customerxps.com
> > >
> > >> wrote:
> > >>
> > >>> Hi All,
> > >>>
> > >>> Jmeter Version: 5.0
> > >>>
> > >>> I have a scenario where we fire custom json onto application. The
> > >>> application only responds as success or failure. This is followed by
> > >>> checking the fire event id in a specific table in database. So I need
> > to
> > >>> connect to DB and then check the event id value sent in request.
> > >>> The problem here is that the response is not having the event id
> which
> > >>> was sent for the request thus I couldn’t find a way. Is there a way I
> > can
> > >>> check the request event id field and fire a DB query based on that.
> > >>>
> > >>>
> > >>>  For load testing each event is maintained as unique using the
> > function;
> > >>> ${__threadNum}${__time(ddMMHHmmssSSS)}
> > >>>
> > >>>
> > >>> Request :
> > >>>
> >
> {"event_id":"${__threadNum}${__time(ddMMHHmmssSSS)}","EventSubType":"SUBEVENT","event-name":"TEST
> > >>> EVENT","EventType":"Sample type","source":"fin","msgBody":"Body
> text"}
> > >>>
> > >>> Response : Success
> > >>>
> > >>> DB Query : select count(1) from events where
> > >>> event_id=${__threadNum}${__time(ddMMHHmmssSSS)}
> > >>>
> > >>> Expected Response: If the count is 1 then “Test Case Successful”
> else
> > >>> “Test Case failed”.
> > >>>
> > >>> Kindly help.
> > >>>
> > >>> Let me know in case of any more information.
> > >>>
> > >>> Warm Regards,
> > >>> Manish Taneja
> > >>
> > >>
> >
>


Re: Sequential confirmation in Jmeter

2019-10-14 Thread Deepak Shetty
Hi
If your question is how do i pass in variables to JDBC sampler - see
variable names
https://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request

If your question is How do I validate response of a JDBC request then that
can be done in a variety of ways. For e.g. If you change the query to be a
simple select rather than count then you can change the JDBC Samplers
Handle Resultset to be "Count Records" And then assert as a response
assertion whether you see 0 or 1 records returned OR you could use the sql
query as count , then use result variable Name to store that value into a
variable and then use a response assertion (with the option selected to use
that variable name .) to check the value of the variable


regards
deepak

On Mon, Oct 14, 2019 at 12:39 PM Divye Mahajan <
divye.maha...@customerxps.com> wrote:

> Hi Deepak,
>
> Thanks for the update,
> This will help to use the unique key value used but the actual requirement
> is to add an assertion of jdbc query and giving out true response only if
> the database has the respected value too.
>
> Giving a little clarity below:-
>
> Firing a json of below syntax will create a database entry having column
> name event_id as 1151020190106502 from
> ${__threadNum}${__time(ddMMHHmmssSSS}.
> Post that a select statement will be fired as  a JDBC query and check
> whether the record exist in the above table. If record exist only the true
> response is given in the response body of a listener for ex:- *View
> Result Tree*
>
> Regards,
> Divye Mahajan
>
>
> On Sat, Oct 12, 2019 at 7:29 AM Deepak Shetty  wrote:
>
>> The __time function accept a variable name that you can pass in to save
>> the value generated at that time into a JMeter variable(
>> https://jmeter.apache.org/usermanual/functions.html#__time ) .
>> ${__threadNum}${__time(ddMMHHmmssSSS,yourVariableName)}
>> Then in your DB Query you can just pass that as the variable on which you
>> are querying ${yourVariableName} - In general anything that you are passing
>> in the request can always be saved for use later
>>
>> regards
>> deepak
>>
>>
>> On Fri, Oct 11, 2019 at 10:15 AM Mantanz 
>> wrote:
>>
>>> Hi All,
>>>
>>> Jmeter Version: 5.0
>>>
>>> I have a scenario where we fire custom json onto application. The
>>> application only responds as success or failure. This is followed by
>>> checking the fire event id in a specific table in database. So I need to
>>> connect to DB and then check the event id value sent in request.
>>> The problem here is that the response is not having the event id which
>>> was sent for the request thus I couldn’t find a way. Is there a way I can
>>> check the request event id field and fire a DB query based on that.
>>>
>>>
>>>  For load testing each event is maintained as unique using the function;
>>> ${__threadNum}${__time(ddMMHHmmssSSS)}
>>>
>>>
>>> Request :
>>> {"event_id":"${__threadNum}${__time(ddMMHHmmssSSS)}","EventSubType":"SUBEVENT","event-name":"TEST
>>> EVENT","EventType":"Sample type","source":"fin","msgBody":"Body text"}
>>>
>>> Response : Success
>>>
>>> DB Query : select count(1) from events where
>>> event_id=${__threadNum}${__time(ddMMHHmmssSSS)}
>>>
>>> Expected Response: If the count is 1 then “Test Case Successful”  else
>>> “Test Case failed”.
>>>
>>> Kindly help.
>>>
>>> Let me know in case of any more information.
>>>
>>> Warm Regards,
>>> Manish Taneja
>>
>>


Re: Sequential confirmation in Jmeter

2019-10-11 Thread Deepak Shetty
The __time function accept a variable name that you can pass in to save the
value generated at that time into a JMeter variable(
https://jmeter.apache.org/usermanual/functions.html#__time ) .
${__threadNum}${__time(ddMMHHmmssSSS,yourVariableName)}
Then in your DB Query you can just pass that as the variable on which you
are querying ${yourVariableName} - In general anything that you are passing
in the request can always be saved for use later

regards
deepak


On Fri, Oct 11, 2019 at 10:15 AM Mantanz 
wrote:

> Hi All,
>
> Jmeter Version: 5.0
>
> I have a scenario where we fire custom json onto application. The
> application only responds as success or failure. This is followed by
> checking the fire event id in a specific table in database. So I need to
> connect to DB and then check the event id value sent in request.
> The problem here is that the response is not having the event id which was
> sent for the request thus I couldn’t find a way. Is there a way I can check
> the request event id field and fire a DB query based on that.
>
>
>  For load testing each event is maintained as unique using the function;
> ${__threadNum}${__time(ddMMHHmmssSSS)}
>
>
> Request :
> {"event_id":"${__threadNum}${__time(ddMMHHmmssSSS)}","EventSubType":"SUBEVENT","event-name":"TEST
> EVENT","EventType":"Sample type","source":"fin","msgBody":"Body text"}
>
> Response : Success
>
> DB Query : select count(1) from events where
> event_id=${__threadNum}${__time(ddMMHHmmssSSS)}
>
> Expected Response: If the count is 1 then “Test Case Successful”  else
> “Test Case failed”.
>
> Kindly help.
>
> Let me know in case of any more information.
>
> Warm Regards,
> Manish Taneja


Re: To sum up response time of requests.

2019-09-08 Thread Deepak Shetty
Hi
By parallel sampler , do you mean a sampler that is running on a separate
thread ? If yes then there isnt any easy way - In such cases its better to
capture the raw data and aggregate using your favorite analytic tool

If you just mean the next sequential sampler which runs on the same thread,
you could use the transaction controller as suggested by the other poster.

regards
deepak

On Sun, Sep 1, 2019 at 6:14 PM Flavio da Silveira Pepino <
flavio6...@gmail.com> wrote:

> Is there a way to sum the response times of  two requests with identical
> name on the same name iteration as  if they were the same one.
> I' like that to sum the response time of a parallel sampler to the primary
> request since the parallel request's response time is part of the response
> time of main request.
>
> Or maybe is there another way to do that?
>
> Thanks
> Flavio
>


Re: Need to Sign data with private key in jmeter using keystore

2019-09-07 Thread Deepak Shetty
Hi
> Can i somehow access the URL from the Sampler before it get executed to i
can do 2)?I think there is a way to access the Jmeter Sampler Variables -
right?
I am not sure I understand but
a. The HTTP Sampler can take a variable for the path field- So if you have
dynamically generated value , you can refer to it as ${variableName} in the
path field and so in your Beanshell you could set variableName to whatever
value you want OR if you mean you want to read the URL , yes thats possible
to in a pre -processor use something like sampler.getPath() (
https://jmeter.apache.org/api/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.html
 )
b. >here i can use the Java API - right?
Yes, you can. Plenty of samples in Google (but sometimes confusing)

On Wed, Sep 4, 2019 at 8:16 AM Markus Obermann
 wrote:

> Hi,
> i have a HTTP Sampler and do some API Calls with my webserver using TLS
> with certificate checkup on both sides (client and server). This is called
> mutual TLS.This is working fine as i have a java keystore with my .p12 file
> and i use the Keystore element in my Testplan.As i have only one cert in my
> keystore its quite very simple configuration.OK so far.
> Now i need to do some more stuff which is as follow.
> 1)
> Take the privatekey and take a file on disk and sign the file using
> SHA-384 and save the sign-file as "file.sha384"
> Then do a base64 on this "file.sha384" and put it in a HTTP-Header and
> sent this with the https request.
> 2)Take the URL the http-sampler in jmeter is using and do the same as in
> 1). This means take the whole URL as String - sign using priv. key and do
> base64 and put in HTTP-Header as 2nd element.
>
> So far i can do 1) using my bash and using openssl like this:openssl dgst
> -sha384 -sign privkey.key -out file.sha384openssl base64 -in file.sha384
> -out file.sign
> For sure if i use curl i can somehow to the 2) too.Adding a HTTP-Header is
> the easiest part.
>
>
> Thus i would like to do something like this:Use a BeanShell or a
> Pre-BeanShell to do 1) and 2).
> So far i know i can access my JmeterKeyStore using API and i can do a
> "getPrivateKey()"Then i would need to do some "Signature" stuff - here i
> can use the Java API - right?
> Question:
> Can i somehow access the URL from the Sampler before it get executed to i
> can do 2)?I think there is a way to access the Jmeter Sampler Variables -
> right?
> Can anyone help me out?Thanks in adviceBrMarkus
>
>
>
>


Re: How to assert dynamic data using JMeter

2019-09-05 Thread Deepak Shetty
>to assert dynamic ones.
You can.
Suppose you have a CSV file that has
username , password , firstName

When your script logs the user in , you could assert text for e.g. that
Says Response Context contains Welcome ${firstName} - so you can make your
assertions data driven , dynamic if you need
SOme of the assertions allow you to write your own code so you can code
whatever you need-
Perhaps you can elaborate on what is the dynamic things you want to assert?

regards
deepak

On Wed, Sep 4, 2019 at 10:54 AM Lina Li  wrote:

> Hi There,
>
> I have been pretty happy with JMeter so far, and i was able to do a lots
> of testing with static data. however, i recently trying to learn how to add
> assertion similar to response assertion to assert dynamic ones. does anyone
> have any tips what should i start looking into? or if it is possible to run
> assertion against dynamic data.
>
> thanks
> L.
>


Re: unable to create new native thread error

2019-03-12 Thread Deepak Shetty
In additions to what others have said (this is not a heap problem), your
calculation looks off
You want 100,000 requests per minute. Assuming on average that a request =
5 seconds (for e.g.) , a single thread would be able to generate 12
requests (no think times etc). That would need only ~10,000 threads (plus
some safety) . You only need these many threads if you have large think
times or your application is really slow.


On Tue, Mar 12, 2019 at 5:02 AM Prateek Dua  wrote:

> Hi,
>
>
> I am trying to give load of 1Lacs user from command line mode of
> Jmeter (  -Jthreads=12 -Jramp=1 -Jloop=1 -)  set up on Aws machine
> ( single machine) using the  basic thread group using constant
> throughput timer to achieve throughput of  1Lac rpm. But while running
> the script getting this below error...
>
>
> *Uncaught Exception java.lang.OutOfMemoryError: unable to create new
> native thread. See log file for details*
>
>
> I've configured *setenv.sh* file in *bin* folder as :
>
>
> *export HEAP="-Xms1024m -Xmx8g -XX:MaxMetaspaceSize=256m"*
>
>
>
>
> Is there any other changes which are required from my end to done in
> any file in Jmeter to solve this error  ? pls help.
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Generate User Id dynamically

2019-03-09 Thread Deepak Shetty
If you are using User{__threadNum} and running say 10 threads , you will
get User1...User10. If you stop the test and run it again - or if you let
the thread group have multiple iterations - or if you decide to distribute
your test across multiple JMeter machines , then it will again generate
User1...User10 (i.e. uniqueness is only within a single iteration on a
single JVM) -

On Sat, Mar 9, 2019 at 10:45 AM Prateek Dua  wrote:

> pls explain this in a bit detail.
>
> On Sat, Mar 9, 2019 at 11:24 PM Deepak Shetty  wrote:
>
> > Note this doesnt mean if you run the test 2 times it will generate the
> same
> > numbers
> >
> > On Sat, Mar 9, 2019 at 3:51 AM Prateek Dua 
> wrote:
> >
> > > Thank you guys,
> > >
> > > I used the function {__threadNum} to input thread id as user id.
> > >
> > > On Thu, Mar 7, 2019 at 8:17 PM Indu Gupta 
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > You can add below lines in body Data of your request :
> > > >
> > > > {
> > > > "username": user${__Random(0,100)}
> > > >
> > > > }
> > > >
> > > > This will generate user as user1,user0, user 2 etc. Random number of
> > > users
> > > > 0 and 100.
> > > >
> > > >
> > > >
> > > > Regards,
> > > > Indu Gupta
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > From: Prateek Dua [mailto:prateek@go-mmt.com]
> > > > Sent: 07 March 2019 12:40
> > > > To: JMeter Users List ; JMeter Users
> > > List
> > > > 
> > > > Subject: Re: Generate User Id dynamically
> > > >
> > > > I meant-- via CSV we have to provide users in sheet & then get them
> > .But
> > > > is there any mechanism in Jmeter via we can use directly to create
> user
> > > id
> > > > dynamically & pass as a variable in script.
> > > >
> > > > On Thu, Mar 7, 2019 at 8:33 AM Prateek Dua 
> > > wrote:
> > > >
> > > > > Hey guys,
> > > > >
> > > > > Is there any way to generate unique user ids dynamically to use
> them
> > > > > in a script as a variable.
> > > > >
> > > > > CSV is the 1 approach to do that but just want to know is there any
> > > > > mechanism to do that?
> > > > > --
> > > > > sent via device, pls ignore typos.
> > > > >
> > > >
> > > > --
> > > >
> > > >
> > > > ::DISCLAIMER::
> > > >
> > > >
> > > >
> > > >
> > >
> >
> 
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > This message is intended only for the use of the addressee and may
> > > contain
> > > > information that is privileged, confidential and exempt from
> disclosure
> > > > under applicable law. If the reader of this message is not the
> intended
> > > > recipient, or the employee or agent responsible for delivering the
> > > message
> > > > to the intended recipient, you are hereby notified that any
> > > dissemination,
> > > > distribution or copying of this communication is strictly prohibited.
> > If
> > > > you have received this e-mail in error, please notify us immediately
> by
> > > > return e-mail and delete this e-mail and all attachments from your
> > > system.
> > > >
> > >
> > > --
> > >
> > >
> > > ::DISCLAIMER::
> > >
> > >
> > >
> > >
> >
> 
> > >
> > >
> > >
> > >
> > >
> > > This message is intended only for the use of the addressee and may
> > > contain information that is privileged, confidential and exempt from
> > > disclosure under applicable law. If the reader of this message is not
> the
> > > intended recipient, or the employee or agent responsible for delivering
> > > the
> > > message to the intended recipient, you are hereby notified that any
> > > dissemination, distribution or copying of this communication is
> strictly
> > > prohibited. If you have received this e-mail in error, please notify us
> > > immediately by return e-mail and delete this e-mail and all attachments
> > > from your system.
> > >
> >
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Generate User Id dynamically

2019-03-09 Thread Deepak Shetty
Note this doesnt mean if you run the test 2 times it will generate the same
numbers

On Sat, Mar 9, 2019 at 3:51 AM Prateek Dua  wrote:

> Thank you guys,
>
> I used the function {__threadNum} to input thread id as user id.
>
> On Thu, Mar 7, 2019 at 8:17 PM Indu Gupta 
> wrote:
>
> > Hi,
> >
> > You can add below lines in body Data of your request :
> >
> > {
> > "username": user${__Random(0,100)}
> >
> > }
> >
> > This will generate user as user1,user0, user 2 etc. Random number of
> users
> > 0 and 100.
> >
> >
> >
> > Regards,
> > Indu Gupta
> >
> >
> >
> > -Original Message-
> > From: Prateek Dua [mailto:prateek@go-mmt.com]
> > Sent: 07 March 2019 12:40
> > To: JMeter Users List ; JMeter Users
> List
> > 
> > Subject: Re: Generate User Id dynamically
> >
> > I meant-- via CSV we have to provide users in sheet & then get them .But
> > is there any mechanism in Jmeter via we can use directly to create user
> id
> > dynamically & pass as a variable in script.
> >
> > On Thu, Mar 7, 2019 at 8:33 AM Prateek Dua 
> wrote:
> >
> > > Hey guys,
> > >
> > > Is there any way to generate unique user ids dynamically to use them
> > > in a script as a variable.
> > >
> > > CSV is the 1 approach to do that but just want to know is there any
> > > mechanism to do that?
> > > --
> > > sent via device, pls ignore typos.
> > >
> >
> > --
> >
> >
> > ::DISCLAIMER::
> >
> >
> >
> >
> 
> >
> >
> >
> >
> >
> > This message is intended only for the use of the addressee and may
> contain
> > information that is privileged, confidential and exempt from disclosure
> > under applicable law. If the reader of this message is not the intended
> > recipient, or the employee or agent responsible for delivering the
> message
> > to the intended recipient, you are hereby notified that any
> dissemination,
> > distribution or copying of this communication is strictly prohibited. If
> > you have received this e-mail in error, please notify us immediately by
> > return e-mail and delete this e-mail and all attachments from your
> system.
> >
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: TLS 1.3 Support for Jmeter

2019-03-09 Thread Deepak Shetty
Probably if you use the Java Implementation (but which has other limitation
as in
https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request )
I dont think HTTPCLient supports TLS 1.3 (yet)

On Fri, Mar 8, 2019 at 8:52 AM Samer Al Masri  wrote:

> Hello everyone,
>
> I would like to know whether Jmeter supports TLSv1.3 or not.
>
> Basically, I am trying to benchmark a java implementation by using
> Jmeter to send requests to Open Liberty. So I would like to know if
> Jmeter supports TLS v1.3 encryption when used with JDK11.
>
> Thanks,
>
> Samer AL Masri
>


Re: Generate User Id dynamically

2019-03-07 Thread Deepak Shetty
Use some combination of __time, __threadnum, __random ,__counter - The best
is UUID if your system can handle it. If all else fails there is always
__groovy/javascript/beanshell. You can even use this in UserParameters.
https://jmeter.apache.org/usermanual/functions.html

CSVs have an advantage that it keeps the test simpler and you also have a
record of what you created as well as you can reset your environment and
run the exact same test with the same usernames.



On Thu, Mar 7, 2019 at 11:03 AM Prateek Dua  wrote:

> Hey guys,
>
> Is there any way to generate unique user ids dynamically to use them in a
> script as a variable.
>
> CSV is the 1 approach to do that but just want to know is there any
> mechanism to do that?
> --
> sent via device, pls ignore typos.
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Groovy OUT.println() in remote execution

2019-02-26 Thread Deepak Shetty
Hi
Never tried but I would probably try to tweak the logging so that the
appender is one that can collate information from multiple clients and show
it wherever you prefer (Something like a socket appender in log4j with
simple socket server)

regards
deepak

On Mon, Feb 25, 2019 at 11:20 PM Ivan Rancati 
wrote:

> hi Antonio,
>
> thanks, I'll try annotations for graphics.
> However, my question was slightly different: how to get some information
> displayed in real time during test execution. Apologies if it was unclear.
> For the current project, I have a simple, ssh-only infrastructure, without
> Grafana.
>
> Best regards,
> Ivan
>
> On Mon, Feb 25, 2019 at 3:34 PM Antonio Gomes Rodrigues 
> wrote:
>
> > Hi,
> >
> > Have you try annotations like
> > http://docs.grafana.org/reference/annotations/
> > ?
> >
> > Antonio
> >
> > Le lun. 25 févr. 2019 à 15:00, Ivan Rancati  a
> > écrit :
> >
> > > Hello,
> > >
> > > I have a couple of test plans (run in non-GUI mode), where I use a
> JSR223
> > > sampler (groovy) to display on the console when a certain stage is
> > reached.
> > > For example, to indicate the setUp thread/s is/are complete:
> > >
> > > OUT.println("the setUp Thread Group is completed\n")
> > >
> > > This works locally, but of course not with remote execution. Is there
> an
> > > equivalent way to display, on the controller's console, a similar
> message
> > > when a remote has finished a thread, or some other stage is reached?
> > >
> > > Thanks a lot and best regards,
> > > Ivan
> > >
> >
>


Re: Not able to record traffic in Jmeter

2019-02-25 Thread Deepak Shetty
Hi
its hard to say without looking at your script or your setup.
Possible issues are
a. Your browser is using a configured proxy - When you are recording a
script , you are replacing the browsers proxy by JMeters so you effectively
have to configure JMeter to use the proxy the browser was originally using
https://jmeter.apache.org/usermanual/get-started.html#proxy_server .
however if your browser is using a script with multiple different proxies
then this is diffuclt to do. Its probably easier to record the browser
script and convert that into a JMeter script either directly if the
recorder supports it or manually.
b. You are using something custom (like an applet/control)
c. Your script has some exclusions that are impacting the recording (for
e.g. excluding a javascript that is relevant for SSO)
d. Something else.

regards
deepak

On Sat, Feb 23, 2019 at 11:53 PM Pravesh Prajapati <
prajapati.prav...@gmail.com> wrote:

> Hi Team,
> Please provide solution for below issues.
> 1.When i am trying to record my script in Jmeter 5.0 my application is
> showing me pop-up t authorize. Now when i am authorizing the pop-up by
> giving uid and pwd, then i am getting http connection error. please help me
> on this(for this I am using Authorization manager in Jmeter).
> Normally when i am navigation application with out jmeter it is working
> fine.
>
> 2.For other application when i am trying to record script
> In my application when i am clicking on one link it is navigation to 2nd
> application, now in Jmeter when I am trying to record my first
> application's traffic is recorded but when i click on that link and it
> shows connection error, i.e my traffic is not being recorded.
>
> Please help me on these above issue.
>
>
>
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Re: JMeter Query on Threads

2019-02-23 Thread Deepak Shetty
Hi
there is no way to nest thread groups(that I know off) but you can use
sequential thread groups and exchange data between them (using usual
mechanisms of anything shared like a file or db or service or queue)
Thread Group 1 (n threads)
+ Do something
+ Save it somewhere
Thread Group 2 (m threads)
+Read it from somewhere
+Do something else

You can do the same thing in a single thread group by writing more code
Thread group (max number of threads needed)
+If thread number satisifies custom condition
++ Do something
++ Save it in some form
+Synchronizing controller (all threads)
++ read and do something


regards
deepak


On Fri, Feb 22, 2019 at 6:16 PM Anil Kumar  wrote:

> how is step 1a different than step 1b1 and 1b2?
> you talking about logging in to an app which creates a session based on an
> user id. then creating additional user sessions while logged already logged
> in?
> Anil > Yes
>
> If thread group 2 is a subset of actions taken by the initial user. you
> should probably use the loop controller to go through a file that contains
> the subset user data and use that to do the work. Those actions won't
> happen concurrently as if it were a thread group tho. Is it necessary that
> the actions in the thread group happen concurrently?
> Anil > Yes
>
> Its kinda messy from a programming perspective to have threads creating
> more threads of which they are dependent upon, which is likely why they
> didn't allow that to begin with.
>
> On Fri, Feb 22, 2019 at 9:48 PM Brian Wolfe 
> wrote:
>
> > how is step 1a different than step 1b1 and 1b2?
> > you talking about logging in to an app which creates a session based on
> an
> > user id. then creating additional user sessions while logged already
> logged
> > in?
> > If thread group 2 is a subset of actions taken by the initial user. you
> > should probably use the loop controller to go through a file that
> contains
> > the subset user data and use that to do the work. Those actions won't
> > happen concurrently as if it were a thread group tho. Is it necessary
> that
> > the actions in the thread group happen concurrently?
> > Its kinda messy from a programming perspective to have threads creating
> > more threads of which they are dependent upon, which is likely why they
> > didn't allow that to begin with.
> >
> > On Fri, Feb 22, 2019 at 10:36 AM Anil Kumar 
> > wrote:
> >
> > > No, we cannot. If we increase,  each thread starts invoking Step 1a:
> > > (above)  and consuming all licenses and also exhausting other
> resources.
> > > Ex: Step 1a:  should invoke once and later Step 1b1/Step 1b2: shoud
> > invoke
> > > concurrently..
> > >
> > >
> > >
> > >
> > >
> > > On Fri, Feb 22, 2019 at 8:48 PM sebb  wrote:
> > >
> > > > Can't you just increase the number of threads in the thread group?
> > > >
> > > > On Fri, 22 Feb 2019 at 14:47, Anil Kumar 
> > > wrote:
> > > > >
> > > > > Hi Indu,
> > > > >
> > > > > Thank you for taking you time...
> > > > >
> > > > > We have consider your scenario, but loop controller had a
> limitation
> > of
> > > > > exec samples sequentially.
> > > > > We rather looking for a solution which pump load concurrently
> (i.e.,
> > > the
> > > > > reason we are looking for an option of forking / threads ).
> > > > >
> > > > > Warm Regards
> > > > > Anil
> > > > >
> > > > > On Fri, Feb 22, 2019 at 7:45 PM Indu Gupta <
> indu.gu...@india.nec.com
> > >
> > > > wrote:
> > > > >
> > > > > > Hi Anil,
> > > > > >
> > > > > > You can add "Loop Controller" within Thread Group  (Right click
> > > Thread
> > > > > > Group -> Logic Controller -> Loop Controller).
> > > > > > Set number of Loop Count as "2" for 2 user sessions.
> > > > > >
> > > > > > The test plan structure will look like:
> > > > > >
> > > > > > Thread Group
> > > > > > -Login Request
> > > > > >- Loop Controller
> > > > > > - User sessions
> > > > > >
> > > > > > It will run 1 cycle of test like : 1 login request then 2 user
> > > session.
> > > > > >
> > > > > > Hope your query is resolved now.
> > > > > >
> > > > > >
> > > > > > Regards,
> > > > > > Indu Gupta
> > > > > >
> > > > > >
> > > > > > -Original Message-
> > > > > > From: Anil Kumar [mailto:anil.ganda...@gmail.com]
> > > > > > Sent: Friday, February 22, 2019 12:18
> > > > > > To: JMeter Users List 
> > > > > > Cc: Naveen Nandwani ; Sanjeev
> > Anand <
> > > > > > sanjeev.an...@india.nec.com>
> > > > > > Subject: Re: JMeter Query on Threads
> > > > > >
> > > > > > thank you for quick response,
> > > > > >
> > > > > > i am trying here
> > > > > >
> > > > > > Step 1 :start Thread Group 1
> > > > > >  Step 1a: Create a  Login Session
> > > > > >  Step 1b: start Thread Group 2
> > > > > > Step 1b1: Create a  User Session
> 1
> > > > > > Step 1b2: Create a  User Session
> 2
> > > > > >  Step 1c: exit Thread Group 2 Step 2: exit Thread
> > > > Group 1
> > > > > >
> > > > > > Is this

Re: ant package-and-check command is not executing successfully.

2019-01-28 Thread Deepak Shetty
I have not checked but the error message is telling you to run the ant
target " download_checkstyle "
ant -buildfile  download_checkstyle
did that not work ?

On Mon, Jan 28, 2019 at 3:04 AM Sanjay Chaurasia <
sanjay.chaura...@india.nec.com> wrote:

> Hi Team,
>
> I am trying to run command ant package-and-check under the folder
> Jmeter-trunk  (downloaded source code from git)
> but getting some error mentioned below while running the command.
>
> This task requires checkstyle, please run download_checkstyle target to
> download checkstyle.
>
> Please provide solution to resolve the same.
>
> Regards,
> Sanjay Chaurasia
>
>


Re: Protobuf handling Jmeter

2019-01-16 Thread Deepak Shetty
Hi
Protocol buffers is a way to efficiently serialize some data into a binary
representation.
You havent yet articulated what you want to performance test .

Example 1 - Perhaps your application has some objects that it used to save
to XML files. Someone has now come up with the idea of saving it using
protobuf. You are trying to verify that this is faster than what you have -
In this case there is no HTTP  / No proxy - you are just testing out a java
api and you could just use a Java Sampler .

Example 2 - Perhaps your application is posting JSON data into a queue and
now someone has decided to change it to use protobuf. In this case you
still need to write some java code to get the binary payload and post that
to the queue - No HTTP/Proxy recording here either.

Example 3 : Perhaps your application is wanting to post protobuf to some
HTTP API and its really the performance number of the API that you want to
find out . You could record this , but in order to vary the data you would
need to write some java code (there is no record/replay for that java code).

and so on.
Read up on protobuf perhaps that will make some things more clearer.

On Wed, Jan 16, 2019 at 2:28 AM Prateek Dua  wrote:

> Hi Deepak,
>
> Requirement is to test Performance of apis created via Protobuf through
> Jmeter. But since I don't have Json or Curl request , So I'm stuck how to
> record these Protobuf supported apis via Jmeter's Http Proxy Server.
>
> Thanks,
> Prateek
>
>
> On Wed, Jan 16, 2019 at 5:18 AM Deepak Shetty  wrote:
>
> > Hi
> > not sure what your requirement is - However protobuf has a java api and
> you
> > can use that to generate the payload like any other java code that you
> need
> > to invoke. if you need to pass that payload in some request then that
> > should be possible too
> >
> > On Tue, Jan 15, 2019 at 12:43 AM Prateek Dua 
> > wrote:
> >
> > > Hi guys,
> > >
> > > Any idea on handling of Protobuf requests via Jmeter ?
> > >
> > >
> > > Thanks,
> > > Prateek
> > >
> > > --
> > >
> > >
> > > ::DISCLAIMER::
> > >
> > >
> > >
> > >
> >
> 
> > >
> > >
> > >
> > >
> > >
> > > This message is intended only for the use of the addressee and may
> > > contain information that is privileged, confidential and exempt from
> > > disclosure under applicable law. If the reader of this message is not
> the
> > > intended recipient, or the employee or agent responsible for delivering
> > > the
> > > message to the intended recipient, you are hereby notified that any
> > > dissemination, distribution or copying of this communication is
> strictly
> > > prohibited. If you have received this e-mail in error, please notify us
> > > immediately by return e-mail and delete this e-mail and all attachments
> > > from your system.
> > >
> >
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Protobuf handling Jmeter

2019-01-15 Thread Deepak Shetty
Hi
not sure what your requirement is - However protobuf has a java api and you
can use that to generate the payload like any other java code that you need
to invoke. if you need to pass that payload in some request then that
should be possible too

On Tue, Jan 15, 2019 at 12:43 AM Prateek Dua  wrote:

> Hi guys,
>
> Any idea on handling of Protobuf requests via Jmeter ?
>
>
> Thanks,
> Prateek
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Possible JMeter JDBC issue with implicit result sets in Oracle 12c

2019-01-14 Thread Deepak Shetty
Hi
Its the JDBC driver that appears to be throwing this exception so I dont
think its JMeter. Are you sure you are using the correct version of ojdbc ?
Can you try it with a standalone java program using the same ojdbc driver?
Note Oracle wasnt  JDBC standards compliant when it came to
cursors/resultsets if memory serves me correctly

regards
deepak

On Mon, Jan 14, 2019 at 6:43 AM Keijzers, J.M.F. (Johan)
 wrote:

> Hi all,
>
> I'm setting up a script in JMeter, in which I connect to an Oracle 12c
> database via JDBC. I use the latest JDBC drivers provided by Oracle
> (ojdbc6.jar and ojdbc7.jar, tried them both separately).
> The goal of my script is to call stored procedures in the database.
>
> An example of a callable statement that I call is: call office_hierarchy()
>
> When I perform this test, I get the following error message: ORA-20999:
> Oracle ERROR:: ORA-29478: Implicit result cannot be returned through this
> statement
>
> I have tried select statements before, so I'm pretty sure that the
> connection is ok. I think that perhaps implicit results (or implicit
> cursors), which is a feature that has been introduced recently in Oracle,
> is not yet supported by JMeter. Is this true? Or is there a different
> explanation?
>
> Thanks for your help all!
>
> Kind regards
>
> Johan Keijzers
>
> -
> ATTENTION:
> The information in this e-mail is confidential and only meant for the
> intended recipient. If you are not the intended recipient, don't use or
> disclose it in any way. Please let the sender know and delete the message
> immediately.
> -
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>


Re: No events/requests were captured by JMeter [v3.3] in IE [v11] for a web application

2018-11-27 Thread Deepak Shetty
Hi
looks like someone has written a utility -
https://flood.io/blog/convert-har-files-to-jmeter-test-plans/ .I dont
recollect if IE has a way from network tab to save all requests as HAR -
Chrome does. IF IE doesnt youll have to convert one request at a time and
then keep copying the result so that you have a single JMeter script.

If you wanted to do it all by yourself then
a. You should have a reasonably good understanding of HTTP
b. You should have a reasonably good understanding of JMeter features
c. You should have a reasonably good understanding of your application -
whats significant , what isnt , whats dynamic , what needs to be measured
etc

Next open network tab in developer tools and make sure that the clear
entries on navigate is not set so that you can record all requests and that
IE is capturing the requests (the green triangle). Its probably a good idea
to do it with a clean IE (no browsers , no cache etc and you should
probably check the Always refresh from server)
Next execute the steps on IE that you want your script to execute . You'll
see IE capturing a bunch of requests.
Click the first one - you can see the Request URL , headers, parameters ,
cookies etc. These can be manually entered into the JMeter script as a HTTP
sampler. The URL goes into the path - The parameters as individual
parameters in the sampler

Note : You probably want to add a HTTP request defaults (so that you dont
need to specify the server name everytime as well as when you then
parameterise this for environments you can make changes in one place) . You
also need to add a Cookie Manager for e.g. if your system uses cookies and
a Header Manager since you usually have common headers (This is where you
need to map Jmeter features to your script)

Next youll notice a bunch of requests related to your browser downloading
Javascripts , Images , CSS files and depending on your application a bunch
of other URLs . This is where you need to decide what you are testing and
how you are going to test it - for e.g. you may elect to not worry about
images/css/js and if so you'd just ignore these - You might elect to just
use JMeters download embedded resources on HTTP sampler and again you can
then ignore these requests because JMeter will automatically download them
(but verify it is downloading all!)  OR you might choose to deal with these
as separate requests (e.g. say one of the images are dynamically generated
server side charts) and so on.

You will notice some parameters that are being sent by the browser that
look dynamic and then you will need to figure out how to extract them and
use JMeter post processors and variables

You might also see some requests that have a response code other than 200
and you would then again decide whether you want these as separate requests
or you just want to check follow redirects on the sampler

After all that you might run your script and then see that it just doesnt
work - AT which time youll have to go and do a step by step comparison and
see whats the difference

Note that an automatically recorded script has much of the same problems so
you cant avoid some of these problems. You might find some examples on the
web that perhaps go into a little more detail .

regards
deepak




On Mon, Nov 26, 2018 at 7:05 PM kumar srujan  wrote:

> Hi Deepak,
>
> Thanks for the response.
>
> I have few doubts on the suggestion given by you (new to the tool )
> 1. How we can start the creation of scripts from info available in network
> tab of developer's tool. Can u guide me through.
> 2. Yes. Traffic is routed through the company's proxy.
>
> Thanks.
> ESK
>
> On Mon, Nov 19, 2018, 15:28 kumar srujan 
> > Hi Deepak,
> >
> > Thanks for the response.
> >
> > I have few doubts on the suggestion given by you (new to the tool )
> > 1. How we can start the creation of scripts from info available in
> network
> > tab of developer's tool. Can u guide me through.
> > 2. Yes. Traffic is routed through the company's proxy.
> >
> > Thanks.
> > ESK
> >
> > On Sat, Nov 17, 2018, 04:02 Deepak Shetty  >
> >> > Only Client specific URL/Sites will be accessed, even google is not
> >> accessible.
> >> Also If I understand the above correctly , your JMeter will also need to
> >> use a proxy when you actually run your script. Your statement implies
> all
> >> your traffic is routed through your companies proxy.
> >>
> >> On Fri, Nov 16, 2018 at 10:29 AM Deepak Shetty 
> wrote:
> >>
> >> > Hi
> >> > If you cant change the browsers config to use a proxy (or use a
> >> different
> >> > browser) then you cant record a script with JMeter. In most
> >> organizations
> >> > that means you need to send a case , explain your reasons an

Re: Need help in identifying actual time, not aggregate

2018-11-26 Thread Deepak Shetty
> As per my understanding, TransactionController_2 should give time like
150 ms.
Yes that should be the case. Are you sure you dont have a timer /pause as a
child of the While Controller ?(if yes then ensure that checkbox for
include timer is checked).
How are you verifying your observations that the transaction controller is
not returning the sum ?(I would uncheck generate parent sample and then
compare individual result times with the generated one )

On Sun, Nov 25, 2018 at 6:09 AM Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> Hi Deepak, All,
>
> Let me re-iterate the scenario below:
>
> Thread Group
> +Transaction Controller_1
> ++HTTPSampler_1 => Submit Request => PostProcessor to fetch the status.
> e.g. Status = Submitted
> +Transaction Controller_2
> ++WhileController (Until Status = Successful)
> +++HTTPSampler_2 => PostProcessor (to fetch the status)
>
> So, above HTTPSampler_2 is executing multiple times before getting Status =
> Successful. Suppose it is executed 15 times and response time is 10 ms. So,
> TransactionController_2 is giving Average Response Time 10 ms). But the
> requirement is to identify actual time taken before turning Status =
> Successful. i.e. 15*10=150 ms.
>
> As per my understanding, TransactionController_2 should give time like 150
> ms. Please help me to identify the actual time.
>
>
> --
> Regards
> Pravesh Shrivastava
>
> On Tue, 20 Nov 2018 at 22:51, Deepak Shetty  wrote:
>
> > Hi
> > Pseudo Script
> > +Http Request (Submit Order)
> > +Transaction Controller
> > ++While Controller (Condition status != Successful &&
> dontWantInfiniteLoop)
> > +++Http Request (Status URL)
> > Extract status
> > +++Think time delay timer between checks
> >
> > Why is this not working for you ? The Transaction controller will sum up
> > the time and you can choose whether you want to include the timer
> ("Include
> > duration of timer ... checkbox")
> >
> > >I have to measure the exact time
> > Your requirements only work for a very loose definition of  "exact" -
> > polling systems are not very exact or turn to be wasteful.
> > regards
> > deepak
> >
> > On Mon, Nov 19, 2018 at 6:56 PM Pravesh Shrivastava <
> > pravesh.shrivast...@gmail.com> wrote:
> >
> > > You are right Deepak. But I don't want to extract average response
> time.
> > > Let me give details below:
> > >
> > > 1. Submit an order
> > > 2. Extract the status (it is Submitted)
> > > 3. Keep hitting the same url until status becomes Successful
> > >
> > > I have to measure the exact time taken in changing status from
> Submitted
> > to
> > > Successful.
> > >
> > > On Tue, 20 Nov 2018, 00:29 Deepak Shetty  > >
> > > > Whats your test plan and what makes you say its average ? The
> > transaction
> > > > controller generates the sum of its children, not average
> > > >
> > > > regards
> > > > deepak
> > > >
> > > > On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
> > > > pravesh.shrivast...@gmail.com> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have a scenarios where I need some help to setup this:
> > > > >
> > > > > I am submitting one order through application. After submitting the
> > > order
> > > > > the status is "Submitted". I keep of refreshing the page until
> status
> > > > turns
> > > > > to "Successful".
> > > > >
> > > > > So, I have to identify actual time taken by the application between
> > > > > "Submitted" and "Successful".
> > > > >
> > > > > Tried Transaction Controller, it is giving only Average time
> taken. I
> > > > want
> > > > > to identify exact time taken.
> > > > >
> > > > > --
> > > > > Regards
> > > > > Pravesh Shrivastava
> > > > >
> > > >
> >
> >
>


Re: Disable JDBC query timeout

2018-11-20 Thread Deepak Shetty
Hi
as far as I can tell there isn't a way to do this (Short of downloading and
modifying the source code)- You will have to raise an enhancmeent  for
JMeter (https://jmeter.apache.org/issues.html )

AbstractJDBCTestElement.java in source code can be modified if you want to
use -1 or equivalent to represent no timeout and not call the timeout method

Can you also post your complete stack trace top verify ?

regards
deepak

On Tue, Nov 20, 2018 at 4:57 AM Heitor Projects - Jose <
j...@heitorprojects.com> wrote:

> How to disable JDBC request query timeout (for database drivers that do
> not support this feature...eg. Apache Ignite)? [Sampler result] Thread
> Name: Thread Group 1-1 Sample Start: 2018-11-20 14:41:38 SAST Load time:
> 761 Connect Time: 761 Latency: 0 Size in bytes: 31 Sent bytes:0 Headers
> size in bytes: 0 Body size in bytes: 31 Sample Count: 1 Error Count: 1 Data
> type ("text"|"bin"|""): text Response code: null 0 Response message:
> java.sql.SQLFeatureNotSupportedException: Query timeout is not supported.
> Thanks, Jose


Re: Need help in identifying actual time, not aggregate

2018-11-20 Thread Deepak Shetty
Hi
Pseudo Script
+Http Request (Submit Order)
+Transaction Controller
++While Controller (Condition status != Successful && dontWantInfiniteLoop)
+++Http Request (Status URL)
Extract status
+++Think time delay timer between checks

Why is this not working for you ? The Transaction controller will sum up
the time and you can choose whether you want to include the timer ("Include
duration of timer ... checkbox")

>I have to measure the exact time
Your requirements only work for a very loose definition of  "exact" -
polling systems are not very exact or turn to be wasteful.
regards
deepak

On Mon, Nov 19, 2018 at 6:56 PM Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> You are right Deepak. But I don't want to extract average response time.
> Let me give details below:
>
> 1. Submit an order
> 2. Extract the status (it is Submitted)
> 3. Keep hitting the same url until status becomes Successful
>
> I have to measure the exact time taken in changing status from Submitted to
> Successful.
>
> On Tue, 20 Nov 2018, 00:29 Deepak Shetty 
> > Whats your test plan and what makes you say its average ? The transaction
> > controller generates the sum of its children, not average
> >
> > regards
> > deepak
> >
> > On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
> > pravesh.shrivast...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I have a scenarios where I need some help to setup this:
> > >
> > > I am submitting one order through application. After submitting the
> order
> > > the status is "Submitted". I keep of refreshing the page until status
> > turns
> > > to "Successful".
> > >
> > > So, I have to identify actual time taken by the application between
> > > "Submitted" and "Successful".
> > >
> > > Tried Transaction Controller, it is giving only Average time taken. I
> > want
> > > to identify exact time taken.
> > >
> > > --
> > > Regards
> > > Pravesh Shrivastava
> > >
> >
>


Re: Need help in identifying actual time, not aggregate

2018-11-19 Thread Deepak Shetty
Whats your test plan and what makes you say its average ? The transaction
controller generates the sum of its children, not average

regards
deepak

On Mon, Nov 19, 2018 at 12:51 AM Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> Hi,
>
> I have a scenarios where I need some help to setup this:
>
> I am submitting one order through application. After submitting the order
> the status is "Submitted". I keep of refreshing the page until status turns
> to "Successful".
>
> So, I have to identify actual time taken by the application between
> "Submitted" and "Successful".
>
> Tried Transaction Controller, it is giving only Average time taken. I want
> to identify exact time taken.
>
> --
> Regards
> Pravesh Shrivastava
>


Re: No events/requests were captured by JMeter [v3.3] in IE [v11] for a web application

2018-11-16 Thread Deepak Shetty
> Only Client specific URL/Sites will be accessed, even google is not
accessible.
Also If I understand the above correctly , your JMeter will also need to
use a proxy when you actually run your script. Your statement implies all
your traffic is routed through your companies proxy.

On Fri, Nov 16, 2018 at 10:29 AM Deepak Shetty  wrote:

> Hi
> If you cant change the browsers config to use a proxy (or use a different
> browser) then you cant record a script with JMeter. In most organizations
> that means you need to send a case , explain your reasons and get a
> temporary waiver till you record your script.
>
> However that doesn't stop you from creating your script . In IE if you
> press F12 you can see developer tools - That has a network tab that can
> show you the request / response pairs and allow you to create your script
> from scratch.
>
> regards
> deepak
>
> On Fri, Nov 16, 2018 at 1:38 AM kumar srujan  wrote:
>
>> HI Team,
>>
>> No events/requests were captured by JMeter [v3.3] in IE [v11] for a web
>> application with HTTP(S)Test Script Recorder option.
>>
>> Note we have below challenge’s:
>> 1) Few IE Settings were managed by admin. "Use automatic
>> configuration script" check box was checked and  it can't be
>> modified due to security reasons.
>> 2) No facility to download Firefox or any plugins for
>> browser/JMeter in the Client machine.
>> 3) Only Client specific URL/Sites will be accessed, even
>> google is not accessible.
>> 4) Import of ApacheJMeterTemporaryRootCA.crt is
>> successful, however it is not shown under Certificates tab in
>> IE browser.
>>
>> Other Details:
>> JDK/JRE 1.8 is available.
>> Tried to record the scenario with localhost and different
>> ports, no luck.
>> Not allowed to change any registry key as workaround
>> solution.
>>
>> Kindly suggest any possibility to overcome this situation and proceed
>> with recording.
>>
>> Thanks.
>> ESK
>>
>


Re: No events/requests were captured by JMeter [v3.3] in IE [v11] for a web application

2018-11-16 Thread Deepak Shetty
Hi
If you cant change the browsers config to use a proxy (or use a different
browser) then you cant record a script with JMeter. In most organizations
that means you need to send a case , explain your reasons and get a
temporary waiver till you record your script.

However that doesn't stop you from creating your script . In IE if you
press F12 you can see developer tools - That has a network tab that can
show you the request / response pairs and allow you to create your script
from scratch.

regards
deepak

On Fri, Nov 16, 2018 at 1:38 AM kumar srujan  wrote:

> HI Team,
>
> No events/requests were captured by JMeter [v3.3] in IE [v11] for a web
> application with HTTP(S)Test Script Recorder option.
>
> Note we have below challenge’s:
> 1) Few IE Settings were managed by admin. "Use automatic
> configuration script" check box was checked and  it can't be
> modified due to security reasons.
> 2) No facility to download Firefox or any plugins for
> browser/JMeter in the Client machine.
> 3) Only Client specific URL/Sites will be accessed, even
> google is not accessible.
> 4) Import of ApacheJMeterTemporaryRootCA.crt is
> successful, however it is not shown under Certificates tab in
> IE browser.
>
> Other Details:
> JDK/JRE 1.8 is available.
> Tried to record the scenario with localhost and different
> ports, no luck.
> Not allowed to change any registry key as workaround
> solution.
>
> Kindly suggest any possibility to overcome this situation and proceed with
> recording.
>
> Thanks.
> ESK
>


Re: JMeter 4 with Java 1.7

2018-11-15 Thread Deepak Shetty
Hi

>But the problem is it is not possible to install Java 8 in our environment.
When you say "environment" - if you mean the machines (or your test lab or
laptop) from which JMeter is going to run , because of some organization
policy , ok then yes you cant use a JMeter version that needs Java 8 (If
docker is fine , then so should be any other VM technology that would allow
you to install whatever Java version)

If by environment , you mean your actual application (on which your code
runs), then Marek is correct. Your application and what its running on has
no relation to your test machine. Usually organizations may be slow to
upgrade Java for their actual applications but there is rarely a
restriction that prevents people from doing so on their laptops or test
clients which is why we feel you are mixing up 2 different things.


regards
deepak

On Wed, Nov 14, 2018 at 7:39 PM Prasad K  wrote:

> Yes I am aware of the possibility of using multiple Java versions on same
> machine. For example specifying "Java installation path" in Jmeter.bat can
> take the required Java version. But the problem is it is not possible to
> install Java 8 in our environment. Also as Glinius said JMeter 4 will not
> work with Java 7 because it will not even get compiled. So answer to my
> question is that it is not possible to use JMeter 4 with Java 7.
>
> On Wed, 14 Nov 2018 at 13:33, Marek Czernek  wrote:
>
> > I know Java matters, but as I said, you don't have to run both apps on
> > the same JVM. You can run your app with Java 7, and JMeter with Java 8 .
> > That should be possible even on the same machine, but you should really
> > use JMeter from a different machine in any case.
> >
> > On 11/14/18 4:25 AM, Prasad K wrote:
> > > Hi Marek, JMeter was built using Java. So Java version does matter for
> > > JMeter.
> > >
> > > On Mon, 12 Nov 2018 at 21:31, Marek Czernek 
> wrote:
> > >
> > >> Can't you run JMeter with Java 8 and your application with Java 7?
> It's
> > >> not a tool that somehow tests the code of your app itself; it creates
> > >> requests and reads responses... For that, the Java version should not
> > >> matter...
> > >>
> > >> The community will correct me if I'm wrong here, please.
> > >>
> > >> Cheers,
> > >> --
> > >>
> > >> Marek Czernek
> > >>
> > >> JWS/JBCS Associate Quality Engineer, RHCA
> > >>
> > >>
> > >> On 11/12/18 7:54 AM, Prasad K wrote:
> > >>> Hi,
> > >>>
> > >>> Is there a way to use JMeter 4 with Java 1.7? Our organization yet to
> > >>> upgrade Java to 1.8 version. Because of this we are unable to use
> > JMeter
> > >>> 4.0.
> > >>>
> > >>> Regards,
> > >>> Prasad.
> > >>>
> > --
> >
> > Marek Czernek
> >
> > JWS/JBCS Associate Quality Engineer, RHCA
> >
> >
>


Re: Capturing request-send-time and response-receive-time

2018-11-15 Thread Deepak Shetty
In all probability the answer is that JMeter cannot capture these values
that you are asking for -One reason for that is that HTTP and TCP probably
doesnt work the way whoever asked for   "time-taken-to-sendrequest" and
"time-taken-to-receive-response" is envisaging.

>In a step-up-load-test we observed that "Latency" and "Connect time" is
>almost constant with increased user load but "Elapsed time" kept
>increasing. Leaving no clue where we are losing time.
The 2 things you are requesting probably wont give you that clue either.
Your most likely cause is your application is slowing down under load and
the easiest way is to log the response time as your application sees it in
your application. If you are running through a webserver like apache/nginx
(even if you actual application is something else) then they can easily log
the duration of the response too. If it shows the same increase then your
problem is within your application and you will need to run an application
specific profiler.
In some cases you might see problems with your network and/or your JMeter
test tool itself . For JMeter you can do one of 2 things - run tools on the
JMeter machine itself and see whether its healthy - alternately split your
load into multiple JMeter clients and if you see improvements then you have
a problem on your test tool side. If it behaves the same then likely you
dont have a JMeter client issue. I also usually like to independently
verify that I am seeing on the browser what JMeter is reporting while the
test is being run (i.e. when your JMeter is reporting that a page is taking
X seconds and the test is running , and you access the site using an
independent browser , does it report a value close to X) till I have
confidence in the script and run

JMeter is a test and simulation tool - It can mostly tell you a problem
exists - it cant tell you what the problem exactly is - that is a different
toolset.

regards
deepak

On Wed, Nov 14, 2018 at 7:40 PM Prasad K  wrote:

> Friends please check this question and share your thoughts/inputs.
>
> On Tue, 13 Nov 2018 at 15:01, Prasad K  wrote:
>
> > Hi,
> >
> > We are using Simple Data Write
> > <
> https://jmeter.apache.org/usermanual/component_reference.html#Simple_Data_Writer
> >
> > listener to capture test results. In the captured results I would like to
> > have detailed stats for Round-trip-time (RTT). In the "Sample Results
> Save
> > Configuration" we already have "Connect time" and "Server latency". In
> > addition to that I would like also to have "time-taken-to-sendrequest"
> and
> > "time-taken-to-receive-response". With these stats I would like to know
> if
> > we are loosing time in sending request and/or receiving response.
> >
> > In a step-up-load-test we observed that "Latency" and "Connect time" is
> > almost constant with increased user load but "Elapsed time" kept
> > increasing. Leaving no clue where we are losing time. With the above
> > mentioned counters I expecting more clues.
> >
> > Regards,
> > Prasad.
> >
>


Re: Asynchronous Http Requests Submission

2018-11-09 Thread Deepak Shetty
Hi

what you are describing is completely different. When you say a User has to
submit 30 requests per minute then it implies that either user is
submitting requests in parallel OR each request < 2 seconds. If your system
doesnt respond in 2 seconds then there is a problem right there (in your
case ~ 8 seconds) - its questionable what value you are getting by trying
to force the system to send the requests rather than first fixing the
response time of your system

Sometimes however you are trying to model the system receiving 150 requests
per minute - For this you estimate the number of users (or threads) in
JMeter given a guess of the response time of your application , add some
more threads to have a safety factor and then use throughput controller

You can also do somethiing similar byy using the ultimate threadgroup from
jmeter plugins

On Thu, Nov 8, 2018 at 6:48 PM Nayak, Soumya R.  wrote:

> Hi Deepak,
>
> The requirement is - performance of a server has to be tested when
> continuous http requests are coming. It is like 1 user has to submit 30
> requests per minute. So we have to test with 5 concurrent users which they
> will submit total of 150 requests per minute (5 concurrent http requests
> every 2 seconds). So now what was happening after doing a sample run the
> average response time of each of the request is around of 8 seconds.
> As JMeter waits for the response to come back and then trigger another
> request, so instead of completing the test in one minute , its taking 4
> minutes.
> So we thought of submitting 5 http requests every 2 seconds
> asynchronously. So that is where I was checking the possibility. If any
> sample code or script we can get will be great.
> Based on the above also we were checking if we can capture the response
> time of the asynchronous requests.
>
> Regards,
> Ranjan
>
> -Original Message-
> From: Deepak Shetty 
> Sent: Friday, November 9, 2018 8:01 AM
> To: JMeter Users List 
> Subject: Re: Asynchronous Http Requests Submission
>
> Hi
> it depends on what your intent is. In general a JMeter (HTTP) sampler will
> wait for the response so it isnt asynchronous - However you can always use
> something like a Java Sampler / JSR Sampler so that you can write java code
> that can make the asynchronous request Unless the asynchronous system that
> you are making the request too has a way to let you know that its done ,
> you cant capture the response time.
>
> In some cases however people misunderstand the nature of what they are
> trying to accomplish with what JMeter does and simpler solutions are
> possible (e.g. AJAX requests that a browser may make are asynchronous from
> the browsers perspective but not really from a HTTP perspective)
>
> This has a pretty good description
> https://www.blazemeter.com/blog/how-to-load-test-async-requests-with-jmeter
>
> Since you havent provided details , its hard to say what might work for you
>
> regards
> deepak
>
>
> On Thu, Nov 8, 2018 at 10:08 AM Nayak, Soumya R. 
> wrote:
>
> > Hi All,
> >
> > My requirement is concurrently 5 users need to submit http requests
> > every
> > 2 seconds asynchronously. So is it possible from JMeter?
> > If possible how can we capture the response times of the asynchronous
> > requests submitted?
> >
> > Regards,
> > Ranjan
> >
> >
> > **
> >  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
> >
>


Re: Asynchronous Http Requests Submission

2018-11-08 Thread Deepak Shetty
Hi
it depends on what your intent is. In general a JMeter (HTTP) sampler will
wait for the response so it isnt asynchronous - However you can always use
something like a Java Sampler / JSR Sampler so that you can write java code
that can make the asynchronous request
Unless the asynchronous system that you are making the request too has a
way to let you know that its done , you cant capture the response time.

In some cases however people misunderstand the nature of what they are
trying to accomplish with what JMeter does and simpler solutions are
possible (e.g. AJAX requests that a browser may make are asynchronous from
the browsers perspective but not really from a HTTP perspective)

This has a pretty good description
https://www.blazemeter.com/blog/how-to-load-test-async-requests-with-jmeter

Since you havent provided details , its hard to say what might work for you

regards
deepak


On Thu, Nov 8, 2018 at 10:08 AM Nayak, Soumya R.  wrote:

> Hi All,
>
> My requirement is concurrently 5 users need to submit http requests every
> 2 seconds asynchronously. So is it possible from JMeter?
> If possible how can we capture the response times of the asynchronous
> requests submitted?
>
> Regards,
> Ranjan
>
>
> **
> 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
>


Re: Jmeter Selenium WebDriver Stop test

2018-11-08 Thread Deepak Shetty
Any reason why you are not setting this on the thread group ?
https://jmeter.apache.org/usermanual/component_reference.html#Thread_Group
- Action to be taken after sampler error

If you still want to do it in code , Im guessing the method also should be
on the thread group not on the sample result .

On Thu, Nov 8, 2018 at 10:03 AM JMeter User  wrote:

> I'm trying to stop the test if one of the sampler fails.But test is not
> stopped instead it continues with next sampler execution.
> Code looks like this
>
> if(results.empty) {
> WDS.sampleResult.successful = false
> WDS.sampleResult.sampleEnd();
> WDS.sampleResult.setStopTest(true);
> }
> else
> {
> WDS.sampleResult.sampleEnd();
> WDS.log.info("Sample Ended - SUCCESS");
> }
>


Re: New book on Apache JMeter by 3 committers of the project

2018-10-31 Thread Deepak Shetty
Cool , Congratulations!

regards
deepak

On Tue, Oct 30, 2018 at 12:50 PM Philippe Mouawad 
wrote:

> Hello All,
>
> I am happy to announce that 3 committers of Apache JMeter (including me)
> have authored a new book on JMeter that you can buy online at:
>
>- https://leanpub.com/master-jmeter-from-load-test-to-devops
>
> If you'd like to read more about its inception:
>
>-
>
> https://www.ubik-ingenierie.com/blog/book-master-jmeter-from-load-testing-to-devops/
>
>
> We'll be grateful if you can spread this news around you.
>
> We will be very happy to offer it to any member of JMeter Team to thank
> them for their great works for years (if they think they can still learn
> something :-) of course ), just send us a mail.
>
> Thanks a lot
> Regards
> Antonio Gomes Rodrigues, Milamber and Philippe M.
>


Re: view both successfull and failed assertions

2018-10-05 Thread Deepak Shetty
Hi
Your desire
Request 1
  Assert A success
  Assertion B Success
Request 2
  Assert A fails because blah

Current state
Request 1
Request 2
  Assert A fails because blah

I dont see the difference or the use (Definitions of basic functionality
aside). The first one doesn't add much value.

It is however, how the listeners behave when they actually write to file so
I guess the Listener should behave in the same way when showing it in the
GUI so an enhancement should be fine.

regards
deepak


On Fri, Oct 5, 2018 at 5:35 AM Mathijs Groen  wrote:

> Hi,
>
> For a testing tool it's basic core functionality to have  an overview all
> assertions in 1 screen/overview - both passed as well as failed.
>
> How can I do an enhancement request - what's the procedure for that?
>
> Thanks,
> Mathijs Groen
>
> -Oorspronkelijk bericht-
> Van: Deepak Shetty 
> Verzonden: Thursday, 4 October 2018 19:03
> Aan: JMeter Users List 
> Onderwerp: Re: view both successfull and failed assertions
>
> Hi
> you should probably raise an enhancement request - i dont see why it
> should be either.
> You could always add 2 different Assertion Results , one to log successes
> and one to log errors personally though the success result is trivial , I
> wonder what your use case is that you need to know .
>
> regards
> deepak
>
> On Thu, Oct 4, 2018 at 7:45 AM Mathijs Groen  wrote:
>
> > Hi,
> >
> > In the listener Assertions Results, you can view Errors or Successes.
> >
> > You can only view either one of them at a time (either one of the
> > checkboxes can be selected). If you change flags between Errors and
> > Successes you need to re-execute your tests.
> >
> > I want to view both successful as well as failed validations at the
> > same time in one overview. Is this possible with Jmeter?
> >
> > Mathijs Groen
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>


Re: view both successfull and failed assertions

2018-10-04 Thread Deepak Shetty
actually  the way the other listeners work is if both errors and successes
are unchecked then all samplers are logged
If you save the results to file you can (save as XML with save assertion
results) you can see it logged too - Im guessing you wanted to see
something in the Assertion Results sampler when there is a success right -
there isnt a message to show though. A success assertion looks like


Response AssertionA
false
false
  

On Thu, Oct 4, 2018 at 10:02 AM Deepak Shetty  wrote:

> Hi
> you should probably raise an enhancement request - i dont see why it
> should be either.
> You could always add 2 different Assertion Results , one to log successes
> and one to log errors
> personally though the success result is trivial , I wonder what your use
> case is that you need to know .
>
> regards
> deepak
>
> On Thu, Oct 4, 2018 at 7:45 AM Mathijs Groen  wrote:
>
>> Hi,
>>
>> In the listener Assertions Results, you can view Errors or Successes.
>>
>> You can only view either one of them at a time (either one of the
>> checkboxes can be selected). If you change flags between Errors and
>> Successes you need to re-execute your tests.
>>
>> I want to view both successful as well as failed validations at the same
>> time in one overview. Is this possible with Jmeter?
>>
>> Mathijs Groen
>>
>


Re: view both successfull and failed assertions

2018-10-04 Thread Deepak Shetty
Hi
you should probably raise an enhancement request - i dont see why it should
be either.
You could always add 2 different Assertion Results , one to log successes
and one to log errors
personally though the success result is trivial , I wonder what your use
case is that you need to know .

regards
deepak

On Thu, Oct 4, 2018 at 7:45 AM Mathijs Groen  wrote:

> Hi,
>
> In the listener Assertions Results, you can view Errors or Successes.
>
> You can only view either one of them at a time (either one of the
> checkboxes can be selected). If you change flags between Errors and
> Successes you need to re-execute your tests.
>
> I want to view both successful as well as failed validations at the same
> time in one overview. Is this possible with Jmeter?
>
> Mathijs Groen
>


Re: Extracting values From HTTP Requests

2018-09-27 Thread Deepak Shetty
Hi
I would favor that your test gets the data in the form it needs rather than
the test writes code.
e.g. if you have smething like {"a":"b","c":"d"} and you also need the
value of d for something then for e.g. you could create your test data as
"d", {"a":"b","c":"d"} and use CSV dataset config or something like that to
read it.

If you dont want to touch your test data and still want to do it as part of
your test then
http://svn.apache.org/repos/asf/jmeter/tags/v2_8/docs/usermanual/functions.html#__FileToString
pass variable Name and use any of the JSR-223 / beanshell functions to
parse the variable (vars.get("variableName") will give you the value that
you need to parse

regards
deepak

On Thu, Sep 27, 2018 at 5:54 AM Nayak, Soumya R.  wrote:

> Hi All,
>
> I am submitting HTTP requests and I am getting the request content
> dynamically from individual files from a local folder using the Jmeter
> function - "__FileToString".
> I have a requirement to extract a value from a variable from the request
> data, so how can I do that ?
>
> As I have post processors which work only on response data, is there any
> way to extract from the dynamic request data?
>
> 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
>


Re: JMeter does not interpret meta http-equiv="refresh" meaning we have a discrepancy in response times

2018-09-25 Thread Deepak Shetty
The main reason is JMeter is not a browser(http://jmeter.apache.org/) so it
does not understand HTML specific stuff.
 Hence such things need to be explicitly coded into your script

regards
deepak

On Tue, Sep 25, 2018 at 4:26 AM Nicola Hayward 
wrote:

> We have recently moved from LoadRunner to JMeter.
>
> On one of our scripts we have noticed that There is a 4 second delay
> (before refresh) that is incorporated in the code.
> LoadRunner picks this up and is able to handle the meta
> http-equiv="refresh" (hence this is why we see a representative response
> time). Whereas JMeter, does not interpret meta http-equiv="refresh"
>
> Why does JMeter ignore the refresh and is there a way we can get JMeter to
> interpret it.
>
> Thank you
>
> --
> If you wish to view the St. James's Place email disclaimer, please use the
> link below.
>
> https://www.sjp.co.uk/site-services/site-disclaimer/sjp-email-disclaimer
>


Re: Issue With JMeter Not Sending Http Requests

2018-09-23 Thread Deepak Shetty
Also if you have a listener running (like view results tree  You likely
also have a listener running that is using a lot of memory , if so disable
it for your actual test run .) make sure it is disabled


On Sat, Sep 22, 2018 at 8:41 AM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
>
> Am 22.09.2018 um 03:31 schrieb Nayak, Soumya R.:
> > Hi Deepak,
> >
> > Thanks for the reply.
> > Can you please help me how to take the Thread dumps and also check the
> JVM memory usage.
> >
> > As of now I am running JMeter test in GUI mode.
> You can create a log file containing a thread dump by using the menu:
> Help --> Create a thread dump.
>
> Other options include using the command line tools "jstack
> $PID_OF_JMETER" or "jcmd $PID_OF_JMETER Thread.print", or using GUI
> tools like jconsole, jvisualvm or jmc.
>
> Regards,
>   Felix
> >
> > Regards,
> > Ranjan
> >
> > -Original Message-
> > From: Deepak Shetty 
> > Sent: Saturday, September 22, 2018 12:27 AM
> > To: JMeter Users List 
> > Subject: Re: Issue With JMeter Not Sending Http Requests
> >
> > Hi
> > take a thread dump of java to see what its doing.
> > I have seen this behavior sometimes with out of memory
> >> . I checked the memory (using 6 GB/32 GB)
> > This sounds like you are checking OS memory not JVM
> >
> > regards
> > deepak
> >
> > On Thu, Sep 20, 2018 at 10:43 PM Nayak, Soumya R. 
> > wrote:
> >
> >> Hi All,
> >>
> >> I am running  a test in JMeter (4.0 version) where I am submitting
> >> Http Request every minute.
> >> So I had given a configuration to run with one user and delay of 60
> >> seconds, total of 1200 requests to submit, but after around 1060
> >> requests submission, the requests are no more submitted.
> >> The data is picked up from a CSV file. Still the JMeter is running,
> >> the elapsed time is going on. I checked the memory (using 6 GB/32 GB)
> >> and cpu -
> >> 1 or 2%. Even I checked there is no logs either in bin folder or in
> >> JMeter GUI.
> >>
> >> Its has run continuously till now up to 23 hours and still running. So
> >> can anybody help me what would be the cause or where can I check the
> >> logs. This is second time its happening like this.
> >>
> >> Machine specs - 32 GB ram, Windows 10 Enterprise, Intel Xeon E5
> processor.
> >>
> >> 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
> >>
> > -
> > 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
>
>


Re: Issue With JMeter Not Sending Http Requests

2018-09-21 Thread Deepak Shetty
Hi
take a thread dump of java to see what its doing.
I have seen this behavior sometimes with out of memory
>. I checked the memory (using 6 GB/32 GB)
This sounds like you are checking OS memory not JVM

regards
deepak

On Thu, Sep 20, 2018 at 10:43 PM Nayak, Soumya R. 
wrote:

> Hi All,
>
> I am running  a test in JMeter (4.0 version) where I am submitting Http
> Request every minute.
> So I had given a configuration to run with one user and delay of 60
> seconds, total of 1200 requests to submit, but after around 1060 requests
> submission, the requests are no more submitted.
> The data is picked up from a CSV file. Still the JMeter is running, the
> elapsed time is going on. I checked the memory (using 6 GB/32 GB) and cpu -
> 1 or 2%. Even I checked there is no logs either in bin folder or in JMeter
> GUI.
>
> Its has run continuously till now up to 23 hours and still running. So can
> anybody help me what would be the cause or where can I check the logs. This
> is second time its happening like this.
>
> Machine specs - 32 GB ram, Windows 10 Enterprise, Intel Xeon E5 processor.
>
> 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
>


Re: ctx.getThreadNum() and ${__threadNum}

2018-09-20 Thread Deepak Shetty
I believe there is a discrepancy - The context reads it from the thread
which is 0 based and the other from the name.
Its probably late to change this without potentially breaking backward
compatibility - perhaps a documentation update is better .

regards
deepak

On Wed, Sep 19, 2018 at 12:54 AM Ivan Rancati 
wrote:

> As JMeter 5.0 has been released today, a quick update:
>
> the behaviour with the thread number is the same with JMeter 4.0 and 5.0. I
> tried both versions of JMeter on Linux with a mix of OpenJDK10, Oracle JDK
> 9 and Oracle JDK 10
>
> Thanks for the 5.0 release and best regards
>
> On Wed, Sep 19, 2018 at 8:00 AM Ivan Rancati 
> wrote:
>
> > Good morning,
> >
> > I think that ctx.getThreadNum() returns a 0-based thread number, while
> the
> > variable __threadNum is 1-based.
> >
> > I have prepared test plan with a just a thread group, a constant
> > throughput timer and JSR223 sampler which just logs
> >
> > log.info("from ctx:"+ctx.getThreadNum())
> > log.info("from variable: ${__threadNum}")
> >
> > in jmeter.log I see for example for the first thread
> >
> > 2018-09-18 22:45:07,610 INFO o.a.j.t.JMeterThread: Thread started: Thread
> > Group 1-1
> > ...
> > 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from ctx:0
> > 2018-09-18 22:45:08,085 INFO o.a.j.p.j.s.JSR223Sampler: from variable: 1
> >
> > and so on. Am I reading incorrectly one of the two values?
> >
> > I thought, as the threads are numbered with  > 1>-
> > in jmeter.log, both values should be 1-based
> >
> > Thanks and best regards,
> > Ivan
> >
>


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: 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: 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: 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
>


Re: Regular Expression

2018-09-17 Thread Deepak Shetty
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: ElasticSearch engine-- Request reached timeout.

2018-09-10 Thread Deepak Shetty
If you are asking in context of your elastic search question then its your
elastic search server that is runnin on its port and you are connecting to
it from Jmeter server - the port on the elastic search server (wjhatever
URL you specified usually 9200) is the one that might be blocked. On the
client side any open one will probably be used. What you need to check is
can you connect to the same elasticsearch server:port  (a quick test is run
telnet elasticsearchserver elasticsearchserverport from the same client
machine running jmeter and if you get a response , you have connectivity)

On Mon, Sep 10, 2018 at 6:58 AM Prateek Dua  wrote:

> Okie..
>
>  On which port no Jmeter runs on local machine & how can I change to get it
> run on different port ?
>
> On Mon, Sep 10, 2018 at 1:18 AM, Deepak Shetty  wrote:
>
> > Your error is telling you what the issue is. i.e. a request timeout
> > a. Either your systems(likely elastic search) genuinely needs more time ,
> > in which case increase timeout (OR your systems are not tuned , in which
> > case tune it)
> > OR
> > b. You have a connectivity issue like a firewall (where your requests are
> > hanging as opposed to your server being down in which case you would have
> > gotten an error) - You can quickly test this is not the case by making a
> > request to elasticsearch from the same server where Jmeter is running
> > In any case this is a custom plugin you are using and hence not
> appropriate
> > for this mailing list if you have issues with it
> >
> > regards
> > deepak
> >
> > On Sat, Sep 8, 2018 at 11:46 AM Prateek Dua 
> > wrote:
> >
> > > I'm using Elastic Backend Listener in my test plan to view the test run
> > > live results in Jmeter Monitoring Dashboard but getting below error n
> > > receiving response from ElasticSearch engine from Client side Jmeter.
> > >
> > >
> > > ERROR i.g.d.j.b.e.ElasticSearchMetricSender: ElasticSearch Backend
> > Listener
> > > was unable to perform request to the ElasticSearch engine. Request
> > reached
> > > timeout.
> > >
> > >
> > > Referred this link
> > > https://dzone.com/articles/jmeter-elasticsearch-live-monitoring to
> > > configure the Grifana Monitoring board & Elastic Backend listener
> > > client side Jmeter
> > >
> > > --
> > >
> > >
> > > ::DISCLAIMER::
> > >
> > >
> > >
> > > 
> > 
> > 
> > >
> > >
> > >
> > >
> > >
> > > This message is intended only for the use of the addressee and may
> > > contain information that is privileged, confidential and exempt from
> > > disclosure under applicable law. If the reader of this message is not
> the
> > > intended recipient, or the employee or agent responsible for delivering
> > > the
> > > message to the intended recipient, you are hereby notified that any
> > > dissemination, distribution or copying of this communication is
> strictly
> > > prohibited. If you have received this e-mail in error, please notify us
> > > immediately by return e-mail and delete this e-mail and all attachments
> > > from your system.
> > >
> >
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: ElasticSearch engine-- Request reached timeout.

2018-09-09 Thread Deepak Shetty
Your error is telling you what the issue is. i.e. a request timeout
a. Either your systems(likely elastic search) genuinely needs more time ,
in which case increase timeout (OR your systems are not tuned , in which
case tune it)
OR
b. You have a connectivity issue like a firewall (where your requests are
hanging as opposed to your server being down in which case you would have
gotten an error) - You can quickly test this is not the case by making a
request to elasticsearch from the same server where Jmeter is running
In any case this is a custom plugin you are using and hence not appropriate
for this mailing list if you have issues with it

regards
deepak

On Sat, Sep 8, 2018 at 11:46 AM Prateek Dua  wrote:

> I'm using Elastic Backend Listener in my test plan to view the test run
> live results in Jmeter Monitoring Dashboard but getting below error n
> receiving response from ElasticSearch engine from Client side Jmeter.
>
>
> ERROR i.g.d.j.b.e.ElasticSearchMetricSender: ElasticSearch Backend Listener
> was unable to perform request to the ElasticSearch engine. Request reached
> timeout.
>
>
> Referred this link
> https://dzone.com/articles/jmeter-elasticsearch-live-monitoring to
> configure the Grifana Monitoring board & Elastic Backend listener
> client side Jmeter
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: JUnit Setup Issues

2018-09-07 Thread Deepak Shetty
Hi
Nothing specific to JMeter
Within your test ,if you already have some form of logging use that ,
otherwise use your favorite (log4j, java logging ,or good old
system.out.println). Add statements around where you are creating the
browser - driver etc and if you have any catch (exception){ //do nothing}
then delete those , when your test method begins / ends. When you run this
via JMeter , it will print the logs wherever the logging frameowrk is
printing it (e.g. if you are using log4j , wherever the log4j configuration
says the log should go or if you are using System.out then ensure you run
Jmeter with a console and the values will get printed there)

If you want the logs to come in JMeter log then I believe it is log4j2 with
the config file in bin (please verify in doc) - if you use this as your log
framework within the test then values should come in jmeter.log

I dont know the setting in IntelliJ but you can usually see the entire java
command that is being run in the IDE which can tell you things like
classpath /additional VM or program parameters that you may be missing


regards
deepak


On Fri, Sep 7, 2018 at 10:41 AM MaxwellFalcon  wrote:

> It feels like you are on the right track here.  Can you walk me through
> how I
> can go about determining what resource/dependency is missing?  How can I
> enable debug like you are talking about?  Sorry I am very new to JMeter.
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: JUnit Setup Issues

2018-09-07 Thread Deepak Shetty
Typically that indicates a setting or resource that is being found when you
run via IntelliJ and you havent made the same change for the JVM of JMeter
(e.g. are classpath settings or resources like files or command line
parameters that are read by the code)
You probably need to enable debug for your test or write some log
statements to tell you whats missing if you cant make out the issue via
inspection - If browser or driver is null , i am guessing your test
actually didnt run either and there should be a problem with initialization
of your test where these objects are being created.



On Fri, Sep 7, 2018 at 8:40 AM MaxwellFalcon  wrote:

> Here is the code:
>
> @After
> public void testCleanUp(){
> browser.driver.quit();
> }
>
>
> I guess it is worth noting that these tests are running perfectly fine in
> my
> IDE (Intellij).
>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: JUnit Setup Issues

2018-09-06 Thread Deepak Shetty
71 INFO o.a.j.p.h.s.HTTPSamplerBase:
> Parser for
> > application/xhtml+xml is
> > org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > > 2018-09-06 16:44:26,972 INFO o.a.j.p.h.s.HTTPSamplerBase:
> Parser for
> > application/xml is
> > org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > > 2018-09-06 16:44:26,972 INFO o.a.j.p.h.s.HTTPSamplerBase:
> Parser for
> > text/xml is
> org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
> > > 2018-09-06 16:44:26,973 INFO o.a.j.p.h.s.HTTPSamplerBase:
> Parser for
> > text/vnd.wap.wml is
> org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
> > > 2018-09-06 16:44:26,973 INFO o.a.j.p.h.s.HTTPSamplerBase:
> Parser for
> > text/css is org.apache.jmeter.protocol.http.parser.CssParser
> > > 2018-09-06 16:44:27,575 INFO o.a.j.e.KeyToolUtils: keytool
> found at
> > 'keytool'
> > > 2018-09-06 16:44:27,576 INFO o.a.j.p.h.p.ProxyControl: HTTP(S)
> Test
> > Script Recorder SSL Proxy will use keys that support embedded 3rd
> party
> > resources in file /Source/JMeter/bin/proxyserver.jks
> > > 2018-09-06 16:44:30,814 INFO o.a.j.s.FileServer: Default
> > base='/Source/JMeter/bin'
> > > 2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult: Note: Sample
> > TimeStamps are START times
> > > 2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult:
> > sampleresult.default.encoding is set to ISO-8859-1
> > > 2018-09-06 16:44:31,368 INFO o.a.j.s.SampleResult:
> > sampleresult.useNanoTime=true
> > > 2018-09-06 16:44:31,369 INFO o.a.j.s.SampleResult:
> > sampleresult.nanoThreadSleep=5000
> > > 2018-09-06 16:45:14,984 INFO o.a.j.e.StandardJMeterEngine:
> Running
> > the test!
> > > 2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
> > sample_variables: []
> > > 2018-09-06 16:45:14,985 INFO o.a.j.s.SampleEvent: List of
> > sample_variables: []
> > > 2018-09-06 16:45:14,994 INFO o.a.j.g.u.JMeterMenuBar:
> > setRunning(true, *local*)
> > > 2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine:
> Starting
> > ThreadGroup: 1 : Thread Group
> > > 2018-09-06 16:45:15,123 INFO o.a.j.e.StandardJMeterEngine:
> Starting
> > 1 threads for group Thread Group.
> > > 2018-09-06 16:45:15,124 INFO o.a.j.e.StandardJMeterEngine:
> Thread
> > will continue on error
> >     > 2018-09-06 16:45:15,126 INFO o.a.j.t.ThreadGroup: Starting
> thread
> > group... number=1 threads=1 ramp-up=1 perThread=1000.0
> delayedStart=false
> > > 2018-09-06 16:45:15,138 INFO o.a.j.t.ThreadGroup: Started
> thread
> > group number 1
> > > 2018-09-06 16:45:15,138 INFO o.a.j.t.JMeterThread: Thread
> started:
> > Thread Group 1-1
> > > 2018-09-06 16:45:15,138 INFO o.a.j.e.StandardJMeterEngine: All
> > thread groups have been started
> > > 2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread is
> done:
> > Thread Group 1-1
> > > 2018-09-06 16:45:15,148 INFO o.a.j.t.JMeterThread: Thread
> finished:
> > Thread Group 1-1
> > > 2018-09-06 16:45:15,149 INFO o.a.j.e.StandardJMeterEngine:
> Notifying
> > test listeners of end of test
> > > 2018-09-06 16:45:15,152 INFO o.a.j.g.u.JMeterMenuBar:
> > setRunning(false, *local*)
> > >
> > > On 9/6/18, 4:37 PM, "Deepak Shetty" 
> wrote:
> > >
> > >  Then thats why its failing :)
> > >  Constructor string
> > >
> > >  String pass to the string constructor. If a string is
> set, the
> > sampler will
> > >  use the string constructor instead of the empty
> constructor.
> > >
> > >
> > >  On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon <
> > maxf...@gmail.com> wrote:
> > >
> > >  > I did put a value for the Constructor String label.
> > >  >
> > >  > On 9/6/18, 4:21 PM, "Deepak Shetty"  >
> > wrote:
> > >  >
> > >  > Do you have any value specified in Constructor
> String
> >

Re: JUnit Setup Issues

2018-09-06 Thread Deepak Shetty
Then thats why its failing :)
Constructor string

String pass to the string constructor. If a string is set, the sampler will
use the string constructor instead of the empty constructor.


On Thu, Sep 6, 2018 at 1:29 PM Maxwell Falcon  wrote:

> I did put a value for the Constructor String label.
>
> On 9/6/18, 4:21 PM, "Deepak Shetty"  wrote:
>
> Do you have any value specified in Constructor String label ?
>
> https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
> If you specify that it will look for a constructor with a parameter .
>
> On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon 
> wrote:
>
> > Hello, this is my first time using the mailing list, so I hope that
> I am
> > posting in the right channel/list.
> >
> > Essentially I am trying to run some of my Junit tests in JMeter.
> Right
> > now I have exported my project as a .jar and put the .jar in the
> lib/junit
> > directory.  In JMeter I add the Junit sampler and results tree
> listener.
> >  In the JUnit sampler I select my classname and test and then hit
> run.  I
> > get response code 100 but the test shows up red and never runs.
> Looking at
> > the log it looks the error is
> >
> > “Trying to find constructor with one String parameter returned error:
> > community.LoginTests.(java.lang.String)”
> >
> > I do not have a constructor in the test class. Any help would be
> greatly
> > appreciated.  If I am posting this in the wrong place then please
> let me
> > know.
> >
> > -Maxwell
> >
>
>


Re: JUnit Setup Issues

2018-09-06 Thread Deepak Shetty
Do you have any value specified in Constructor String label ?
https://jmeter.apache.org/usermanual/component_reference.html#JUnit_Request
If you specify that it will look for a constructor with a parameter .

On Thu, Sep 6, 2018 at 11:13 AM Maxwell Falcon  wrote:

> Hello, this is my first time using the mailing list, so I hope that I am
> posting in the right channel/list.
>
> Essentially I am trying to run some of my Junit tests in JMeter.  Right
> now I have exported my project as a .jar and put the .jar in the lib/junit
> directory.  In JMeter I add the Junit sampler and results tree listener.
>  In the JUnit sampler I select my classname and test and then hit run.  I
> get response code 100 but the test shows up red and never runs.  Looking at
> the log it looks the error is
>
> “Trying to find constructor with one String parameter returned error:
> community.LoginTests.(java.lang.String)”
>
> I do not have a constructor in the test class. Any help would be greatly
> appreciated.  If I am posting this in the wrong place then please let me
> know.
>
> -Maxwell
>


Re: Mail triggering from Aws instance landing in Spam

2018-09-04 Thread Deepak Shetty
Hi
This usually happens if
a. Your content is similar to spam / your from address/domain is marked as
a spammy one / someone fl;agged these emails as spam
b. Your from address isnt supposed to be used with the smtp server in
question (e.g. you send an email with a from address of some...@gmail.com
but you are sending it from a different SMTP server )
c. You are using a mail host to send emails on your behalf but you havent
configured it correctly - like an SPF record

As such you need to work with whoever manages your emails and this is off
topic for Jmeter.

regards
deepak


On Mon, Sep 3, 2018 at 8:33 AM Prateek Dua  wrote:

> Hey Guys,
>
> A out of the box qus.. would be great if someone helps out..
>
> *Problem *Triggering mail from 'mailx'  configured on  Aws instance (
> Jmeter is configured on same AWS instance) .. but all mails are landing in
> spam of Gmail.
>
> Changed  hostname  from
> *jenk...@ip-10-30-4-21.ap-south-1.compute.internal  to
>  jenk...@jmeter.job but still spam.  *
>
>
> *Scenario*: To trigger email after running latest Jenkins build & comparing
> with previous build to calculate difference comparison in response time (
> Aggregate Report) Jmeter..
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Recording Issue

2018-08-30 Thread Deepak Shetty
Hi
Please explain your issue clearly.
Your application is running on port 3128 (instead of the standard 80/443).
You want to record a script from Jmeter.
But it didnt capture anything ?
Or something else ?

regards
deepak

On Wed, Aug 29, 2018 at 9:46 PM krish na 
wrote:

> Hi All,
> Recently in my company they have set the port to access the application.
> Eg: 3128 its port where internet is also available to access my application
> But due to this there is implement i could not able to capture anything on
> the given port.
> Any input will be much appreciated.
> Regards,
> Krishna - +91-9884451279.
>
> CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype


Re: How to record Desktop application using Jmeter

2018-08-27 Thread Deepak Shetty
IF your application makes HTTP(S) calls AND it allows these calls to be
made via a proxy Then you can record it using JMeter. How you record it is
the same - run JMeter and then specify it as the proxy (using however your
application recognizes the proxy). Note that JMeter can only play back the
HTTP calls it cant really do what your desktop application does( in
general.)

On Mon, Aug 27, 2018 at 6:05 AM Anil Gaur  wrote:

> How to record desktop application using Jmeter.
>
> Any information on above ?
>
>
>
>
>
>
>
> Thanks
> Anil Gaur
>


Re: Share Load to specific DB per specific Server IP

2018-08-24 Thread Deepak Shetty
Your question is not clear. Do you mean you recorded a script for
app.test.com where app.test.com internally makes calls to a database
cluster and now you want when you run the script , all calls must only goto
one specific IP ?
JMeter --> app.test.com --> DB ?
If so then this is something for you to configure on app.test.com , nothing
related to JMeter. JMeter cannot control what happens after the request is
sent. Usually the app allows this using something like a custom header or
cookie or parameter.

regards
deepak

On Fri, Aug 24, 2018 at 5:29 AM Prateek Dua  wrote:

> Hi,
>
> Is there any way in Jmeter to transfer Load to specific DB as per  Server
> IP / hostname defined in Http Request / Http Request defaults  ?
>
> Basically scenario I got to test is to generate load to a specific DB by
> hitting Application ( from recorded application flow) directly. Like
> Application Server is app.test.com & DB Ip is : 10.30.5.67
>
> So I need that all load from app.test.com should go to 10.30.5.67 directly
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Counter starting from threadNum?

2018-08-24 Thread Deepak Shetty
If I remember correctly some config elements are processed at configuration
time and so cant use items in their configuration that have values at
runtime. (Not verified for this particular case)
Likely you will have to use a normal counter and then combine it with the
threadnum at runtime

On Fri, Aug 24, 2018 at 6:56 AM Max Allan  wrote:

> Hello,
> I wanted a counter starting from threadNum * 1000, to be formatted with
> preceding zeroes to 6 digits.
> (Meaning I'll have 10 threads, each thread will query content IDs from
> 00x001 to 00x999)
> However, the counter element seems to not like having it's start value
> changed in different threads. My abbreviated test plan .jmx is below. When
> I run it on Windows or OSX in GUI or command line mode, I find that the
> counter starts from the same place for different threads.
> Sometimes it is always the same value (002000) sometimes it almost gets it
> right and only one thread duplicates the start value of another.
> Am I doing something wrong or is this a bug?
>
> (I've tried :
> using ${__threadNum} in the counter
> using a ${__jexl2(ctx.getThreadNum())} in the counter
> adding a beanshell element to set a variable "START" and using ${START} in
> the counter
> None of them worked, it just seems like counter doesn't like different
> Start values)
>
> Thanks,
> Max
>
>
> 
> 
>   
> 
>   false
>   false
> 
> 
>testname="Count" enabled="true">
>  elementType="LoopController" guiclass="LoopControlPanel"
> testclass="LoopController" testname="Loop Controller" enabled="true">
>   false
>   1
> 
> 10
> 0
>   
>   
>  testclass="CounterConfig" testname="Counter" enabled="true">
>   ${__jexl3(${__threadNum} *
> 1000,)}
>   99
>   1
>   TOTP
>   00
>   true
>name="CounterConfig.reset_on_tg_iteration">true
> 
> 
>  testclass="HTTPSamplerProxy" testname="TOTP : ${TOTP} " enabled="true">
>guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined
> Variables" enabled="true">
> 
>   
>   localhost
>   ${__jexl3(${__threadNum} *
> 1000,)}
> 
> 
>testclass="ResultCollector" testname="View Results Tree" enabled="true">
> false
> 
>   saveConfig
>   
> false
> true
> true
> true
> true
> true
>   
> 
>   
>   
> 
>   
> 
>   
> 
>


Re: jmeter command stuck - FTP testing

2018-08-23 Thread Deepak Shetty
The duration assertion marks a sample as failed if the time it takes is
larger than configured. it doesnt however timeout the sampler. If you have
a blocking call then till that call returns , nothing else will happen till
that call returns .

On Thu, Aug 23, 2018 at 8:24 AM vijay.raje2...@gmail.com <
vijay.raje2...@gmail.com> wrote:

> I used below class in JMX file. This is working fine for FTP for timeout. I
> have used 30 sec(3 milliseconds) for testing purpose.
>
> 
>  testclass="DurationAssertion" testname="Duration Assertion" enabled="true">
> 3
> 
> 
>
> When I used 1000 milliseconds(1 sec) as timeout it gives timeout error for
> most of threads while testing.
>
> The operation lasted too long: It took 1,115 milliseconds, but should not
> have lasted longer than 1,000 milliseconds
>
> 
>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Passing variables to Random function

2018-08-23 Thread Deepak Shetty
Thank you for confirming!

On Thu, Aug 23, 2018 at 12:22 PM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
>
> Am 23.08.2018 um 16:07 schrieb Deepak Shetty:
> > Hi
> > title worked too
> For me now, too.
>
> The test cases I used - and the reported stacktraces - showed that an
> Integer will not be converted automatically to a String by the Random
> function. And I probably misspelled my variable name and got the error
> when I tested it through the GUI. It seems that the GUI is trying harder
> to convert the complete function string components to string values
> before giving the values to the Random function.
>
> Thanks for your double checking and insistence.
>   Felix
>
> >
> > regards
> > deepak
> >
> > On Thu, Aug 23, 2018 at 1:43 AM Felix Schumacher <
> > felix.schumac...@internetallee.de> wrote:
> >
> >>
> >> Am 23.08.2018 um 03:42 schrieb Deepak Shetty:
> >>> Hi
> >>> I initially tried this with a string , but I dont get this issue with
> an
> >>> integer either - How were you able to replicate
> >>> Thread group
> >>> +Bean Shell sampler // vars.putObject("numFiles",new Integer(10));
> >>> +Http Request
> >>> ++ParamValue - ${__Random(0,${numFiles},docIndex)}
> >> Try to use the title of a sampler. Parameters seem to be handled
> >> differently.
> >>
> >> Felix
> >>
> >>> which works fine.
> >>>
> >>> On Wed, Aug 22, 2018 at 8:06 AM Felix Schumacher <
> >>> felix.schumac...@internetallee.de> wrote:
> >>>
> >>>> Am 21.08.2018 um 21:32 schrieb David Fertig:
> >>>>> I have a variable called numFiles, which I can print and verify
> >> contains
> >>>> an integer.
> >>>>> Integer numFiles = vars.getObject("numFiles");
> >>>>>
> >>>>> I want to make a random number between 0 and that value.  But all of
> >> the
> >>>> following fail
> >>>>> ${__Random(0,__ ${numFiles},docIndex)};
> >>>>>
> >>>>> Integer docIndex  = ${__Random(0,${numFiles})};
> >>>>>
> >>>>> ${__Random(0,__ numFiles,docIndex)};
> >>>>>
> >>>>> Integer docIndex  = ${__Random(0,numFiles)};
> >>>>>
> >>>>> All with an errors like:
> >>>>> Uncaught Exception java.lang.NumberFormatException: For input string:
> >>>> "${NUMFILES}". See log file for details.
> >>>>> Uncaught Exception java.lang.NumberFormatException: For input string:
> >>>> "numFiles". See log file for details.
> >>>>> How do I pass a variable into the random() function?
> >>>> It seems that this is a bug. At the moment the Strings given to
> __Random
> >>>> will not be evaluated (and therefore the Integer will not be
> transformed
> >>>> into a String).
> >>>>
> >>>> Till the bug is fixed, you will have to transform the Integer into a
> >>>> String by yourself.
> >>>>
> >>>> Regards,
> >>>> Felix
> >>>>
> >>>>>
> >>>>> Thank you
> >>>>> David
> >>>>>
> >>>>>
> >>>>>
> >>>>> This email, including attachments, may contain information that is
> >>>> privileged, confidential or is exempt from disclosure under applicable
> >> law
> >>>> (including, but not limited to, protected health information). It is
> not
> >>>> intended for transmission to, or receipt by, any unauthorized persons.
> >> If
> >>>> the reader of this message is not the intended recipient, or the
> >> employee
> >>>> or agent responsible for delivering the message to the intended
> >> recipient,
> >>>> you are hereby notified that any dissemination, distribution or
> copying
> >> of
> >>>> this communication is strictly prohibited. If you believe this email
> was
> >>>> sent to you in error, do not read it. Please notify the sender
> >> immediately
> >>>> informing them of the error and delete all copies and attachments of
> the
> >>>> message from your system. Thank you.
> >>>>
> >>>> -
> >>>> 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
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Passing variables to Random function

2018-08-23 Thread Deepak Shetty
Hi
here is my example that works

https://onedrive.live.com/?cid=1BD02FE33F80B8AC&id=1BD02FE33F80B8AC%211557&parId=1BD02FE33F80B8AC%21268&o=OneUp

On Thu, Aug 23, 2018 at 8:34 AM David Fertig 
wrote:

> >${__Random(0,${__evalVar(numFiles)})}
>
> Unfortunately this also does not work.
>
> 2018-08-23 11:32:53,096 ERROR o.a.j.JMeter: Uncaught exception:
> java.lang.NumberFormatException: For input string: ""
>
>
>
> -Original Message-
> From: Felix Schumacher 
> Sent: Wednesday, August 22, 2018 11:14 AM
> To: user@jmeter.apache.org
> Subject: Re: Passing variables to Random function
>
>
>
> Am 22.08.2018 um 17:06 schrieb Felix Schumacher:
> >
> >
> > Am 21.08.2018 um 21:32 schrieb David Fertig:
> >> I have a variable called numFiles, which I can print and verify
> >> contains an integer.
> >> Integer numFiles = vars.getObject("numFiles");
> >>
> >> I want to make a random number between 0 and that value.  But all of
> >> the following fail ${__Random(0,__ ${numFiles},docIndex)};
> >>
> >> Integer docIndex  = ${__Random(0,${numFiles})};
> >>
> >> ${__Random(0,__ numFiles,docIndex)};
> >>
> >> Integer docIndex  = ${__Random(0,numFiles)};
> >>
> >> All with an errors like:
> >> Uncaught Exception java.lang.NumberFormatException: For input string:
> >> "${NUMFILES}". See log file for details.
> >>
> >> Uncaught Exception java.lang.NumberFormatException: For input string:
> >> "numFiles". See log file for details.
> >>
> >> How do I pass a variable into the random() function?
> > It seems that this is a bug. At the moment the Strings given to
> > __Random will not be evaluated (and therefore the Integer will not be
> > transformed into a String).
> On second thought "bug" might be a bit harsh, as no function in JMeter
> will currently transform those values by itself (yet?).
>
> To answer your question, you could use __evalVar function to convert your
> Integer into a String:
>
> ${__Random(0,${__evalVar(numFiles)})}
>
> Regards,
>   Feli
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
> This email, including attachments, may contain information that is
> privileged, confidential or is exempt from disclosure under applicable law
> (including, but not limited to, protected health information). It is not
> intended for transmission to, or receipt by, any unauthorized persons. If
> the reader of this message is not the intended recipient, or the employee
> or agent responsible for delivering the message to the intended recipient,
> you are hereby notified that any dissemination, distribution or copying of
> this communication is strictly prohibited. If you believe this email was
> sent to you in error, do not read it. Please notify the sender immediately
> informing them of the error and delete all copies and attachments of the
> message from your system. Thank you.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Passing variables to Random function

2018-08-23 Thread Deepak Shetty
Hi
title worked too

regards
deepak

On Thu, Aug 23, 2018 at 1:43 AM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
>
> Am 23.08.2018 um 03:42 schrieb Deepak Shetty:
> > Hi
> > I initially tried this with a string , but I dont get this issue with an
> > integer either - How were you able to replicate
> > Thread group
> > +Bean Shell sampler // vars.putObject("numFiles",new Integer(10));
> > +Http Request
> > ++ParamValue - ${__Random(0,${numFiles},docIndex)}
>
> Try to use the title of a sampler. Parameters seem to be handled
> differently.
>
> Felix
>
> >
> > which works fine.
> >
> > On Wed, Aug 22, 2018 at 8:06 AM Felix Schumacher <
> > felix.schumac...@internetallee.de> wrote:
> >
> >>
> >> Am 21.08.2018 um 21:32 schrieb David Fertig:
> >>> I have a variable called numFiles, which I can print and verify
> contains
> >> an integer.
> >>> Integer numFiles = vars.getObject("numFiles");
> >>>
> >>> I want to make a random number between 0 and that value.  But all of
> the
> >> following fail
> >>> ${__Random(0,__ ${numFiles},docIndex)};
> >>>
> >>> Integer docIndex  = ${__Random(0,${numFiles})};
> >>>
> >>> ${__Random(0,__ numFiles,docIndex)};
> >>>
> >>> Integer docIndex  = ${__Random(0,numFiles)};
> >>>
> >>> All with an errors like:
> >>> Uncaught Exception java.lang.NumberFormatException: For input string:
> >> "${NUMFILES}". See log file for details.
> >>> Uncaught Exception java.lang.NumberFormatException: For input string:
> >> "numFiles". See log file for details.
> >>> How do I pass a variable into the random() function?
> >> It seems that this is a bug. At the moment the Strings given to __Random
> >> will not be evaluated (and therefore the Integer will not be transformed
> >> into a String).
> >>
> >> Till the bug is fixed, you will have to transform the Integer into a
> >> String by yourself.
> >>
> >> Regards,
> >>Felix
> >>
> >>>
> >>>
> >>> Thank you
> >>> David
> >>>
> >>>
> >>>
> >>> This email, including attachments, may contain information that is
> >> privileged, confidential or is exempt from disclosure under applicable
> law
> >> (including, but not limited to, protected health information). It is not
> >> intended for transmission to, or receipt by, any unauthorized persons.
> If
> >> the reader of this message is not the intended recipient, or the
> employee
> >> or agent responsible for delivering the message to the intended
> recipient,
> >> you are hereby notified that any dissemination, distribution or copying
> of
> >> this communication is strictly prohibited. If you believe this email was
> >> sent to you in error, do not read it. Please notify the sender
> immediately
> >> informing them of the error and delete all copies and attachments of the
> >> message from your system. Thank you.
> >>
> >> -
> >> 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
>
>


Re: Passing variables to Random function

2018-08-22 Thread Deepak Shetty
Hi
I initially tried this with a string , but I dont get this issue with an
integer either - How were you able to replicate
Thread group
+Bean Shell sampler // vars.putObject("numFiles",new Integer(10));
+Http Request
++ParamValue - ${__Random(0,${numFiles},docIndex)}

which works fine.

On Wed, Aug 22, 2018 at 8:06 AM Felix Schumacher <
felix.schumac...@internetallee.de> wrote:

>
>
> Am 21.08.2018 um 21:32 schrieb David Fertig:
> > I have a variable called numFiles, which I can print and verify contains
> an integer.
> > Integer numFiles = vars.getObject("numFiles");
> >
> > I want to make a random number between 0 and that value.  But all of the
> following fail
> > ${__Random(0,__ ${numFiles},docIndex)};
> >
> > Integer docIndex  = ${__Random(0,${numFiles})};
> >
> > ${__Random(0,__ numFiles,docIndex)};
> >
> > Integer docIndex  = ${__Random(0,numFiles)};
> >
> > All with an errors like:
> > Uncaught Exception java.lang.NumberFormatException: For input string:
> "${NUMFILES}". See log file for details.
> >
> > Uncaught Exception java.lang.NumberFormatException: For input string:
> "numFiles". See log file for details.
> >
> > How do I pass a variable into the random() function?
> It seems that this is a bug. At the moment the Strings given to __Random
> will not be evaluated (and therefore the Integer will not be transformed
> into a String).
>
> Till the bug is fixed, you will have to transform the Integer into a
> String by yourself.
>
> Regards,
>   Felix
>
> >
> >
> >
> > Thank you
> > David
> >
> >
> >
> > This email, including attachments, may contain information that is
> privileged, confidential or is exempt from disclosure under applicable law
> (including, but not limited to, protected health information). It is not
> intended for transmission to, or receipt by, any unauthorized persons. If
> the reader of this message is not the intended recipient, or the employee
> or agent responsible for delivering the message to the intended recipient,
> you are hereby notified that any dissemination, distribution or copying of
> this communication is strictly prohibited. If you believe this email was
> sent to you in error, do not read it. Please notify the sender immediately
> informing them of the error and delete all copies and attachments of the
> message from your system. Thank you.
> >
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: Passing variables to Random function

2018-08-21 Thread Deepak Shetty
${__Random(0,${numFiles},docIndex)} should work Where are you specifying
this ? Note special considerations apply if you are trying this within for
e.g. a beanshell sampler




On Tue, Aug 21, 2018 at 12:32 PM David Fertig 
wrote:

> I have a variable called numFiles, which I can print and verify contains
> an integer.
> Integer numFiles = vars.getObject("numFiles");
>
> I want to make a random number between 0 and that value.  But all of the
> following fail
> ${__Random(0,__ ${numFiles},docIndex)};
>
> Integer docIndex  = ${__Random(0,${numFiles})};
>
> ${__Random(0,__ numFiles,docIndex)};
>
> Integer docIndex  = ${__Random(0,numFiles)};
>
> All with an errors like:
> Uncaught Exception java.lang.NumberFormatException: For input string:
> "${NUMFILES}". See log file for details.
>
> Uncaught Exception java.lang.NumberFormatException: For input string:
> "numFiles". See log file for details.
>
> How do I pass a variable into the random() function?
>
>
>
> Thank you
> David
>
>
>
> This email, including attachments, may contain information that is
> privileged, confidential or is exempt from disclosure under applicable law
> (including, but not limited to, protected health information). It is not
> intended for transmission to, or receipt by, any unauthorized persons. If
> the reader of this message is not the intended recipient, or the employee
> or agent responsible for delivering the message to the intended recipient,
> you are hereby notified that any dissemination, distribution or copying of
> this communication is strictly prohibited. If you believe this email was
> sent to you in error, do not read it. Please notify the sender immediately
> informing them of the error and delete all copies and attachments of the
> message from your system. Thank you.
>


Re: jmeter command stuck - FTP testing

2018-08-21 Thread Deepak Shetty
Where did you specify timeout - As far as I know the FTP request itself
doesnt have a timeout so thread will block.

>But still getting stuck and not every time. Some time it's working without
any issue.
Which is more likely to be your applications issue. Again take a  thread
dump on JMeter if they are waiting on your application server then check
whats happening on your application

regards
deepak

On Tue, Aug 21, 2018 at 6:56 AM Vijay Raje  wrote:

> I have configured 30 sec timeout value in jmx file. So it should reject
> automatically.
> But still getting stuck and not every time. Some time it's working without
> any issue.
>
> Thanks
> Vijay Raje
>
> On Mon, Aug 20, 2018, 11:11 PM Deepak Shetty  wrote:
>
> > Hi
> > > but while running from 15 Linux servers sententiously
> > This will run 15 * 225 connections to your server - Is this what you want
> > to do ?
> > Its likely your server is rejecting connections or timing out - The
> > screenshot you have taken is not what is useful - You need a threaddump
> > which will likely show you all the JMeter threads are waiting for
> response
> > .
> >
> > regards
> > deepak
> >
> > On Mon, Aug 20, 2018 at 9:29 AM vijay.raje2...@gmail.com <
> > vijay.raje2...@gmail.com> wrote:
> >
> > > Hi
> > > I am using Jmeter to perform FTP load testing on Azure using csv file.
> > > Total hitting threads : 225 from one server
> > > Total no of connections from server to FTP : 450 (upload + download)
> > >
> > > I am getting success message if I am running jemeter command from one
> > > machine. but while running from 15 Linux servers sententiously , some
> of
> > > them are getting stuck on below screen.
> > > <http://www.jmeter-archive.org/file/t346050/123.jpg>
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> > > For additional commands, e-mail: user-h...@jmeter.apache.org
> > >
> > >
> >
>


Re: Dynamic Value handling Run Time

2018-08-21 Thread Deepak Shetty
Hi
Your Test should look like
+Thread Group
++ HTTP Request (URL = http://www.goibibobusiness.com/accounts/login/ ,
Method = GET)
+++Regex extractor (csrfmiddlewaretoken , regex =
name=['"]csrfmiddlewaretoken['"]\s+value=['"]([^'"]+)['"]) ,
defaultvalue=NOTFOUND
+Debug sampler
++ HTTP Request (URL = , Method=Post)
  Parameter csrfmiddlewaretoken ${csrfmiddlewaretoken} , username,
password etc
++Cookie Manager
++View Results tree (for debugging only)

If you are getting the value literally as ${variableName} it means that
Jmeter didnt find any variable and that you are making some mistake in the
definition or scope or something. Use the debug sampler to see if you
correctly extracted the value
regards
deepak

On Tue, Aug 21, 2018 at 6:49 AM Prateek Dua  wrote:

> Hi,
>
> I'm facing problem in recording a web page where a dynamic value while
> submitting login request ( Post request) is getting passed along with login
> id & password.
>
> Then I used Post Processor ->Regular expression extractor under that http
> request to capture that dynamic value & pass it to same Http request as a
> variable.
>
> Hierarchy is Request name ->Regular Expression Extractor
>
> But this approach is not working as instead of real value,  variable name
> (as value) is getting passed to Http request.
>
> So here is the config detail for it
>
> *1. Post request *: http://www.goibibobusiness.com/accounts/login/  ;
> *Dynamic
> Parameter*: csrfmiddlewaretoken=Kf43kWkuVWGB36WBTiDJEinv78JU8QkY* ( this
> value changing at runtime )  ; *
>
> *2. Regular Expression Extractor : Name of created variable:
> **csrfmiddlewaretoken
> ; Regular Expression: value=”([a-zA-Z0-9]+)“  ; Template= $1$ ; Match No.
> (0 for Random)=1*
>
> *3. Variable passed as 'Parameter' in above post request   *
> *csrfmiddlewaretoken** =**${csrfmiddlewaretoken}*
>
> *4. Parameter generated for same request at run time ( View Result Tree->
> Request) *
>
> POST http://www.goibibobusiness.com/accounts/login/
>
> POST data
> csrfmiddlewaretoken=%24%7Bcsrfmiddlewaretoken%7D&username=a...@mail.com
> &password=password
>
> please help me out here in handling this problem.
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: jmeter command stuck - FTP testing

2018-08-20 Thread Deepak Shetty
Hi
> but while running from 15 Linux servers sententiously
This will run 15 * 225 connections to your server - Is this what you want
to do ?
Its likely your server is rejecting connections or timing out - The
screenshot you have taken is not what is useful - You need a threaddump
which will likely show you all the JMeter threads are waiting for response .

regards
deepak

On Mon, Aug 20, 2018 at 9:29 AM vijay.raje2...@gmail.com <
vijay.raje2...@gmail.com> wrote:

> Hi
> I am using Jmeter to perform FTP load testing on Azure using csv file.
> Total hitting threads : 225 from one server
> Total no of connections from server to FTP : 450 (upload + download)
>
> I am getting success message if I am running jemeter command from one
> machine. but while running from 15 Linux servers sententiously , some of
> them are getting stuck on below screen.
> 
>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>


Re: JDBC Request - all queries not getting executed for User 1 & User 2

2018-08-20 Thread Deepak Shetty
Hi
you need sharing mode "Current thread" if you want each thread to read the
same data
https://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config
- See sharing mode

On Mon, Aug 20, 2018 at 6:53 AM Prateek Dua  wrote:

> Hey Felix,
>
> Yes by default "Max Number of Connections" to "0". Let me explain my Config
> & test plan hierarchy..  Under Thread group  ->  CSV Data Set config, Jdbc
> request & View Results Tree components are added as per mentioned order.
>
> *1. Thread group* : No of threads: 2  ; Ramp up time : 1 Sec ; Loop count
> :2
>
> *2. CSV Data Set Config *- *Filename*: changelog_mysql.sql ; *Variable
> name*:
> conn ;* ignore first line:*false ; *Allow quoted data*: false ; *Recycle on
> EOF:* True;  *Stop thread on  Eof *; *sharing mode*: All threads
>
> *3. **Jdbc request - Query* *: *${conn} ; *Handle Resultset* : Store as
> String
>
> *4*. *JDBC config *:*Connection Pool Configuration : Max no of
> connections*:
> 0 ; *Transaction isolation* : default & rest of settings of this config are
> kept same as by default.
>
>
> So problem statement is  --- query#1 is getting executed twice for User 1 &
> query#2( next query ) is getting twice executed for User 2.
>
> *But what I want is that --query #1 & query#2 should get executed for User
> 1 & User 2*
>
>
>
> On Mon, Aug 20, 2018 at 5:19 PM, Felix Schumacher <
> felix.schumac...@internetallee.de> wrote:
>
> >
> >
> > Am 20.08.2018 um 12:23 schrieb Prateek Dua:
> >
> >> Hi,
> >>
> >> I'm trying to execute DB queries ( input via CSV Config file) for
> >> multiple Users. But problem is that for every user , query is getting
> >> executed as per single row i.e. row 1 query is getting executed for User
> >> 1;  row 2  query is getting executed for User 2 ..
> >>
> >> What I needed is that row 1 query & row 2 query should get execute for
> >> both User 1 & User 2.   please find attached screenshots of  Test Plan.
> >>
> > Screenshots get regularly removed by the mailing list, so we can't see
> > your screenshot. Try to describe what you see by text, only.
> >
> > Have you tried to set "Max Number of Connections" to "0"? See
> > http://jmeter.apache.org/usermanual/component_reference.
> > html#JDBC_Connection_Configuration for more information about the
> > possible values of that field.
> >
> > Regards,
> >  Felix
> >
> >
> >>
> >>
> >>
> >>
> >> ::DISCLAIMER::
> >>
> >> 
> >> 
> >> 
> >>
> >>
> >> This message is intended only for the use of the addressee and may
> >> contain information that is privileged, confidential and exempt from
> >> disclosure under applicable law. If the reader of this message is not
> the
> >> intended recipient, or the employee or agent responsible for delivering
> the
> >> message to the intended recipient, you are hereby notified that any
> >> dissemination, distribution or copying of this communication is strictly
> >> prohibited. If you have received this e-mail in error, please notify us
> >> immediately by return e-mail and delete this e-mail and all attachments
> >> from your system.
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> >> For additional commands, e-mail: user-h...@jmeter.apache.org
> >>
> >
> >
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: JAVA Program as a Service

2018-08-16 Thread Deepak Shetty
Hi
>So below you are talking of the wrapper script ,
That is a OS specific question. In *nix you'd just do something like
$JAVA_HOME/bin/java stufftorunyourclass &
(where & represents run in background)
In windows you'd probably use windows scripting host
Google how do i run my process in the background for your operating system
of choice

Kirks suggestion of Runtime.exec works (invoked from any Java) too

regards
deepak

On Tue, Aug 14, 2018 at 11:57 PM Nayak, Soumya R. 
wrote:

> Hi Deepak ,
>
> Thanks for the reply.
> There are two parts to my script running from JMeter.
> The first part will submit HTTP requests and based on some parameters the
> second part is the java executable file which will validate in the backend
> some parameters for about ETA of 4 hours from the start of the test.
> My first part from JMeter might complete in 5-10 minutes , so I did not
> want the Jmeter to be kept on running for the next 4 hours with respect to
> the second part, so that's why thought of making the second part as an
> independent backend process.
>
> So I checked the OS Process Sampler, to "launch" a java executable file as
> per  but I guess OS Process Sampler will wait till the binary execution
> completes to record execution time, return code, any output, etc.
> So below you are talking of the wrapper script , can you help me with it
> so that test continues and the executable is just executed in the backend.
>
> Regards,
> Soumya
>
> -Original Message-
> From: Deepak Shetty 
> Sent: Saturday, August 11, 2018 10:40 PM
> To: JMeter Users List 
> Subject: Re: JAVA Program as a Service
>
> Hi Soumya
> Note that if you want to use the OS process sampler and you genuinely have
> a need for "the java program runs independently in the background without
> JMeter waiting for it to complete execution" then you have to write a
> wrapper script to run the process in the background and call that wrapper
> script from the OS process sampler. Its a different matter that launching a
> executable from JMeter and then not caring what it does and when it
> finishes is typically not a good thing!
>
> On Sat, Aug 11, 2018 at 7:11 AM sebb  wrote:
>
> > Or
> >
> >
> > http://jmeter.apache.org/usermanual/component_reference.html#OS_Proces
> > s_Sampler
> >
> > On 10 August 2018 at 17:00, Kirk Pepperdine
> > 
> > wrote:
> > > Runtime.exec in a bean shell???
> > >
> > >> On Aug 10, 2018, at 11:00 AM, Nayak, Soumya R. 
> > wrote:
> > >>
> > >> Hi All,
> > >>
> > >> I have written a java program. So when i run a script in JMeter,
> > >> the
> > java program has to be invoked from the script and the java program
> > runs independently in the background without JMeter waiting for it to
> > complete execution. The program when running independently completes
> > the task and stops automatically.
> > >> So how can I invoke a java program from JMeter which runs
> > >> independently
> > in the background. Please help.
> > >>
> > >> 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
> > >
> > >
> > > 
> > > - 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
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>


Re: JAVA Program as a Service

2018-08-11 Thread Deepak Shetty
Hi Soumya
Note that if you want to use the OS process sampler and you genuinely have
a need for "the java program runs independently in the background without
JMeter waiting for it to complete execution" then you have to write a
wrapper script to run the process in the background and call that wrapper
script from the OS process sampler. Its a different matter that launching a
executable from JMeter and then not caring what it does and when it
finishes is typically not a good thing!

On Sat, Aug 11, 2018 at 7:11 AM sebb  wrote:

> Or
>
>
> http://jmeter.apache.org/usermanual/component_reference.html#OS_Process_Sampler
>
> On 10 August 2018 at 17:00, Kirk Pepperdine 
> wrote:
> > Runtime.exec in a bean shell???
> >
> >> On Aug 10, 2018, at 11:00 AM, Nayak, Soumya R. 
> wrote:
> >>
> >> Hi All,
> >>
> >> I have written a java program. So when i run a script in JMeter, the
> java program has to be invoked from the script and the java program runs
> independently in the background without JMeter waiting for it to complete
> execution. The program when running independently completes the task and
> stops automatically.
> >> So how can I invoke a java program from JMeter which runs independently
> in the background. Please help.
> >>
> >> 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
> >
> >
> > -
> > 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
>
>


Re: Query on capturing the session id from cookie manager

2018-08-08 Thread Deepak Shetty
If you are using Cookie Manager and your application is using cookies then
typically you shouldnt have to do anything else (like extracting the
session id from the header and setting it - this is only needed for some
advanced use cases ) - So first confirm that you really need to do what you
are doing.

This regex is incorrect
Set-Cookie\s*:\sCMS_JSESSIONID=([^;]) ==> You would extract only the first
character . This should be ([^;]*). .Ensure you have selected response
headers in the radio button and this post processor is the child of the
request that is setting the cookie. Also your response says
ASP.NET_SessionID but you are looking for something named CMS_JSESSIONID -
is this correct ?
Add a debug sampler so you can see what you got.


On Wed, Aug 8, 2018 at 7:28 AM, krish na 
wrote:

> Hi,
> My session id's are stored in login Page like below:  (After adding Cookie
> manager in Request Data will looks like below)
> Cookie Data:IsAlreadyLoaded=1; ASP.NET_SessionId=r0jd02mhmkmctduxzsazprfd
> I'm using Regular Expression Extractor but not sure how to define the
> pattern to capture the above scenario.
> i'm using like below:
> variable - COOKIE_CMS_JSESSIONIDreg expression - 
> Set-Cookie\s*:\sCMS_JSESSIONID=([^;])Template
> - $1Smatch no - 1default value - Not Found
> Also using JSR223 PostProcessor and the groovy script below:
> def author = vars.get("COOKIE_CMS_JSESSIONID")log.info ("Session id is
> ${COOKIE_CMS_JSESSIONID}")
> After running when i check the log viewer the output is:
> 2018-08-08 19:52:29,397 INFO o.a.j.e.StandardJMeterEngine: Running the
> test!2018-08-08 19:52:29,397 INFO o.a.j.s.SampleEvent: List of
> sample_variables: []2018-08-08 19:52:29,407 INFO o.a.j.g.u.JMeterMenuBar:
> setRunning(true, *local*)2018-08-08 19:52:29,417 INFO
> o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread
> Group2018-08-08 19:52:29,417 INFO o.a.j.e.StandardJMeterEngine: Starting 1
> threads for group Thread Group.2018-08-08 19:52:29,417 INFO
> o.a.j.e.StandardJMeterEngine: Thread will continue on error2018-08-08
> 19:52:29,417 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1
> threads=1 ramp-up=1 perThread=1000.0 delayedStart=false2018-08-08
> 19:52:29,417 INFO o.a.j.t.ThreadGroup: Started thread group number
> 12018-08-08 19:52:29,417 INFO o.a.j.e.StandardJMeterEngine: All thread
> groups have been started2018-08-08 19:52:29,417 INFO o.a.j.t.JMeterThread:
> Thread started: Thread Group 1-12018-08-08 19:52:31,154 INFO
> o.a.j.e.JSR223PostProcessor: Session id is Not Found2018-08-08 19:52:31,384
> INFO o.a.j.e.JSR223PostProcessor: Session id is Not Found2018-08-08
> 19:52:32,648 INFO o.a.j.e.JSR223PostProcessor: Session id is Not
> Found2018-08-08 19:52:34,891 INFO o.a.j.e.JSR223PostProcessor: Session id
> is Not Found2018-08-08 19:52:36,446 INFO o.a.j.e.JSR223PostProcessor:
> Session id is Not Found2018-08-08 19:52:36,680 INFO
> o.a.j.e.JSR223PostProcessor: Session id is Not Found2018-08-08 19:52:36,910
> INFO o.a.j.e.JSR223PostProcessor: Session id is Not Found2018-08-08
> 19:52:37,902 INFO o.a.j.e.JSR223PostProcessor: Session id is Not
> Found2018-08-08 19:52:38,818 INFO o.a.j.e.JSR223PostProcessor: Session id
> is Not Found2018-08-08 19:52:39,068 INFO o.a.j.e.JSR223PostProcessor:
> Session id is Not Found2018-08-08 19:52:39,752 INFO
> o.a.j.e.JSR223PostProcessor: Session id is Not Found2018-08-08 19:52:39,752
> INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-12018-08-08
> 19:52:39,752 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group
> 1-12018-08-08 19:52:39,752 INFO o.a.j.e.StandardJMeterEngine: Notifying
> test listeners of end of test2018-08-08 19:52:39,752 INFO
> o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
>
> Kindly help me to over come the above issue.
>
>
> Regards,
> Krishna - +91-9884451279.
>
> CallSend SMSAdd to SkypeYou'll need Skype CreditFree via Skype


Re: JDBC request - Single Query running as segregated

2018-08-08 Thread Deepak Shetty
Attachments dont make the list - upload them somewhere and provide the link
>I'm giving below Single SQl query via JDBC but its giving output by taking
every column as a separate sql query
Im not sure what you mean by this - Im assuming you are referring to what
happens when you specify variable names for the columns which is described
here
http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request


On Mon, Aug 6, 2018 at 2:57 AM, Prateek Dua  wrote:

> Here is the structure of my test plan
>
> On Sun, Aug 5, 2018 at 12:43 AM, Prateek Dua 
> wrote:
>
>> Hi,
>>
>> I'm giving below Single SQl query via JDBC but its giving output by
>> taking every column as a separate sql query.. please find attached below
>> JDBC pool , JDBC request settings & response.
>>
>>
>> SELECT `flight_seat`.`id`, `flight_seat`.`paymentid_id`,
>> `flight_seat`.`bookingid`, `flight_seat`.`sector`,
>> `flight_seat`.`traveldate`, `flight_seat`
>> .`airlinepnr`, `flight_seat`.`seatno`, `flight_seat`.`seatfee`,
>> `flight_seat`.`passengername`, `flight_seat`.`paymentstatus`,
>> `flight_seat`.`airlinec
>> heckinstatus`, `flight_seat`.`optedcheckin`,
>> `flight_seat`.`checkinstatus`, `flight_seat`.`pdfurl`,
>> `flight_seat`.`notificationsent`, `flight_seat`.`
>> createdon`, `flight_seat`.`modifiedon`, `flight_seat`.`modifiedBy`,
>> `flight_seat`.`comments` FROM `flight_seat` WHERE `flight_seat`.`bookingid`
>> = 'M6
>> EEL1MVE' LIMIT 1;
>>
>>
>> please help me in getting it solved.
>>
>
>
> ::DISCLAIMER::
>
> 
> 
> 
>
>
> This message is intended only for the use of the addressee and may contain
> information that is privileged, confidential and exempt from disclosure
> under applicable law. If the reader of this message is not the intended
> recipient, or the employee or agent responsible for delivering the message
> to the intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited. If
> you have received this e-mail in error, please notify us immediately by
> return e-mail and delete this e-mail and all attachments from your system.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>


Re: Bean shell for 90 percentile calculation

2018-01-21 Thread Deepak Shetty
Hi
I would use http://jmeter.apache.org/usermanual/realtime-results.html
If you still want to do some home grown solution then you can look at the
source code of the implementation of the backend listeners provided out of
box

regards
deepak

On Thu, Jan 18, 2018 at 8:50 PM, Kuruva Madhu Sekhar <
madhuvchand...@gmail.com> wrote:

> Yes Deepak, We want capture it at run time.
>
> Any help on this?
>
> Thanks,
> Madhu
>
> On 18-Jan-2018 11:32 PM, "Deepak Shetty"  wrote:
>
> > Its not clear what you want to do.  If you want to just find the 90% at
> the
> > end and there isn't that much data then just load into excel (a program
> to
> > calculate it is also trivial).
> > or you want a running view of the 90% values
> >
> > On Thu, Jan 18, 2018 at 12:12 AM, Kuruva Madhu Sekhar <
> > madhuvchand...@gmail.com> wrote:
> >
> > > Hi Team,
> > >
> > > We are considering response times from response page not from Aggregate
> > > report.
> > >
> > > Help me in giving bean shell code for 90 percentile calculation of
> > > collected response times which are collected to CSV/TSV.
> > >
> > >
> > >
> > > Thanks,
> > > Madhu
> > > 7981922738
> > >
> >
>


Re: Bean shell for 90 percentile calculation

2018-01-18 Thread Deepak Shetty
Its not clear what you want to do.  If you want to just find the 90% at the
end and there isn't that much data then just load into excel (a program to
calculate it is also trivial).
or you want a running view of the 90% values

On Thu, Jan 18, 2018 at 12:12 AM, Kuruva Madhu Sekhar <
madhuvchand...@gmail.com> wrote:

> Hi Team,
>
> We are considering response times from response page not from Aggregate
> report.
>
> Help me in giving bean shell code for 90 percentile calculation of
> collected response times which are collected to CSV/TSV.
>
>
>
> Thanks,
> Madhu
> 7981922738
>


Re: Not able to login through JMeter script

2018-01-16 Thread Deepak Shetty
Hi
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cache_Manager
Shouldnt be related to your problem

You need to check every request/response and see whats different

On Fri, Jan 12, 2018 at 11:14 PM, Pravesh Shrivastava <
pravesh.shrivast...@gmail.com> wrote:

> Hi All,
>
> I am using JMeter for Load Testing of my application. I have done all the
> correlations but still login is failing. While after following the same
> steps NeoLoad and LoadRuner are logging in.
>
> I have added cookie manager but not added cache manager.
>
> Kindly let me know if cache manager is required and what is the
> significance of using cache?
>
> --
> Regards
> Pravesh Shrivastava
> +91-7755918521
>


Re: JMeter Distributed Load test Query

2018-01-16 Thread Deepak Shetty
Hi
a. Please use separate threads for separate issues - it is difficult to
follow
b. Please check JMeter logs for errors when things do not work
c. Please provide more useful descriptions of what you did , what did or
did not work etc. e.g. I put multiple IF controllers , it did not work is
not useful.


In your case
a. First get a basic script to work with master - slave (hence eliminate
any connectivity , setup errors) -
https://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.pdf
b. Then get the threads suggestion working if you want to vary load -
However consider  why you want different slaves to generate different loads
c. Then add more complex steps into your script and resolve each issue as
it arises.
As before use a separate topic for each distinct issue that you may run into

regards
deepak


On Mon, Jan 15, 2018 at 10:10 PM, Nayak, Soumya R. 
wrote:

> Also ,
>
> I am not getting the response data from slave machines to the master.
> I had put mode= Standard in user.properties in all slave machines but
> still not returning.
>
> Regards,
> soumya
>
> -Original Message-
> From: Nayak, Soumya R.
> Sent: Tuesday, January 16, 2018 11:19 AM
> To: 'JMeter Users List' ;
> jmeter-u...@jakarta.apache.org
> Subject: RE: JMeter Distributed Load test Query
>
> Hi,
>
> I tried with the below configurations putting IF condition for each slave
> machine, in that if condition I have declared User defined variables, But
> what is happening its picking up the last IF condition parameters
> irrespective of machine IP and machine name.
> So please let me know how to handle the condition ??
>
> Regards,
> Soumya
>
> -Original Message-
> From: glin...@live.com [mailto:glin...@live.com]
> Sent: Monday, January 8, 2018 4:44 PM
> To: jmeter-u...@jakarta.apache.org
> Subject: Re: JMeter Distributed Load test Query
>
>  1. You can choose how many threads will be started for this or that slave
> machine by setting the number of threads in  Thread Group <
> http://jmeter.apache.org/usermanual/component_reference.html#Thread_Group>
> (s) using  __P() function
>    like
>
>
> > ${__P(threads)}
>
>
>
> Once done you can define the desired number of threads on each slave in
> /user.properties/ file , i.e. on 1st slave:
>
>
> > threads=15
>
> on 2nd slave
>
>
> > threads=25
>
> 2. You can switch code execution lines depending on slave machine using
> If Controller  reference.html#If_Controller>
> and  __machineName()
>    or
> __machineIP()
> 
> functions combination like:
>
>
> >  - If Controller, condition: "${__machineIP()}" == "10.10.10.11"
> >- requests for slave with IP address 10.10.10.11
>
> 3. You can set *mode=Standard* property for all slaves, this way they will
> send full results to master as soon as they will be generated. This way you
> will be able to "normally" analyse the .JTL results file in the realtime.
> See  Using a different sample sender
>    for
> more
> details.
>
> Reference material:
>
>  1.  Remote Testing 
>  2.  How to Perform Distributed Testing in JMeter <
> https://www.blazemeter.com/blog/how-to-perform-
> distributed-testing-in-jmeter>
>  3.  JMeter Distributed Testing Step-by-step  usermanual/jmeter_distributed_testing_step_by_step.pdf>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
> 
> **
> 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
>
>
> -
> To

Re: Jmeter Data Driven Load tests

2017-12-28 Thread Deepak Shetty
The easiest way is a setup thread group that executes a JDBC sampler and
saves this data to a CSV file (or do this before your test starts)
There are other ways to share data but usually need more effort - is there
some reason why the above wont work for you?


On Tue, Dec 26, 2017 at 6:07 AM, Nayak, Soumya R. 
wrote:

> Hi ,
>
> As I am using MYSQL the connection configuration is done and I have
> uploaded the particular driver for the same also.
>
> The issue of mine is let's say in a thread group I have given no of
> virtual users as 7.
> I have 10 records in my DB. I have to process these 10 records uniquely be
> each thread sharing across all 7 threads.
> For eg -- Thread 1 processes row 1  in DB table
>   Thread 2 processes row 2  in DB table
>   Thread 3 processes row 3
>   Thread 4 processes row 4
>   Thread 5 processes row 5
>   Thread 6 processes row 6
>   Thread 7 processes row 7
>   Thread 1 processes row 8
>   Thread 2 processes row 9
>   Thread 3 processes row 10.
>
> SO, all the threads have to uniquely process all the rows of the DB till
> the end of DB table.
>
> SO how to accomplish the above in Jmeter? (As of now the sharing of data
> among threads is possible only in CSV using CSV config Element)
>
> Regards,
> Soumya
>
>
> -Original Message-
> From: Konstantin Kalinin [mailto:konstan...@kkalinin.pro]
> Sent: Tuesday, December 26, 2017 7:17 PM
> To: JMeter Users List 
> Subject: Re: Jmeter Data Driven Load tests
>
> Hi!
> Isn't a pack of JDBC* components - your case?
> http://jmeter.apache.org/usermanual/component_reference.html#JDBC_
> Connection_Configuration
> http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request
> http://jmeter.apache.org/usermanual/component_reference.html#JDBC_
> PreProcessor
> http://jmeter.apache.org/usermanual/component_reference.html#JDBC_
> PostProcessor
>
> You'll only have to download an appropriate driver for your particular
> DBMS.
>
> 26.12.2017, 17:41, "Nayak, Soumya R." :
> > Hi,
> >
> > As of now we have "CSV config element" for using the CSV as data file in
> which we can even share the resources across threads or threadgroups.
> > Similarly do we have any element or plugin where we can give datasource
> as Database or Directory rather than CSV.
> > Please help me as I have Database as the data source as of now where I
> have to pick up files and process them by sharing all the data uniquely
> across the threads or virtual users.
> >
> > 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
>
> --
> Konstantin Kalinin
> +7 912 468 00 00
>
> -
> 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
>


Re: Gateway Timeout Errors

2017-12-27 Thread Deepak Shetty
>What would be the reason for this
Difficult to say , its the app thats behaving badly!. What are the response
times you are seeing ? An example of systems that exhibit the behavior you
describe are systems that lazily load caches (with synchronized wait
behavior for other requests while the cache is being loaded OR all of the
other requests also try to load the cache) and hence initial requests take
a long time and so for e.g. if your first request is going to take 20
seconds then you will end up with 20 requests waiting (50 users with ramp
up of 50 seconds is 1 new request every second). If all are trying to load
cache you might even see more as everyone slows down everyone else.
By increasing your ramp-up you are reducing the initial load the system
sees - But does each thread just run 1 iteration only ? In which case yes ,
you probably have very little concurrency.

Note , for most test scripts , Ramp Up is meant to prevent a burst of
requests which may not represent your normal load. Your concurrency
*should* be determined by other factors (the duration your test runs after
all threads are created , the think times in your script etc). Think about
it this way. Say 50 users are sitting doing something on your website - not
everyone is actually doing something at the same time - most users will be
reading the page for e.g. - but maybe 10 of those click a link at the same
time - the concurrency your system sees is approx 10. In your test you
might still model this as 50 threads (for 50 users) but create your script
such that the system sees about 10 requests at the same time. What the Ramp
up controls is that your system doesnt see 50 requests immediately as soon
as the test starts .


On Tue, Dec 19, 2017 at 12:44 AM, Riji K  wrote:

> Hi All,
>
> I'm running a 50 User concurrent test with 50seconds RUT on a
> web-application, which results in higher number of "Gateway Timeout
> Errors".
>
> With Increasing the ramp-up to 1000 seconds RUT, the errors were not
> observed.
>
> What would be the reason for this. I think 50 seconds  ramp-up is
> sufficient for the user. Also would i like to know if i give 1000 seconds
> ramp-up for 50 user, will be any concurrency.?
>
> Please help me.
>
> Regards,
> Riji K
>


Re: Is there a way to count all retries as single request in JMeter

2017-11-14 Thread Deepak Shetty
Hi
>"The generated sample is only regarded as successful if all its
sub-samples are successful."
Hence use your own custom assertion e.g.
http://jmeter.apache.org/usermanual/component_reference.html#JSR223_Assertion
(it possible to use the other assertions also depending on what gets
returned)

regards
deepak


On Mon, Nov 13, 2017 at 10:10 PM, Muhammad Nasir  wrote:

> Is there a way to mark transaction controller result as Successful if any
> of child sampler passes? According to JMeter documentation "The generated
> sample is only regarded as successful if all its sub-samples are
> successful."
>
> -Nasir
>
> On Mon, Nov 13, 2017 at 10:58 PM, Deepak Shetty  wrote:
>
> > I'd probably use a transaction controller + custom assertions (it should
> > mark every retry other than the last successful , even if status is not
> > 200)
> > http://jmeter.apache.org/usermanual/component_reference.
> > html#Transaction_Controller
> >
> > I do think this might be easier to do in your report rather than trying
> to
> > manipulate your test -Let Jmeter generate its raw data (all samples that
> > are retried can use a sample name naming pattern to figure out they are
> the
> > same thing) and then when you report exclude whatever you dont want.
> >
> > On Mon, Nov 13, 2017 at 6:44 AM, Muhammad Nasir 
> wrote:
> >
> > > Hello Antonio,
> > >
> > > Is there a way to mark transaction controller result as Successful if
> any
> > > of child sampler passes?
> > > Thanks for your feedback.
> > >
> > > --Nasir
> > > On Fri, Nov 10, 2017 at 7:05 PM, Antonio Gomes Rodrigues <
> > ra0...@gmail.com
> > > >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Use a Transaction Controller :
> > > > http://jmeter.apache.org/usermanual/component_
> > > reference.html#Transaction_
> > > > Controller
> > > >
> > > > Antonio
> > > >
> > > >
> > > > 2017-11-09 18:02 GMT+01:00 Muhammad Nasir :
> > > >
> > > > > Anyone to help on this?
> > > > >
> > > > > --
> > > > > Nasir
> > > > >
> > > > > > On 09-Nov-2017, at 10:59 AM, Muhammad Nasir 
> > > wrote:
> > > > > >
> > > > > > I am having false reporting due to number of retries. I have
> > > > implemented
> > > > > a retry mechanism as
> > > > > > " ${__jexl3(("${Login_Code}" != "200") && ("${Login_Counter}" <=
> > > > "2"))} "
> > > > > >
> > > > > > Let's say I am executing a request which retries for 2 times and
> > then
> > > > > Failed is actually reported as 3 independent requests on
> > > > Aggregate/Results
> > > > > Tree Reports.
> > > > > >
> > > > > > Is there a way to report this as single failure because this is
> > > > > ultimately a single request with 2 retries?
> > > > > >
> > > > > > Note: I tried following solution and its not working either
> > > > > > import org.apache.jmeter.samplers.SampleResult;
> > > > > >
> > > > > > if (new String(ResponseData).equals("message")) {
> > > > > > SampleResult result = ctx.getCurrentSampler().sample(null);
> > > > > > if (result.getResponseDataAsString().equals("message")) {
> > > > > > Failure = true;
> > > > > > } else {
> > > > > > SampleResult.setSuccessful(true);
> > > > > > }
> > > > > >
> > > > > > }
> > > > > >
> > > > > > Thanks,
> > > > > > Nasir
> > > > >
> > > >
> > >
> >
>


Re: how many threads we can run with webdriver sampler

2017-11-13 Thread Deepak Shetty
Hi
The short answer is you need to figure out the number that works for you on
your test infrastructure for your test application and that you need to
validate your observations.

The longer answer is - first you need to differentiate between How many
could I theoretically launch v/s How many could I launch and still generate
the load with high degree of fidelity. For e.g. if JMeter says it is
running 100 threads concurrently , are you really seeing ~100 requests at
the same time on your server ?. Assuming you mean the latter then many more
factors come into play . To use an analogy - the question you are asking is
akin to "how many browser tabs can you open on your laptop ? " - Does it
matter if you are browsing a site or whether you are streaming a movie or
god forbid accessing a site with flash ?

So you need to look at CPU , memory , network and your test and your
application (for e.g. if your test has largish think times and your
applications take a few seconds to respond , its quite possible to simulate
a higher number of users )
WebDriver does take up more resources than normal HTTP Samplers so the load
you can generate is lower. I havent used the later versions of Selenium but
the older ones did really drive a browser instance so the question did
genuinely become how many browsers could run with reasonable speed on the
test machine.

>C = B + 1 where C = Number of Cores of the host running the test and N =
Number of Browser (threads).
Assuming that you want 0 overhead and no switching etc. If your tests have
0 think times and your requests respond very quickly maybe you might start
with this formula- Usually you will use higher values than this.




On Mon, Nov 13, 2017 at 8:27 PM, Rajiv Nanduani <
rajivkumarnandv...@gmail.com> wrote:

> thanks bob for the reply but i am surprised with this number like 2000 or
> 10k while it says if your CPU core like 4 processor than you can use upto 3
> threads please see below references so i am confused now which is is
> correct?
>
> Meter allows the creation of multiple threads, and each thread is
> responsible for creating load on the server. However, for the Web Driver
> use case, the reader should be prudent in the number of threads they will
> create as each thread will have a single browser instance associated with
> it. Each browser consumes a significant amount of resources, and a limit
> should be placed on how many browsers the reader should create. However,
> the load testing cloud providers may help to scale WebDriver test up to
> thousands of real browsers, look at BlazeMeter
>  medium=cpc&utm_content=jmpininnerpgs&utm_campaign=WebDriverPlugin>
> for
> example.
>
> From experience, the number of browser (threads) that the reader creates
> should be limited by the following formula:
>
> C = B + 1
>
> where C = Number of Cores of the host running the test
> and N = Number of Browser (threads).
>
> eg, if the current reader's host has 4 cores, the formula would yield:
>
> 4 = 3 + 1
>
> meaning that the script should have a MAXIMUM of 3 threads.
>
> This might should a little limiting. However, it is important to note that
> this is mainly used to complement JMeter's HTTP Sampler. The Web Driver
> Sampler  is meant to be
> run in conjunction with a HTTP Sampler so that from the server's
> perspective, the load is production like. At the same time, the web sampler
> will simulate the user experience of interacting with the website/webapp
> whilst the server is under load, hence measuring the real user's experience
> at the same time.
>
> On Mon, Nov 13, 2017 at 11:34 PM, Bob Small 
> wrote:
>
> > Well if you are using the GUI not much, I see limits of say 2000, if you
> > are command line you can use more, but again it does depend on your CPU.
> > If you have say an intel i5 likely you are going to run out maybe around
> > 10k, but it has many factors, network, app response, what calls you are
> > making etc.  Play with it and test out to see where your system brakes
> > down.  Also you can move to Blazemeter or AWS for more threads, and
> bigger
> > runs.
> >
> > Bob Small
> > QA Automation
> >
> > Development
> > Blackboard Transact
> >
> > T: 602.752.6301
> > blackboard.com/transact
> >
> >
> >
> > -Original Message-
> > From: Rajiv Nanduani [mailto:rajivkumarnandv...@gmail.com]
> > Sent: Monday, November 13, 2017 9:54 AM
> > To: user@jmeter.apache.org
> > Subject: how many threads we can run with webdriver sampler
> >
> > hi, i would like to know through jmeter using webdriver sampler how many
> > threads we can run as it says it depends on CPU core.
> >
> > thanks
> > This email and any attachments may contain confidential and proprietary
> > information of Blackboard that is for the sole use of the intended
> > recipient. If you are not the intended recipient, disclosure, copying,
> > re-distribution or other use of any of this informa

Re: Is there a way to count all retries as single request in JMeter

2017-11-13 Thread Deepak Shetty
I'd probably use a transaction controller + custom assertions (it should
mark every retry other than the last successful , even if status is not 200)
http://jmeter.apache.org/usermanual/component_reference.html#Transaction_Controller

I do think this might be easier to do in your report rather than trying to
manipulate your test -Let Jmeter generate its raw data (all samples that
are retried can use a sample name naming pattern to figure out they are the
same thing) and then when you report exclude whatever you dont want.

On Mon, Nov 13, 2017 at 6:44 AM, Muhammad Nasir  wrote:

> Hello Antonio,
>
> Is there a way to mark transaction controller result as Successful if any
> of child sampler passes?
> Thanks for your feedback.
>
> --Nasir
> On Fri, Nov 10, 2017 at 7:05 PM, Antonio Gomes Rodrigues  >
> wrote:
>
> > Hi,
> >
> > Use a Transaction Controller :
> > http://jmeter.apache.org/usermanual/component_
> reference.html#Transaction_
> > Controller
> >
> > Antonio
> >
> >
> > 2017-11-09 18:02 GMT+01:00 Muhammad Nasir :
> >
> > > Anyone to help on this?
> > >
> > > --
> > > Nasir
> > >
> > > > On 09-Nov-2017, at 10:59 AM, Muhammad Nasir 
> wrote:
> > > >
> > > > I am having false reporting due to number of retries. I have
> > implemented
> > > a retry mechanism as
> > > > " ${__jexl3(("${Login_Code}" != "200") && ("${Login_Counter}" <=
> > "2"))} "
> > > >
> > > > Let's say I am executing a request which retries for 2 times and then
> > > Failed is actually reported as 3 independent requests on
> > Aggregate/Results
> > > Tree Reports.
> > > >
> > > > Is there a way to report this as single failure because this is
> > > ultimately a single request with 2 retries?
> > > >
> > > > Note: I tried following solution and its not working either
> > > > import org.apache.jmeter.samplers.SampleResult;
> > > >
> > > > if (new String(ResponseData).equals("message")) {
> > > > SampleResult result = ctx.getCurrentSampler().sample(null);
> > > > if (result.getResponseDataAsString().equals("message")) {
> > > > Failure = true;
> > > > } else {
> > > > SampleResult.setSuccessful(true);
> > > > }
> > > >
> > > > }
> > > >
> > > > Thanks,
> > > > Nasir
> > >
> >
>


Re: JMeter - Ant Integration: JTL file does not exist

2017-11-10 Thread Deepak Shetty
The .jtl file should have been created when your test ran - So if its not
there there is probably some issue preventing it from being created.
The build file should create a ${testpath}/${test}.log file - if thats not
getting created there is a permissions issue or incorrect path or something
like that

If you still cant figure out you might need to add debug and verbose flags
to ANT to see the exact commands getting fired and then run them manually
and see

Check your options to the build file too. And finally 2.13 is really old

from build.xml
To run a test and create the output report:
ant -Dtest=script

To run a test only:
ant -Dtest=script run

To run report on existing test output
ant -Dtest=script report

The "script" parameter is the name of the script without the .jmx
suffix.

Additional options:
-Dshow-data=y - include response data in Failure Details
-Dtestpath=xyz - path to test file(s) (default user.dir).
 N.B. Ant interprets relative paths against the
build file
-Djmeter.home=.. - path to JMeter home directory (defaults to
parent of this build file)
-Dreport.title="My Report" - title for html report (default is
'Load Test Results')


On Fri, Nov 10, 2017 at 3:17 AM, Saraswathi Syam  wrote:

> Hi Team,
>
> I am trying to integrate JMeter with Ant to generate html reports and few
> graphs.
>
> But I am getting the error as "*JTL file does not exist.*" and unable to
> generate the log file also.
>
> This is the content available in my command prompt:
>
> *Buildfile:
> C:\Softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\build.xml*
>
> *run:*
> * [echo] funcMode = false*
> *   [jmeter] Executing test plan:
> C:\Softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\CALive_localhost_1.jmx
> ==>
> C:\Softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\CALive_localhost_1.jtl*
>
> *_message_xalan:*
>
> *xslt-report:*
>
> *BUILD FAILED*
> *C:\Softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\build.xml:133:
> input file
> C:\Softwares\apache-jmeter-2.13\apache-jmeter-2.13\extras\CALive_localhost_1.jtl
> does not exist*
>
> *Total time: 3 seconds*
>
> Few forums showing that the ANT itself generates the JTL file and HTML
> reports and few are showing that we need to create a JTL file before
> starting the execution.
>
> Do I need to generate a JTL in advance and keep that file in JMeter extras
> folder before starting the actual execution???
>
> For reference I am attaching my build.xml file and screenshot of ant.
>
> Could anyone please help me to resolve this issue.
>
> Thanks in advance!!
>
> Regards,
> Saraswathi MNSB
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>


Re: Using CSV for POST json request

2017-10-26 Thread Deepak Shetty
You mean you have additional parameters ? They probabkly *should* be query
string parameters in which case  you can direct add them in the URL form in
the PATH text box.
You probably want to take a look at Parameter Handling in
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request

On Wed, Oct 25, 2017 at 12:53 PM, Moshe Recanati  wrote:

> Thank you but but than i cannot add parameters to the parameters window.
>
> On Oct 25, 2017 10:51 PM, "Deepak Shetty"  wrote:
>
> > Hi
> > Its the same thing - Use Post Body - copy the JSON there and read the
> > variable ${text} in the same way
> >
> > regards
> > deepak
> >
> >
> > On Wed, Oct 25, 2017 at 10:52 AM, Moshe Recanati 
> > wrote:
> >
> > > Hi,
> > > I've seen tutorial regarding passing variables for POST request using
> CSV
> > > https://guide.blazemeter.com/hc/en-us/articles/206733689-Usi
> > > ng-CSV-DATA-SET-CONFIG
> > >
> > > This is great for simple POST request.
> > >
> > > I would like to know how to implement it for complex JSON (body data)
> > > example. for example:
> > >
> > > {
> > >   "object": "page",
> > >   "entry": [
> > > {
> > >   "id": "205408099853466",
> > >   "time": 1508941958327,
> > >   "messaging": [
> > > {
> > >   "sender": {
> > > "id": "697363944"
> > >   },
> > >   "recipient": {
> > > "id": "267347623714743"
> > >   },
> > >   "timestamp": 1508941958168,
> > >   "message": {
> > > "mid": "mid.$cAAC60WkZtkxlhThUGFfU_MTupd31",
> > > "seq": 75192,
> > >* "text": "${text}"*
> > >   }
> > > }
> > >   ]
> > > }
> > >   ]
> > > }
> > >
> > > while text should be a parameter from a file.
> > >
> > > Thank you in advance,
> > > Moshe
> > >
> >
>


Re: Using CSV for POST json request

2017-10-25 Thread Deepak Shetty
Hi
Its the same thing - Use Post Body - copy the JSON there and read the
variable ${text} in the same way

regards
deepak


On Wed, Oct 25, 2017 at 10:52 AM, Moshe Recanati  wrote:

> Hi,
> I've seen tutorial regarding passing variables for POST request using CSV
> https://guide.blazemeter.com/hc/en-us/articles/206733689-Usi
> ng-CSV-DATA-SET-CONFIG
>
> This is great for simple POST request.
>
> I would like to know how to implement it for complex JSON (body data)
> example. for example:
>
> {
>   "object": "page",
>   "entry": [
> {
>   "id": "205408099853466",
>   "time": 1508941958327,
>   "messaging": [
> {
>   "sender": {
> "id": "697363944"
>   },
>   "recipient": {
> "id": "267347623714743"
>   },
>   "timestamp": 1508941958168,
>   "message": {
> "mid": "mid.$cAAC60WkZtkxlhThUGFfU_MTupd31",
> "seq": 75192,
>* "text": "${text}"*
>   }
> }
>   ]
> }
>   ]
> }
>
> while text should be a parameter from a file.
>
> Thank you in advance,
> Moshe
>


Re: Need some help with HTTP responses and Assertions.

2017-09-28 Thread Deepak Shetty
Im not sure I understand your issue exactly but hopefully this will clarify
a couple of things.

In JMeter , every request/response can be asserted against , but there are
a couple of flags that control whether you can do it on JMeter with some
implications for your test case.
The way I understand your issue is you are logging in , and then there are
a bunch of redirects that take you to the home page (or some page) and you
are writing asserts for this final page , but you'd rather write asserts
for the first post ?
The HTTP Request in JMeter has the Follow Redirects which controls whether
JMeter automatically follows redirects - If you do not want to this , then
uncheck it. Once you do that you can inspect /assert the response returned
. However your test script has to change to extract the URL being
redirected to and then a new sampler that actually makes a new request for
this URL.(You can use transaction controllers if you want both individual
times and grouped up times)

So effective you can either do
Request 1 (Follow Redirects = true, redirect automatically false)
   (Request 2,3,4,..n)
   Assert final

OR
Request 1(Follow redirect = false, redirect automatically false)
+Assert1
+Regex extract , extract Location header into say url2)
+Assert 3xx response code

Request $url2 (follow redirects or not as required , if not then each
redirect needs its own request)

Note however in most systems there is really nothing to assert against in
Request 1 (other than status codes , if the system is issuing a redirect )
because there wont be a response - youll have to use a browser tool to
understand the request/response for your application

regards
deepak










On Thu, Sep 28, 2017 at 10:24 AM, Gratzer, Steve <
steve.grat...@aciworldwide.com.invalid> wrote:

> Currently I have a jmeter script that does a login to a site.  The issue I
> am running into is that when the login process completes, it goes through
> some redirects and finally drops you at the landing page.  The landing page
> is what I am using assertions on.  Essentially, this works fine, but with
> one problem.  The landing page takes 20+ seconds to load.  So, when the
> script submits (POST) the password to proceed, jmeter takes 20+ seconds to
> load the response and then another 20+ seconds to reload the page with a
> GET sampler to do assertions on.
>
> This looks ugly from a monitoring standpoint as those two actions consume
> 40+ seconds to complete.
>
> At this point, I would like to do the assertions against the resulting
> return of the POST sampler instead of doing an additional GET sampler which
> adds another 20+ seconds to the script duration, but it doesn't seem to
> work that way.  I am assuming that the POST sampler is what the assertions
> are having an issue with.  They do not alert for missing content.
>
> So, I am wondering if there is something I am missing?  Is my
> understanding not correct, or am I trying to do something that isn't
> available?
>
> I do need to follow the redirects after submitting the password to check
> the final returned URL.  It may return a security validation page that the
> script has to address, so I can't turn that off.  Optimally, I would like
> to find a way that I can run the assertions on the final return results of
> a POST request.  This way I won't be getting the page automatically after
> the POST and then having to do a GET in order to perform the assertions.
>
> Jmeter version is 2.13 (not my choosing, that is what I have to use).
>
> Order of sequence:
>
>
>   1.  Establish session / Get login page
>   2.  POST username
>   3.  GET password page
>   4.  POST password
>   5.  Check for additional security URL
>   6.  GET landing page
>
> 
> [https://www.aciworldwide.com/-/media/aci-footer] www.aciworldwide.com>
> This email message and any attachments may contain confidential,
> proprietary or non-public information. The information is intended solely
> for the designated recipient(s). If an addressing or transmission error has
> misdirected this email, please notify the sender immediately and destroy
> this email. Any review, dissemination, use or reliance upon this
> information by unintended recipients is prohibited. Any opinions expressed
> in this email are those of the author personally.
>


Re: Enable JMX Parameters on JMETER running Java Request Sampler

2017-06-29 Thread Deepak Shetty
Hi
Use JVM_ARGS from JMeter.bat
rem   Environment variables that can be defined externally:

rem   JVM_ARGS - additional java options, e.g. -Dprop=val


Its generally not a good practice to modify things that ship with the
JMeter installation since then you must remember to manually make changes
everytime you upgrade

On Thu, Jun 29, 2017 at 10:06 AM, Kiran Badi 
wrote:

> Hi All,
> How do I start jmeter 3.0x with below parameters
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=9010
> -Dcom.sun.management.jmxremote.local.only=false
> -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote.ssl=falseWhat is the ideal place to pass
> these parameters  or classpath parameters ? Sometimes I also need to pass
> explicit JDK Path while starting JMeter? Is JMeter.bat right place ?With
> Regards,
> Kiran Badi
> Email:kiranb...@yahoo.com
>
>


Re: Warming up Java servers before measuring performance

2017-05-24 Thread Deepak Shetty
>However, I believe that warming up the Java server is very important
especially when considering the JIT compilation in HotSpot JVM
In general , yes. But the question is does it apply to you(referring
specifically to the JMeter part of warm up) ? What are your typical
response times ? As well as what are the numbers you are looking at (We
usually use percentiles(90/95) rather than max which would eliminate
outliers in any case. Or to put it in another way are you really seeing a
difference in your response times if you "warm up" Jmeter v/s if you dont ?

Note that "warm up" for the application server is quite different - because
things like caches (both at application and DB layers) will usually drown
out any JVM warm up unless you have very very low response times or you
have highly specialised low latency type of applications.

On Tue, May 23, 2017 at 11:37 PM, Isuru Perera 
wrote:

> Hi Deepak,
>
> Thanks a lot for the reply.
>
> We are just using out of the box listeners for now.
>
> I agree that the excluding the warmup time may hide the issues.
>
> However, I believe that warming up the Java server is very important
> especially when considering the JIT compilation in HotSpot JVM. JMH (
> http://openjdk.java.net/projects/code-tools/jmh/) tool also warms up the
> methods before taking measurements.
>
> That's why I wanted to ask in this list whether other users have the same
> requirements to exclude warmup time from the final results.
>
> We can write a simple program to split the JTL, which will write warmup
> and measurement requests to two different file. In this way, we don't
> completely ignore the warmup time and we can compare the warmup results
> with the actual measurement results.
>
> Splitting the JTL seemed to be an additional work and we have to process
> large files again after the tests. I was wondering why JMeter didn't
> provide such a feature out of the box similar to JMH.
>
> Thanks!
>
> Best Regards,
>
>
> On Fri, May 19, 2017 at 11:37 PM, Deepak Shetty  wrote:
>
>> Hi
>> Your reporting engine of choice will usually support this filter. For most
>> non trivial load tests you have to analyze the data in either a DB or
>> something like graphite etc - Almost all of which will trivially allow you
>> to filter out time frames you dont want.
>> For out of box listeners , yes you could write a simple program to filter
>> values from JTL.
>>
>> Ive not found JMeter *warmup* to be a significant issue to matter in most
>> normal load tests (i.e. those that run for atleast an hour). The
>> application itself is a different matter but thats very application
>> specific.(And sometimes *warmup* hides issues)
>>
>> On Wed, May 17, 2017 at 11:48 PM, Isuru Perera 
>> wrote:
>>
>> > Hi,
>> >
>> > We are using JMeter to run load tests on our Java servers and we want to
>> > warm-up the application before taking measurements.
>> >
>> > For example, I want to have 10 minutes as the warm up time and 20
>> minutes
>> > as the measurement time.
>> >
>> > I see two approaches to this.
>> >
>> > 1. Run JMeter for 30 minutes and exclude first 10 minutes data in the
>> JTL
>> > file and generate reports.
>> > 2. Run JMeter for 10 minutes and run again for 20 minutes. Generate
>> reports
>> > from 20 minutes JTL file.
>> >
>> > We prefer number 1, as the Java server will be in a steady state when
>> > taking measurements. However for approach 1, we need to find a way to
>> > exclude first few minutes of data. We can do this with a simple program.
>> >
>> > Number 2 approach may not be useful as we are restarting the JMeter and
>> it
>> > will take some time get a steady throughput.
>> >
>> > I searched the web and I found following Stackoverflow question.
>> > http://stackoverflow.com/questions/32237837/how-to-
>> > exclude-warmup-time-from-jmeter-summary
>> >
>> > With GraphsGeneratorListener
>> > <http://jmeter-plugins.org/wiki/GraphsGeneratorListener/>, it seems
>> that I
>> > can only generate reports. Is there any other way to just exclude first
>> few
>> > minutes in the JTL and then use the JTL to generate reports (for
>> example,
>> > JMeter Dashboard). Is that listener the only standard way to exclude
>> > warm-up time in JMeter?
>> >
>> > Why don't I see anything mentioned about Java Warm-up time in official
>> > docs? Since JMeter is based on Java, I expected some guidelines to load
>> > test Java servers and how to exclude Java warm-up time. I think we
>> should
>> > also consider the warm-up time of JMeter. With approach 1, we can also
>> make
>> > sure that JMeter is also performing at its best when taking the
>> > measurements.
>> >
>> > I really appreciate your feedback on this.
>> >
>> > Thank you.
>> >
>> > Best Regards,
>> > --
>> > Isuru Perera
>> > about.me/chrishantha
>> >
>>
>
>
>
> --
> Isuru Perera
> about.me/chrishantha
>


Re: Warming up Java servers before measuring performance

2017-05-19 Thread Deepak Shetty
Hi
Your reporting engine of choice will usually support this filter. For most
non trivial load tests you have to analyze the data in either a DB or
something like graphite etc - Almost all of which will trivially allow you
to filter out time frames you dont want.
For out of box listeners , yes you could write a simple program to filter
values from JTL.

Ive not found JMeter *warmup* to be a significant issue to matter in most
normal load tests (i.e. those that run for atleast an hour). The
application itself is a different matter but thats very application
specific.(And sometimes *warmup* hides issues)

On Wed, May 17, 2017 at 11:48 PM, Isuru Perera 
wrote:

> Hi,
>
> We are using JMeter to run load tests on our Java servers and we want to
> warm-up the application before taking measurements.
>
> For example, I want to have 10 minutes as the warm up time and 20 minutes
> as the measurement time.
>
> I see two approaches to this.
>
> 1. Run JMeter for 30 minutes and exclude first 10 minutes data in the JTL
> file and generate reports.
> 2. Run JMeter for 10 minutes and run again for 20 minutes. Generate reports
> from 20 minutes JTL file.
>
> We prefer number 1, as the Java server will be in a steady state when
> taking measurements. However for approach 1, we need to find a way to
> exclude first few minutes of data. We can do this with a simple program.
>
> Number 2 approach may not be useful as we are restarting the JMeter and it
> will take some time get a steady throughput.
>
> I searched the web and I found following Stackoverflow question.
> http://stackoverflow.com/questions/32237837/how-to-
> exclude-warmup-time-from-jmeter-summary
>
> With GraphsGeneratorListener
> , it seems that I
> can only generate reports. Is there any other way to just exclude first few
> minutes in the JTL and then use the JTL to generate reports (for example,
> JMeter Dashboard). Is that listener the only standard way to exclude
> warm-up time in JMeter?
>
> Why don't I see anything mentioned about Java Warm-up time in official
> docs? Since JMeter is based on Java, I expected some guidelines to load
> test Java servers and how to exclude Java warm-up time. I think we should
> also consider the warm-up time of JMeter. With approach 1, we can also make
> sure that JMeter is also performing at its best when taking the
> measurements.
>
> I really appreciate your feedback on this.
>
> Thank you.
>
> Best Regards,
> --
> Isuru Perera
> about.me/chrishantha
>


Re: Jmeter corellation

2017-05-15 Thread Deepak Shetty
The closest thing to what you want is probably section called "User defined
variable replacement"
in
http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
while recording your script.
Otherwise yes its manual

On Sun, May 14, 2017 at 12:10 AM, Pravesh Prajapati <
prajapati.prav...@gmail.com> wrote:

> Hi Team,
> My script has n nuber of corelation.
> Is there is any way to do auto correlation in jmeter OR I have to do it
> manually by using regular expression extrator.
>
> Is there is any way to find the first occurance in response for the
> correlation value?
> --
> Regards,
> Pravesh prajapati.
> Mob:-9702600170
>


Re: Jmeter Hangs - Running 150 HTTP Requests

2017-03-16 Thread Deepak Shetty
> Regarding your first option, if I disable the result tree element while 
> running,
how will be I able to see the results for debugging.
You can use one of the less heavier listeners like
http://jmeter.apache.org/usermanual/component_reference.html#Save_Responses_to_a_file
http://jmeter.apache.org/usermanual/component_reference.html#Simple_Data_Writer
.

*Not as easy as View results tree


On Thu, Mar 16, 2017 at 3:58 AM, praveen tiwari 
wrote:

> Hi Felix,
>
> - Yes I have large responses.
>
> - Regarding your first option, if I disable the result tree element while
> running, how will be I able to see the results for debugging. When I record
> a script, I need to execute it once to see the response and get regular
> expression.
> I tried running in Non-GUI mode but after that I am not able to see the
> request in view result tree. Posted other mail in group with subject
> "Jmeter in Non-GUI Mode - Blank Request and Response".
>
> - Regarding second option, I downloaded latest files from "
> https://ci.apache.org/projects/jmeter/nightlies/";, this version also hangs
> when I execute whole flow and try to click on requests to see the result.
>
> *Files downloaded:*
> apache-jmeter-r1787116
> apache-jmeter-r1787116_src
>
> Not able to find help for "Run ant download_jars from the top-level
> directory to fetch the dependencies." mentioned on above site.
>
> In addition, I am trying to run jmeter from ant and getting below error,
> reference (
> http://testingfreak.com/step-by-step-process-to-run-jmx-
> file-through-command-prompt-using-ant-and-generate-html-report/
> )
>
> *Changes in Build.xml (highlighted in yellow):*
>
> -Djmeter.home=.. - C:\apache-jmeter-r1787116
>
> -Dreport.title="My Report" - title for html report (default is
> 'Load Test Results')
>
> 
>
>
>
> 
>
> 
>
> *Error:*
>
> C:\apache-ant-1.10.1\bin>ant
> Buildfile: C:\apache-ant-1.10.1\bin\build.xml
>
> run:
>  [echo] funcMode = false
>[jmeter] Executing test plan: C:\apache-ant-1.10.1\bin\Test.jmx ==>
> C:\apache-ant-1.10.1\bin\Test.jtl
>
> _message_xalan:
>
> xslt-report:
>  [xslt] Processing C:\apache-ant-1.10.1\bin\Test.jtl to
> C:\apache-ant-1.10.1\bin\Test.html
>  [xslt] Loading stylesheet
> C:\apache-ant-1.10.1\bin\jmeter-results-detail-report_21.xsl
>  [xslt] C:\apache-ant-1.10.1\bin\Test.jtl:1:1: Fatal Error! Premature
> end of file.
>  [xslt] Failed to process C:\apache-ant-1.10.1\bin\Test.jtl
>
> BUILD FAILED
> C:\apache-ant-1.10.1\bin\build.xml:124: Fatal error during transformation
> using C:\apache-ant-1.10.1\bin\jmeter-results-detail-report_21.xsl:
> Premature end of file.; SystemID: file:/C:/apache-ant-1.10.1/bin/Test.jtl;
> Line#: 1; Column#: 1
>
> Total time: 4 seconds
>
> C:\apache-ant-1.10.1\bin>
>
> Can you please help, let me know if you need additional information.
>
>
> On Wed, Mar 15, 2017 at 4:44 PM, Felix Schumacher <
> felix.schumac...@internetallee.de> wrote:
>
> >
> >
> > Am 14. März 2017 07:55:55 MEZ schrieb praveen tiwari <
> > praveentiwa...@gmail.com>:
> > >Hi Felix,
> > >
> > >Thanks for your response!
> > >
> > >I have tried to fetch thread dump and attached same, tried 2 times
> > >using
> > >below query via cmd.
> > >
> > >C:\>cd Program Files\Java\jdk1.8.0_121\bin
> > >
> > >C:\Program Files\Java\jdk1.8.0_121\bin>jstack -l 1112
> > >
> > >Above 1112 is the process id of java.
> > >Let me know if I did correct or some thing else was expected as I am
> > >taking
> > >thread dump first time.
> >
> > Seems to be correct.
> >
> > I believe you are experiencing a non responsiveness caused by the view
> > results tree element.
> >
> > Do you have large responses - probably with few new lines?
> >
> > Based on the above, you have two options.
> >
> > First, you can disable the view results tree element while running the
> > test.
> >
> > Second, try out a current nightly. We have changed the update mechanism
> of
> > the element to be nicer in respect of responsiveness.
> >
> > Hope this helps,
> >  Felix
> >
> > >
> > >
> > >On Fri, Mar 10, 2017 at 9:47 PM, Felix Schumacher <
> > >felix.schumac...@internetallee.de> wrote:
> > >
> > >>
> > >>
> > >> Am 10. März 2017 09:53:45 MEZ schrieb praveen tiwari <
> > >> praveentiwa...@gmail.com>:
> > >> >Hi,
> > >> >
> > >> >I am trying to create a script using Jmeter v3.0. For this I
> > >recorded
> > >> >end
> > >> >to end flow of my website and recorded the HTTP requests (approx
> > >150).
> > >> >Now I need to figure out which regular expression I need to apply to
> > >> >fetch
> > >> >data from response in previous request, for which I am trying to run
> > >> >the
> > >> >script once and see responses in listener "View results tree".
> > >> >
> > >> >Problem I am facing is that Jmter hangs when I run all request with
> > >> >even 1
> > >> >virtual user, CPU usage goes to 100% for some time.
> > >> >
> > >> >I have disabled some requests (approx 80%), is that the reason
> > >behind
> > >> >this?
> > >> >
> > >> >Any hel

Re: While controller is not ending the loop

2017-02-06 Thread Deepak Shetty
>I tried with providing a assertion and running the while loop. Now the
loop is ending
Makes no sense. An assertion doesnt impact the running of the loop

>How can I end the loop ?
whenever the condition returns  "false" , the loop will end . You might not
be doing something like resetting the value of the variable (missing in
your original snippet(
 Add a debug sampler within the loop and see. And as before always inspect
jmeter.log

On Mon, Feb 6, 2017 at 11:56 AM, Sankar Das <007bhabanisan...@gmail.com>
wrote:

> Thanks for the reply. I tried with that one too. But the thing is the while
> loop is not ending because it trying to meet the conditions.
>
> I tried with providing a assertion and running the while loop. Now the loop
> is ending but my last sampler is getting failed and that is getting
> reflected as error in the report.
>
> How can I end the loop ?
>
> On Feb 6, 2017 9:37 PM, "Deepak Shetty"  wrote:
>
> > Hi
> > javascript doesnt have a .equals method if I remember correctly. Check
> your
> > log for errors.
> > ${__javaScript("${VAR2}" == "Next")} is probably what you are looking for
> >
> >
> > regards
> > deepak
> >
> > On Mon, Feb 6, 2017 at 4:35 AM, Sankar Das <007bhabanisan...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I am trying with while controller but not successful.Please help
> > >
> > > Scenario:
> > >
> > > Login
> > > Search
> > > Keep click on Next button. go to next page and click next button until
> > > there is no products available.
> > > logout
> > >
> > > So I have extract the "Next" from "search" then used while loop.
> > >
> > > Login
> > > Search
> > > --regular expression ex
> > > While controller >>${__javaScript(!"${VAR2}".equals("Next"))
> > > --Click next sampler
> > > Logout
> > >
> > > When I am running the script, the https request with all the nexts are
> > > running properly. But when the condition is failed also "click next"
> > > samplers are running
> > >
> > > Can someone help what I am missing.
> > >
> > > Thanks
> > >
> >
>


Re: While controller is not ending the loop

2017-02-06 Thread Deepak Shetty
Hi
javascript doesnt have a .equals method if I remember correctly. Check your
log for errors.
${__javaScript("${VAR2}" == "Next")} is probably what you are looking for


regards
deepak

On Mon, Feb 6, 2017 at 4:35 AM, Sankar Das <007bhabanisan...@gmail.com>
wrote:

> Hi,
>
> I am trying with while controller but not successful.Please help
>
> Scenario:
>
> Login
> Search
> Keep click on Next button. go to next page and click next button until
> there is no products available.
> logout
>
> So I have extract the "Next" from "search" then used while loop.
>
> Login
> Search
> --regular expression ex
> While controller >>${__javaScript(!"${VAR2}".equals("Next"))
> --Click next sampler
> Logout
>
> When I am running the script, the https request with all the nexts are
> running properly. But when the condition is failed also "click next"
> samplers are running
>
> Can someone help what I am missing.
>
> Thanks
>


Fwd: Our desire is to...help advance God k iupi’s Kingdom

2017-01-26 Thread Deepak Shetty
-- Forwarded message --
From: "August E. Brunsman IV, Secular Student Alliance" <
upda...@secularstudents.org>
Date: Jan 26, 2017 11:00 AM
Subject: Our desire is to...help advance God’s Kingdom
To: "Deepak Shetty" 
Cc:

Deepak,

President Trump nominated Betsy DeVos to be the next Secretary of
Education. She is a terrible choice, and the *Secular Student Alliance must
oppose her.*

You might not have heard of Betsy DeVos before, but she has spent her life
trying to *dismantle the separation of church and state*, advancing school
vouchers, gutting public education, and forcing her religious and political
ideologies onto communities.

She is a wholly unacceptable choice to be Secretary of Education. We
believe we must raise our collective voice and oppose her confirmation.

*Click here to take action; add your name to our efforts!
<https://secularstudents.org/sites/all/modules/civicrm/extern/url.php?u=11749&qid=3061507>*

If you’ve watched any of the Senate confirmation hearings, and you should,
you’ve seen her dodge questions and demonstrate a clear lack of
understanding of even basic education issues. That alone should disqualify
her.

As bad as that was, unfortunately it’s not the whole story. She is also a
longtime advocate of merging religion and education. Or, as she put it at a
2001 meeting called ‘The Gathering’
<https://secularstudents.org/sites/all/modules/civicrm/extern/url.php?u=11749&qid=3061507>

Full quote: *Our desire is to be in that Shephelah, and to confront the
culture in which we all live today in ways that will continue to help
advance God’s Kingdom, but not to stay in our own faith territory.*

We’ve joined with the *Secular Coalition of America* on a write-in campaign
opposing her confirmation. *Join us and tell your Senators to oppose the
confirmation of Betsy DeVos.
<https://secularstudents.org/sites/all/modules/civicrm/extern/url.php?u=11749&qid=3061507>*

The Secretary of Education should promote evidence- and science-based
curricula and a secular education system. She won’t, and that’s why we must
oppose her.

Thanks,

August

PS. Betsy DeVos’s confirmation hearing is scheduled for January 31. There
is no time to waste: *TAKE ACTION NOW!
<https://secularstudents.org/sites/all/modules/civicrm/extern/url.php?u=11749&qid=3061507>*
You have been sent this email by the Secular Student Alliance which is
located at
1550 Old Henderson Rd.
W200
Columbus, OH 43220
United States

If you do not wish to receive email from us, you may unsubscribe
<https://secularstudents.org/civicrm/mailing/optout?reset=1&jid=5838&qid=3061507&h=b3dbb3853fdf0e84>.


Re: Fw: Junit xml report output

2017-01-16 Thread Deepak Shetty
Hi
you'd have to transform the result - google indicates someone has done it (
https://github.com/tguzik/m2u )

On Sun, Jan 15, 2017 at 12:02 PM, Adrian Cosmici 
wrote:

>
>
>
> Hello guys,
>
> I am trying to run jmeter tests with VSTS and Maven and currently I am not
> able to print results report to VSTS because it's not capable to print .jtl
> file.
>
> Could you please help me to find a solution for getting xml (junit) report
> file instead of .jtl? Please note that I am running the tests with Maven
> and jmeter-maven-plugin.
>
> Thanks in advance,
> Adrian Cosmici
>
>
> The information in this email is confidential and may be legally
> privileged. It is intended solely for the addressee. Any opinions expressed
> are mine and do not necessarily represent the opinions of the Company.
> Emails are susceptible to interference. If you are not the intended
> recipient, any disclosure, copying, distribution or any action taken or
> omitted to be taken in reliance on it, is strictly prohibited and may be
> unlawful. If you have received this message in error, do not open any
> attachments but please notify the Endava Service Desk on (+44 (0)870 423
> 0187), and delete this message from your system. The sender accepts no
> responsibility for information, errors or omissions in this email, or for
> its use or misuse, or for any act committed or omitted in connection with
> this communication. If in doubt, please verify the authenticity of the
> contents with the sender. Please rely on your own virus checkers as no
> responsibility is taken by the sender for any damage rising out of any bug
> or virus infection.
>
> Endava Limited is a company registered in England under company number
> 5722669 whose registered office is at 125 Old Broad Street, London, EC2N
> 1AR, United Kingdom. Endava Limited is the Endava group holding company and
> does not provide any services to clients. Each of Endava Limited and its
> subsidiaries is a separate legal entity and has no liability for another
> such entity's acts or omissions.
>


  1   2   3   4   5   6   7   8   >