Re: Integrating Monitoring stuff

2009-10-05 Thread Tony Lotts
Sending the data back to JMeter, and running an RMI server on the SUT will
add overhead to the SUT in addition to DTrace.  Why not just coordinate the
times with the times from Jmeter after the test?

On Mon, Oct 5, 2009 at 9:09 AM, Gokulakannan Somasundaram 
gokul...@gmail.com wrote:

 I started working on this and i was looking into the source code of JMeter.
 Here are my initial observations.

 a) My aim is to display the profiling stuff in the form of current Summary
 Report. This is because, this is how even other profiling tools display
 info.

 b) This requires a RMI Server at the SUT(Server Under Test)

 c) It can be made to generate a SamplerResult and send it back to the
 JMeter
 GUI. This is similar to Remote Testing, but the problem is that i find the
 configuration for one machine in the RemoteTesting is the same as another.
 For example, it is not possible for me to mention different threading
 configurations for different machines involved in Remote Testing

 So i feel a clean design would be to implement profiling is to
 a) Implement variable load facility as mentioned above in  (c)
 b) Subclass SamplerResult to ProfilerResult, so that it is skipped by the
 rest of the visualizers. Actually, if we make it look like a normal sample,
 then creating GUI Elements specific to profiling results will not be
 possible.

 Any thoughts/comments?

 Gokul.



Re: Is it posible to download a file and test the contents?

2009-09-21 Thread Tony Lotts
Short answer, yes.  What type of file?

On Mon, Sep 21, 2009 at 9:58 AM, Marco Pas marco.paso...@gmail.com wrote:

 Hi there, i was wondering if it possible to download a file with jmeter and
 test the content of that. I have got a webpage with a download button on it
 and want to grab the downloaded file, put it somewhere in disk and test the
 content of the file. Is it possible with jmeter?

 greetings marco



Re: Regarding captcha image

2009-09-18 Thread Tony Lotts
Have the developers disable captcha, or code in a way to set a captcha code
that will always pass verification (of course the code would be disabled
before go-live).

On Thu, Sep 17, 2009 at 1:33 AM, M.Vijaya Bhaskar 
vijayabhaska...@sigmainfo.net wrote:

 Hi Deepak,

 Thank you for your quick reply.



 On Thu, Sep 17, 2009 at 10:59 AM, Deepak Shetty shet...@gmail.com wrote:

  if its a good captcha , you can't .
 
  Unless you can change your application code to either disable captcha or
  provide a known set of images or have some server side code that can be
  queried to tell you the value.
 
  regards
  deepak
 
  On Wed, Sep 16, 2009 at 10:21 PM, M.Vijaya Bhaskar 
  vijayabhaska...@sigmainfo.net wrote:
 
   Hi All,
  
   In my application Registration form i have a CAPTCH image,This image is
   changing for every request,
  
   Can any one give me the solution how to get the values of CAPTCH image
  and
   how can i pass another request
  
  
   Thanks
   Vijay
  
 



Re: Page load times

2009-08-31 Thread Tony Lotts
The next person to ask this question, please pay a nickel to the Apache
Foundation.

On Fri, Aug 28, 2009 at 12:43 AM, Deepak Shetty shet...@gmail.com wrote:

 you cant
 http://jakarta.apache.org/jmeter/ -- Jmeter is not a browser.
 Use Selenium or QTP or watir or equivalent which drive a browser for the
 tests
 regards
 deepak

 On Thu, Aug 27, 2009 at 5:49 PM, maalamaal vemu...@hotmail.com wrote:

 
  how do we capture page load times including client-side Javascript
  execution
  for browsers using Jmeter
 
  --
  View this message in context:
  http://www.nabble.com/Page-load-times-tp25182384p25182384.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 



Re: How do you pass a JSESSIONID to other requests after Login?

2009-08-07 Thread Tony Lotts
Can you post an example of the JSESSIONID?

