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 SOm

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

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, y

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

Re: Sequential confirmation in Jmeter

2019-10-14 Thread Deepak Shetty
se 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 a

Re: Sequential confirmation in Jmeter

2019-10-20 Thread Deepak Shetty
> > 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 ques

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 a

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 HT

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 " + pa

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#Dependen

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

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

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

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 th

Re: http request...passing data set from one http request to another.

2012-01-02 Thread Deepak Shetty
double quotes dont have to be escaped. name\s*=\s*"responseSize"\s*value\s*="([^"]*)" Note that Regexs are case sensitive (unless you add a flag to make them insensitive and its also very easy to make a mistake with ' or " ) I suggest you add a debug sampler after your HTTPSampler (ensure your re

Re: http request...passing data set from one http request to another.

2012-01-02 Thread Deepak Shetty
ing was copied and pasted into the thread from the sampler. > > > > On Mon, Jan 2, 2012 at 9:55 PM, Deepak Shetty wrote: > > > double quotes dont have to be escaped. > > name\s*=\s*"responseSize"\s*value\s*="([^"]*)" > > > > Note that

Re: looking for workaround for numberformatexception on response header

2012-01-03 Thread Deepak Shetty
whats the complete stack trace in jmeter.log? On Tue, Jan 3, 2012 at 8:34 AM, Basim Baassiri wrote: > Hi > I'm using the http cache manager and my http sampler is set to retrieve all > embedded resources. In addition, i have an assertion to check the response > code of 200 > > This is what I'm

Re: How to process a directory for XML-RPC

2012-01-03 Thread Deepak Shetty
where in the documentation do you see this? regards deepak On Tue, Jan 3, 2012 at 9:00 AM, Raghuram . wrote: > > I have got a directory of xml-rpc content files that I need jmeter to take > up and post. > The 'Help' documentation from within the software says that it is possible > to specify ju

Re: JMeter and JSON