On Fri, Aug 7, 2009 at 1:45 PM, Braulio braulio...@gmail.com wrote:


 Hi All,

 I'm running into an issue with JMeter in that I can't pass the JSESSIONID
 to
 other requests in the same Thread Group in my JMeter script.

 The script is very simple (all in one thread group):
 1. Send HTTP request to go to Login page
  Regular Expression Extractor to get JSESSIONID and store in variable
 2. Send HTTP request to Login to site (POST)
 3. Send HTTP request to Logout (POST)

 The problem is that even though I'm extracting the JSESSIONID (I think I'm
 doing it right) it doesn't seem to pass it to the second request, therefore
 the user is never logged in.  Instead, it looks like a new JSESSIONID is
 created and the site redirects me to the Login page (step 1).  I can never
 login to the site! If the script was working correctly, I would expect that
 after step 2 the user to login to the site.

 Any ideas?  Very much appreciated.

 Brau


 --
 View this message in context:
 http://www.nabble.com/How-do-you-pass-a-JSESSIONID-to-other-requests-after-Login--tp24869203p24869203.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: How do you pass a JSESSIONID to other requests after Login?

2009-08-07 Thread Tony Lotts
Use the variable in a POST parameter.
Name: jsessionid
Value: ${jsessionid}

On Fri, Aug 7, 2009 at 4:14 PM, Braulio braulio...@gmail.com wrote:


 Hi Guys,

 Thanks for the quick response.  To answer Deepak's question:

 a. I used the Debug sampler and verified that I was getting the correct
 value.
 Note: I'm extracting the JSESSIONID from the body of the first page request
 and storing it in a variable called jsessionid.  The JSESSIONID looks
 like
 this:

 form id=signinform class=form method=post
 action=/faces/SignIn.jsp;jsessionid=8E8F6100D7A1A6BF76967DF591800876

 The next HTTP request is: /faces/SignIn.jsp;jsessionid=${jsessionid}

 Is this correct?


 Deepak Shetty wrote:
 
  Hi
  a. use a debug sampler or just type ${variableNameYouveUsed} in the next
  sampler name to check what value you are getting , if this value is
  correct
  , how exactly are you passing it to the next request .
 
  b. An easier solution is to use the HTTPCookieManager under your thread
  group so that the JSESSIONID is stored as a cookie (assuming your server
  is
  configured for both urlrewriting and cookies which you can verify whether
  the first response has a Set-Cookie)
 
  regards
  deepak
 
  On Fri, Aug 7, 2009 at 10:45 AM, Braulio braulio...@gmail.com wrote:
 
 
  Hi All,
 
  I'm running into an issue with JMeter in that I can't pass the
 JSESSIONID
  to
  other requests in the same Thread Group in my JMeter script.
 
  The script is very simple (all in one thread group):
  1. Send HTTP request to go to Login page
   Regular Expression Extractor to get JSESSIONID and store in variable
  2. Send HTTP request to Login to site (POST)
  3. Send HTTP request to Logout (POST)
 
  The problem is that even though I'm extracting the JSESSIONID (I think
  I'm
  doing it right) it doesn't seem to pass it to the second request,
  therefore
  the user is never logged in.  Instead, it looks like a new JSESSIONID is
  created and the site redirects me to the Login page (step 1).  I can
  never
  login to the site! If the script was working correctly, I would expect
  that
  after step 2 the user to login to the site.
 
  Any ideas?  Very much appreciated.
 
  Brau
 
 
  --
  View this message in context:
 
 http://www.nabble.com/How-do-you-pass-a-JSESSIONID-to-other-requests-after-Login--tp24869203p24869203.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-do-you-pass-a-JSESSIONID-to-other-requests-after-Login--tp24869203p24870515.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: testing form upload performance

2009-08-05 Thread Tony Lotts
Live HTTP Headers would work in Firefox; however I believe it's a run-time
application (not a web app) that uploads the file.

On Tue, Aug 4, 2009 at 7:48 PM, Viswanathan Arunachalam 
v.arunacha...@auckland.ac.nz wrote:

 You can also download Live HTTP headers
 http://livehttpheaders.mozdev.org/installation.html to verify the same.


 Regards,


 -Original Message-
 From: Tony Lotts [mailto:tljme...@gmail.com]
 Sent: Wednesday, August 05, 2009 9:18 AM
 To: JMeter Users List
 Subject: Re: testing form upload performance

 Duplicate the HTTP traffic that the app generates, in JMeter. Use the
 HTTP
 Request Sampler, or HTTP Request HTTP Client Sampler.

 If you do not have a spec of the HTTP POST that the app sends, use a
 packet
 sniffer such as Wireshark to analyze the HTTP traffic generated by the
 app.

 On Mon, Aug 3, 2009 at 2:47 PM, SADAT ALI KHAN
 sadat.ali.k...@gmail.comwrote:

  @ sebb --- i only want to test load simulation of concurrent
 uploads... i
  dont care about the applet behaviour... will give that jmeter proxy
 thing a
  try...
  @tony --- it is an http multipart-form ulpload...
 

 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: testing form upload performance

2009-08-04 Thread Tony Lotts
Duplicate the HTTP traffic that the app generates, in JMeter. Use the HTTP
Request Sampler, or HTTP Request HTTP Client Sampler.

If you do not have a spec of the HTTP POST that the app sends, use a packet
sniffer such as Wireshark to analyze the HTTP traffic generated by the app.

On Mon, Aug 3, 2009 at 2:47 PM, SADAT ALI KHAN sadat.ali.k...@gmail.comwrote:

 @ sebb --- i only want to test load simulation of concurrent uploads... i
 dont care about the applet behaviour... will give that jmeter proxy thing a
 try...
 @tony --- it is an http multipart-form ulpload...



Re: testing form upload performance

2009-08-03 Thread Tony Lotts
What protocol does the application under test use to upload the file?

On Mon, Aug 3, 2009 at 11:25 AM, sebb seb...@gmail.com wrote:

 On 28/07/2009, SADAT ALI KHAN sadat.ali.k...@gmail.com wrote:
  Hi users, I have an application which uploads pdf forms... an
   applet is picks a pdf from the client , zips it and then sends it to the
   server... is it possible to simulate this multipart upload  behavior
 through
   jmeter ?...  will the applet download be a problem ?

 What are you trying to test?

 If you are testing the server performance, then just use the JMeter
 Proxy to record the browser-server interactions.

 JMeter is not designed for testing applets.

   thanks and regards
 
 
   Sadat Ali Khan
 

 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: understanding sample times and results

2009-07-30 Thread Tony Lotts
Does response time increase over time when the test is run with a single (1)
thread?

On Thu, Jul 30, 2009 at 4:25 PM, S.D. sidd.da...@gmail.com wrote:

 I meant .. increasing the number of threads does not really show any
 variation.  There's still a large deviation between the samples at the
 beginning of the test and the samples at the end.

  What does that mean?
  Do you mean that increasing the number of threads does not reduce the
  individual sample times? If so, that's not surprising. Increasing the
  number of threads may increase throughput - if the server can handle
  it - but individual samples are likely to take a bt longer.

 Okay .. I'll try to structure another test that accesses the data source
 directly as a URL and remove the servlet from the equation.

  Thread-safe does not imply performant.
  If the servlet is badly written, it could get slower and slower as
  more threads are used.

 Thanks for getting me a little closer.  I still welcome any other
 insight.

 --sidd



 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: TCP Sampler with SSL

2009-07-23 Thread Tony Lotts
I think that what the op means, is that they want to send SSL encrypted TCP
transactions (no HTTP layer).

This exists in the wild more often than some would think.  Remember the last
time you used your credit card at a brick and mortar store?  Chances are,
the payment data was transmitted via SSL encrypted TCP.

The built-in sampler does not initiate an SSL handshake.
This is something that I would like to do as well, and I'm in the middle of
writing a beanshell sampler to accomplish this same task.  It would be great
if JMeter supported SSL encryption of all supported protocols.

On Mon, Jul 20, 2009 at 6:51 PM, sebb seb...@gmail.com wrote:

 2009/7/3 smartfish solanki.ro...@gmail.com:
 
  Hi all,
   I want to send all the users request to the server using SSL. So how do
 i
  configure JMeter. What changes should i do in different porperties
 file

 No changes needed, just use https: instead of http:

  Thanks in advance...
  --
  View this message in context:
 http://www.nabble.com/TCP-Sampler-with-SSL-tp24318489p24318489.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 

 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Size Of the File Using Jmeter

2009-07-23 Thread Tony Lotts
Use the Simple Data Writer configured to save the parameters that you need,
and graph it with gnuplot, excel, etc...  Note: excel 2003 has a limitation
of 65,536 rows per sheet.

Try to accomplish as much as you can using the CSV JTL format.  If you must
use XML, bear in mind that if you have a lot of results that you need to
transform most XSLT processors (DOM based) will run out of memory.  You can
get around this wtih Saxon A or STX.

If you need to transform the data at all, such as aggregate metrics into
averages per time segment (1 minute), calculate TPS, etc...it's much more
elegant to load the data into a database and use an ANSI SQL query to return
data to graph.