2012-01-04 Thread Deepak Shetty
yes and no. No - there isnt an out of box plugin which understands the JSON format Yes - JSON is ultimately text that is part of the request/response and Jmeter can do that so you can test web applications that use JSON. You also have various post processors (which can use JSON java libraries to pa

Re: Create custom log files

2012-01-05 Thread Deepak Shetty
Hi I usually find it much easier to post process the result file to remove whatever I dont want. Its fairly easy to do this for both XML and CSV regards deepak On Thu, Jan 5, 2012 at 4:41 AM, waseemfa wrote: > Sebb, > > Thats one way of approaching the problem and its really a great way of > do

Re: Dynamic sampler request to be created

2012-01-07 Thread Deepak Shetty
Hi possible( but not directly with a CSV as you have modeled it since jmeter doesnt deal with variable number of columns in CSV data set config) http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.htmlshows you how to add dynamic parameters. The additional step is to say have y

Re: How to process a directory for XML-RPC

2012-01-07 Thread Deepak Shetty
Hi you can workaround it. The filename field should accept a variable like ${filePath}. (havent tested it - but it should work) Before you run your test , generate a CSV file which has the full path(or you could do it as part of your test to , all in memory , but the former is preferable) to all t

Re: Help required in assertion !!!!

2012-01-09 Thread Deepak Shetty
http://jmeter.apache.org/usermanual/component_reference.html#Response_Assertionsee the field JMeter variable (but the assertion always applies on a sampler) > can i use assertion on the "Request Tab" ??. Not sure what you are trying to accomplish here. On Mon, Jan 9, 2012 at 5:33 AM, Nithya Praka

Re: Cannot replace the variables in a SOAP XML sampler when the request is read from a file.

2012-01-26 Thread Deepak Shetty
Hi something similar - http://theworkaholic.blogspot.com/2011/02/dynamic-values-within-files.html regards deepak On Thu, Jan 26, 2012 at 3:06 AM, Nirodha Pramod wrote: > Hi Philippe, > > Thanks for the response. I need to read the request from a file since the > request is dynamically selected.

Re: How to retrieve a jmeter property within Beanshell Preprocessor

2012-01-26 Thread Deepak Shetty
the jmeter properties is passed as the props object to beanshell. You can use that On Thu, Jan 26, 2012 at 3:04 PM, Nirodha Pramod wrote: > Hi, > > I'm running jmeter scripts via an ANT task. So I pass My own property > called "csvread.filename" in that ANT task. But I could not find the syntax

Re: Missing cookie

2012-01-26 Thread Deepak Shetty
Hi The proxy doesnt record cookies - it simply sends what the browser is sending. When you run your script the cookie manager is what saves and resends the cookie your server sets(the proxy doesnt come into play once you have recorded the script) . From the name of your cookie I'd guess that it is

Re: How to retrieve a jmeter property within Beanshell Preprocessor

2012-01-26 Thread Deepak Shetty
String value = props.getProperty("propertyName"); On Thu, Jan 26, 2012 at 4:31 PM, Nirodha Pramod wrote: > On Fri, Jan 27, 2012 at 4:46 AM, Deepak Shetty wrote: > > > the jmeter properties is passed as the props object to beanshell. You can > > use that > > &

Re: JMeter waits for responses that seem to have been sent

2012-01-28 Thread Deepak Shetty
do you have request embedded resources checked by any chance? >all threads will get stuck at some point. At the same point or different? On Sat, Jan 28, 2012 at 1:02 PM, ruthm wrote: > Hello, > > I've been struggling with this problem for the past few days and really > hope > someone can help!

Re: JMeter waits for responses that seem to have been sent

2012-01-28 Thread Deepak Shetty
Hi I guess you need to figure out if the problem is on Tomcat or Jmeter. (Assuming there are no other systems like a reverse proxy webserver ) When Jmeter appears to hang - take a thread dump on the Tomcat server (kill -3 processid(unix) or ctrl+pause break on the window on which tomcat is running

Re: Hot add a new variable to jmeter test plan inside Beanshell PP

2012-01-31 Thread Deepak Shetty
http://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterVariables.htmlmaps to the vars object so vars.put("key","value"); >Or is there a better way to do this. Depends on what you are trying to do. Using Beanshell has a processing cost. regards deepak On Tue, Jan 31, 2012 at 10:52 AM, Nirod

Re: Hot add a new variable to jmeter test plan inside Beanshell PP

2012-01-31 Thread Deepak Shetty
creates if not already present. Think of it as a map structure. regards deepak On Tue, Jan 31, 2012 at 11:01 AM, Nirodha Pramod wrote: > Hi Deepak, > > > > On Wed, Feb 1, 2012 at 12:24 AM, Deepak Shetty wrote: > > > > > > http://jmeter.apache.

Re: Can we use a beanshell as Once only controller

2012-01-31 Thread Deepak Shetty
Beanshell sampler or preprocessor? If sampler then check the logs if there are errors. If pre/post processor then these need at least one sampler to run against regards deepak On Tue, Jan 31, 2012 at 12:47 PM, Nirodha Pramod wrote: > Hi, > > I have used a beanshell as a child of Once only contr

Re: JSF Rich Modal dialog

2012-01-31 Thread Deepak Shetty
hi usually modal dialogs are just javascript + HTML , so they have no relevance in JMeter, unless the content is being populated by an AJAX call. It should be the same as any other application with dynamic data - for which you always have to modify the recorded script. regards deepak On Mon, Jan

Re: Can we use a beanshell as Once only controller

2012-02-01 Thread Deepak Shetty
he issue with that? > > Thanks, > Nirodha > > On Wed, Feb 1, 2012 at 2:29 AM, Deepak Shetty wrote: > > > Beanshell sampler or preprocessor? > > If sampler then check the logs if there are errors. If pre/post processor > > then these need at least one sampler to

Re: How to invoke a service secured with username-token using jmeter

2012-02-01 Thread Deepak Shetty
You have functions for timestamp -- http://jmeter.apache.org/usermanual/functions.html and you can always invoke BeanShell/ java code to generate any NONCE value. regards deepak On Wed, Feb 1, 2012 at 9:30 AM, Nirodha Pramod wrote: > Hi, > > Does anyone know a way to do this, Because the Times

Re: Can we use a beanshell as Once only controller

2012-02-01 Thread Deepak Shetty
/JMeterContext.html Again the setUpThreadGroup was written for such usecases and is cleaner. regards deepak On Wed, Feb 1, 2012 at 1:43 PM, Nirodha Pramod wrote: > On Wed, Feb 1, 2012 at 11:44 PM, Deepak Shetty wrote: > > > Hi > > Only Once is per thread - if you want this once

Re: [ANNOUNCE] JMeter 2.6 is released

2012-02-01 Thread Deepak Shetty
Hi http://jmeter.apache.org/docs/changes.html is broken , gives a 404 regards deepak On Wed, Feb 1, 2012 at 2:52 PM, Milamber wrote: > The Apache JMeter team announces the availability of Apache JMeter 2.6 > r1237316. > > This release brings some valuable improvements and fixes some bugs. > > N

Re: CSV DataSet Config

2012-02-01 Thread Deepak Shetty
I believe relative paths are relative to the script location regards deepak On Wed, Feb 1, 2012 at 9:05 PM, rajan gupta wrote: > Hi > > This is just for any googler facing issue with CSV Data Set element. > Per documentation it says if csv file is in bin folder it is enough to give > filename.

Re: JMeter adding to response time

2012-02-01 Thread Deepak Shetty
Hi how many threads are you running regards deepak On Wed, Feb 1, 2012 at 9:03 PM, Stanton W Derry wrote: > I'm performance testing a set of web services with an expected response > time of ~20-25ms. I've developed the script using HTTP Request (Http 3.1) > samplers doing POSTs with a SOAP

Re: Concatenate variable list returned in HTTP GET

2012-02-03 Thread Deepak Shetty
write a beanshell Post Processr to loop through the regex result and form the String in java. use the vars object to set this into a variable and use the variable in the next sampler On Fri, Feb 3, 2012 at 7:04 PM, testerinCO wrote: > Hello > > Here is the output of the GET HTTP /getproductIdLi

Re: "wget" with Apache HttpClient?

2012-02-07 Thread Deepak Shetty
>Oh, I'm sorry about that. I'll try to figure out why that is the case. Your from address is @google.com but you probably arent sending the email from google (all your emails go as spam for me too with the same warning). On Tue, Feb 7, 2012 at 5:31 PM, sebb wrote: > On 8 February 2012 01:09, Ha

Re: Sharing arrays between threads.

2012-02-09 Thread Deepak Shetty
Hi variables are scoped to the thread. a. Use properties (but you'd have to represent the array as a delimited string (also described in same link s step c) b. Do you need randomness (or will sequential work) - if sequential works then in a setup threadgroup write these values to a CSV , which is t

Re: JMeter broke on my machine?

2012-02-13 Thread Deepak Shetty
Jmeter files are all contained within the folder you download. a. Did you install anything into your JDK/JRE lib? (some applications do this) (check which java runtime gets picked up as well) b. Did some install setup the default classpath to have conflicting jars (in a command window type set or

Re: Reading CSV into array, and using Once-Only controller

2012-02-13 Thread Deepak Shetty
>I need the entirety of my data set to be accessible to every thread in my thread group, Use java (in beanshell or whatever) - your requirement doesnt suit a CSV data set config. > I need to write some data out to disk right before a thread group tears itself down You'd probably need to work aroun

Re: Trouble to keep session in a site with SSO

2012-02-13 Thread Deepak Shetty
Dynamic Parameters need you to use one of the post processors (usually regex post processor which will extract data into a variable) and your next sampler uses this variable. http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor You should find multiple example

Re: Regular expression with escape characters and Jmeter variable

2012-02-14 Thread Deepak Shetty
> It will be really helpful if someone could explain why two "\" is needed? This is a guess - i havent verified. but you usually need as many backslashes as the number of systems for which this is a special character. So \ is a special character to Jmeter but $ is a special character for regex's So

Re: JMeter Proxy Certificate not accepted by IE 8 Browser (Windows 7)

2012-02-14 Thread Deepak Shetty
what is the browser telling you?(you can look at the certificate details and it will tell you what is failing) On Tue, Feb 14, 2012 at 11:04 AM, testerinCO wrote: > All > > I added the JMeter Proxy cert to Trusted Root Certification Authorities and > Trusted Publishers, but I keep getting the

Re: How to right the result to 2 JTL files

2012-02-15 Thread Deepak Shetty
the same result ? In any case listeners can write to whatever files you specify. On Wed, Feb 15, 2012 at 10:33 AM, Nirodha Pramod wrote: > Hi, > > Is it possible to right the result of a jmeter test to 2 jtl files? If > possible how can it be done? > > Thanks, > Nirodha > > -- > *Nirodha Gallage

Re: How to select particular values from data file

2012-02-15 Thread Deepak Shetty
hi why dont you add a pre processing step to remove the values you dont want? It's almost always better to get the files into the structure you need for the test rather than modify the script to work with the format you chose. regards deepak On Wed, Feb 15, 2012 at 5:32 AM, waseemfa wrote: > Hi

Re: How to right the result to 2 JTL files

2012-02-15 Thread Deepak Shetty
two listeners. It doesnt make sense though that you want one listener to write to two files if you want them to write the same thing (cp would work just as well then)? regards deepak On Wed, Feb 15, 2012 at 10:39 AM, Nirodha Pramod wrote: > On Wed, Feb 15, 2012 at 10:36 AM, Deepak She

Re: Validating soap response

2012-02-15 Thread Deepak Shetty
Yes add a column in CSV with expected response , read it into a variable say expectedResponse add a response assertion as child of your sampler ${expectedResponse} regards deepak On Wed, Feb 15, 2012 at 1:45 PM, rajan gupta wrote: > Hi > > I am building a performance test for a SOAP Service. >

Re: How to select particular values from data file

2012-02-16 Thread Deepak Shetty
Im suggesting you not do it the way you are planning.PreProcess the CSV and remove the rows you dont want. (otherwise you need a while controller that loops till the value is true or - but thats a waste IMO so Im not going to spend time explaining it) regards deepak On Wed, Feb 15, 2012 at

Re: Progressively adding "users"

2012-02-16 Thread Deepak Shetty
Option 1 http://code.google.com/p/jmeter-plugins/ has some thread groups that do what you want(easiest) If using JMeter byitself then you have some options a. Multiple thread groups that start at scheduled times b. Create the number of threads in a threadgroup as a property. Invoke Jmeter using an

Re: Increasing Heap size in JMeter that runs in Solaris

2012-02-16 Thread Deepak Shetty
jmeter.bat/sh However if you are running GUi mode with listeners on (like view results tree or view table) then thats what you should be fixing http://jmeter.apache.org/usermanual/best-practices.html#lean_mean On Thu, Feb 16, 2012 at 9:07 AM, Muthukrishnan S. < muthukrishna...@sonata-software.com>

Re: Increasing Heap size in JMeter that runs in Solaris

2012-02-17 Thread Deepak Shetty
Thank you, > > Muthu > > ** ** > > -Original Message- > From: Deepak Shetty [mailto:shet...@gmail.com] > Sent: Friday, February 17, 2012 1:30 AM > To: JMeter Users List > Subject: Re: Increasing Heap size in JMeter that runs in Solaris > > ** *

Re: Error while handling Http URL Re-writing element

2012-02-20 Thread Deepak Shetty
you cant send attachments to the list upload them somewhere and provide a link On Mon, Feb 20, 2012 at 7:17 PM, Swathi Gajarla < swathi.gaja...@oakton.com.au> wrote: > Attached are the files. > > Regards, > Swathi Gajarla > Oakton Consulting Technology > M +91 7702300218 > >

Re: Timing and looping issue

2012-02-21 Thread Deepak Shetty
See duration on thread group -- http://jmeter.apache.org/usermanual/component_reference.html#Thread_Group Use constant throughput timer for 50 reqs per second (or the one from jmeter-plugins) >First I tried with thread count= 3000, you probably wont get accurate results using a single jmeter clien

Re: Timing and looping issue

2012-02-22 Thread Deepak Shetty
ther thread. Is this the expected behavior or am I > missing something. Really appreciate if someone can explain this. > > Thanks, > Nirodha > > > On Tue, Feb 21, 2012 at 7:50 PM, Deepak Shetty wrote: > > > See duration on thread group -- > > > http://jmeter.apac

Re: How to invoke a java method

2012-02-23 Thread Deepak Shetty
Hi as a good practive , avoid writing this much code in Beanshell. Its simpler to write a wrapper java client class so that all you need to do is invoke a single method from Beanshell. So move all your code into a java class e.g SimpleClient and have a method say execute and just create and invoke

Re: How to invoke a java method

2012-02-24 Thread Deepak Shetty
http://jmeter.apache.org/usermanual/component_reference.html#BeanShell_Sampler On Fri, Feb 24, 2012 at 12:42 PM, Nirodha Pramod wrote: > Hi, > > After creating a jar this worked. Now I want to get the return value("true" > or "false") of the method call and pass it as the response of the sample.

Re: How to set classpath only for a specific beanshell sampler/ preprocessor

2012-02-27 Thread Deepak Shetty
you would need to write a custom class loader. Its probably more productive to find out which class conflicts and fix either your class or the mailer visualizer.. On Mon, Feb 27, 2012 at 1:22 PM, Nirodha Pramod wrote: > Hi, > > I want to run a specific java client code inside a beanshell samp

Re: How to set classpath only for a specific beanshell sampler/ preprocessor

2012-02-27 Thread Deepak Shetty
maybe Im wrong http://www.beanshell.org/manual/classpath.html regards deepak On Mon, Feb 27, 2012 at 1:26 PM, Deepak Shetty wrote: > you would need to write a custom class loader. > > Its probably more productive to find out which class conflicts and fix > either your class o

Re: Website Login Issue

2012-03-05 Thread Deepak Shetty
your probably not extracting out the dynamic asp.net parameters (viewstate ,eventvalidation etc) otherwise compare what browser sends and receives. regards deepak On Mon, Mar 5, 2012 at 12:57 PM, Ryan wrote: > It's been a while since I've used JMeter and recently started using it > again to tes

Re: Allowing only one thread to make a request at a time

2012-03-05 Thread Deepak Shetty
I'd probably take a look at what you are trying to do - 30 "real" users wouldnt synchronize access - and if you expect your app to do the synchronizing then no further action should be needed from Jmeter. On Mon, Mar 5, 2012 at 2:51 AM, ruthm wrote: > Is it possible to set up the following scen

Re: Allowing only one thread to make a request at a time

2012-03-06 Thread Deepak Shetty
g said that I then went for the option of modifying the source code to > simulate this situation thus removing any need for special tweaking of the > JMeter test. > > Thanks anyway for the help. > > On Tue, Mar 6, 2012 at 4:50 AM, Deepak Shetty wrote: > > > I'd prob

Re: Allowing only one thread to make a request at a time

2012-03-06 Thread Deepak Shetty
> > Having said that I then went for the option of modifying the source code > to > > simulate this situation thus removing any need for special tweaking of > the > > JMeter test. > > > > Thanks anyway for the help. > > > > On Tue, Mar 6, 2012 at 4:50 AM,

Re: Use threadNum in "User Defined Variables" didn't work ?

2012-03-11 Thread Deepak Shetty
__threadNum () On Mar 11, 2012 10:37 AM, "Cyril SANTUNE" wrote: > > Hi, > I have something like that in 'user defined Variables' > -- > curl --output /tmp/${__threadNum}.tmp ftp://${server_ip}/read/10MB.bin > -- > ${server_ip} was correctly replaced, but the threadNum was not. It w

Re: Use threadNum in "User Defined Variables" didn't work ?

2012-03-11 Thread Deepak Shetty
> - __threadNum() => the result is : __threadNum() > - ${__threadNum} => the result is : StandardJMeterEngine > - __threadNum => the result is : __threadNum > > It's maybe impossible to use threadNum in this case. > > > > On Sun, Mar 11, 2012 at 6:

Re: Use threadNum in "User Defined Variables" didn't work ?

2012-03-11 Thread Deepak Shetty
esults each time they are called. > User parameters doesn't really help but I will use another way. > Thanks anyway. > > > > On Sun, Mar 11, 2012 at 7:02 PM, Deepak Shetty wrote: > > I didn't realize you were using this in user defined variables. Thread > num

Re: Login Form problems

2012-04-09 Thread Deepak Shetty
>a) I have tried both "Redirect Automatically" and "Follow Redirects" Always use follow redirects >b)tried to setup the URL rewriter mod. *Usually* using a HTTP Cookie manager is sufficient and you dont need the rewriter. But it basically depends on your application. An application can manage ses

Re: Jmeter not doing what it is supposed to

2012-04-09 Thread Deepak Shetty
>At several times the page being filled with data gets refreshed but previous tests against the underlying code have not bypassed the partial >reloading of the page and have just sent in the final request. This isn't quite clear. is your website using some sort of AJAX ? > Does anyone know if the i

Re: Login Form problems

2012-04-09 Thread Deepak Shetty
>but the response data doesn't contain what I expect. But then (one of ) your problem lies here. is there any other dynamic data like a form token that changes dynamically that you are not extracting out correctly? Compare live http headers request response with view results tree request /response

Re: Jmeter not doing what it is supposed to

2012-04-09 Thread Deepak Shetty
das...@state.ma.us> wrote: > Actual it should say have bypassed the partial request. So sorry I'm just > frustrated by it all > > -Original Message- > From: Deepak Shetty [mailto:shet...@gmail.com] > Sent: Monday, April 09, 2012 1:44 PM > To: JMeter Users List > Subje

Re: Jmeter not doing what it is supposed to

2012-04-09 Thread Deepak Shetty
child question just does not work. By the way we are not using Ajax > but are using Tomcat. > > I am new to this mailing list so do not know how to post a change to my > question. > > -Original Message- > From: Deepak Shetty [mailto:shet...@gmail.com] > Sent: Monday,

Re: Error in jmeter.log

2012-04-12 Thread Deepak Shetty
try increasing the value of -Xss for the java VM (on *nix you will also have to increase ulimit -s) (the other possibility for a stackoverflowerror is that you have recursive calls somewhere so it might be a bug) regards deepak On Thu, Apr 12, 2012 at 5:09 AM, Toni Menendez wrote: > Hello all,

Re: Additional problems with login form

2012-04-13 Thread Deepak Shetty
Hi a. So if the signature is failing , then either the signature itself is wrong or the data that is being signed is wrong. You have to do a request by request comparison b. is the signature value always the same as you seem to imply? i.e. if I repeat the operation twice in the browser do i get the

Re: Additional problems with login form

2012-04-13 Thread Deepak Shetty
the browser. its possible there is a bug in Jmeter in which case you would need to raise a bugzilla. On Fri, Apr 13, 2012 at 11:47 AM, wrote: > Deepak Shetty wrote on 04/13/2012 12:29:20 PM: > > > From: Deepak Shetty > > To: JMeter Users List > > Date: 04/13/20

Re: Error in jmeter.log

2012-04-13 Thread Deepak Shetty
> Complexity of the SCenario is very basic, SOAP request and XPATH > assestations. > > Toni. > > 2012/4/12, Deepak Shetty : > > try increasing the value of -Xss for the java VM (on *nix you will also > > have to increase ulimit -s) > > (the other possibility f

Re: JMeter not recording Authentication pop-up

2012-04-18 Thread Deepak Shetty
The JMeter proxy is an HTTP proxy. What you seem to be getting is the windows NT authentication popup (which isnt HTTP) so it wont record anything , nor should it. You say you added an authorization manager - that needs to be added while running the tests (not while recording it). Search Google to

Re: Unable to open .jtl files of huge size (>1GB) in aggregate report

2012-04-18 Thread Deepak Shetty
you dont have enough memory to increase heap size to 2GB . Use a 64 bit OS and a 64 bit VM (but the right thing to do would be to upgrade Jmeter) On Wed, Apr 18, 2012 at 8:32 AM, Muthukrishnan S. < muthukrishna...@sonata-software.com> wrote: > Hi, > > On trying to increase heap size to 2048, I go

Re: NTLM Auth: Load test with multiple/different user logins

2012-04-18 Thread Deepak Shetty
I'd think it supports it as much as HTTPClient 4.1 does - you can always modify JMeter code to use JCIFS as suggested on the HTTPClient site regards deepak On Wed, Apr 18, 2012 at 11:23 AM, chaitanya bhatt wrote: > No. > > Chaitanya M Bhatt > On Apr 18, 2012 10:30 AM, "Shmuel Krakower" wrote:

Re: Additional problems with login form

2012-04-18 Thread Deepak Shetty
Extracting the cookie is a regex extractor (where you select the option for Header) and extract based on the name or 'Set-Cookie' header Then you add a beanshell post processor that does something like sampler.getCookieManager().addCookie(cookie); where the cookie is based on the value you extracte

Re: NTLM Auth: Load test with multiple/different user logins

2012-04-18 Thread Deepak Shetty
n unbeaten path. You are bound to > encounter myriads of pitfalls but you are on your own. > > Thanks > Chaitanya > > On Wed, Apr 18, 2012 at 11:34 AM, Deepak Shetty wrote: > > > I'd think it supports it as much as HTTPClient 4.1 does - you can always > >

Re: Additional problems with login form

2012-04-18 Thread Deepak Shetty
You probbaly got bean shell errors that should be logged in jmeter.log - so check that if something fails regards deepak On Wed, Apr 18, 2012 at 1:34 PM, wrote: > Deepak Shetty wrote on 04/18/2012 01:49:16 PM: > > > > Extracting the cookie is a regex extractor (where you select the o

Re: JMeter not recording Authentication pop-up

2012-04-19 Thread Deepak Shetty
>Problem is, when I try to hit the pages >(automation) which I've recorded previously returns success response even if >I haven't used the HTTP Authorization Manager. I'm not sure what I'm >missing. Usually you should have got a 401 - but note that JMeter only marks HTTP errors by default , you hav

Re: PreProcessor and test fragment question

2012-04-19 Thread Deepak Shetty
http://jmeter.apache.org/usermanual/test_plan.html 4.10 Scoping rules a. If you can group the samplers under something like a simple controller - then yes you can put the pre processor at the same level as the sampler and it applies to every one of them b. Same as a) (though Im assuming you mean HT

Re: Jmeter and Beanshell

2012-04-19 Thread Deepak Shetty
Beansheell doesnt support generics On Thu, Apr 19, 2012 at 3:52 PM, 5942marine wrote: > I'm getting a error, and not sure why this is erroring out. If I run the > same > java in Eclipse, it works just fine. First, here is my code: > > import java.net.URI; > import java.net.URISyntaxException; >

Re: Jmeter and Beanshell

2012-04-19 Thread Deepak Shetty
Hi you should be able to just use List params = null; The other alternative is to write everything into a java class which exposes a method that does whatever you want ,compile/ jar it up and place it in jmeter and call this class /method (usually saves a lot of debug time for larger scripts) rega

Re: Jmeter and Beanshell

2012-04-19 Thread Deepak Shetty
>I thought it would choke because of ((NameValuePair), but it's not. generics would eliminate the need for the cast - but you can always cast an object to what it actually is with or without generics in java. On Thu, Apr 19, 2012 at 4:17 PM, 5942marine wrote: > Thank you, now it's working. Here

Re: Dynamically changing sampler name during test

2012-04-20 Thread Deepak Shetty
Hi i think this works a. extract out the comment using regex post processor or equivalent b. Add a BeanShell Post Processor as child of the sampler write code like prev.setSampleLabel(vars.get("variablenamefromstepa")); => replace the name with the value you extracted An alternative is If you ar

Re: Conditional redirection

2012-04-23 Thread Deepak Shetty
Pseudo +HTTP sampler (Uncheck follow redirects and redirect automatically on the sampler) ++ regex post processor(targetting headers) extract Location header value ++ regex post processor status code +if controller - the status code begins with 3xx and the location header matches your criteria ++HT

Re: user parameters in external filepaths

2012-04-24 Thread Deepak Shetty
Hi i think the ${ID} is inside the file collnumsonly.txt (which wont work.). Is that correct? regards deepak On Tue, Apr 24, 2012 at 9:51 AM, sebb wrote: > On 24 April 2012 17:02, Peri Stracchino > wrote: > > Hello > > > > I hope I'v got the correct address here for the JMeter users discuss

Re: jmeter properties to control test elements

2012-04-24 Thread Deepak Shetty
>ut I want to be able to easily enable or disable certain assertions to be able toggle between functional and load testing Why do you want to do this? It's easier to add a machine to make up for the loss of some CPU processing than it is to figure out if your system actually worked correctly under

Re: URISyntaxException

2012-04-24 Thread Deepak Shetty
Hi if this is related to your previous posts , then you will have to escape the URL's yourself (using beanshell or equivalent). Im assuming you have a single string as the URL that you are using in the HTTPSampler rather than the PATH + query parameters separately (in which case you could use the e

Re: Asynchronous requests in jmeter??

2012-04-25 Thread Deepak Shetty
Yes (thats what having more than one thread does) But thats probably not what you wanted to ask. Assuming you mean testing AJAX websites then -- http://theworkaholic.blogspot.com/2010/11/jmeter-and-ajax-part-i.html + search for multiple threads on this mail archive. On Wed, Apr 25, 2012 at 2:53 AM

Re: beanshell post processor question

2012-04-26 Thread Deepak Shetty
http://theworkaholic.blogspot.com/2011/08/random-value-selection-in-xpath.html On Thu, Apr 26, 2012 at 12:24 PM, wrote: > I have a script I have written in a beanshell processor. > > What I need to do is select a random integer (we'll call it X) between 1 > and someVar_matchNr (where someVar is

Re: beanshell post processor question

2012-04-26 Thread Deepak Shetty
>int numLabelsToRequest = __Random(1,maxLabels); I believe you forget to use ${__Random(1,maxLabels)} On Thu, Apr 26, 2012 at 12:47 PM, wrote: > Comments inline, as I have partially answered my own question, and ran into > some different problems. > > llow...@oreillyauto.com wrote on 04/26/2012

Re: Storing response time in a variable

2012-05-03 Thread Deepak Shetty
It's possible (write a class that maintains this data across threads - invoke it in beanshell and return the values and put them into whatever variable you want , appropriately dealing with concurrent access while not totally messing up the throughput) However you probably need to state what you ar

Re: Storing response time in a variable

2012-05-04 Thread Deepak Shetty
time? In any case there is definitely some amount > of computational time involved while processing the request before sending > it to the outputstream which I want to filter from my response value. Is > there a way I can do this? > > Thanks > Chaitanya Bhatt > On Thu, May 3, 2

Re: Threads and Access Log Sampler parsers

2012-05-10 Thread Deepak Shetty
>Does "each thread gets the next entry in the log" mean each of the 100 threads will generate 10,000 requests? No - this will do what you want. It means the file is shared and if thread 1 reads line 1 then the next thread will read the next entry (i.e. line 2) regards deepak On Thu, May 10, 2012

  1   2   3   4   5   6   7   8   >