On Thu, Jul 23, 2009 at 7:37 AM, mani venkat adveem...@gmail.com wrote:

 Hi,

 Is it possible to generate a graph using any of the listeners to show the
 variation of time with respect to size of the file while automating upload
 feature?



Load results into database

2009-07-17 Thread Tony Lotts
I'm looking for a system which will store JMeter results in a relational
database. It's easy to load results from CSV.  However loading XML result
files is a bit more complicated.  Has anyone here created, or come across a
similar system (other than Jchav)?

Thanks,

Tony


Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Tony Lotts
What is it that you want to accomplish?
If this is for a scalability test,  the performance of client side code
execution is irrelevant.

On Thu, Jul 16, 2009 at 2:10 AM, MITRAJ rajesh.mittapa...@gs.com wrote:


 Tabs are loaded on demand and contents in the tab are pre-loaded..

 Thanks,
 Raj

 Noel O'Brien wrote:
 
  How is the content of the tab gotten from the server? Is it pre-loaded or
  loaded on demand.? Either way, it's probably obtained using a http call.
 
  Try using a tool like wireshark to to analyze the call flow or you could
  use JMeters HTTP Proxy to recore the call flows directly.
 
  Regards,
  Noel
 
  - MITRAJ rajesh.mittapa...@gs.com wrote:
 
  Thanks Noel
 
  In my application have 3 tabs.
  If i click on the tab, A frame is loaded. Those tabs are based on Java
  script. (HTTP request url is not there for these tabs). Is there any way
  to
  test tabs..?
 
  Thanks
  Raj
 
 
  Noel O'Brien wrote:
  
   Hi,
  
   See the JMeter is not a browser section in
   http://jakarta.apache.org/jmeter/index.html
  
   Regards,
   Noel
  
   - MITRAJ rajesh.mittapa...@gs.com wrote:
  
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24493378.html
   Sent from the JMeter - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
   For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
  
  
  
   --
   Regards,
   Noel
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24496582.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 
 
  --
  Regards,
  Noel
 
 

 --
 View this message in context:
 http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24510645.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Do Jmeter Support Java Script calls..?

2009-07-16 Thread Tony Lotts
Deepak is right.  However what I think the op wants to do is performance
test loading each tab, which is implemented in client side code
(javascript).
The performance of executing client side code is based upon the user's own
machine, and browser; which is irrelevant to web application scalability and
thus not served by JMeter.

In this case you may want to deliver a comparison of tab navigation across
each of your supported browsers, reporting the baseline hardware that the
test was conducted with.
However unless the tab navigation is a suspect of a poorly performing
implementation, it's not worth investigation.

On Thu, Jul 16, 2009 at 12:30 PM, Deepak Shetty shet...@gmail.com wrote:

 how practical with you consider using the __javaScript() function in
 this type of situations? (or any other way to process client side
 actions when they are strictly needed)
 I ran into this problem recently and decided to write java code that
 simulated what the function does (generating complex XML from variables ,
 dynamic field names etc..). If I'm interested in testing functionality that
 is browser/javascript dependent I normally use selenium (or QTP). Its far
 more difficult to get any accuracy of browser render or script execution
 times , considering the various hardware configurations that can exist.

  I got the help of two developers and we found one variable expected
 from the applet, no appropiate value was found in all the traffic
 recorded, so they assumed that it is sent directly from the applet to
 the server
 If it's using HTTP it must work (the applet however could do other stuff),
 You'd probably need to use a network sniffer tool like Wireshark and
 verify.
 In any case what an applet can do(in terms of client-server communication)
 ,
 you can do in Java/BSH.
 regards
 deepak

 On Thu, Jul 16, 2009 at 7:29 AM, Adrian Speteanu asp.ad...@gmail.com
 wrote:

  well since this question was re-re-asked (again :) ), here goes nothing:
 
how practical with you consider using the __javaScript() function in
  this type of situations? (or any other way to process client side
  actions when they are strictly needed)
  ( I am thinking of situations were the application might be so
  obfuscated that without running a certain js you cannot generate a
  certain variable value to pass back to the server, so whatever you do,
  your requests will never be well formatted or complete. would it be
  recommended/possible to adapt that js to what JMeter recognises / can
  do? )
 
  I encountered this problem with applets: all apparent requests
  encountered in proxy server were replicated and I even managed to get
  the id's right  for all applet elements and for repository resources.
  however, the application returned null pointer exception for one of
  the most simple request of all.
  I got the help of two developers and we found one variable expected
  from the applet, no appropiate value was found in all the traffic
  recorded, so they assumed that it is sent directly from the applet to
  the server (I have my doubts on that but could not prove them wrong).
  so, the test simply didn't act like the application no matter what.
 
 
  On Thu, Jul 16, 2009 at 4:23 PM, Tony Lotts tljme...@gmail.com wrote:
  
   What is it that you want to accomplish?
   If this is for a scalability test,  the performance of client side code
   execution is irrelevant.
  
   On Thu, Jul 16, 2009 at 2:10 AM, MITRAJ rajesh.mittapa...@gs.com
  wrote:
  
   
Tabs are loaded on demand and contents in the tab are pre-loaded..
   
Thanks,
Raj
   
Noel O'Brien wrote:

 How is the content of the tab gotten from the server? Is it
  pre-loaded or
 loaded on demand.? Either way, it's probably obtained using a http
  call.

 Try using a tool like wireshark to to analyze the call flow or you
  could
 use JMeters HTTP Proxy to recore the call flows directly.

 Regards,
 Noel

 - MITRAJ rajesh.mittapa...@gs.com wrote:

 Thanks Noel

 In my application have 3 tabs.
 If i click on the tab, A frame is loaded. Those tabs are based on
  Java
 script. (HTTP request url is not there for these tabs). Is there
 any
  way
 to
 test tabs..?

 Thanks
 Raj


 Noel O'Brien wrote:
 
  Hi,
 
  See the JMeter is not a browser section in
  http://jakarta.apache.org/jmeter/index.html
 
  Regards,
  Noel
 
  - MITRAJ rajesh.mittapa...@gs.com wrote:
 
 
  --
  View this message in context:
 

   
 
 http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24493378.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
 
  -
  To unsubscribe, e-mail:
  jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail:
  jmeter-user-h

Re: get several IDs from several Users

2009-07-15 Thread Tony Lotts
What should JMeter do with the CompanyIDs once it gets them?

On Wed, Jul 15, 2009 at 5:55 AM, Knut Wuchtig knu...@gmx.net wrote:


 Hello,

 maybe you can help me. I work with JMeter and SOAP Request, like
 GetObjectByFilter.
 I have the following problem.

 Situation:
 I have an amount of user with a special attribut. I can request the user
 with GET and get e.g. 100 Users. Now all these users have at least on
 CompanyID, which says that, that they are related to this company. After
 getting the users, i want to request every CompanyID they own.

 My wish:
 I want to test with JMeter, if every CompanyID i get with the
 GetUserRequest
 is get-able.
 So i like to have, that JMeter take the first User and get every CompanyID.
 After this JMeter should take the second user and take his CompanyIDs. Then
 the third and so on... The biggest problem i have is that every user can
 have one CompanyID or MORE.

 http://www.nabble.com/file/p24494926/test.jpeg
 --
 View this message in context:
 http://www.nabble.com/get-several-IDs-from-several-Users-tp24494926p24494926.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Do Jmeter Support Java Script calls..?

2009-07-15 Thread Tony Lotts
It sounds like what you want to test is the load time of the frames.

Is each frame defined in a different HTML document?  If so, just request
each HTML document with an HTTP GET. You may also want to check 'Download
Embedded Resources...'.

On Wed, Jul 15, 2009 at 8:07 AM, MITRAJ rajesh.mittapa...@gs.com wrote:


 Thanks Noel

 In my application have 3 tabs.
 If i click on the tab, A frame is loaded. Those tabs are based on Java
 script. (HTTP request url is not there for these tabs). Is there any way to
 test tabs..?

 Thanks
 Raj


 Noel O'Brien wrote:
 
  Hi,
 
  See the JMeter is not a browser section in
  http://jakarta.apache.org/jmeter/index.html
 
  Regards,
  Noel
 
  - MITRAJ rajesh.mittapa...@gs.com wrote:
 
 
  --
  View this message in context:
 
 http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24493378.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 
 
  --
  Regards,
  Noel
 
 

 --
 View this message in context:
 http://www.nabble.com/Do-Jmeter-Support-Java-Script-calls..--tp24493378p24496582.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: How to test login accounts?

2009-07-15 Thread Tony Lotts
See CSV Data Set Config, and Response Assertion.

On Wed, Jul 15, 2009 at 9:01 AM, ziohausam ziohau...@gmail.com wrote:


 Hello All,

 we are moving our accounts (4000) from an old to a new system.

 I need to conduct a test using jmeter to make sure that all will
 successfully log in. how can i do this ? i have user names and passwords in
 an excel file.

 i can only create this for a single user. i need to know how to automate
 this for the different 4000 accounts and how to check if the landing page
 returned successfully after successful login?

 I really appreciate your help


 Regards,
 Hosam
 --
 View this message in context:
 http://www.nabble.com/How-to-test-login-accounts--tp24497458p24497458.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: The browser has JavaScript disabled error in view results tree

2009-07-06 Thread Tony Lotts
It is ideal to eliminate javascript execution from your performance test.
The performance of javascript execution is variable, based upon client-side
factors, such as browser, and platform.
The metrics that you will likely want to report are:

   - The total time to download each embedded resource (CSS, javascript,
   images, etc...).  This type of sub-request is a HTTP GET request.You will
   need to save results as XML, this will be the elapsed value of the
   sub-requests.
   - Overall page load time.  This is the elapsed value of each parent
   request.
   - If a page returns any type of query (usually as the response to a
   POST), you will want the time to return the query results, exclusive of
   embeded resources.  This would be the response time of the first request,
   which is the parent node in the XML results.  This will be the latency value
   of the parent request.



On Mon, Jul 6, 2009 at 5:01 AM, Noel O'Brien nobr...@newbay.com wrote:

 In the HTTP Sampler that's making the request, try checking the Retrieve
 all embedded resources from HTML files. This will ensure that images, JS
 files, CSS files, etc. are retrieved from the server.

 Regards,
 Noel

 - Jmeter_User tptes...@gmail.com wrote:
 
  Thanks for your reply.
  The application which I am testing is a web application built in
 Sharepoint
  with java scripts in each page. Its kind off search engine, each time I
  search something ,the results will be displayed and at the top of the
 page
  there is a navigation bar, which I presume is a static java script, which
 is
  getting failed to load with the error The browser has Javascript
 disabled.
  The problem what I am facing is, I am getting the response time of the
  search result page, but the response time shown by Jmeter is less
 compared
  to Load Runner for the same search.
  I felt this may be due to not able to download the navigation bar in
 Jmeter,
  but in case of Load Runner it is showing the complete page with images
 and
  navigation bar.
 
 
 
 
 
  Noel O'Brien wrote:
  
   AFAIK, JMeter can only measure the time taken to retrieve resources
 from a
   server. It cannot measure the time to execute JS, render a webpage,
 etc.
   so it is probably not the appropriate test tool if that's what you're
   trying to achieve.
  
   Regards,
   Noel
  
   - Jmeter_User tptes...@gmail.com wrote:
  
   Thanks Noel for the pointer.
   I gone through that section.
  
   Can you please tell me, if that is the case, how can we find out the
   exact
   response time of a transaction or a page, if the html page is having
 java
   scripts. Is its advisable not to use jmeter for such applications?
  
  
   Noel O'Brien wrote:
   
Hi,
   
See the JMeter is not a Browser section here:
http://jakarta.apache.org/jmeter/index.html
   
Regards,
Noel
   
- Jmeter_User tptes...@gmail.com wrote:
   
Hi All,
I am getting error The browser has JavaScript disabled, while
   running
test using Jmeter for a web based application.
This error is caused by Jmeter, Does Jmeter uses its own internal
browser,
like other performance test tools for eg: Load Runner and Silk
   Performer
to
simulate load of browser?
I am not sure if I change the Internet Explorer setting of my
 system
   to
enable the java scripts, is it goign to solve the error which I am
getting
using Jmeter in View Results Tree.
   
Please let me know if there is any way I can avoid that error.
   
Thanks in advance.
   
--
View this message in context:
   
  
 http://www.nabble.com/The-browser-has-JavaScript-disabled-error-in-view-results-tree-tp24350435p24350435.html
Sent from the JMeter - User mailing list archive at Nabble.com.
   
   
   
 -
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail:
 jmeter-user-h...@jakarta.apache.org
   
   
   
--
Regards,
Noel
   
   
  
   --
   View this message in context:
  
 http://www.nabble.com/The-browser-has-JavaScript-disabled-error-in-view-results-tree-tp24350435p24351696.html
   Sent from the JMeter - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
   For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
  
  
  
   --
   Regards,
   Noel
  
  
 
  --
  View this message in context:
 http://www.nabble.com/The-browser-has-JavaScript-disabled-error-in-view-results-tree-tp24350435p24351947.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 

 --
 Regards,
 Noel



Re: Simulating 3.000 visitors per minute

2009-07-06 Thread Tony Lotts
Try a request to load index.html, and select Retrieve all embedded
resources...

On Thu, Jul 2, 2009 at 10:00 AM, appel arn...@siminn.is wrote:


 Hi

 I need to create a test plan where 3.000 users load up 4 pages (at the same
 time) per minute.


 It's a index.html page, that includes three iframes, iframe1.html,
 iframe2.html and iframe3.html.

 I need to create a test plan that loads up index.html and those three
 iframes, at the same time.

 I need to test how the web server reacts with 3.000 users doing this per
 minute (3.000 users distributed over a period of 60 seconds).

 I need to run this a few times to see how the server copes with it.

 Any ideas?
 --
 View this message in context:
 http://www.nabble.com/Simulating-3.000-visitors-per-minute-tp24307239p24307239.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Help with Constant Timer and Listener, gradually Threads

2009-06-15 Thread Tony Lotts
1st question:  The timer is not required, but it's handy if you need to
simulate think time.  If you're doing scalability testing you may want think
time  If you're doing a stress test, you probably will not want think time,
it will depend on what your server can handle, performance reqs. etc...

Could you elaborate on your second question?

On Mon, Jun 15, 2009 at 9:21 AM, StudentJM meister-kons...@gmx.de wrote:


 Hello,

 im trying to load test a web application. Created a testplan, which
 requests
 my application.
 The user clicks trough a part of the site. (12 HTTP Request Sampler)
 My Question:
 Is it neccessary to add a constant Timer between each request?

 My secons Question:
 Is it possible to send for instance 5000 Threads(User) gradually. Means 500
 Threads, Constant Timer, next 500... and so on until it reaches 5000 in a
 given Ramp up period, for a scaling test.



 Thanks in advance

 --
 View this message in context:
 http://www.nabble.com/Help-with-Constant-Timer-and-Listener%2C-gradually-Threads-tp24034570p24034570.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Hot to stop http request execution in case of no response

2009-06-15 Thread Tony Lotts
In JMeter 2.3.3 you can set a response timeout in the HTTP Request, or HTTP
Request HTTPClient nodes.

JMeter 2.3.3 release notes:
HTTP Samplers now support connection and request timeouts (requires Java
1.5 for Java Http sampler)

If this doesn't suit your needs, you could use a beanshell component:

   1. Get the timestamp of the start of the sample.
   2. In a loop check for null response, compare current time with
   timestamp.
   3. If the difference is greater than your requirement, mark the sample as
   failed.

On Mon, Jun 15, 2009 at 1:13 AM, l_u_c_f_e_r_13 syam...@globallogic.comwrote:


 As I said I have ho response (it just hangs) so I can't use 'Response
 Assertion'. Also I couldn't found 'Post Processor - HTTP request
 defaults',
 I don't have mentioned sample for Post Processor.
 --
 View this message in context:
 http://www.nabble.com/Hot-to-stop-http-request-execution-in-case-of-no-response-tp24019369p24028905.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Help with Constant Timer and Listener, gradually Threads

2009-06-15 Thread Tony Lotts
The following will work for either scenario, if you want to step-up in
increments of 500, or gradually ramp up to 500, run at 500 for a specified
amount of time, then gradually add 500 and so-on.

   - Use 10 thread groups, each with 500 threads, and set the startup delay
   equal, or greater than the ramp-up period of the previous thread.


If you want to use one thread group (simpler and more elegant), the
following may work:

   - Using beanshell read thread start times from a csv file, and set the
   start time of each thread.  Use the read line from CSV function, not the CSV
   dataset config.

This way, your ramp up, and start times are explicit, and data-driven.  You
could script the creation of the csv file with bash, perl, vbscript,
whatever.

Just out of curiousity, what hardware/OS are your 17 machines that you're
driving this with?


On Mon, Jun 15, 2009 at 9:41 AM, StudentJM meister-kons...@gmx.de wrote:


 Of course.


 I want to simulate 5000 virtual Users (Threads) on my application.
 The way i want to do this, is not to start all 5000 of them within a
 specific time.
 My imagination to make this possible with distributed testing.

 I've got 17 computers. 16 slaves, 1 master.
 The master gets the instruction to start 5000 threads in a specifiv ramp up
 period time.
 At this point, is there any way to say them to start the first 500 Threads,
 then wait for instance one minute, start the next 500 threads (in 500
 seconds maybe), then wait another minute, start the next 500 Threads and so
 on, until it reaches the full amount of 5000 Threads. I think its called
 scaling test.


 Thanks

 --
 View this message in context:
 http://www.nabble.com/Help-with-Constant-Timer-and-Listener%2C-gradually-Threads-tp24034570p24034866.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: Regular Expression Extractor and its Variables

2009-06-15 Thread Tony Lotts
Try:

   - vars.get(city_10) or you could use ${city_10}
   - vars.put( city_10, a )
   - print(${city_10}) or print(vars.get(city_10))


On Fri, Jun 5, 2009 at 12:19 PM, mattlamignat mateusz_grode...@o2.plwrote:


 This is my test plan:

  |-User Defined Variable
  |-HTTP Request
|-Regular Expression Extractor
  |-SOAP Request
|-Response Assertion

 What I have to do is to capture strings from the HTTP response and check if
 they do exist in the SOAP response. The thing is that I don't know how many
 strings I need to capture (for instance Cities) will be in the HTTP
 response. I set regexp to capture all of them:
 Match No.(0 for Random)   -1
 I set 10 variables in the Response Assertion
 ${city_1}
 ${city_2}
 
 ${city_10}

 The problem is when I have less than 10 Cities in the HTTP response. In
 this
 case my assertions fail with the message Test failed: text expected to
 contain /${city_10}/

 I try to replace null in the  ${city_10} with some string that exist in the
 SOAP response so my test will not fail.

 I added BeanShell PreProcessor as a child of SOAP Request:

 if (vars.get(${city_10}) == null){
 vars.put( ${city_10}, a );
 print(vars.get(${city_10})); // just to ensure above line changed the
 value to a
 }

 but it's not working - I'm still getting the message Test failed: text
 expected to contain /${city_10}/

 please help..


 --
 View this message in context:
 http://www.nabble.com/Regular-Expression-Extractor-and-its-Variables-tp23891274p23891274.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Re: SSL over TCP

2009-06-11 Thread Tony Lotts
Could this be accomplished with the beanshell sampler?

On Thu, Jun 11, 2009 at 5:22 AM, sebb seb...@gmail.com wrote:

 On 10/06/2009, Tony Lotts tljme...@gmail.com wrote:
  I need to send SSL over TCP (not HTTPS).
   The TCP sampler is not sending a client hello.  How can I get JMeter to
 send
   the client hello?

 You'll probably have to implement your own TCP sampler client.

   Thanks
 

 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




SSL over TCP

2009-06-10 Thread Tony Lotts
I need to send SSL over TCP (not HTTPS).
The TCP sampler is not sending a client hello.  How can I get JMeter to send
the client hello?

Thanks


Re: Beanshell timer - response time threshhold

2009-06-02 Thread Tony Lotts
This is for validating how many users a single webservice app server can
support within a response time requirement, and the rate at which those
user's can send transactions.


On Mon, Jun 1, 2009 at 9:03 PM, sebb seb...@gmail.com wrote:

 On 01/06/2009, Tony Lotts tljme...@gmail.com wrote:
   I have created a timer which varies the delay based upon whether or not
 the
   response time of the previous transaction is  2999 milliseconds.

 What are you trying to achieve here?

 
   The solution that I have uses a beanshell timer, beanshell
 postprocessor,
   and beanshell assertion.
 
   The beanshell timer returns the delay property set by the beanshell
   postprocessor.
 
   The beanshell postprocessor evaluates the response time, and sets the
 delay
   property.
 
   The beanshell assertion sets the delay to the assertion failure message.
 
 
   Does anyone have any ideas for a more elegant solution?
 

 If you want to delay after the sampler, then you can do it in the
 BeanShell post-processor.

 -
 To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
 For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org




Beanshell timer - response time threshhold

2009-06-01 Thread Tony Lotts
 I have created a timer which varies the delay based upon whether or not the
response time of the previous transaction is  2999 milliseconds.


The solution that I have uses a beanshell timer, beanshell postprocessor,
and beanshell assertion.

The beanshell timer returns the delay property set by the beanshell
postprocessor.

The beanshell postprocessor evaluates the response time, and sets the delay
property.

The beanshell assertion sets the delay to the assertion failure message.


Does anyone have any ideas for a more elegant solution?