Re: Whether Jmeter can test sparql queries?

2011-10-31 Thread Deepak Shetty
If you use the JDBC driver then yes.
Otherwise there is always the Java sampler

regards
deepak

On Mon, Oct 31, 2011 at 3:08 PM, Nalini nalini.raviku...@gmail.com wrote:

 Hi

 I know we can test Mysql queries from Jmeter. But what about sparql
 queries?
 Can jmeter test sparql queries? My application uses triple storage as
 database. Can anyone please help me on this?

 With Regards
 Nalini Ravikumar

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Whether-Jmeter-can-test-sparql-queries-tp4953723p4953723.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: JMeter, nginx and content-length

2011-10-31 Thread Deepak Shetty
if thats the case , isnt the problem with your proxy?

On Mon, Oct 31, 2011 at 11:25 AM, Stevo Slavić ssla...@gmail.com wrote:

 Btw, when the request is smallish, it passes through to the Tomcat and
 gets processed well.

 On Mon, Oct 31, 2011 at 7:07 PM, Stevo Slavić ssla...@gmail.com wrote:
  Hello JMeter users,
 
  A simple test with SOAP/XML-RPC Request sampler is failing for me when
  trying to access Java application deployed on Tomcat through nginx
  (nginx returns 408). When test is configured to send directly the
  request to Tomcat it works. Not sure yet but it seems JMeter is
  sending wrong content-length header value.
 
  Has anyone experienced anything similar?
 
  Using JMeter 2.5.1, Java 1.6, on Windows 7 x64, while nginx and Tomcat
  are on Linux.
 
  Regards,
  Stevo.
 

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




Re: Whether Jmeter can test sparql queries?

2011-10-31 Thread Deepak Shetty
Hi
what library do you use to execute sparql queries in your application? - If
you use any java library , you can do the same from a Java Sampler in
Jmeter.

If you use something like http://code.google.com/p/jdbc4sparql/ then you
can also use the JDBC sampler in Jmeter
regards
deepak



On Mon, Oct 31, 2011 at 3:24 PM, Nalini nalini.raviku...@gmail.com wrote:

 Sorry i am not getting you. We don't use JDBC driver. But still can we test
 sparql queries with Jmeter? Then how can we do that? Can you share some
 links on that.

 Thanks in advance

 Regards
 Nalini

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Whether-Jmeter-can-test-sparql-queries-tp4953723p4953757.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: Whether Jmeter can test sparql queries?

2011-10-31 Thread Deepak Shetty
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Java_Request
http://stackoverflow.com/questions/2379688/testing-java-classes-with-jmeter
and others available with a google search

regards
deepak

On Mon, Oct 31, 2011 at 3:46 PM, Nalini nalini.raviku...@gmail.com wrote:

 Yes,We are using Java library. But we are not using either JDBC or JDBC4
 sparql. We are usingSesame, open RDF for this.

 When you talk about java samplers: Is that the java request in Sampler
 option or is this something other?
 Can you please share some more information on Java Samplers in Jmeter?

 Regards
 Nalini



 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Whether-Jmeter-can-test-sparql-queries-tp4953723p4953797.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: Whether Jmeter can test sparql queries?

2011-10-31 Thread Deepak Shetty
I should probably mention that if you have JUNit cases then you can also
use
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#JUnit_Request

regards
deepak

On Mon, Oct 31, 2011 at 4:10 PM, Nalini nalini.raviku...@gmail.com wrote:

 Thanks a lot deepak.

 Regards
 Nalini

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Whether-Jmeter-can-test-sparql-queries-tp4953723p4953841.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: need help in parameterizing

2011-10-31 Thread Deepak Shetty
 jmeter is reading username and password from the csv file
Did you verify this? Add a view results tree listener and check the data
being sent or add a debug sampler just before the HTTP Request. if you see
it as ${a} then in all likelihood your file isnt being picked up (and you
should see an error message in jmeter.log) - Note Relative file names are
resolved with respect to the path of the active test plan - not the bin
directory

If the above shows the data correctly and you can login to your site using
the same username / password then compare what the browser sends with with
what jmeter is sending

regards
deepak

On Mon, Oct 31, 2011 at 9:55 PM, shankykurella
shankarkurella...@gmail.comwrote:

 hi all,

 i have parameterized username,and password from a csv file. csv looks as

 abc123,password
 abc1234,password
 i have placed csv file in bin folder... and added a csv data inside http
 request

 variable names are: a,b
 delimier: ,
 recycle on eof : true
 stop thread on eof : true

 and under the http request i have added under send parameters with request
 i
 have added a,b variables as ${a},${b} with some names to those variables

 now the problem is while running, jmeter is reading username and password
 from the csv file but not proceeding further and stating as invalid
 username
 and password when it suppose to navigate to home page

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/need-help-in-parameterizing-tp4954284p4954284.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 Extrator doesnt work on all pages

2011-10-27 Thread Deepak Shetty
Which doesn't have a title. You have to also extract the meta refresh url
and follow that if it exists.
 On Oct 27, 2011 7:25 AM, brock brockmo...@gmail.com wrote:


 shettyd wrote:
 
  So if you add a response assertion for the HTTP Request (with the same
  regex)  , then it should fail as well.
   Can you then look at the failed HTTP Request : Login and check the exact
  text in view results tree listener, response tab?
 

 I added it and it did fail.

 Here is the text from the response tab: (i dotted out some of the user
 info...)

 HTML
 HEAD
 meta http-equiv=refresh

 content=0;url=/...//twbkwbis.P_GenMenu?name=bmenu.P_MainMnuamp;msg=WELCOME+Welcome,+User+Name,+to+the+Student+Access+System(ASAP)!Oct+27,+201109%3A20+am
 /HEAD
 /HTML




 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Regular-Expression-Extrator-doesnt-work-on-all-pages-tp4941121p4943133.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 Extrator doesnt work on all pages

2011-10-27 Thread Deepak Shetty
Hi
Your response that fails is
HTML
HEAD
meta http-equiv=refresh
content=0;url=/...//
twbkwbis.P_GenMenu?name=bmenu.P_MainMnuamp;msg=WELCOME+Welcome,+User+Name,+to+the+Student+Access+System(ASAP)!Oct+27,+201109%3A20+am
/HEAD
/HTML

The meta http-equiv=refresh is a directive that tells the browser to
refresh the page with the url in the url attribute. However Jmeter (is not a
browser etc etc) wont do it automatically. Therefore your test fails. So you
have to modify your test to be
Http  Request
+Extract Title (default=notfound)
+Extract meta refresh url (default = notfound)
If(${metaurlrefesh} != notfound)
+request metaurlrefresh (but ensure you get the path right , unescape amp;)
++Extract Title again , variable name same as the first Extract Title so
that you override the value
if(${title} == value1)
+Request 1
if(${title} == value2)
+Request 2

etc etc

regards
deepak


On Thu, Oct 27, 2011 at 7:39 AM, brock brockmo...@gmail.com wrote:


 shettyd wrote:
 
  Which doesn't have a title. You have to also extract the meta refresh url
  and follow that if it exists.
   On Oct 27, 2011 7:25 AM, brock lt;brockmoore@gt; wrote:
 

 Not sure I understand what your asking.  But If I just refresh the browser
 or past in the url it goes to the main landing page.  Which is where it
 should if you clicked the Continue button on the page that doesn't have a
 title in the response.  But if I view the page source it has a TITLE


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Regular-Expression-Extrator-doesnt-work-on-all-pages-tp4941121p4943174.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 Extrator doesnt work on all pages

2011-10-27 Thread Deepak Shetty
thats something that your application developers can answer (usually meta
refresh is legacy code)

regards
deepak

On Thu, Oct 27, 2011 at 11:18 AM, brock brockmo...@gmail.com wrote:


 shettyd wrote:
 
  Hi
  Your response that fails is
  HTML
  HEAD
  meta http-equiv=refresh
  content=0;url=/...//
 
 twbkwbis.P_GenMenu?name=bmenu.P_MainMnuamp;msg=WELCOME+Welcome,+User+Name,+to+the+Student+Access+System(ASAP)!Oct+27,+201109%3A20+am
  /HEAD
  /HTML
 
  The meta http-equiv=refresh is a directive that tells the browser to
  refresh the page with the url in the url attribute. However Jmeter (is
 not
  a
  browser etc etc) wont do it automatically. Therefore your test fails. So
  you
  have to modify your test to be
  Http  Request
  +Extract Title (default=notfound)
  +Extract meta refresh url (default = notfound)
  If(${metaurlrefesh} != notfound)
  +request metaurlrefresh (but ensure you get the path right , unescape
  amp;)
  ++Extract Title again , variable name same as the first Extract Title so
  that you override the value
  if(${title} == value1)
  +Request 1
  if(${title} == value2)
  +Request 2
 
  etc etc
 
  regards
  deepak
 

 If I request the meta refresh it just goes to the main landing page where
 the title is Home, the other page is Fee Reminder.

 Why do some pages not have the full Response and some do?



 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Regular-Expression-Extrator-doesnt-work-on-all-pages-tp4941121p4943791.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: Viewing recorded data in JMeter

2011-10-27 Thread Deepak Shetty
Any data you punch in usually goes as Posted or query string parameters and
should be visible in the next request.

On Thu, Oct 27, 2011 at 1:21 PM, Prabhav11
prabhav.bhatjiw...@timelink.comwrote:

 Hi All,

 Is there a way to view every piece of data recorded using JMeter, including
 any numbers punched in the front end during recording? I want to see, all
 the data which is recorded , currently it shows me all the links , but not
 the actual data which is recorded in the links including the numbers
 punched
 in as part of the recording. Any ideas on how do I get to the nitty-gritty
 of the recorded samples? Thanks in advance for quick reply!



 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Viewing-recorded-data-in-JMeter-tp4944086p4944086.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: Plan to use XPath Extractor to extract multiple matches but get single match only during execution?

2011-10-26 Thread Deepak Shetty
just the defaults. (Technically you should use the jtidy that ships with
jmeter - but results should be fairly similar).
You can see warnings of the sort below which tell you why it is discarding
the divs/anchors

There are possibly some feature enhancements that you could request for in
Bugzilla
a. The ability to see the JTidy output. I recollect others have run into
similar problems as you have
b. The ability to use an XML tag balancer (e.g. tagsoup) instead of Tidy
(which will try to make your HTML valid) - You really only need to have some
sort of well formed XML for XPath to work so Tidy is overkill IMO.

regards
deepak




Warning: discarding unexpected /td  /td  [image: warn] 1002 Warning:
discarding unexpected /tr  /tr  [image: warn] 1003 Warning: discarding
unexpected tr  tr valign=top  [image: warn] 1005 Warning: discarding
unexpected td  td  [image: warn] 1006 Warning: discarding unexpected
div; Warning: discarding unexpected /div  div
class=sprite-arrow-icon/div  [image: warn] 1007 Warning: discarding
unexpected a; Warning: discarding unexpected plain text; Warning:
discarding unexpected /a; Warning: discarding unexpected br  a href=
http://www.beta.tinyprints.com/personalize/1413501/Grown-UpGlitz/saved/1c30eb971cd2629cc843a1a5e94eced7f231bceb.html;Edit/abr
/  [image:
warn] 1008 Warning: discarding unexpected div  div
class=removeCartItem  [image: warn] 1009 Warning: discarding unexpected
div; Warning: discarding unexpected /div  div
class=sprite-remove-icon/div  [image: warn] 1010 Warning: discarding
unexpected a; Warning: discarding unexpected plain text; Warning:
discarding unexpected span; Warning: discarding unexpected div; Warning:
discarding unexpected /div; Warning: discarding unexpected plain text;
Warning: discarding unexpected /span; Warning: discarding unexpected /a  a
href=# class=removeItemLink id=7249683Removespandiv
class=sprite-tooltip-arrow/divRemoving this item from your cart may
affect your discount./span/a


On Wed, Oct 26, 2011 at 3:25 AM, David Luu manga...@gmail.com wrote:

 Thanks Deepak, what option settings did you use for infohound.net/tidy? Or
 just the defaults?

 On Tue, Oct 25, 2011 at 4:48 PM, Deepak Shetty shet...@gmail.com wrote:

  verified . If I run your page using http://infohound.net/tidy/ then if
 you
  look at the cleaned up HTML it produces then there is only a single
  anchor
  with the class
 
  Technically these are issues that your test tool found for you :) . if
 you
  can get the dev's to fix the HTML then the XPATH should start working
  (note that XPath is memory intensive and slower as compared to a regex
 post
  processor - thats fine for functional tests , not so much for load)
 
  regards
  deepak
 
  On Tue, Oct 25, 2011 at 4:40 PM, David Luu manga...@gmail.com wrote:
 
   Thanks for the help Deepak.
  
   On Tue, Oct 25, 2011 at 4:34 PM, Deepak Shetty shet...@gmail.com
  wrote:
  
A cursory look shows a bunch of HTML errors including duplicate ids
  that
might be impacting what TIDY does to your HTML (and the XPATH runs
 over
   the
TIDY).
Will need to check
   
right now it looks If you arent sure of the order then you can always
  run
two regexes . If your text is always going to be remove then you can
  use
that bit of information
   
regards
deepak
   
   
On Tue, Oct 25, 2011 at 4:11 PM, David Luu manga...@gmail.com
 wrote:
   
 Sorry, didn't know that. Here's the URL
 http://dlshare.s3.amazonaws.com/shoppingCart.txt

 On Tue, Oct 25, 2011 at 3:42 PM, Deepak Shetty shet...@gmail.com
wrote:

  hi
  the mailing list rejects attachments. upload it somewhere and
 send
  a
link
 
  regards
  deepak
 
  On Tue, Oct 25, 2011 at 3:38 PM, David Luu manga...@gmail.com
   wrote:
 
   JMeter v2.5 on Windows
  
   Added debug sampler, it did indeed match one only (the first
 item
   in
   shopping list, top down order):
  
   ORDERITEMIDS=7249682
   ORDERITEMIDS_1=7249682
   ORDERITEMIDS_matchNr=1
  
   Attached is HTML from the HTTP sampler response of the shopping
   cart
 page
   for which we extract the data. I did a text search on
removeItemLink
  and
   did get 3 entries for the link for 3 cart items.
  
   I also did a test replacing XPath extractor with regex
 extractor
   and
 used
   this pattern to do a global/multi match against:
  
   .+class=removeItemLink.+id=(\d+).+
  
   granted if the HTML attribute order ever changed, it would
 break
   the
  regex
   but wouldn't break XPath.
  
   In the replacement, I left everything else intact, and used
 same
 variable
   name for the cart items IDs. The regex version worked fine,
  getting
all
 3
   cart items.
  
   So there's no loop problem for sure. Seems to be an XPath
  extractor
  problem
   here.
  
   On Tue, Oct 25, 2011 at 3:16

Re: Regular Expression Extrator doesnt work on all pages

2011-10-26 Thread Deepak Shetty
So if you add a response assertion for the HTTP Request (with the same
regex)  , then it should fail as well.
 Can you then look at the failed HTTP Request : Login and check the exact
text in view results tree listener, response tab?

regards
deepak

On Wed, Oct 26, 2011 at 2:19 PM, brock brockmo...@gmail.com wrote:


 shettyd wrote:
 
  did you create the regex as child of the sampler returning the response?
 
  Yes, its looks like this:
 
  HTTP Request: Login
RegEx Extractor: Extract Page Title
 
  If Controller: Update Password
...
  If Controller: Update Contacts
...
  If Controller: Update Email
...
 
  The If Controllers are configured as:
  ${PageTitle} == Update Password
  ${PageTitle} == Update Contacts
  ${PageTitle} == Update Email
 
  It works for some pages but not all of them.  I did check the page source
  for the pages not working and they do have quite a few errors and
 warnings
  reported, I used   http://validator.w3.org/   to check it.
 
  --
  View this message in context:
 
 http://jmeter.512774.n5.nabble.com/Regular-Expression-Extrator-doesnt-work-on-all-pages-tp4941121p4941121.html
  Sent from the JMeter - User mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscribe@.apache
  For additional commands, e-mail: jmeter-user-help@.apache
 
 
 


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Regular-Expression-Extrator-doesnt-work-on-all-pages-tp4941121p4941215.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: Unexpected Page returned

2011-10-25 Thread Deepak Shetty
Also you need quotes around page title
On Oct 25, 2011 8:49 AM, sebb seb...@gmail.com wrote:

 On 25 October 2011 16:30, brock brockmo...@gmail.com wrote:
  Thanks! Got it pulling the HTML Title to use for the If controller, but
 if I
  look at the Debug Sampler I see a few version of the variable I defined
 in
  the RegEx Extractor:
 
  PageTitle is the reference name in the RegEx Extractor.
 
  Info from the Debug Sampler:
  PageTitle=Verify Login

 Note, no tags ...

  PageTitle_g=1
  PageTitle_g0=TITLEVerify Login /TITLE
  PageTitle_g1=Verify Login
 
  My if controller is:
  ${PageTitle} == TITLEVerify Login /TITLE

 See above - PageTitle does not include the tags.

 
  But it never goes into the If controller.  Tried escaping thebut it
  still didn't work.  What do I have wrong? lol

 Wrong compare.

  Oh and I now see what you mean by it getting messy, not sure this is
 going
  to even work, structure wise.
 
  --
  View this message in context:
 http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4936662.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: Plan to use XPath Extractor to extract multiple matches but get single match only during execution?

2011-10-25 Thread Deepak Shetty
what version of Jmeter?
Dont go by Firebug it looks at the DOM whereas JMeter will have to look at
the source html .

Add a Debug Sampler under your HTTP Sampler and also add a view results tree
listener.
If your debug sampler shows your multiple values correctly the problem is in
the loop

If your debug sampler only shows a single value , then you need to look at
the HTML response (in view results tree listener) that your xpath extractor
is a child of and see if you have multiple nodes satisfying your condition
or your HTML is different from what you expect.
If the HTML looks right , then upload a copy of the html and send the link

regards
deepak

On Tue, Oct 25, 2011 at 1:27 PM, David Luu manga...@gmail.com wrote:

 Hi, just wanted to check to see if I misconfigured something or XPath
 defined correctly. Here's the setup:

 We have HTTP request sampler to hit user's shopping cart that returns HTML
 in response. The HTML is dynamic based on what user already has in cart.

 I want the JMeter test to remove items in cart, and we do that by fetching
 the item ID stored in the links to then remove item by make HTTP POST in
 another sampler with the item ID. The XPath is as follows:

 //a[@class='removeItemLink']/@id

 We identify the item ID as an attribute in links with class type
 'removeItemLink'. Unfortunately, or to play it safe, we don't know if the
 generated HTML always has same fixed pattern text of whether the class
 attribute is always before or after the ID attribute, hence I chose to use
 XPath extractor rather than a regular expression extractor to get the ID.
 ID
 value is also dynamic and may not be fixed length.

 I enabled Tidy with quiet mode. Later also enabled report errors show
 warnings, and disabled quiet mode, those options didn't help. The UI and
 the
 docs don't mention anything about settings to match once or match all, etc.
 So believe matching number determined by the XPath expression.

 used XPath extracted variable reference name ORDERITEMIDS

 and then had a ForEach controller run a HTTP request sampler to POST to API
 to remove items. But during execution, it only ran once, but it did work
 correctly for the one item that it extracted. ForEach controller configured
 as follows:

 input var prefix = ORDERITEMIDS
 output var name = returnVar
 checked add _ before number

 and in HTTP sampler inside the foreach, reference variable as ${returnVar}

 I tested the XPath with Firebug in Firefox and it matched all the items in
 the cart unlike JMeter, and I know the basics of XPath, and that appears to
 be the correct XPath.

 So is this a bug with JMeter or am I doing something wrong? Or wrong XPath
 somehow still?

 Regards,
 David



Re: Plan to use XPath Extractor to extract multiple matches but get single match only during execution?

2011-10-25 Thread Deepak Shetty
hi
the mailing list rejects attachments. upload it somewhere and send a link

regards
deepak

On Tue, Oct 25, 2011 at 3:38 PM, David Luu manga...@gmail.com wrote:

 JMeter v2.5 on Windows

 Added debug sampler, it did indeed match one only (the first item in
 shopping list, top down order):

 ORDERITEMIDS=7249682
 ORDERITEMIDS_1=7249682
 ORDERITEMIDS_matchNr=1

 Attached is HTML from the HTTP sampler response of the shopping cart page
 for which we extract the data. I did a text search on removeItemLink and
 did get 3 entries for the link for 3 cart items.

 I also did a test replacing XPath extractor with regex extractor and used
 this pattern to do a global/multi match against:

 .+class=removeItemLink.+id=(\d+).+

 granted if the HTML attribute order ever changed, it would break the regex
 but wouldn't break XPath.

 In the replacement, I left everything else intact, and used same variable
 name for the cart items IDs. The regex version worked fine, getting all 3
 cart items.

 So there's no loop problem for sure. Seems to be an XPath extractor problem
 here.

 On Tue, Oct 25, 2011 at 3:16 PM, Deepak Shetty shet...@gmail.com wrote:

 what version of Jmeter?
 Dont go by Firebug it looks at the DOM whereas JMeter will have to look at
 the source html .

 Add a Debug Sampler under your HTTP Sampler and also add a view results
 tree
 listener.
 If your debug sampler shows your multiple values correctly the problem is
 in
 the loop

 If your debug sampler only shows a single value , then you need to look at
 the HTML response (in view results tree listener) that your xpath
 extractor
 is a child of and see if you have multiple nodes satisfying your condition
 or your HTML is different from what you expect.
 If the HTML looks right , then upload a copy of the html and send the link

 regards
 deepak

 On Tue, Oct 25, 2011 at 1:27 PM, David Luu manga...@gmail.com wrote:

  Hi, just wanted to check to see if I misconfigured something or XPath
  defined correctly. Here's the setup:
 
  We have HTTP request sampler to hit user's shopping cart that returns
 HTML
  in response. The HTML is dynamic based on what user already has in cart.
 
  I want the JMeter test to remove items in cart, and we do that by
 fetching
  the item ID stored in the links to then remove item by make HTTP POST in
  another sampler with the item ID. The XPath is as follows:
 
  //a[@class='removeItemLink']/@id
 
  We identify the item ID as an attribute in links with class type
  'removeItemLink'. Unfortunately, or to play it safe, we don't know if
 the
  generated HTML always has same fixed pattern text of whether the class
  attribute is always before or after the ID attribute, hence I chose to
 use
  XPath extractor rather than a regular expression extractor to get the
 ID.
  ID
  value is also dynamic and may not be fixed length.
 
  I enabled Tidy with quiet mode. Later also enabled report errors show
  warnings, and disabled quiet mode, those options didn't help. The UI and
  the
  docs don't mention anything about settings to match once or match all,
 etc.
  So believe matching number determined by the XPath expression.
 
  used XPath extracted variable reference name ORDERITEMIDS
 
  and then had a ForEach controller run a HTTP request sampler to POST to
 API
  to remove items. But during execution, it only ran once, but it did work
  correctly for the one item that it extracted. ForEach controller
 configured
  as follows:
 
  input var prefix = ORDERITEMIDS
  output var name = returnVar
  checked add _ before number
 
  and in HTTP sampler inside the foreach, reference variable as
 ${returnVar}
 
  I tested the XPath with Firebug in Firefox and it matched all the items
 in
  the cart unlike JMeter, and I know the basics of XPath, and that appears
 to
  be the correct XPath.
 
  So is this a bug with JMeter or am I doing something wrong? Or wrong
 XPath
  somehow still?
 
  Regards,
  David
 




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



Re: Plan to use XPath Extractor to extract multiple matches but get single match only during execution?

2011-10-25 Thread Deepak Shetty
A cursory look shows a bunch of HTML errors including duplicate ids that
might be impacting what TIDY does to your HTML (and the XPATH runs over the
TIDY).
Will need to check

right now it looks If you arent sure of the order then you can always run
two regexes . If your text is always going to be remove then you can use
that bit of information

regards
deepak


On Tue, Oct 25, 2011 at 4:11 PM, David Luu manga...@gmail.com wrote:

 Sorry, didn't know that. Here's the URL
 http://dlshare.s3.amazonaws.com/shoppingCart.txt

 On Tue, Oct 25, 2011 at 3:42 PM, Deepak Shetty shet...@gmail.com wrote:

  hi
  the mailing list rejects attachments. upload it somewhere and send a link
 
  regards
  deepak
 
  On Tue, Oct 25, 2011 at 3:38 PM, David Luu manga...@gmail.com wrote:
 
   JMeter v2.5 on Windows
  
   Added debug sampler, it did indeed match one only (the first item in
   shopping list, top down order):
  
   ORDERITEMIDS=7249682
   ORDERITEMIDS_1=7249682
   ORDERITEMIDS_matchNr=1
  
   Attached is HTML from the HTTP sampler response of the shopping cart
 page
   for which we extract the data. I did a text search on removeItemLink
  and
   did get 3 entries for the link for 3 cart items.
  
   I also did a test replacing XPath extractor with regex extractor and
 used
   this pattern to do a global/multi match against:
  
   .+class=removeItemLink.+id=(\d+).+
  
   granted if the HTML attribute order ever changed, it would break the
  regex
   but wouldn't break XPath.
  
   In the replacement, I left everything else intact, and used same
 variable
   name for the cart items IDs. The regex version worked fine, getting all
 3
   cart items.
  
   So there's no loop problem for sure. Seems to be an XPath extractor
  problem
   here.
  
   On Tue, Oct 25, 2011 at 3:16 PM, Deepak Shetty shet...@gmail.com
  wrote:
  
   what version of Jmeter?
   Dont go by Firebug it looks at the DOM whereas JMeter will have to
 look
  at
   the source html .
  
   Add a Debug Sampler under your HTTP Sampler and also add a view
 results
   tree
   listener.
   If your debug sampler shows your multiple values correctly the problem
  is
   in
   the loop
  
   If your debug sampler only shows a single value , then you need to
 look
  at
   the HTML response (in view results tree listener) that your xpath
   extractor
   is a child of and see if you have multiple nodes satisfying your
  condition
   or your HTML is different from what you expect.
   If the HTML looks right , then upload a copy of the html and send the
  link
  
   regards
   deepak
  
   On Tue, Oct 25, 2011 at 1:27 PM, David Luu manga...@gmail.com
 wrote:
  
Hi, just wanted to check to see if I misconfigured something or
 XPath
defined correctly. Here's the setup:
   
We have HTTP request sampler to hit user's shopping cart that
 returns
   HTML
in response. The HTML is dynamic based on what user already has in
  cart.
   
I want the JMeter test to remove items in cart, and we do that by
   fetching
the item ID stored in the links to then remove item by make HTTP
 POST
  in
another sampler with the item ID. The XPath is as follows:
   
//a[@class='removeItemLink']/@id
   
We identify the item ID as an attribute in links with class type
'removeItemLink'. Unfortunately, or to play it safe, we don't know
 if
   the
generated HTML always has same fixed pattern text of whether the
 class
attribute is always before or after the ID attribute, hence I chose
 to
   use
XPath extractor rather than a regular expression extractor to get
 the
   ID.
ID
value is also dynamic and may not be fixed length.
   
I enabled Tidy with quiet mode. Later also enabled report errors
 show
warnings, and disabled quiet mode, those options didn't help. The UI
  and
the
docs don't mention anything about settings to match once or match
 all,
   etc.
So believe matching number determined by the XPath expression.
   
used XPath extracted variable reference name ORDERITEMIDS
   
and then had a ForEach controller run a HTTP request sampler to POST
  to
   API
to remove items. But during execution, it only ran once, but it did
  work
correctly for the one item that it extracted. ForEach controller
   configured
as follows:
   
input var prefix = ORDERITEMIDS
output var name = returnVar
checked add _ before number
   
and in HTTP sampler inside the foreach, reference variable as
   ${returnVar}
   
I tested the XPath with Firebug in Firefox and it matched all the
  items
   in
the cart unlike JMeter, and I know the basics of XPath, and that
  appears
   to
be the correct XPath.
   
So is this a bug with JMeter or am I doing something wrong? Or wrong
   XPath
somehow still?
   
Regards,
David
   
  
  
  
  
   -
   To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org

Re: Plan to use XPath Extractor to extract multiple matches but get single match only during execution?

2011-10-25 Thread Deepak Shetty
verified . If I run your page using http://infohound.net/tidy/ then if you
look at the cleaned up HTML it produces then there is only a single anchor
with the class

Technically these are issues that your test tool found for you :) . if you
can get the dev's to fix the HTML then the XPATH should start working
(note that XPath is memory intensive and slower as compared to a regex post
processor - thats fine for functional tests , not so much for load)

regards
deepak

On Tue, Oct 25, 2011 at 4:40 PM, David Luu manga...@gmail.com wrote:

 Thanks for the help Deepak.

 On Tue, Oct 25, 2011 at 4:34 PM, Deepak Shetty shet...@gmail.com wrote:

  A cursory look shows a bunch of HTML errors including duplicate ids that
  might be impacting what TIDY does to your HTML (and the XPATH runs over
 the
  TIDY).
  Will need to check
 
  right now it looks If you arent sure of the order then you can always run
  two regexes . If your text is always going to be remove then you can use
  that bit of information
 
  regards
  deepak
 
 
  On Tue, Oct 25, 2011 at 4:11 PM, David Luu manga...@gmail.com wrote:
 
   Sorry, didn't know that. Here's the URL
   http://dlshare.s3.amazonaws.com/shoppingCart.txt
  
   On Tue, Oct 25, 2011 at 3:42 PM, Deepak Shetty shet...@gmail.com
  wrote:
  
hi
the mailing list rejects attachments. upload it somewhere and send a
  link
   
regards
deepak
   
On Tue, Oct 25, 2011 at 3:38 PM, David Luu manga...@gmail.com
 wrote:
   
 JMeter v2.5 on Windows

 Added debug sampler, it did indeed match one only (the first item
 in
 shopping list, top down order):

 ORDERITEMIDS=7249682
 ORDERITEMIDS_1=7249682
 ORDERITEMIDS_matchNr=1

 Attached is HTML from the HTTP sampler response of the shopping
 cart
   page
 for which we extract the data. I did a text search on
  removeItemLink
and
 did get 3 entries for the link for 3 cart items.

 I also did a test replacing XPath extractor with regex extractor
 and
   used
 this pattern to do a global/multi match against:

 .+class=removeItemLink.+id=(\d+).+

 granted if the HTML attribute order ever changed, it would break
 the
regex
 but wouldn't break XPath.

 In the replacement, I left everything else intact, and used same
   variable
 name for the cart items IDs. The regex version worked fine, getting
  all
   3
 cart items.

 So there's no loop problem for sure. Seems to be an XPath extractor
problem
 here.

 On Tue, Oct 25, 2011 at 3:16 PM, Deepak Shetty shet...@gmail.com
wrote:

 what version of Jmeter?
 Dont go by Firebug it looks at the DOM whereas JMeter will have to
   look
at
 the source html .

 Add a Debug Sampler under your HTTP Sampler and also add a view
   results
 tree
 listener.
 If your debug sampler shows your multiple values correctly the
  problem
is
 in
 the loop

 If your debug sampler only shows a single value , then you need to
   look
at
 the HTML response (in view results tree listener) that your xpath
 extractor
 is a child of and see if you have multiple nodes satisfying your
condition
 or your HTML is different from what you expect.
 If the HTML looks right , then upload a copy of the html and send
  the
link

 regards
 deepak

 On Tue, Oct 25, 2011 at 1:27 PM, David Luu manga...@gmail.com
   wrote:

  Hi, just wanted to check to see if I misconfigured something or
   XPath
  defined correctly. Here's the setup:
 
  We have HTTP request sampler to hit user's shopping cart that
   returns
 HTML
  in response. The HTML is dynamic based on what user already has
 in
cart.
 
  I want the JMeter test to remove items in cart, and we do that
 by
 fetching
  the item ID stored in the links to then remove item by make HTTP
   POST
in
  another sampler with the item ID. The XPath is as follows:
 
  //a[@class='removeItemLink']/@id
 
  We identify the item ID as an attribute in links with class type
  'removeItemLink'. Unfortunately, or to play it safe, we don't
 know
   if
 the
  generated HTML always has same fixed pattern text of whether the
   class
  attribute is always before or after the ID attribute, hence I
  chose
   to
 use
  XPath extractor rather than a regular expression extractor to
 get
   the
 ID.
  ID
  value is also dynamic and may not be fixed length.
 
  I enabled Tidy with quiet mode. Later also enabled report errors
   show
  warnings, and disabled quiet mode, those options didn't help.
 The
  UI
and
  the
  docs don't mention anything about settings to match once or
 match
   all,
 etc.
  So believe matching number determined by the XPath expression.
 
  used XPath extracted variable reference name ORDERITEMIDS

Re: jmeter memory leak?

2011-10-25 Thread Deepak Shetty
follow instructions -
http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
Dont run GUI mode with listeners that use memory proportional to the number
of samples.

Modify the Jmeter startup files to change Xmx to as much memory as you can
spare

Its more likely you are using up heap memory than there is a memory leak

regards
deepak

On Tue, Oct 25, 2011 at 6:58 PM, Dominic d...@pcdom.com.au wrote:

   I’m running the attached (unsophisticated) job for some basic figures to
 graph the performance of a filtering proxy compared to a direct connection
 over time.

 After 30 minutes jmeter freezes. The CMD box shows the below error:

 java.lang.OutOfMemoryError: GC overhead limit exceeded
 Dumping heap to java_pid5276.hprof ...
 Heap dump file created [517629368 bytes in 3.464 secs]
 Uncaught Exception java.lang.OutOfMemoryError: GC overhead limit exceeded.
 See l
 og file for details.

 Anyone know what’s going wrong?

 Thanks,.

 Dom



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



Re: Unexpected Page returned

2011-10-24 Thread Deepak Shetty
Home Page
Login (assuming the response to this page can be 1 of 3)
+Post Processor Regular Expression extractor
If(some condition)
+do something like update email
If(some other condition)
+do something else like update address

Main Page

regards
deepak

On Mon, Oct 24, 2011 at 7:20 AM, brock brockmo...@gmail.com wrote:

 I'm still not understanding how this would work, example test plan:

 Home Page
 Login
  Update Email
  Update Address
  Update Phone
 Main Page

 I do not know which or if any of the Update pages will get returned instead
 of the Main Page.  Its all determined by flags in Oracle.

 So your suggesting it would look like:

 Home Page
 Login
  Update Email
   Regular Expression Extractor
  Update Address
   Regular Expression Extractor
  Update Phone
   Regular Expression Extractor
 Main Page

 Its just not clicking for me, lol.  It seems like I need to view the
 response first then branch into a tree:

 Home Page
 Login
  Pre Process Response, based on TITLE
  If title=
   Update Email
  If title=
   Update Address
  If title=
   Update Phone
 Main Page

 I'm no JMeter expert if you cant tell...




 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Unexpected-Page-returned-tp4873275p4932752.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: New to JMeter

2011-10-21 Thread Deepak Shetty
You got it, load testing database driven web applications.
 But I'm not quite grasping the implications of this,

usually in a load test you ignore the browser performance characteristics -
i.e you care about how much time it takes for your server to respond given a
load , rather than how long it takes for the page to render on the browser
(because this is not dependent on the load - other than the time it takes
for the browser to actually get the page/resources). So broadly speaking ,
the fact that Jmeter doesnt do javascript isnt a big deal for load test. The
main interactions are HTTP interactions and Jmeter can do that reasonably
well. so javascript that for e.g. selects a radio button out to Post value X
for parameter Y .

It might matter when
a. You want a set of functional tests which you can run concurrently instead
of two separate set of tests. In this case some of your functionality test
might include exercising the javascript which isnt possible using JMeter
b. You need to parameterise quite a few area and the javascript framework
under question doesnt easily lend itself to parameterisation(perhaps it
calculates values dynamically , mangles field names, encodes values) , which
means you might have to replicate parts of the javascript logic in JMeter
c. You have managers who demand the exact page response times and they
include browser render times/ javascript execution times etc as part of the
same report.or they want Jmeter to behave like the latest version of
loadrunner with AJAX support.

how likely is it that my test is actually doing what I think it is,
 The vast majority of web applications aren't well behaved HTTP
applications. They do not return HTTP error codes when things fail,
preferring to return a status of 200 with a custom error message.
Use Assertions to verify that every page has some data that you expect it
does. For e.g. if after login you say welcome , username! - then check that
the page does indeed have that by adding a response assertion. if you place
an order and you expect an Order number in the response check that. if you
have a standard error message that shows when things go wrong  check that
your pages dont have that in the response. etc etc.

Or if you expect your test to have inserted 100 rows then check your
database does indeed have 100 rows at the end of the test.
The most common cause of failure of record and replay tests is that some
data is variable and you need to parameterise your tests correctly.

regards
deepak



On Fri, Oct 21, 2011 at 8:36 AM, CHARLES BAKER chba...@clemson.edu wrote:

 Hello to the JMeter users. Firstly does anyone hang out in #jmeter on
 irc.freenode.net? I joined, but I only see two others there and they are
 so far unresponsive.

 Secondly, I've been out of the web development and testing game for quite a
 long time now, but started a new job and guess what my first task is? You
 got it, load testing database driven web applications.

 I've read through the JMeter User's Manual and understand that ...JMeter
 does not execute Javascript found in HTML pages. But I'm not quite grasping
 the implications of this, particularly when testing a Javascript heavy web
 application like BlackBoard.

 I used the HTTP Proxy to record a session in blackboard as a test. When I
 run the test it appears that the recorded actions are working, I see
 rc=200 in the results and no rc=500, rc=404 or similar return codes
 and only the occasional rc=302. Given that and the non-execution of
 Javascript constraint, how likely is it that my test is actually doing what
 I think it is, i.e. selecting radio buttons and going to the next page,
 etc.?

 If there is some other manual which I should go and apply RTFM to, feel
 free to point me to it and tell me to RTFM. Thanks.

 --
 Charles H. Baker, Systems Programmer II CCIT/CSO
 Don't see me in my cubicle? Try AIM: rascharles GTalk:
 chba...@g.clemson.edu
 chba...@clemson.edu | o: 864.656.8069 | gv: 864.990.1297
 Freedom of choice is more to be treasured than any possession earth can
 give.
 David O. McKay






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




Re: beanshell get highest value of a regular expression

2011-10-18 Thread Deepak Shetty
hi
I think what sebb is saying is that you should be looking at IDH_1 (and not
IDH_g1 - but these might be the same depending on the regex :) )

regards
deepak

On Tue, Oct 18, 2011 at 9:31 AM, ZK stevesenio...@gmail.com wrote:

 Sebb I see what you are saying regarding a single match, however; would
 this
 work if the regEx extractor Match No was set to -1

 ?


 ZK

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/beanshell-get-highest-value-of-a-regular-expression-tp4913331p4914413.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: Ideally how much memory we can allocate to jmeter if my jmeter server system ram 4GB?

2011-10-18 Thread Deepak Shetty
if you have a 64 bit JVM then as much as you can spare (but it depends on
how much your OS is currently using ). At some point your CPU will also
become a bottleneck even if you do have infinite memory

regards
deepak

On Mon, Oct 17, 2011 at 8:19 PM, rajivkumarnandv...@gmail.com wrote:

 HI,

 Ideally how much memory we can allocate to jmeter if my jmeter server
 system ram 4GB? My server(where jmeter installed) is using only Jmeter
 I have assigned heap memory size to 75% . what is the maximum % if ram
 4GB.j



Re: How to send a specific content as body of http request

2011-10-18 Thread Deepak Shetty
hi
only works if it is a POST or PUT. If the original poster did actually
mean a GET you have to put the variable as part of the query string in the
Path field

regards
deepak

On Tue, Oct 18, 2011 at 2:27 PM, Oliver Lloyd oliver_ll...@hotmail.comwrote:

 Try putting it in the value section of a parameter, leaving the name blank.
 Include a Content-Type=application/json header with the request.

 -
 http://www.http503.com/
 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-to-send-a-specific-content-as-body-of-http-request-tp4914561p4915503.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: Jmeter2.5 failing on negative condition of If controller and Jmeter2.4 Synchronizing timer not working

2011-10-17 Thread Deepak Shetty
whats not working?

On Sun, Oct 16, 2011 at 11:01 PM, vineeth vineeth.sasidha...@spi.comwrote:

 Hi all

 Is there any solution to make the synchronizing timer work properly in
 Jmeter2.4.
 Any updated versions of ApacheJMeter_components.jar is available for
 Jmeter 2.4

 Thanks  Regards

 Vineeth Sasidharan
 Trainee Software Engineer
 Software Paradigms Infotech



 sginsbourg [via JMeter] wrote:
  Mixed version software is never tested and never expected to really work.
 
  If anything does work, then that's a miracle.
 
  True for any software, not JMETER specific of course.
 
 
 
  *Shay Ginsbourg*
  Regulatory  Testing Affairs Consultant
 
Formerly QA Manager of LoadRunner at Mercury Interactive
 
M.Sc. cum laude in Bio-Medical Engineering
M.Sc. in Mechanical Engineering
 
 
 
 
 
  *Work:* 035185873
  *Mobile:* 0546690915
 
  *Email:* [hidden email] /user/SendEmail.jtp?type=nodenode=4903105i=0
 
  *http://il.linkedin.com/in/shayginsbourg*
 
  *GINSBOURG.COM* http://www.ginsbourg.com/
  --
 
 
 
  *P** **Please consider your environmental responsibility before printing
  this e-mail*.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  On Fri, Oct 14, 2011 at 2:43 PM, vineeth [hidden email]
  /user/SendEmail.jtp?type=nodenode=4903105i=1 wrote:
 
   Actually I need Error Handling and Rendezvous point in my script.
   I cant achieve both these together.
   1. Using Jmeter2.4 I can implement Error handling, But Rendezvous point
   wont work.
   2. Using Jmeter2.5 I can Implement Rendezvous point But Error handling
   wont work.
  
   Thanks  Regards
  
   Vineeth Sasidharan
   Trainee Software Engineer
   Software Paradigms Infotech
  
  
  
   sginsbourg [via JMeter] wrote:
What is the point in mixing versions of Jmeter ?? I don't understand.
   
   
   
   
   
   
   
   
   
*Shay Ginsbourg*
Regulatory  Testing Affairs Consultant
   
  Formerly QA Manager of LoadRunner at Mercury Interactive
   
  M.Sc. cum laude in Bio-Medical Engineering
  M.Sc. in Mechanical Engineering
   
   
   
   
   
*Work:* 035185873
*Mobile:* 0546690915
   
*Email:* [hidden email]
  /user/SendEmail.jtp?type=nodenode=4902309i=0
   
*http://il.linkedin.com/in/shayginsbourg*
   
*GINSBOURG.COM* http://www.ginsbourg.com/
--
   
   
   
*P** **Please consider your environmental responsibility before
  printing
this e-mail*.
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
On Fri, Oct 14, 2011 at 1:43 PM, vineeth [hidden email]
/user/SendEmail.jtp?type=nodenode=4902309i=1 wrote:
   
 Hi All

 I'm having a test script with error handling using If and While
Controllers
 and a Synchronizing timer.

 1. The synchronizing timer is not working properly in
  Jmeter2.4R961953
 2. Test Execution is stopping when the condition evaluates to false
in an
 If
 Controller (Bug50618)

 Can any one provide me any solution or work around so that I can
complete
 my
 test script with Rendezvous and error Handling working as expected.


 Thanks in advance

 Vineeth



 --
 View this message in context:

   
  
 
 http://jmeter.512774.n5.nabble.com/Jmeter2-5-failing-on-negative-condition-of-If-controller-and-Jmeter2-4-Synchronizing-timer-not-workig-tp4902274p4902274.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


  -
 To unsubscribe, e-mail: [hidden email]
/user/SendEmail.jtp?type=nodenode=4902309i=2
 For additional commands, e-mail: [hidden email]
/user/SendEmail.jtp?type=nodenode=4902309i=3


   
   
   
  
If you reply to this email, your message will be added to the
discussion below:
   
  
 
 http://jmeter.512774.n5.nabble.com/Jmeter2-5-failing-on-negative-condition-of-If-controller-and-Jmeter2-4-Synchronizing-timer-not-workig-tp4902274p4902309.html
   
To unsubscribe from Jmeter2.5 failing on negative condition of If
controller and Jmeter2.4 Synchronizing timer not working, click here

   .
   
  
  
   --
   View this message in context:
  
 
 http://jmeter.512774.n5.nabble.com/Jmeter2-5-failing-on-negative-condition-of-If-controller-and-Jmeter2-4-Synchronizing-timer-not-workig-tp4902274p4902398.html
   Sent from the JMeter - User mailing list archive at Nabble.com.
  
 
 
  
  If you reply to this email, your message will be added to the
  discussion below:
 
 http://jmeter.512774.n5.nabble.com/Jmeter2-5-failing-on-negative-condition-of-If-controller-and-Jmeter2-4-Synchronizing-timer-not-workig-tp4902274p4903105.html
 
  To unsubscribe from Jmeter2.5 failing on negative condition of If
  controller and 

Re: How can i see the detailed log ?

2011-10-13 Thread Deepak Shetty
I cant quite figure out how this could have solved your problem (but I cant
argue with the facts :) )
Out of curiosity  does your content length now match SOAP-UI ? Do you have
non ascii characters in your SOAP request?And do you have an XML prolog? in
which case does it have an encoding and what encoding is that?

regards
deepak

On Thu, Oct 13, 2011 at 9:34 AM, Kendiol meh.bela...@gmail.com wrote:

 I didn't see this option, i checked it and it's finally working.
 Thank you all for your help, i was desperate.


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-can-i-see-the-detailed-log-tp4892987p4899823.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 can i see the detailed log ?

2011-10-12 Thread Deepak Shetty
Hi
Wireshark is sort of for more advanced users
Easiest is ask a developer what the application error logs have
An easier solution is You can use either a recording proxy  (but this needs
some setup) or you can use a TCP tunnel e.g.
http://www.pocketsoap.com/tcpTrace/ which records the traffic.
If your webservice runs on http://WebserviceServer:Port , you run this trace
tool , you specify an arbitrary port and WebserviceServer:Port and in your
client instead of specifying the actual WebserviceServer you specify the IP
and port of the machine running the TCP trace . This will record and forward
traffic . Then you change SOAP UI to point to this tool , run your query -
see the SOAP request AND the headers.
the you run JMeter and compare the request and headers

Also Jmeter has two types of webservice samplers - I believe one of them is
obsolete and shouldnt be used - you can look in the mail archives for
messages from sebb
regards
deepak


On Wed, Oct 12, 2011 at 8:26 AM, Kendiol meh.bela...@gmail.com wrote:

 When i copy/paste the exact same request in SOAP UI, it works so i can't
 know
 what's causing this error.
 I've installed WireShark, looked for some tutorials but right now i can't
 capture my requests because i don't have any packets with the HTTP/XML
 protocol as indicated here :


 http://geekswithblogs.net/EltonStoneman/archive/2009/01/29/debugging-soap-messages-with-wireshark.aspx

 I'm new to all of this but from what i understand, it's my request that's
 causing the error, not the server's response.So it should cause the same
 error with SOAP UI.
 I'm confused, any help would be welcome here , especially on how to capture
 JMeter packets with WireShark.
 What should i check ?

 Thanks in advance.


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-can-i-see-the-detailed-log-tp4892987p4895889.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: Any suggestion for this

2011-10-12 Thread Deepak Shetty
if you load your data somewhere , this is fairly easy

I did this once by parsing the logs as described here (wont work out of the
box for you)

http://theworkaholic.blogspot.com/2009/12/graphs-for-jmeter-parsing-jmeter-result.html

I believe some other samples are available on the web
regards
deepak


On Wed, Oct 12, 2011 at 11:12 AM, itsbritto brittobt...@gmail.com wrote:

 I have two jtl output files with this i need to draw the graph like trend
 comparison.As of now i can draw single jtl files graph

 --



Re: Any suggestion for this

2011-10-12 Thread Deepak Shetty
hi
the post only describes how to do it. It depends on what you mean by trend
. do you just want a simple comparison of the say two line graphs or
something like that?
If your files are small enough (less than 64K samples) , just load a CSV
into excel and plot away

regards
deepak

On Wed, Oct 12, 2011 at 11:47 AM, itsbritto brittobt...@gmail.com wrote:

 Ya i seen that blog alteady. What o am talking here is like this
 test 1: 5request
 test 2: 5request
 now i want to plot those 2 tests trend gtaph based on this 5requests

 On Wednesday, October 12, 2011, Deepak Shetty shet...@gmail.com wrote:
  if you load your data somewhere , this is fairly easy
 
  I did this once by parsing the logs as described here (wont work out of
 the
  box for you)
 
 

 http://theworkaholic.blogspot.com/2009/12/graphs-for-jmeter-parsing-jmeter-result.html
 
  I believe some other samples are available on the web
  regards
  deepak
 
 
  On Wed, Oct 12, 2011 at 11:12 AM, itsbritto brittobt...@gmail.com
 wrote:
 
  I have two jtl output files with this i need to draw the graph like
 trend
  comparison.As of now i can draw single jtl files graph
 
  --
 
 

 --



Re: Any one have experience this issue

2011-10-11 Thread Deepak Shetty
http://jakarta.apache.org/jmeter/usermanual/listeners.html

Section Results file configuration

But large tests simply cant be parsed in memory you have to load into a
database/OLAP engine - as far as I remember Hudson didnt support this
(though you could always write your own plugin)

regards
deepak

On Tue, Oct 11, 2011 at 5:31 AM, itsbritto brittobt...@gmail.com wrote:

 Hi Akil,

sampling settings what you mean here?

 On Tue, Oct 11, 2011 at 3:23 PM, Akhilkumar Patel 
 akhilkumar.pa...@gmail.com wrote:

  It depends on your sampling settings and parameters you selected.
 
  Thanks,
  Akhil, Sonal, Dipen and Moksh
  From my android phone
  On Oct 11, 2011 5:31 AM, itsbritto brittobt...@gmail.com wrote:
 
   I'm using performance plugin in hudson.While loading the jmeter jtl it
   takes
   long time to display.
   And each jtl file is 3.2gb..is there anyway to reduce this size
  
   --
  
 



 --



Re: Any one have experience this issue

2011-10-11 Thread Deepak Shetty
hi
there is a difference between CSV and XML (the jtl is just the extension)
which you can sepcify , CSV being leaner and meaner and able to be quickly
uploaded anywhere but restrictive in what it can express .

regards
deepak

On Tue, Oct 11, 2011 at 11:32 AM, itsbritto brittobt...@gmail.com wrote:

 Is there any difference between saving result as .jtl and .xml regarding
 size?

 On Tuesday, October 11, 2011, Deepak Shetty shet...@gmail.com wrote:
  http://jakarta.apache.org/jmeter/usermanual/listeners.html
 
  Section Results file configuration
 
  But large tests simply cant be parsed in memory you have to load into a
  database/OLAP engine - as far as I remember Hudson didnt support this
  (though you could always write your own plugin)
 
  regards
  deepak
 
  On Tue, Oct 11, 2011 at 5:31 AM, itsbritto brittobt...@gmail.com
 wrote:
 
  Hi Akil,
 
 sampling settings what you mean here?
 
  On Tue, Oct 11, 2011 at 3:23 PM, Akhilkumar Patel 
  akhilkumar.pa...@gmail.com wrote:
 
   It depends on your sampling settings and parameters you selected.
  
   Thanks,
   Akhil, Sonal, Dipen and Moksh
   From my android phone
   On Oct 11, 2011 5:31 AM, itsbritto brittobt...@gmail.com wrote:
  
I'm using performance plugin in hudson.While loading the jmeter jtl
 it
takes
long time to display.
And each jtl file is 3.2gb..is there anyway to reduce this size
   
--
   
  
 
 
 
  --
 
 

 --



Re: Any one have experience this issue

2011-10-11 Thread Deepak Shetty
CSV is smaller.
generate html report from csv
yes but some level of custom code may be needed. XSL sucks when your file
size starts reaching gb's

regards
deepak

On Tue, Oct 11, 2011 at 1:08 PM, itsbritto brittobt...@gmail.com wrote:

 ok let me put in this way. Which one is bigger in size xml or csv


 Actually i am generating html from this output via xsl.Is that possible to
 generate html report from csv

 On Wednesday, October 12, 2011, Deepak Shetty shet...@gmail.com wrote:
  hi
  there is a difference between CSV and XML (the jtl is just the extension)
  which you can sepcify , CSV being leaner and meaner and able to be
 quickly
  uploaded anywhere but restrictive in what it can express .
 
  regards
  deepak
 
  On Tue, Oct 11, 2011 at 11:32 AM, itsbritto brittobt...@gmail.com
 wrote:
 
  Is there any difference between saving result as .jtl and .xml regarding
  size?
 
  On Tuesday, October 11, 2011, Deepak Shetty shet...@gmail.com wrote:
   http://jakarta.apache.org/jmeter/usermanual/listeners.html
  
   Section Results file configuration
  
   But large tests simply cant be parsed in memory you have to load into
 a
   database/OLAP engine - as far as I remember Hudson didnt support this
   (though you could always write your own plugin)
  
   regards
   deepak
  
   On Tue, Oct 11, 2011 at 5:31 AM, itsbritto brittobt...@gmail.com
  wrote:
  
   Hi Akil,
  
  sampling settings what you mean here?
  
   On Tue, Oct 11, 2011 at 3:23 PM, Akhilkumar Patel 
   akhilkumar.pa...@gmail.com wrote:
  
It depends on your sampling settings and parameters you selected.
   
Thanks,
Akhil, Sonal, Dipen and Moksh
From my android phone
On Oct 11, 2011 5:31 AM, itsbritto brittobt...@gmail.com
 wrote:
   
 I'm using performance plugin in hudson.While loading the jmeter
 jtl
  it
 takes
 long time to display.
 And each jtl file is 3.2gb..is there anyway to reduce this size

 --

   
  
  
  
   --
  
  
 
  --
 
 

 --



Re: Summary Report Listener results

2011-10-10 Thread Deepak Shetty
you arent factoring in that you are running 200 threads in parallel.
1681 transactions per second for 200 concurrent requests works out to
1681/200 = 9 requests per second per thread.
which means 1000/9 milliseconds per request(assuming no delays) about 111 ms
on average (118 in your case)

regards
deepak

On Mon, Oct 10, 2011 at 4:20 PM, E S electric.or.sh...@gmail.com wrote:

 I'm seeing some results in the Summary Report listener that doesn't
 really make sense to me. The test runs 200 concurrent users all
 requesting the same resource for 60 seconds. Here are the Summary
 Report Listener results:

 Num requests:   101243
 Average:   118
 Min:  5
 Max: 27743
 Std dev:349
 Error:0%
 Throughput:   1681/sec
 KB/sec:8210
 Average bytes:  5000

 It says the throughput is 1681 transactions per second. This seems to
 make sense since 101243 / 60 = 1687. However, this means that on
 average each transaction should take about 1/1681 * 1000 = 0.59 ms. It
 makes sense to me that each request would take less than 1 ms if you
 are doing more than 1000 transactions per second. However, the minimum
 transaction time listed is 5 ms. Can someone explain this to me?

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




Re: Emulating a browsers resource download patterns

2011-10-09 Thread Deepak Shetty
From the release note for 2.5.1
Additional known bugs: Version 2.5 introduced a concurrent download
feature for embedded HTML resources. Unfortunately this may result in
corrupted downloads or other errors (bugs 51918[1] and 51919[2]). We
will fix these bugs as soon as possible; meanwhile the feature should
not be used.

 But the HTTP Request Sampler only parses out about 1/5th of the resources
on the page,
There are some circumstances in which this is possible(other than bugs!) .
e.g. Background Images referred to in CSS files (Jmeter will download
resources for a page , but not resources within the resources like CSS files
which refer to images). Dynamically added resources (from AJAX calls or
javascript) wont work either - As always JMeter is not a browser. You might
need to put in a feature request in bugzilla if you can identify patterns
within your page that the embedded resource parser isnt picking up.

The problem with the type of results you want actually depend on multiple
questions -
Which browser? Which setting on the browser? (e.g. IE which controls how
resources are cached)? When is a page considered loaded - especially when
you account for DHTML rich/AJAX applications?
And is it worth it (for e.g. if you use a CDN it probably isnt).
And if you still really want to know its probably to use browser driven
tools like selenium (or selenium grid) to find out the answer - or selenium
+ jmeter where jmeter generates the load you want and a single selenium
instance can browse the site and record page times ).

Using JMeter would need you to estimate this answer (for e.g. if you get
values for each individual resources then using firebug and the network tab
you can figure out the time for page load).

regards
deepak

On Sun, Oct 9, 2011 at 9:34 AM, David Parks davidpark...@yahoo.com wrote:

 A browser typically opens about 4 connections to download all of the
 resources of a page. I'd naturally like to emulate this behavior in my test
 cases.

 I see that the HTTP Request Sampler has an option to do exactly this with
 the parsed Embedded Resources.

 But the HTTP Request Sampler only parses out about 1/5th of the resources
 on
 the page, instead I just record the page and all its resources with a
 Recording Controller.

 But now each resource is an HTTP Sampler its self and I have no way of
 emulating the 4 concurrent downloads, they download in sequence.

 Thus I don't see how to even come close to accurately simulating browser
 load, and certainly don't see a way to accurately time a page download.

 Perhaps I missed something? But I didn't see this question addressed in the
 docs or FAQ's.

 Thanks,
 Dave





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




Re: Emulating a browsers resource download patterns

2011-10-09 Thread Deepak Shetty
 it's not possible or worthwhile to try to replicate concurrent resource
fetching.
Did I imply that? - not intentional. I said depending on your situation
a) it might not be worth it (but only you can know this based on your app)
and there might be easier ways to get the answer you want(again application
dependent).
b) Such things are better measured(today) by tools that drive the browser.


If there's no way to do this I, for one, am sure to put JMeter on the shelf
and consider other options.
If you want to know the exact time for a page to load - perhaps.
If all you want to know is given a load , do 90% of my pages return under 3
seconds or given a functional / implementation change what impact to the
site?
then you might want to reconsider.
I run most of my static file's separate to my dynamic files and guesstimate
the entire page times (because Ive already verified that for the loads under
consideration the static file times do not vary significantly whether i run
them concurrently or sequentially) - the limiting factor for my pages are
the dynamic pages which slow down far earlier than the static files. But
then we have a sort of CDN and minify and gzip and cache and etags etc etc
and do not have large static files. It works reasonably well(for me) - your
mileage may vary. If you do this type of guesstimate it is also easy to
provide an answer as to what happens when the user is located in Asia
instead of the US for e.g. or if he has a full cache rather than an empty
one. if Jmeter worked as you wanted you'd have to run the tests again with
tweaked settings.  Your approach of specifying URL's also has a maintenance
problem of dealing with change.

However yes the embedded resources is limiting and you should raise feature
requests where you feel it lacks.
Issue has already been discussed multiple times in the archives :).

regards
deepak




On Sun, Oct 9, 2011 at 11:11 AM, David Parks davidpark...@yahoo.com wrote:

 Thanks for the response Deepak, but I will respectfully disagree with the
 assertion that states that it's not possible or worthwhile to try to
 replicate concurrent resource fetching.

 Of course each browser has differences, even different numbers of
 concurrent
 downloads, but JMeter is already attempting to emulate this in the
 HttpSampler with a concurrent download option.

 It would be easy to resolve the issue just by adding a set of URLs to the
 HttpSampler which are statically defined embedded resources (those it
 doesn't parse out we can just add ourselves), and have it download those
 using its X number of concurrent connections feature.

 I wouldn't try to solve the problem by improving how JMeter parses the
 resources out. Although it's always nice to improve that feature, JMeter
 can
 never be 100% for all applications. I have worked for 9 years as a
 consultant for HP's LoadRunner and BAC testing tools and will tell you even
 those million dollar testing packages can't parse all the resources from an
 HTML page (though they add static resources to a DL list automatically of
 course).

 Everything we do is going to be an approximation of reality, it's up to
 each
 application engineer to know their app and to do the best they can to
 approximate it. But having the ability to make a reasonable approximation
 is
 critical - and this is fundamental functionality used by all browsers in
 virtually every real-world scenario.

 To download each unparsed resource of a page in sequence makes it extremely
 difficult to built a semi-realistic test case, and the further we get from
 realistic the less valuable a tool like this becomes. If there's no way to
 do this I, for one, am sure to put JMeter on the shelf and consider other
 options. But I'll be very surprised if this issue hasn't been discussed at
 infinitum already.



 -Original Message-
 From: Deepak Shetty [mailto:shet...@gmail.com]
 Sent: Sunday, October 09, 2011 10:30 AM
 To: JMeter Users List
 Subject: Re: Emulating a browsers resource download patterns

 From the release note for 2.5.1
 Additional known bugs: Version 2.5 introduced a concurrent download
 feature for embedded HTML resources. Unfortunately this may result in
 corrupted downloads or other errors (bugs 51918[1] and 51919[2]). We
 will fix these bugs as soon as possible; meanwhile the feature should
 not be used.

  But the HTTP Request Sampler only parses out about 1/5th of the resources
 on the page,
 There are some circumstances in which this is possible(other than bugs!) .
 e.g. Background Images referred to in CSS files (Jmeter will download
 resources for a page , but not resources within the resources like CSS
 files
 which refer to images). Dynamically added resources (from AJAX calls or
 javascript) wont work either - As always JMeter is not a browser. You might
 need to put in a feature request in bugzilla if you can identify patterns
 within your page that the embedded resource parser isnt picking up.

 The problem with the type of results

Re: Not getting the final confirmation Number from the order submitted

2011-10-07 Thread Deepak Shetty
Most of these type of cases work out to one of the two
a. You aren't sending back the correct session id (usually you havent added
a cookie manager) so the server rejects your request

b. Your application uses dynamic data and you aren't extracting the data and
sending it back correctly (for.e.g the csrfToken). usually the response has
a  error message or the application logs have enopugh information to tell
you what the problem is. Failing that you have to compare your browser
request/repsone with Jmeter request/response for every step.(Search the mail
archives)

regards
deepak



On Fri, Oct 7, 2011 at 10:44 AM, Bhuiyan, Hasan (Hasan) 
mahmud.bhui...@searshc.com wrote:

 Hi Friends,

 I have a script that places an order. Looks like it works upto the step
 before it place order. I am not getting any response back with the
 confirmation number at the following step. It's not giving any error
 either.
 Can anyone help?


 Request:
 POST data:
 csrfToken=5268119723947658705buttonValue=Place+OrdernbActionFormEncodi
 ng=UTF-8

 Response:
 Empty


 Best regards,
 Hasan

 This message, including any attachments, is the property of Sears Holdings
 Corporation and/or one of its subsidiaries. It is confidential and may
 contain proprietary or legally privileged information. If you are not the
 intended recipient, please delete it without reading the contents. Thank
 you.

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




Re: counter function bug

2011-10-07 Thread Deepak Shetty
it looks to me that the counter gets invoked twice when it is part of the
while conditions definition that why you see increment by 2 (which may or
may not be a bug)
This works
Thread Group
While controlle r${__javaScript( ${cnt} != 10 )}
+Sampler  ${__counter(TRUE,cnt)} -- use this form the time you want the
counter increment
+sampler ${cnt} anytime within the loop after that

i.e. it looks like the the call to counter must be within the loop , not on
the condition

regards
deepak


On Fri, Oct 7, 2011 at 3:52 PM, daluu manga...@gmail.com wrote:

 I was wondering if what I experience recently is also another counter +
 intSum bug or did I set up test incorrectly (I don't think so, but I'm new
 to JMeter). Here's a recap from my post about it (original mail to list
 with
 subject Counter bug or test plan setup incorrectly?):

 Hello,

 I'm using counter via variable method than the counter element. But counter
 increments by 2 instead of 1 at runtime. Wonder if is bug or if my setup
 has
 issue. Here's more details

 first HTTP request sampler followed by regex extractor that does global
 match (-1), with single group per match ($1$). Then...

 While loop controller with condition of:

 ${__javaScript( ${__counter(TRUE,cnt)} = 10 )}

 and inside while loop, have samplers that reference the counter (as needed)
 like this:

 ${__V(regExMatchVar_${cnt})}

 This works, and loop does end, but remaining issue is that counter is
 incrementing by 2 instead of 1, per the docs. Counter does start at 1
 though.

 I get the same increment by 2 behavior if I substitute counter function
 with intSum and a user defined variable cnt

 ${__javaScript( ${__intSum(${cnt},1,cnt)} = 10 )}

 test plan setup:

 test plan
  thread group
  (user defined vars - if using this method for counter, otherwise,
 not exist here)
  http request defaults
  http sampler
   response assertion
   regex extractor (matches 1+ matches, we expect 10+)
  while loop controller
http sampler 1
will have more samplers, but I debug/test with one for now
test action with delay of 1 sec
  save responses to a file
  view results tree
  view results in table
  aggregate report

 note that some items may be disabled like some of the reporting/view
 result options.

 Regards,

 David

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/counter-function-bug-tp4855775p4881586.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: Non GUI mode parameters

2011-10-06 Thread Deepak Shetty
as far as I remember , you cant do it from the GUI(which expects a date
string i think) - but if you directly modify the JMX file using any editor
(to read value from a passed in property - note it has to be a property ,
not variable) , it does work  (never tested)

there probably in a thread in the mail archives that mentions this.

regards
deepak

On Thu, Oct 6, 2011 at 2:55 PM, skchoppala skchopp...@gmail.com wrote:

 After putting first variable in start time filed the end time input filed
 become non-editable. I hope this wont work.

 Thanks
 skchoppala

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Non-GUI-mode-parameters-tp4666306p4878052.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 do a regular expression on the following value

2011-10-05 Thread Deepak Shetty
name=tempVar\s*?value=([^]*) (assuming name and value are on the same
line) - havent tested . there are various online tools that let you test out
your regex's

regards
deepak

On Wed, Oct 5, 2011 at 10:08 AM, Bhuiyan, Hasan (Hasan) 
mahmud.bhui...@searshc.com wrote:


 Hi Friends,

 How can I do a regular expression of
 E69CBD97B38DC09ADD2DD57CA79AC98A.app401p04 from the following string?


 input type=hidden name=tempVar
 value=E69CBD97B38DC09ADD2DD57CA79AC98A.app401p04
 630) 869-1490

 Regards,
 Hasan



 This message, including any attachments, is the property of Sears Holdings
 Corporation and/or one of its subsidiaries. It is confidential and may
 contain proprietary or legally privileged information. If you are not the
 intended recipient, please delete it without reading the contents. Thank
 you.

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




Re: Unable extract values from URL Query String

2011-10-03 Thread Deepak Shetty
 Those dynamic parameters values are used in the same HTTP request
Thats not really possible. You send an HTTP request , you get back a
response . The next request is a new request and if it has a dynamic
component it must be available from the previous request(s). The exceptions
are things like cookies or javascripted parameters (but even here you have
to get the javascript first before it can actually do anything). Sometimes
it hard to see because of redirects etc .

regards
deepak


On Sun, Aug 21, 2011 at 4:37 AM, Mohamed base...@gmail.com wrote:

 Hi,

 I'm new to JMeter tool. I have requirement to record an email transaction.
 There are many dynamic values which are passed as URL query string. I'm
 unable extract those values using Reg-ex Extractor. Those dynamic
 parameters
 values are used in the same HTTP request not in the next/subsequent
 request.

 For example

 www.xyz.com/shva?123abc=LLRRQQ;cdv=AABBCC.

 In the same http request contains parameter abc = LLRRQQ and cdv=AABBCC.

 So how to dynamically extract from URL query string and pass it to the same
 request.

 Also I've tried HTML Link Parser option and gave .* in the parameter value.
 but it's passing .* in URL. Any other approach to extract these values.

 Any help would be highly appreciated !

 Thanks,
 Mohamed

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Unable-extract-values-from-URL-Query-String-tp4720246p4720246.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 I substitute jmeter variable in Summary Report (Listener) Filename.

2011-10-03 Thread Deepak Shetty
hi
this was answered by Oliver right at the start, the variable is not
available when the file is created.
You can however use properties or __time to accomplish this because the
values can be evaluated at the time the listener needs it.

regard
deepak

On Mon, Oct 3, 2011 at 7:19 AM, skchoppala skchopp...@gmail.com wrote:

 I apologies for the confusion. Here my goal is to run the test plan couple
 of
 times. Each test will run couple of hours. I might schedule or run manually
 with different userid  pwd. At the end of the day I don't want to confuse
 myself looking at bunch of logs files which account each log file belongs
 to. For example with __time function alone all log files are generating as
 below.

 log_20110930-183813.jtl
 log_20110930-193000.jtl
 log_20110930-203013.jtl
 log_20110930-213000.jtl

 I could able to print actual ${acc_name} value in different samplers. My
 doubt is, why its not identifying this variable in Listeners file path the
 way __time function is working.

 Thanks
 skchoppala

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-do-I-substitute-jmeter-variable-in-Summary-Report-Listener-Filename-tp4858620p4865029.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: Command Line option to Enable and Disable ?

2011-09-30 Thread Deepak Shetty
the function is __property
The error you are getting is because Login is going to evaluate to literal
string ${property(Login)}  (since its not defined) your if condition
becomes ${property(Login)} == 1 which is bad javascript.




On Fri, Sep 30, 2011 at 7:00 AM, mkt michaelkturner...@gmail.com wrote:

 I added some properties, but cant get it to work...

 Added Login=1 to user.properties
 Added Login ${property(Login)} to User Defined Variables
 Added ${Login} == 1 to the if controller

 I get an exception in the log, the IfController: missing ; before statement
 (cmd#1) one.  I checked the JMX file and there was a space at the end,
 but
 I removed it and still get the exception.

 Is the way I set it up correct?


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Command-Line-option-to-Enable-and-Disable-tp4853330p4857215.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: Command Line option to Enable and Disable ?

2011-09-30 Thread Deepak Shetty
what do you mean by threads do not?

On Fri, Sep 30, 2011 at 7:51 AM, mkt michaelkturner...@gmail.com wrote:

 Well I deleted them all and re-added them and now it works, kinda.  The if
 controllers work, but the Threads do not...

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Command-Line-option-to-Enable-and-Disable-tp4853330p4857403.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: counter function bug

2011-09-30 Thread Deepak Shetty
If a variable refers to a function, one would expect the variable to be
evaluated once per iteration,so it can be used in multiple
samples.
Well we already have the counter element. And the function already supports
saving into a variable so it can be used in multiple samples irrespective of
how the counter behaves. Having a function that returns an incremented value
everytime it is called could be useful - but I see that I can do this with
__intSum so I guess philip's documentation patch is sufficient.

thanks and regards
deepak
On Fri, Sep 30, 2011 at 8:04 AM, sebb seb...@gmail.com wrote:

 On 30 September 2011 08:34, Philippe Mouawad philippe.moua...@gmail.com
 wrote:
  Hello,
  I confirm this behaviour also exists in 2.5 and 2.5.1.
  It may be a documentation issue or a real issue, I opened an issue for
  clarification:
 
- https://issues.apache.org/bugzilla/show_bug.cgi?id=51923
 
 
  As it is made I think counter will only change at each iteration.

 Yes, I think that's the case here.

 If a variable refers to a function, one would expect the variable to
 be evaluated once per iteration, so it can be used in multiple
 samples.

  Regards
  Philippe
  On Fri, Sep 30, 2011 at 8:16 AM, Nermin CALUK ner...@atlantbh.com
 wrote:
 
  Confirmed with JMeter 2.4 (confirming the behavior, it looks like a
 bug):
 
  - scenario below produces 1,1
  - just increasing number of threads in the thread group also produces
 all
  ones 1,1,1,1
  - 3 samplers, each containing the same function, loop 3 is
  1,1,1,2,2,2,3,3,3
  - one sampler loop 3 1,2,3 (I guess this is expected behavior)
 
  Nermin
 
 
 
 
 
  -Original Message-
  From: Deepak Shetty [mailto:shet...@gmail.com]
  Sent: 30. septembar 2011 6:38
  To: JMeter Users List
  Subject: counter function bug
 
  per the documents
  The counter generates a new number each time it is called, starting with
 1
  and incrementing by +1 each time.
  However
  ThreadGroup
  +${__counter(TRUE,ref)}HTTPSampler1
  +DebugSampler
  +${__counter(TRUE,ref)}HTTPSampler2
  +DebugSampler
  +View Results tree
 
  Generates the number 1 in both cases. Can someone confirm this is abug?
 
  regards
  deepak
 
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 
 
 
  --
  Cordialement.
  Philippe Mouawad.
 

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




Re: If i do a manual execution by adding extended status bar to firefox

2011-09-30 Thread Deepak Shetty
how have you calculated it manually (the last row value is not much useful
anyway)?
If Request1  = 10 samples each 10 secs therefore avg =10 seconds
and request2 = 1 sample , 1 second therefore avg = 1 second
then overall average = (10*10 + 1*1)seconds/(10+1) samples.



regards
deepak


On Thu, Sep 29, 2011 at 11:50 PM, sprasad sprasad.s...@gmail.com wrote:

 Hi Oliver,

 I have a small () question for you -

 I am running some tests and presenting the aggregate report - in this,
 Average Response Time, which is the second column in agg. report table is
 the average of set of response times, but the the value displayed in the
 last row - Total - and under Average column is not matching up when i do
 the
 average of response times manually.

 For ex, have a look at the below table: I have taken Average in seconds.
 The
 Average *0.66* in the last row is not matching up when i do the average of
 the response time manually. Also, Min and Max represent the min. response
 time and max. response time for that particular label (navigation) - right
 ?


 *Label*

 *Samples*

 *Average (s)*

 *Median*

 *90%Line*

 *Min*

 *Max*

 *Error%*

 *Throughput*

 *KB/Sec*

 URL

 75

 1.00

 749

 3019

 27

 6035

 0

 8.39

 164.26

 1

 50

 0.63

 34

 2978

 20

 6031

 0

 7.38

 53.07

 Login Page

 25

 0.14

 17

 33

 12

 3009

 0

 3.74

 25.02

 2

 25

 0.13

 9

 16

 7

 2939

 0

 3.74

 5.69

 3

 25

 1.10

 864

 1120

 306

 4106

 0

 3.36

 146.53

 4 Home Page

 25

 0.87

 957

 1028

 234

 1038

 0

 2.78

 121.36

 5

 25

 0.05

 52

 59

 30

 77

 0

 2.86

 7.46

 *TOTAL*

 *250*

 *0.66*

 *58*

 *2961*

 *7*

 *6035*

 *0*

 *24.94*

 *427.27*


 Please clear my doubts.

 Thanks,
 Sd


 On Sat, Aug 20, 2011 at 5:11 PM, Oliver Lloyd [via JMeter] 
 ml-node+4718262-1402807349-230...@n5.nabble.com wrote:

  The problem here is you are trying to do something that is essentially
 not
  possible and, crucially, not useful.
 
  JMeter is not a browser so it will never give you the exact same response
  times for rendering a page as you see in your browser. Indeed, different
  browsers themselves will give you different page load times so there's
  really no point worrying about the difference.
 
  What you really need to do is work out your objectives - what are you
  trying to do? What are your requirements for testing? You should qualify
 in
  verbal terms what you what to achieve and then prove the same using your
  tests. Then you should quantify these statements to create actual targets
 to
  aim for, giving you pass / fail criteria. Having objectives is especially
  important when thinking about 'rendering' the full page because this
  experience is effected by multiple things and needs to be understood and
  planned for. For example, do you even want to simulate page resources?
 Are
  you using a CDN? Are there any other types of caches that you need to
 take
  account of when designing your load?
 
  Based on the requirements you then go away and design a test that meets
  them. If page rendering is in scope, if you want to validate the client
 side
  performance, then this is more of a functional activity - you cannot use
 a
  tool like JMeter to test this. In fact you don't need a 'tool' to do this
 at
  all, just a mouse and keyboard will suffice. Client side performance is
  crucial - there are lots of things to be considered and tuned for - but
 it
  is not really relevant in this forum.
 
  So, in short, page load times and server response are part of the same
 user
  experience but need to be approached in different manners - this is an
 age
  old principle of performance testing which is routinely misunderstood.
 
  If you can't get your head around this then these days you can solve the
  problem by paying an external company to run tests where each script runs
 in
  it's own browser (the Cloud makes this possible) or you can go down the
  hybrid path and use another (rather well known) load test tool that gives
  you GUI like scripts that almost run full browsers. If you don't have the
  budget for this then JMeter offers an excellent solution, however without
 a
  basic foundation knowledge of computing you're very unlikely to do a good
  job.
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://jmeter.512774.n5.nabble.com/If-i-do-a-manual-execution-by-adding-extended-status-bar-to-firefox-tp4717698p4718262.html
   To unsubscribe from If i do a manual execution by adding extended status
  bar to firefox, click here
 http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4717698code=c3ByYXNhZC5zYWR1QGdtYWlsLmNvbXw0NzE3Njk4fC0xNDM4OTcyNzI4
 .
 
 


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/If-i-do-a-manual-execution-by-adding-extended-status-bar-to-firefox-tp4717698p4856044.html
 Sent from the JMeter - User mailing list archive at 

Re: Up to date values without CSV config

2011-09-30 Thread Deepak Shetty
yes CSV is faster - however you can do the same with a startup threadgroup
instead of your test
Beanshell can do almost anything java can do (and you write most of it
within a java class so that you only call out to your java code (or you can
write your own custom function in java)

regards
deepak

On Fri, Sep 30, 2011 at 2:02 PM, E S electric.or.sh...@gmail.com wrote:

 Thanks for the help. The __time() function is exactly what I wanted.
 Unfortunately, for the other value (the calculated one), I need access
 to cryptographic libraries. It looks like I could use either
 javascript or beanshell as long as they support importing third party
 libraries, but frankly I think it's just too much work to figure out
 at this point. I think I'll stick with the CSV Data Set Config element
 for now. It'll probably be faster than interpreting javascript or Java
 on the fly anyway.

 On Thu, Sep 29, 2011 at 6:55 PM, Deepak Shetty shet...@gmail.com wrote:
  you have __time function and javascript/beanshell in which you can write
  code  to calculate values in. You can store these as variables or
 properties
  for all the urls to use.
 
  regards
  deepak
 
  On Thu, Sep 29, 2011 at 4:50 PM, E S electric.or.sh...@gmail.com
 wrote:
 
  I have to include two query string parameters in my URLs. One of them
  is a timestamp and the other is a calculated value based on the
  timestamp. All the URLs can use the same two values. The tricky part
  is that the server is validating both of these values and the
  timestamp must be fairly up to date (within 30 minutes) or the server
  will reject the request.
 
  Currently, I am achieving this by writing a Python script that will
  get a the current timestamp, calculate the second value, and and
  output both of them to a one line CSV file, which JMeter will read in
  using a CSV Data Set Config element.
 
  This works fine except I have to re-create the CSV file every 30
  minutes or the timestamp gets stale. I think I know the answer to
  this, but is there any other way to solve this that doesn't require me
  to keep an up to date CSV file laying around?
 
  -
  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: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-29 Thread Deepak Shetty
Hi
Meter will treat it as HTML
Tidy does. Jmeter doesnt know.

so if there is error during checking, then the XPath Extractor doesn't
work,
Some errors Tidy will fix, it might for e.g. add an html and body tag
which will mess up your xpath. if you are interested , download the command
line version of tidy and run it against an xml file and see what output it
generates(if at all) .

regards
deepak

On Wed, Sep 28, 2011 at 11:48 PM, freesky h...@windowslive.com wrote:

 Thanks!  That is even if the response is XML, but if we check ' Use Tidy ',
 then the JMeter will treat it as HTML and check the response it's a valid
 HTML or not before parsing the XPath, so if there is error during checking,
 then the XPath Extractor doesn't work, right?

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/XPath-Extractor-doesn-t-work-if-I-check-Use-Tidy-tp4848485p4851993.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 can I assign multiple values to a variable

2011-09-29 Thread Deepak Shetty
hi

Just use different names in the XPath extractor (for e.g. by adding a
counter or the __counter function) make the name variablev - should work ,
not tested

regards
deepak


On Thu, Sep 29, 2011 at 4:18 AM, freesky h...@windowslive.com wrote:

 The test plan is :

 Test Plan
  |_createA
   |_XPath Extractor
  |_createB
   |_XPath Extractor
  |_createA
   |_XPath Extractor

 The response of create is like next :

 requestcreate id=5 //request

 There is only one 'id' in each response and I use the 'XPath Extractor' to
 extract the value.  If the test plan has 3 'createA' requests, then I need
 to assign these 3 value of id to a variable 'a', so that I can use 'a_1',
 'a_2' etc to read the value latter.  So how can I assign multiple values to
 a variable?  Thanks in advance!

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-can-I-assign-multiple-values-to-a-variable-tp4852668p4852668.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: Command Line option to Enable and Disable ?

2011-09-29 Thread Deepak Shetty
if you know it in advance then add an IF controller (wrapping your loop)
that checks a property (where the property is passed by command line)

jmeter 2.5 has setup and teadown threadgroups which might be what you are
looking for -
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#setUp_Thread_Group

regards
deepak

On Thu, Sep 29, 2011 at 7:31 AM, mkt michaelkturner...@gmail.com wrote:

 Hello

 Is there a way via command line to enable and disable loops controllers?  I
 have a test plan that has a clean up set of steps that I disable to run the
 tests, then disable the test loop and enable the clean up loop.  Of course
 in the GUI you just right click and select enable/disable...

 Thanks

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Command-Line-option-to-Enable-and-Disable-tp4853330p4853330.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: JMeter and MySQL?

2011-09-29 Thread Deepak Shetty
Hi
you probably dont want to do this while your test is running, you want to do
it at the end of your test (you could ofcourse write your own listener like
http://wiki.apache.org/jakarta-jmeter/MysqlCollectorPlugin - but it isnt
what I would do

  JMeter Test Results can be written to MySQL Database?
Jmeter writes to CSV file or XML files. To load that into a DB of your
choice is fairly trivial. if i remember correctly someone has a PHP script
that does this


   Parameters/Variables, Iteration Number, Assertion Values, Regular
Expression Results and Real Time User Data can be written to MySQL Database?
All possible, but usually unnecessary IMO . Jmeter should just report
errors, diagnosis should be possible using your applications logs (if it
isn't, what are you going to do when your application goes to production and
you get errors?). Saving a large amount of unecessary data *might* impact
how much load you can generate from within jmeter.

regards
deepak


On Thu, Sep 29, 2011 at 9:08 AM, Bruce Ide flyingrhenqu...@gmail.comwrote:

 Couldn't you just use a JDBC config element and sampler?

 --
 Bruce Ide
 flyingrhenqu...@gmail.com



Re: How can I assign multiple values to a variable

2011-09-29 Thread Deepak Shetty
Basically your ref name is variable  (Im assuming your xpath only returns 1
value)
e.g. a_${c}

The counter function should have worked (to get c), but doesnt seem to ,
possibly it is a bug.

As a workaround To get an autoincrement counter in BeanShell post processor
use something like

String c = vars.get(c);
if(c == null){
  c=1;
} else {
  c= String.valueOf(Integer.parseInt(c) + 1);
}
vars.put(c,c);

This pre processor should apply to whichever samplers u want. if you can
group your samplers under say a simple controller, then simply create the
pre processor as a child of the simple controller , else you have to copy
this as a child of every sampler you want this logic for.
Possibly there might be simpler ways

regards
deepak

On Thu, Sep 29, 2011 at 8:04 PM, freesky h...@windowslive.com wrote:

 I want to use 'a_1', 'a_2' etc to represent 'createA', I can't use 'a',
 'b',
 'c' to represent 'createA'.

 Do you mean I should write like next in the XPath Extractor :

 Reference name : ${_counter(,rd)}
 XPath : //create/@id

 I tried it, it doesn't work.

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-can-I-assign-multiple-values-to-a-variable-tp4852668p4855569.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




counter function bug

2011-09-29 Thread Deepak Shetty
per the documents
The counter generates a new number each time it is called, starting with 1
and incrementing by +1 each time.
However
ThreadGroup
+${__counter(TRUE,ref)}HTTPSampler1
+DebugSampler
+${__counter(TRUE,ref)}HTTPSampler2
+DebugSampler
+View Results tree

Generates the number 1 in both cases. Can someone confirm this is abug?

regards
deepak


Re: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread Deepak Shetty
Don't use tidy for xml. Only use it when the response is html
On Sep 28, 2011 4:00 AM, freesky h...@windowslive.com wrote:
 There are more than one return value, so I have to use ${a_1}, ${a_2}.

 The response data of 'read' sampler is like this :
 records _actions_=true
 record id=2/record
 /records

 The XPath Extractor is :
 Reference name : a
 XPath : //record/@id

 The sampler use the the 'Reference name' is like this :
 ?xml version=1.0 encoding=UTF-8?request id=${a_1}/request

 --
 View this message in context:
http://jmeter.512774.n5.nabble.com/XPath-Extractor-doesn-t-work-if-I-check-Use-Tidy-tp4848485p4848724.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: XPath Extractor doesn't work if I check 'Use Tidy'

2011-09-28 Thread Deepak Shetty
tidy fixes HTML to be XHTML compliant. (which is what you need to run XPATH
on it).

however something that returns XML should already be valid (or its a problem
anyway!) so you can directly run XPath against it .
Thats why you get errors saying records is not recognized etc(its checking
against what it expects in HTML)

regards
deepak


On Wed, Sep 28, 2011 at 9:08 PM, freesky h...@windowslive.com wrote:

 Thanks, after I checked the 'Report errors' and 'Show warnings', the
 assertion of 'read' sampler is false, the Assertion failure message is '
 //record/@id - tidy : 4 errors, 9 warnings.

 And Sorry, the real response data is like next, I didn't think there is
 errors, so I simplified the response data   :

 records _actions_=trueread control={objs:[],mode:}
 totalRecords=2record
 des={shili:[{enabled:true,name:editable}]}
 id=6//read/records, I


 Then I checked the log, it's :

 jmeter.util.XPathUtil: TidyException: line 1 column 1 - Warning: records
 attribute _actions_ has invalid value true
 line 1 column 1 - Error: records is not recognized!
 line 1 column 1 - Warning: missing lt;!DOCTYPEgt; declaration
 line 1 column 1 - Warning: discarding unexpected records
 line 1 column 27 - Error: read is not recognized!
 line 1 column 27 - Warning: discarding unexpected read
 line 1 column 297 - Error: record is not recognized!
 line 1 column 297 - Warning: discarding unexpected record
 line 1 column 846 - Error: record is not recognized!
 line 1 column 846 - Warning: discarding unexpected record
 line 1 column 1,453 - Warning: discarding unexpected /read
 line 1 column 1,460 - Warning: discarding unexpected /records
 line 1 column 1,474 - Warning: inserting missing 'title' element
 InputStream: Document content looks like HTML 2.0
 9 warnings, 4 errors were found!
 This document has errors that must be fixed before
 using HTML Tidy to generate a tidied up version.

 But why it said ' records attribute _actions_ has invalid value true
 '
 and ' records is not recognized! '.

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/XPath-Extractor-doesn-t-work-if-I-check-Use-Tidy-tp4848485p4851678.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: Jmeter novice asking help to avoid error 501 during recording using http proxy server

2011-09-27 Thread Deepak Shetty
hi
if you had these as parameters (In send parameters with request) - and you
checked encode - that should work too.


regards
deepak

On Tue, Sep 27, 2011 at 12:59 PM, Nermin CALUK ner...@atlantbh.com wrote:

 Just to make sure we're on the same page, are you trying to convert a
 string to URL (escape) http://www.javascripter.net/faq/escape.htm

 If that is the case, you can probably do it with a pre-processor and then
 send a request that does not contain special characters in URL

 Nermin

 -Original Message-
 From: forfano [mailto:forf...@hotmail.com]
 Sent: 27. septembar 2011 22:05
 To: jmeter-user@jakarta.apache.org
 Subject: Jmeter novice asking help to avoid error 501 during recording
 using http proxy server

 Lads,

 I am wondering if someone could give me a practical help on how could I
 avoid the 501 error (Method not implemented) during the recording which I
 am
 doing using HTTP proxy server.

 I can explain the issue:
 During recording the browser submits the following :
 GET

 http://ciweb10.homologacao.extranet.teste:8280/ciweb/buttons.do?buttons=VOLbuttons=ADLbuttons=LIMbuttons=AJUtitulo=Proponente/Arrendatáriotrancode=V034791002subtitulo=80009876-2

 This ends up with a sample failed in the View tree listener and therefore
 my
 page is not displayed but the error 501 Method not implemented.

 The cause of this error is due to the word ./Arrendatário It is
 using an accented Portuguese character á instead of use the html code for
 it.

 I know that the page should had been designed correctly (using html codes)
 but as a load tester I would like to bypass it just like the normal browser
 (IE, Firefox) does.

 So how could modiy such characters on the fly before trying to parse it on
 the http proxy server? I saw some pre-processors components and I am not
 sure if I could use then during recording and if I can which one and how
 would be the best way.

 When I tested it without the Jmeter proxy and I did sniffed the network I
 could see the the á was ripped off which.

 Any ideas ? If someone needs more explanation I am glad to do it.

 I will post cross this on www.jmeterforumotion.com

 Looking forward to hearing from someone.

 Cheers!

 Flavio




 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Jmeter-novice-asking-help-to-avoid-error-501-during-recording-using-http-proxy-server-tp4846605p4846605.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: Generate requests at specified time

2011-09-24 Thread Deepak Shetty
you can delay requests within a thread by using some of the timers (for e.g.
Constant Timer - where the input is a variable calculated as the time you
want to delay - the time the last sample took).
However since you also have multiple requests at the same time - thats not
easy to do (unless these urls are part of the same page in which case it
might be possible to use the 2.5 feature of retrieving embedded requests)
Plus you have additional problems of what happens if the first request takes
more than one second? Is the next request still made?

But like Oliver mentioned you seem to have this as a solution for a problem
, and perhaps it may be more useful to describe what you want to do - maybe
there are other options

regards
deepak

On Sat, Sep 24, 2011 at 5:16 AM, Jian-Ming Zheng jmzh...@gmail.com wrote:

 Hi,

 Thanks for the reply.

 I have used the Constant Throughput Timer to control the number of
 requests generated per minute. However, the function does not meet my
 need. Let me explain it in more detail :)

 For example, I have 10 requests for the testing Web server (i.e.,
 requests 1, 2, …, 10). I want to generate the 10 requests as follows.
 [time] [requests]
 1 s: requests 1 and 2
 2 s: request 3
 3 s: request 4
 4 s: requests 5, 6, and 7
 5 s: request 8
 6 s: requests 9 and 10

 The number of requests generated per time interval is not constant. To
 control the sequence of requests, I would like to generate a trace
 file consisting of requests with the specified times. Can JMeter read
 the file and generate requests at specified times according to the
 trace?

 Thanks for any replies.

 On Sat, Sep 24, 2011 at 6:58 PM, Oliver Lloyd oliver_ll...@hotmail.com
 wrote:
  Are you talking about pacing these requests? If so, try the
 
 http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Constant_Throughput_Timer
  Constant Throughput Timer .
 
  -
  http://www.http503.com/
  --
  View this message in context:
 http://jmeter.512774.n5.nabble.com/Generate-requests-at-specified-time-tp4836359p4836368.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
 
 



 --
 Best Regards,
 Zheng Jian-Ming a.k.a. zjm

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




Re: Generate requests at specified time

2011-09-24 Thread Deepak Shetty
youcan achieve what you described by creating several threads (say 5), each
containing an IF controller and your sampler
But then you have to synchronize between threads. I.e. ensure 1 and 2 run at
the same time and 5,6,7 run at the same time.
Plus if you need to share the session you have to do more work.

However, I found that in JMeter (2.4) I cannot put number of threads as a
variable ${THRD}
You need to use properties.

regards
deepak


On Sat, Sep 24, 2011 at 12:36 PM, Nermin CALUK ner...@atlantbh.com wrote:

 Hi zjm,

 I thought I'd have an elegant solution for you but that one doesn't seem to
 work. Alternatively, if max number of parallel requests is not too big, you
 can achieve what you described by creating several threads (say 5), each
 containing an IF controller and your sampler. Then you create a CSV file in
 which one line contains pairs of values for IF controllers and inputs for
 your requests. This way you can use IF controllers to simply turn on or
 turn
 off any of the samplers - sometimes you'll leave only one on, sometimes
 you'll want all of them to run in parallel. In Test Plan leave Run threads
 group consecutively unchecked to make sure your requests will be sent in
 parallel.

 Finally, if pause interval between your requests is constant, just add
 Constant Timer on the top level of your plan. If you want variable pauses,
 just enter value of milliseconds as, say, first column in your CSV file and
 then in your Constant Timer put corresponding variable, e.g. ${PAUSE}




 Deepak, Oliver, Sebb et al,


 I tried to achieve this with the following setup:

  -- Test Plan
  -- CSV [to read the value of number of threads]
  -- Thread Group [where number of threads is a variable ${THRD}]
   CSV [to read requests parameters, input]
   Sampler [to send the requests]
  -- View Results Tree

 My reasoning was: let's read number of threads from one file and let's read
 input data for requests from another CSV file. If number of threads for one
 iteration is 3, than 3 lines would be read from input file and 3 parallel
 requests would be sent. However, I found that in JMeter (2.4) I cannot put
 number of threads as a variable ${THRD} that I read from the CSV file.
 Jmeter.log looks like this:

 ...
 2011/09/24 21:30:47 DEBUG - jmeter.engine.util.ValueReplacer: About to
 replace in property of type: class
 org.apache.jmeter.testelement.property.StringProperty: ${THRD}
 2011/09/24 21:30:47 DEBUG - jmeter.testelement.property.AbstractProperty:
 Not running version, return raw function string
 2011/09/24 21:30:47 DEBUG - jmeter.engine.util.ValueReplacer: Replacement
 result: ${THRD}
 ...
 2011/09/24 21:30:47 INFO  - jmeter.gui.util.JMeterMenuBar:
 setRunning(true,*local*)
 2011/09/24 21:30:47 DEBUG - jmeter.testelement.property.AbstractProperty:
 Running version, executing function
 2011/09/24 21:30:47 INFO  - jmeter.engine.StandardJMeterEngine: Starting 0
 threads for group Thread Group.
 ...

 Starting 0 threads I'm not sure is this a bug or is it related to the
 process how JMeter initializes the test (threads)?


 Nermin





 -Original Message-
 From: Deepak Shetty [mailto:shet...@gmail.com]
 Sent: 24. septembar 2011 20:25
 To: JMeter Users List
 Subject: Re: Generate requests at specified time

 you can delay requests within a thread by using some of the timers (for
 e.g.
 Constant Timer - where the input is a variable calculated as the time you
 want to delay - the time the last sample took).
 However since you also have multiple requests at the same time - thats not
 easy to do (unless these urls are part of the same page in which case it
 might be possible to use the 2.5 feature of retrieving embedded requests)
 Plus you have additional problems of what happens if the first request
 takes
 more than one second? Is the next request still made?

 But like Oliver mentioned you seem to have this as a solution for a problem
 , and perhaps it may be more useful to describe what you want to do - maybe
 there are other options

 regards
 deepak

 On Sat, Sep 24, 2011 at 5:16 AM, Jian-Ming Zheng jmzh...@gmail.com
 wrote:

  Hi,
 
  Thanks for the reply.
 
  I have used the Constant Throughput Timer to control the number of
  requests generated per minute. However, the function does not meet my
  need. Let me explain it in more detail :)
 
  For example, I have 10 requests for the testing Web server (i.e.,
  requests 1, 2, ., 10). I want to generate the 10 requests as follows.
  [time] [requests]
  1 s: requests 1 and 2
  2 s: request 3
  3 s: request 4
  4 s: requests 5, 6, and 7
  5 s: request 8
  6 s: requests 9 and 10
 
  The number of requests generated per time interval is not constant. To
  control the sequence of requests, I would like to generate a trace
  file consisting of requests with the specified times. Can JMeter read
  the file and generate requests at specified times according to the
  trace?
 
  Thanks for any replies.
 
  On Sat, Sep 24, 2011 at 6:58 PM

Re: How many loop controlers ?

2011-09-23 Thread Deepak Shetty
http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html
for an example on how to add a variable number of parameters to the sampler
(you will have to change to read from CSV)

regards
deepak

On Fri, Sep 23, 2011 at 8:21 AM, mkt michaelkturner...@gmail.com wrote:

 How are the variables used? Are they HTTP Parameters? Are you using GET or
 POST?
 If using GET, then parameters are ignored if the name is blank, so
 that may be one way to do it.

 *Using POST and this is Oracle forms.*

 Also, the Switch Controller might be useful; add child samples with
 1,2,3 etc. parameters and use the variable to select which one is
 used.

 Alternatively, one can use a BSH or BSF Pre-Processor to populate the
 parameters; this has been discussed on this list a few times.
 In this case, the CSV file should probably contain a field with the
 number of parameters, followed by the actual parameters.
 That would help with the Switch Controller as well.

 *I will def check these out.  This is more complex that previous JMeter
 plans I've worked on.  Thank you very much for your help.*



 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-many-loop-controlers-tp4833696p4833978.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: Nested While controller Loops question

2011-09-20 Thread Deepak Shetty
hi
sure - but its talso the most efficient way for Jmeter. we usually have an
additional step in ANT to do all these tasks - before kicking off jmeter

regards
deepak

On Tue, Sep 20, 2011 at 1:46 PM, Bruce Wobbe br...@thewobbes.com wrote:

 Thanks Deepak,
 I went with the aggregator approach of step 3 ,it adds some overhead to my
 tests but works pretty simly

 Bruce

 On Mon, Sep 19, 2011 at 9:22 PM, Deepak Shetty shet...@gmail.com wrote:

  The problem is if you have Recycle as true , you never get EOF, if you
 have
  recycle as false then the inner CSV doesnt reset itself (which is what
  you
  expect for this loop to work)
 
  as far as I remember you could
  a) add a dummy row at the end of the CSV that you set a flag on and used
  that in the comparison
  b) Interact with JMeter api's to reset the CVS data set config.
  c) Pre process your CSV file so that you dont need the nesting
 
 
  regards
  deepak
 
  On Mon, Sep 19, 2011 at 7:45 PM, Bruce Wobbe br...@thewobbes.com
 wrote:
 
   I have a nested while loo controller p in jmeter. It's 3 levels deep.
  Each
   level has it's own config csv So it looks something like this
  
   While( File1 !- EOF)
  
  While (file2 != EOF)
   While(file3 != EOF)
HTPRequest
  
   The most inner loop will run with data from the first entry of file 1
 and
   the first entry of file 2 and all entries of file 3 . However the test
  ends
   after one loop through the most inner loop or continuously on if I
 choose
   Recycle on EOF for the inner loop. The outer loops never loop. If I
 have
  3
   entries in each file , instead of there being 27 calls to HTPRequest, I
  get
   3
  
   Are nested while loops not supported in this fashion?
  
   Thanks
  
   Bruce
  
 



Re: 404 errors

2011-09-19 Thread Deepak Shetty
what are you trying to find out from this?
You *probably* have a  request to a report page which *probably* has a link
to this stylesheet which the browser requests and the JMeter proxy records
into the script.  If you record the script again you *probably* see that
this path is changing.

So you have a couple of options
a. For the sampler that requests the report page , observe the response
(using view results tree , or you can also do this on the browser using for
e.g. fiddler). Then write a regex post processor as a child of this sampler
that extracts out the css path to the CSS into a variable e.g. cssurl and in
the sampler which requests the css change it to ${cssurl}

b. For the sampler that requests the report page , check the box saying
retrieve embedded resources and JMeter will automatically fetch these for
you (see new feature in 2.5 as well). Then you can just delete the call to
this css

regards
deepak

On Mon, Sep 19, 2011 at 5:09 AM, jgagnon jamie.gag...@sumerian.com wrote:

 Thanks,

 I have tried adding a debug post processor as a child to the HTTP request
 but I get the following in response data

 HTTPsampler.Arguments=
 HTTPSampler.domain=testport1a
 HTTPSampler.port=
 HTTPSampler.connect_timeout=
 HTTPSampler.response_timeout=
 HTTPSampler.protocol=http
 HTTPSampler.contentEncoding=

 HTTPSampler.path=/test/Portals/1/Temp/d826a6e5-24f0-4dab-888c-9882e735c0fd/Perf_1Metric_WeekAndDay_RangeTimeSeries_style.css
 HTTPSampler.method=GET
 HTTPSampler.follow_redirects=true
 HTTPSampler.auto_redirects=false
 HTTPSampler.use_keepalive=true
 HTTPSampler.DO_MULTIPART_POST=false
 HTTPSampler.implementation=Java
 HTTPSampler.image_parser=true
 HTTPSampler.concurrentPool=4
 HTTPSampler.monitor=false
 HTTPSampler.embedded_url_re=

 TestElement.name=/test/Portals/1/Temp/d826a6e5-24f0-4dab-888c-9882e735c0fd/Perf_1Metric_WeekAndDay_RangeTimeSeries_style.css

 TestElement.gui_class=org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui

 TestElement.test_class=org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
 TestElement.enabled=true
 TestPlan.comments=

 HTTPSampler.header_manager=org.apache.jmeter.protocol.http.control.HeaderManager@20170b

 HTTPSampler.cookie_manager=org.apache.jmeter.protocol.http.control.CookieManager@14ec870


 Here are some exampls of the types of path I see in the Http Requests

 /test/Portals/1/Temp/f8a54518-7bb6-4eef-b55e-8a87569bed36/C_20iT0_1.png


 /test/Portals/1/Temp/f8a54518-7bb6-4eef-b55e-8a87569bed36/Perf_1Metric_TypicalWeek_Box_style.css

 I believe rgeex is what I need to do to sort this whole thing out but I am
 lost




 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/404-errors-tp4810204p4818682.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: Get max or min Value of a Variable or Regular Expression

2011-09-19 Thread Deepak Shetty
hi
if there is nothing in the response that tells you the maximum then you have
to select all matches(match no -1) and do it in beanshell or bsf (should be
possible in XPATH).

But you might be missing something as well - when your application is
accessed by a normal user with the browser, what does he click (that you are
trying to script) and how does the max id get sent?

regards
deepak


On Mon, Sep 19, 2011 at 6:12 AM, dino past...@gmail.com wrote:

 Hello,

 I have read out some numeric value by using RegEx Extractor.

 Ref Name: FirstID
 Regular Ex: .*show.htm\?id=(\d+)
 Template: $1$
 Match No.: 1
 Default_Value: not_found

 My pages have lists with various of these id's. In fact they represent PK
 values from a db table.

 Now I have to get the highest value of an id, not necessarily the first, as
 in my regEx.

 *How can I read out the id with the highest (lowest) value.*


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Get-max-or-min-Value-of-a-Variable-or-Regular-Expression-tp4818919p4818919.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


Re: Nested While controller Loops question

2011-09-19 Thread Deepak Shetty
The problem is if you have Recycle as true , you never get EOF, if you have
recycle as false then the inner CSV doesnt reset itself (which is what you
expect for this loop to work)

as far as I remember you could
a) add a dummy row at the end of the CSV that you set a flag on and used
that in the comparison
b) Interact with JMeter api's to reset the CVS data set config.
c) Pre process your CSV file so that you dont need the nesting


regards
deepak

On Mon, Sep 19, 2011 at 7:45 PM, Bruce Wobbe br...@thewobbes.com wrote:

 I have a nested while loo controller p in jmeter. It's 3 levels deep. Each
 level has it's own config csv So it looks something like this

 While( File1 !- EOF)

While (file2 != EOF)
 While(file3 != EOF)
  HTPRequest

 The most inner loop will run with data from the first entry of file 1 and
 the first entry of file 2 and all entries of file 3 . However the test ends
 after one loop through the most inner loop or continuously on if I choose
 Recycle on EOF for the inner loop. The outer loops never loop. If I have 3
 entries in each file , instead of there being 27 calls to HTPRequest, I get
 3

 Are nested while loops not supported in this fashion?

 Thanks

 Bruce



Re: 404 errors

2011-09-16 Thread Deepak Shetty
Hi
Your application seems to be dynamically generating urls so once you have
recorded your test you have to modify it to extract the url using post
processors and then use the extracted variable.
However your sample shows a css file so you also need to determine if you
need this or whether you can use the embedded resources check box instead
Regards
Deepak
On Sep 16, 2011 3:23 AM, jgagnon jamie.gag...@sumerian.com wrote:
 Hi there,

 I have a script that seems to be calling some web pages that seem to have
a
 different URL to when they were fisrt run.

 For example

 I am testing a portal on the following URL

 http://testport1/test

 The requests that are failing are all set like the below in http requests.


/test/portals/Temp/d907f8a0-d68d-4e71-aae5-ece94e8d0ec/Perf_1Metric_Weekday_RangeTimeSeries_style.css

 There are similar ones to this calling other css and png files.


 The thing is the rest of the script is doing what I want. it is running a
 report in reporting services and the details above are for the web page.

 What I want to know is how best to adress these so that I can stop the 404
 errors. or are these a red herring and I need do nothing with them?

 --
 View this message in context:
http://jmeter.512774.n5.nabble.com/404-errors-tp4810204p4810204.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: Extracting Hidden Values in Jmeter

2011-09-16 Thread Deepak Shetty
Hi
Session is on the server so as long as you pass the session id you are good
- usually you have to add cookie manager
What is more likely is you aren't extracting the data correctly.jmeter will
have recorded the name value pairs that are being posted back but some of
the values are probably dynamic and change. You need to extract out those
values.
The values have to be there somewhere in the html or java script otherwise
the browser can't send them back either
Regards
Deepak
On Sep 16, 2011 7:06 AM, chanda kcma...@yahoo.com wrote:
 I have a ASP.net Page with Ajax calls and post backs happenning, I need to
 enter the values and submit the form following are the steps.
 1. When I enter an SSN and tab out a post back is happenning and a request
 is recorded in the Jmeter.
 2. I enter First Name and Date of Birth and tab out another post back is
 happenning and another request is created in Jmeter.
 3. I click on Submit another request is created in Jmeter.

 The issue here is in the step one when I enter the SSN and tab out in the
 application they are also extracting some values through code from session
 manager for example userid,company number etc so thses values are not
 available in the jmeter script after recording so how do I extract these
 values , I dont see any ID and values so that I can extract them using
 regular expression ??

 --
 View this message in context:
http://jmeter.512774.n5.nabble.com/Extracting-Hidden-Values-in-Jmeter-tp4810804p4810804.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: Issue with Response assertion for HTTP Request Sampler

2011-09-15 Thread Deepak Shetty
hi
what options have you chosen for Response Assertion?


   - Contains - true if the text contains the regular expression pattern
   - Matches - true if the whole text matches the regular expression pattern

   - Equals - true if the whole text equals the pattern string
   (case-sensitive)
   - Substring - true if the text contains the pattern string
   (case-sensitive)

Equals and Substring patterns are plain strings, not regular expressions.

Note that what you are trying to do resembles the Equals or Substring
usecase. However as sebb points out , it is important that the string then
be an exact match (including the line endings or spaces or whatever) and it
is very hard to visually check whitespace characters.

However such a thing is rarely needed in a test (and has the added
consequence of making your test very brittle). It's usually easier to
compare specific data points than the entire response.

regards
deepak

On Thu, Sep 15, 2011 at 8:30 AM, Karthik110885 karthik110...@gmail.comwrote:

 Hi ZK,

 Thanks for the response. I googled for the special characters and found a
 list of 11

 [ \ ^ $ . | ? * + ( )

 I have escaped . with a backslash. But the response assertion takes that
 too
 in a literal way.

 *Assertion error: false
 Assertion failure: true
 Assertion failure message: Test failed: text expected to contain
 /lt;CompanyCode\.GetDetail\.Response
 xmlns=quot;urn:sap-com:document:sap:business\.responsequot;gt;

  000121
  Firma
  Ides AG
  Martin Steiner, Kathrin Walther,
  Bernd Zecha, Dondogmaa Lchamdondog
  IDES intern

  Frankfurt


  60441
  60070

  160529


  Lyoner Stern 231









  DE
  D
  06
  IDES

  CET









  1000
  IDES AG
  Frankfurt
  DE
  EUR
  D
  INT
  K4
  DE123456789
  001000
  000121
  DE
  EUR
  DE






  00





 lt;/CompanyCode\.GetDetail\.Responsegt;/*


 Please let me know if i am doing anything wrong.

 Thanks again.

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Issue-with-Response-assertion-for-HTTP-Request-Sampler-tp4803205p4807268.html
 Sent from the JMeter - User mailing list archive at Nabble.com.



Re: Constant throughput timer not giving expected results

2011-09-14 Thread Deepak Shetty
if you are using JMeter 2.5 on the HTTP Sampler , there is a drop down named
implementation

On Wed, Sep 14, 2011 at 11:06 AM, E S electric.or.sh...@gmail.com wrote:

 So how do I tell which HttpClient I am using? Is there a config option
 for that somewhere? I looked in jmeter.conf and saw some comments
 related to http client 3.x but nothing that looked very definitive.

 In terms of running out of ephemeral ports, I guess my options are to
 try to increase the port range, lower the TIME_WAIT value so the ports
 are freed up faster, or use distributed load generation. Other
 options?


 On Wed, Sep 14, 2011 at 12:32 PM, sebb seb...@gmail.com wrote:
  On 14 September 2011 17:51, E S electric.or.sh...@gmail.com wrote:
  I'm seeing a jar file in the lib directory called
  commons-httpclient-3.1, so I assume I'm using HttpClient 3.1.
 
  Not necessarily. There were two Http Sampler implementations in JMeter
 2.4.
  These are merged in JMeter 2.5, which has a drop-down list for the
  implementation.
 
  What do you mean when you say it might be related to timing?
 
  Depending on timing, the OS may have had time to free up the resources or
 not.
 
  On Wed, Sep 14, 2011 at 3:45 AM, sebb seb...@gmail.com wrote:
 
  On 14 September 2011 04:51, E S electric.or.sh...@gmail.com wrote:
   To answer your question, on the 6000 req/sec tests where this is no
   throughput timer, it's about what you would expect, around 30 ms for
 the
   average request. So that means each thread can do about 33 request
 per
   second and if you have 200 threads that's roughly 6000 requests per
 second.
  
   I did just notice something significant though. I am getting errors
 on the
   tests that use the constant throughput timer. Some of the requests
 (usually
   around 10%) give the following error:
  
   Response code: Non HTTP response code:
 java.net.NoRouteToHostException
   Response message: Non HTTP response message: Cannot assign requested
   address
  
   From what I've researched and the evidence I've gathered on the
 JMeter box,
   I'm running out of ephemeral ports. I find this strange though since
 it
   doesn't happen when I run without the throughput timer. Shouldn't a
 be
   running out of ports either way? What is the timer doing that makes
 me use
   more ports?
 
  If everything else in the plan is the same, then it must just be
  timing-related, because the timers just wait as needed.
 
  If the box is near the limit of ports, then changes in timing might
  have an effect.
 
  Which HTTP sampler are you using?
  HttpClient4 (in version 2.5; fixed but not yet released) has an
  unfortunate bug that means it uses up lots of connections; best to use
  HttpClient3.1.
 
   On Tue, Sep 13, 2011 at 3:11 AM, Oliver Lloyd 
 oliver_ll...@hotmail.comwrote:
  
   What are the response times when you run these tests?
  
   -
   http://www.http503.com/
   --
   View this message in context:
  
 http://jmeter.512774.n5.nabble.com/Constant-throughput-timer-not-giving-expected-results-tp4784904p4797538.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
 
 
  -
  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
 
 

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




Re: Constant throughput timer not giving expected results

2011-09-14 Thread Deepak Shetty
then you are on httpclient 3.1

On Wed, Sep 14, 2011 at 11:34 AM, E S electric.or.sh...@gmail.com wrote:

 I am using JMeter 2.4 r961953.

 On Wed, Sep 14, 2011 at 1:18 PM, Deepak Shetty shet...@gmail.com wrote:
  if you are using JMeter 2.5 on the HTTP Sampler , there is a drop down
 named
  implementation
 
  On Wed, Sep 14, 2011 at 11:06 AM, E S electric.or.sh...@gmail.com
 wrote:
 
  So how do I tell which HttpClient I am using? Is there a config option
  for that somewhere? I looked in jmeter.conf and saw some comments
  related to http client 3.x but nothing that looked very definitive.
 
  In terms of running out of ephemeral ports, I guess my options are to
  try to increase the port range, lower the TIME_WAIT value so the ports
  are freed up faster, or use distributed load generation. Other
  options?
 
 
  On Wed, Sep 14, 2011 at 12:32 PM, sebb seb...@gmail.com wrote:
   On 14 September 2011 17:51, E S electric.or.sh...@gmail.com wrote:
   I'm seeing a jar file in the lib directory called
   commons-httpclient-3.1, so I assume I'm using HttpClient 3.1.
  
   Not necessarily. There were two Http Sampler implementations in JMeter
  2.4.
   These are merged in JMeter 2.5, which has a drop-down list for the
   implementation.
  
   What do you mean when you say it might be related to timing?
  
   Depending on timing, the OS may have had time to free up the resources
 or
  not.
  
   On Wed, Sep 14, 2011 at 3:45 AM, sebb seb...@gmail.com wrote:
  
   On 14 September 2011 04:51, E S electric.or.sh...@gmail.com
 wrote:
To answer your question, on the 6000 req/sec tests where this is
 no
throughput timer, it's about what you would expect, around 30 ms
 for
  the
average request. So that means each thread can do about 33 request
  per
second and if you have 200 threads that's roughly 6000 requests
 per
  second.
   
I did just notice something significant though. I am getting
 errors
  on the
tests that use the constant throughput timer. Some of the requests
  (usually
around 10%) give the following error:
   
Response code: Non HTTP response code:
  java.net.NoRouteToHostException
Response message: Non HTTP response message: Cannot assign
 requested
address
   
From what I've researched and the evidence I've gathered on the
  JMeter box,
I'm running out of ephemeral ports. I find this strange though
 since
  it
doesn't happen when I run without the throughput timer. Shouldn't
 a
  be
running out of ports either way? What is the timer doing that
 makes
  me use
more ports?
  
   If everything else in the plan is the same, then it must just be
   timing-related, because the timers just wait as needed.
  
   If the box is near the limit of ports, then changes in timing might
   have an effect.
  
   Which HTTP sampler are you using?
   HttpClient4 (in version 2.5; fixed but not yet released) has an
   unfortunate bug that means it uses up lots of connections; best to
 use
   HttpClient3.1.
  
On Tue, Sep 13, 2011 at 3:11 AM, Oliver Lloyd 
  oliver_ll...@hotmail.comwrote:
   
What are the response times when you run these tests?
   
-
http://www.http503.com/
--
View this message in context:
   
 
 http://jmeter.512774.n5.nabble.com/Constant-throughput-timer-not-giving-expected-results-tp4784904p4797538.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
  
  
   -
   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
  
  
 
  -
  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: How many users I can run on a single JMeter instance?

2011-09-13 Thread Deepak Shetty
hi
asked many times in the mail archives - usual answer is it depends on your
test as well and almost always leads to
http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean

But another thing to consider is the accuracy of your test . Just because
you can run 500 threads doesn't mean the response times you get are a
reasonably accurate simulation of 500 users. If your test doesnt have large
think times and your responses are fairly fast , then you usually lose this
accuracy much before you run out of threads.


regards
deepak


On Mon, Sep 12, 2011 at 11:39 PM, Chinmoy Chakraborty cch...@gmail.comwrote:

 Hello!!

 I am running a load test with JMeter. The server is win 2003 server and has
 2 gigs memory. I set jmeter memory to 1 gigs. In this setup 500 concurrent
 users runs fine with 800ms constant timer delay. But if I try 800 or more I
 see something strange behaviour.

 What is the maximum users are advised to run on a single JMeter instance
 and
 on above server config? If I want to simulate 1000 users what the best way
 to run the test?

 Chinmoy



Re: About Constant Timer / Constant Throughtput Timer

2011-09-13 Thread Deepak Shetty
You shouldnt use  Constant timer for such requirements , because that would
need you to know in advance the average time your request responds in - for
you to be able to calculate the delay you need to get the rate of requests
you want

These type of requirements are met by the constant throughput timer (or by
the throughput shaping timer from jmeter-plugins
http://code.google.com/p/jmeter-plugins/wiki/ThroughputShapingTimer).

So you should be able to say 144000 samples per minute and all threads -
because thats what you want. If you want to calculate it per thread then you
might be off by a little because they may not all respond the same
(Especially if you have synchronization problems). Youll have to divide your
wanted number by the number of threads and then specify the value.

However if you look at the Number of threads you have = 80 , and you want
2400 requests per second , it means each thread must be able to make 30
requests in a second - which means your requests on average should be about
1000(milliseconds)/30 = 33 milliseconds (assuming Jmeter takes no time ,
which is invalid when you are dealing with small values and youll have to
factor this in). Depending on what your java request does , such an
assumption may not be correct and you have to increase your number of
threads. however you cannot also keep on increasing the number of threads
for a single jvm instance (if you see that your throughput doesnt increase
with the number of threads and doesnt reach the value you want - you have to
either tune jmeter or tune your app - or distribute Jmeter but that might be
problematic depending on what he java sampler does)

You usually run your test for a long enough duration so that ramp up or down
is not signifcant. (there's a recent thread in the archives that discusses
this)

http://code.google.com/p/jmeter-plugins/wiki/ThroughputShapingTimer also has
some information


regards
deepak

On Sun, Sep 11, 2011 at 11:22 PM, Raghavendra Kristam
raghala...@yahoo.comwrote:

 Hi,

 I am using JMeter(2.4) for doing the loading testing of XMPP server and my
 test plan is configured as following:

 - Test plan
   - Thread group
 - Loop Controller
 - Java Request
- Generate Summary Results
- Constant timer/Constant throughput timer
  - CSV Data Set Config
  - CSV Data Set Config
  - CSV Data Set Config
 For example :
 Number of Threads: 80
 Ramp up period: 80
 Duration: 1800 secs
 a) If I use constant timer = 1000 milli secs then the output as follows:
 Number of samples/Throughput/Avg/Error = 129307 / 71.2/sec / 64 milli
 secs / 0.00%
 b) If I use constant throughput timer, target throughput (in samples per
 minute): 100 and Calculate throughput based on: this thread only then the
 output as follows:
 Number of samples/Throughput/Avg/Error = 214372 / 119.6/sec / 72 milli
 secs / 12.7%

 I need to configure the test plan to get the throughput as around 2400
 samples per sec (144000 /min 864/hr).

 Please suggest me what timer should I use

 How do I calculate the number of threads / rampup period / constant timer
 values for this.


 Thanks






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




Re: A general question about how Jmeter is executing the request

2011-09-11 Thread Deepak Shetty
 Your image shows a bunch of requests where originally you only spoke about
a 1-1 comparison of a page in Jmeter v/s the time of a browser load of a
page. It doesnt seem to be what your picture illustrates .

On Sat, Sep 10, 2011 at 6:25 PM, vish ringhal...@gmail.com wrote:

 Hello, Im sorry if I misunderstood, but I cannot see any download embedded
 resources check box in my HTTP request sampler. I have attached an image.
 What I can see is retrieve all embedded resources from HTML files check
 box which is also unchecked.

 -
 Thanks,
 Vish
 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/A-general-question-about-how-Jmeter-is-executing-the-request-tp4787130p4790704.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: A general question about how Jmeter is executing the request

2011-09-11 Thread Deepak Shetty
this comparison isnt correct (and incidentally how did you measure 2
seconds?)
Note that the Cache Manager in Jmeter wont persist between runs (As in every
time you start jmeter the cache is empty , unlike a browser which can store
files to disk). The other factors are things like concurrency and other
browser specific behavior like the browser doesn't have to wait for the
entire page to be downloaded before requesting a CSS file for example or it
doesn't have to wait for all images to be downloaded before rendering the
page etc etc.). So a cleaner comparison is
clear your browser cache and use the network tab of a tool like firebug and
then check the total time - the time for the individual resources must
match.

Now because you say you have a reporting application - some of your report
-images are probably dynamic and are significant and need to be part of your
test - however other things like CSS/JS/static images need not be , they can
be estimated or you can have a different set of tests run to figure out the
behavior under load.


regards
deepak

On Sun, Sep 11, 2011 at 10:34 AM, vish ringhal...@gmail.com wrote:

 All the requests/samples which are shown in the screenshot are  the ones
 which got recorded by Jmeter when I loaded the single report page in
 browser. So Jmeter does not capture one page load as one request/sample but
 it recored all the requests which are made when the page is loaded for eg.
 .aspx, image requests, javascripts etc.


 So all these requests are executed by browser when the page loads, but it
 happens in 2 secs. But when Jmeter executes all these requests for one page
 load it takes 10 to 11 secs to execute them.

 I am not able to understand this time difference actually. Hope I am able
 to
 make it clear.

 Thanks



 -
 Thanks,
 Vish
 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/A-general-question-about-how-Jmeter-is-executing-the-request-tp4787130p4791947.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: Vertically Scaling JMeter

2011-09-11 Thread Deepak Shetty
are you running a 32bit JVM? whats the exact OOM message you get ?

On Sun, Sep 11, 2011 at 4:59 PM, Oliver Lloyd oliver_ll...@hotmail.comwrote:

 I'm thinking of running multiple jmeter processes on a single machine, up
 to
 20. My testing so far has not highlighted any issues with this in principle
 - I can execute the same jmx file over multiple java processes and I am
 careful to write to separate jtl files.

 The reason I'm taking this approach is to meet a requirement for a test
 simulating a very large number of concurrent connections for an application
 using long-polling. My test is extremely simple: one GET request which is
 held open by the server for 15 seconds and then immediately resent, that's
 it. Running this test does not create a heavy load on the machine JMeter
 runs on - the throughput is low - but I am not able to run more than about
 1000 threads within a single JM process (I get OOM errors past that). I
 need
 quite a lot more than 1000 so by vertically scaling multiple JM processes I
 am aiming to have each physical machine hold open about 10-20,000
 connections and then scale these out horizontally to get the load I need.

 Doable?

 -
 http://www.http503.com/
 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Vertically-Scaling-JMeter-tp4792729p4792729.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: JMeter script recording

2011-09-09 Thread Deepak Shetty
1. Do I need to record .jpg, .css, .js as part of script?
Recording - probably not, running them depends - Been discussed some times
on the mail archives with differring points of views so you can get a flavor
of the pro's and con's of either.

regards
deepak

On Fri, Sep 9, 2011 at 2:45 AM, joy janardhan joy.janard...@gmail.comwrote:

 I am relatively new to JMeter and I have fundamental questions related to
 JMeter scripting. I have read many posts through Google but nothing served
 as a definite answer.

 I am to load a website with around 1000 concurrent users. I am recording
 with Badboy and exporting to JMeter.

 I want to simulate my script as close as real world to get most accurate
 response time values. So my questions are:
 1. Do I need to record .jpg, .css, .js as part of script? They clutter the
 test plan for sure and somewhere I read that they are not necessary. But I
 feel not having them would certainly impact the response time(please
 correct
 me if I am wrong.)
 2. There is Retrieve embeded resources option. If I do not record .jpg
 .css etc and just check this box then would it server purpose of simulating
 real world scenario?
 3. What effect will HTTP Cache Manager have if enabled on 12 above?

 Thank you for all your help!

 -Joy



Re: Load Testing with Variable Request Path

2011-09-09 Thread Deepak Shetty
One of the thing you should be careful about is why are you running this
test ? (yes you can read from file as described by nermin).
If these are independent requests - and your purpose is to check 404 or
something similar then there are no issues.

However if your goal is something like I have an access log and I want to
replay all the requests to simulate real world load then the approach
probably wont work - because there are missing factors that you should
consider like
a. concurrency and
b. session state

regards
deepak

On Fri, Sep 9, 2011 at 5:17 AM, pawinder pawinder_gu...@yahoo.com wrote:

 Hi,
 I have a scenario where I need to load test a website that has over 5000
 pages. One option is that I create 5000+ http request samplers. It will be
 too time consuming to create and maintain so many requests. I was wondering
 if jmeter can read the URL for request from a text file. So that I could
 keep URLs to all the web pages in a text file and jmeter reads from the
 text
 file and fires http requests.

 Any suggestions are most welcome.

 Thanks,
 Pawinder

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Load-Testing-with-Variable-Request-Path-tp4786122p4786122.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: A general question about how Jmeter is executing the request

2011-09-09 Thread Deepak Shetty
do you have download embedded resources checked?

On Fri, Sep 9, 2011 at 10:23 AM, vish ringhal...@gmail.com wrote:

 Hello,

 I am a new user of Jmeter and have recorded a script to check the average
 response time of loading of few web reports. The action which is recorded
 simple clicks on a report link and load the reports.

 Concern:

 When I manually check the time it takes to load the report page, its about
 2
 seconds.
 When I execute the same set of requests which takes for loading the report
 page in Fiddler, it also shown about 2 seconds.

 But when I execute the same requests in Jmeter, it gives me an average time
 of 10 to 11 seconds.
 The report contains few images and a chart and some data coming from
 database.

 I am wondering why is this difference of time?
 I have added Cache and cookie managers in the Thread group.


 Please help me with this understanding.

 Thanks,
 Vish


 -
 Thanks,
 Vish
 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/A-general-question-about-how-Jmeter-is-executing-the-request-tp4787130p4787130.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: A general question about how Jmeter is executing the request

2011-09-09 Thread Deepak Shetty
No I use HTML or Text only.
The question is , in the HTTP sampler do you have download embedded
resources checked? Are you also by any chance having Jmeter on the same
machine as your application server?

If I increase the number of threads then this average time for one thread
also increases.
which is expected , but not good, for the application load you are testing

. So the time taken for one report load would be 15/10 secs.
No. If you and I access the report and it takes 10 seconds for each of us,
is the average time 5 seconds (10 by 2 threads)?

regards
deepak




On Fri, Sep 9, 2011 at 3:12 PM, vish ringhal...@gmail.com wrote:

 No I use HTML or Text only.

 The time which I mentioned is for 1 single thread loading the requests of 1
 page load.

 If I increase the number of threads then this average time for one thread
 also increases.

 I doubt that Jmeter is initially slow and then when the threads increase
 all
 we should do is divide the average time by the number of threads.

 For example:

 1 Th loading 1 report page takes - 10 secs
 10 Th loading 1 report page takes - 15 secs

 Then the server is actually responding and loading 10 reports in 15 secs.
 So
 the time taken for one report load would be 15/10 secs.

 Please let me know if you agree with my understanding.

 Thank,
 Vish

 -
 Thanks,
 Vish
 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/A-general-question-about-how-Jmeter-is-executing-the-request-tp4787130p4788063.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: Issue with Reular Expression

2011-09-08 Thread Deepak Shetty
hi
so there are (atleast) these possibilities
1. You arent sending the data correctly (or not extracting it correctly)
2. You are sending some other data that the server doesnt expect in the form
fields (which is what __EVENTVALIDATION validates)
3. perhaps you arent maintaining session correctly (e.g. you dont have a
cookie manager)

For the first two requests only, send the browser trace using say live http
headers and firefox , request and response
Send the corresponding values(request/response) from View results tree in
JMeter (note that the values themselves will vary by design)

Or if your site is accessible from the internet then send it to me and I can
check

regards
deepak


On Thu, Sep 8, 2011 at 7:50 AM, chanda kcma...@yahoo.com wrote:

 Thanks,

 I tried with the same approach with my application
 but it says The state information is invalid for this page and might be
 corrupted

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Issue-with-Reular-Expression-tp4770195p4782707.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: Very long tests with huge JTL log file

2011-09-08 Thread Deepak Shetty
 DO you know anyway to rotate the log JTL file ?
ditto to what everyone else is saying - you dont want to do this.
just load it up into your favorite rdbms or OLAP tool and analyse from
there.

On Thu, Sep 8, 2011 at 9:26 AM, Toni Menendez Lopez tonime...@gmail.comwrote:

 Hello,

 I am going to execute a tests for 3 days, it will made me to have a very
 long JTL file. DO you know anyway to rotate the log JTL file ?

 Toni.



Re: POST REST WebService in jmeter

2011-09-07 Thread Deepak Shetty
I added the authorization into the send parameters with the request
section.
authorization is a header , not a parameter. - this will  cause the 401
error - because your request is not authorized
Typically you have to use the HTTP Authorization manager , but it did not
AFAIK support custom schemes like the one you are using


regards
deepak

On Wed, Sep 7, 2011 at 8:19 AM, testerinCO cmola...@comcast.net wrote:

 I have to test some REST web services and I'm using the POSTER add on tool
 (Firefox).  I'm successful running the services via the tool, but I'm not
 able to get a POST to work in jmeter using the HTTP Request sampler.

 Here are the parameters I input into the POSTER tool
 in the header:
 Name   Value
 Authorization
 child:1251829861345:95c4999b38661c7d450a0d58379b28fb

 in the content to send section I added the following string:
 {title:test,description:this is a test}

 How can I send the authorization (header) and string (content to send) in
 jmeter?
 I added the authorization into the send parameters with the request
 section.
 When I attempted to add the string into the section send parameters with
 the request into the name column leaving the value null or the other way
 around, I always get a 401 error:  2011/09/07 09:07:13 ERROR -
 jmeter.protocol.http.sampler.HTTPJavaImpl: readRespo
 nse: java.io.IOException: Server returned HTTP response code: 401 for URL:
 http:
 //blogsweb.dmz.arch.myoffice.com/blogs/blog/new.json/

 When I use the POSTER add on tool, it returns code 201 as expected.

 Can somebody help.

 Thanks

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/POST-REST-WebService-in-jmeter-tp4778905p4778905.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: Archive search

2011-09-07 Thread Deepak Shetty
google?
jmeter login site:
http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/

On Wed, Sep 7, 2011 at 12:42 PM, Shay Ginsbourg sginsbo...@gmail.comwrote:

 Hi,



 Which is the best way to conduct a string search in
 http://mail-archives.apache.org/mod_mbox/jakarta-jmeter-user/ ?



 Please advise.















 Shay Ginsbourg
 Regulatory  Testing Affairs Consultant

  Formerly QA Manager of LoadRunner at Mercury Interactive

  M.Sc. cum laude in Bio-Medical Engineering
  M.Sc. in Mechanical Engineering









 Work: 035185873
 Mobile: 0546690915

 Email:  mailto:sginsbo...@gmail.com sginsbo...@gmail.com

  http://il.linkedin.com/in/shayginsbourg
 http://il.linkedin.com/in/shayginsbourg

 http://www.ginsbourg.com/ GINSBOURG.COM

  _



 P Please consider your environmental responsibility before printing this
 e-mail.


















Re: Issue with Reular Expression

2011-09-07 Thread Deepak Shetty
Compare what the regex extracts with the value attribute of the hidden field
(from View Results tree listener you can get the latter, and from debug
sampler you can see the former). Also check the value you are sending in
View Results Tree in the next request

regards
deepak

On Wed, Sep 7, 2011 at 1:50 PM, chanda kcma...@yahoo.com wrote:

 Though I am extracting the Regular Expression of the ViewState and
 EventValidation from the previous request and passin the Variable in the
 next request I am getting an error saying The state information is invalid
 for this page and might be corrupted, how do I know that the RegExp
 variable I am passing to the request is correct or no.

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Issue-with-Reular-Expression-tp4770195p4780066.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: Problems in handling the AJAX request

2011-09-07 Thread Deepak Shetty
please stop resurrecting old threads for the problem you have already raised
on another thread.
As mentioned by felix you need to compare it with the browser (firefox +
live httpheaders or firebug or fiddler2 ).
This allows you to compare whether you are passing the correct number of
parameters.However in your case because the value itself is dynamic , you
cannot directly compare it with the browser since the value wont be the same
anyway(if your problem is that you are not extracting the value completely).


regards
deepak

On Wed, Sep 7, 2011 at 3:44 PM, chanda kcma...@yahoo.com wrote:

 can someone explain the lines mentioned below ie
 Next step is to very carefully compare the exact request headers that
 Jmeter sends (faulty?) and that your browser sends (correct).

 1. How to compare the headers
 2. How do we compare that we are passing the correct RegExp ViewState and
 EventValidation variables that are extracted from previous request and
 passing to next requests .
 3. The request in the treewiew should be compared against which.




 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Problems-in-handling-the-AJAX-request-tp3313363p4780399.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: Issue with Reular Expression

2011-09-07 Thread Deepak Shetty
Hi
here is a sample file
https://skydrive.live.com/#!/?cid=1bd02fe33f80b8acsc=documentsuc=1id=1BD02FE33F80B8AC!868

run against a sample ASP.NET site(not mine, please do not abuse!) which has
both viewstate and eventvalidation

http://testdrive.barnyardbbs.com/ASP.Net-Gallery-Control-Open-Source

You can compare with your site.

regards
deepak

On Wed, Sep 7, 2011 at 2:08 PM, Deepak Shetty shet...@gmail.com wrote:

 Compare what the regex extracts with the value attribute of the hidden
 field (from View Results tree listener you can get the latter, and from
 debug sampler you can see the former). Also check the value you are sending
 in  View Results Tree in the next request

 regards
 deepak


 On Wed, Sep 7, 2011 at 1:50 PM, chanda kcma...@yahoo.com wrote:

 Though I am extracting the Regular Expression of the ViewState and
 EventValidation from the previous request and passin the Variable in the
 next request I am getting an error saying The state information is
 invalid
 for this page and might be corrupted, how do I know that the RegExp
 variable I am passing to the request is correct or no.

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Issue-with-Reular-Expression-tp4770195p4780066.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 record different action

2011-09-06 Thread Deepak Shetty
Hi
The closest equivalent for a load runner transaction is the transaction
controller which will allow you to group up multiple requests as one, but
you rarely need to do this.

The functionality of specifying vusers to transactions cannot be recorded
directly in JMeter. assuming you model one user = one thread - then You
usually either sum up the number of users you need and specify the total in
threadgroup and use the various controllers to control how many threads
perform which actions OR
you use separate thread groups. If you are going to use different thread
groups , then you usually have to use module/include controllers to avoid
duplicating the test script. Again you need to tweak your script manually ,
you cannot record this automatically.

regards
deepak

On Mon, Sep 5, 2011 at 10:27 PM, vamba vino10.test...@gmail.com wrote:

 Thanks ..u r corect ...i vl clearly explain u ...i some commerical tool
 ..for
 login part we record and give the transcation as login and same as for the
 other action in single record  .we can give vuser as we like for the
 different transcation as per the requirement once when we  run the scenario
 ..same like that can we do in jmeter ?


 If we dnt have like that pl explain me how to differeniate in jmeter

 thanks in advance

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/How-to-record-different-action-tp4770103p4773258.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: Reg: Bean Shell Pre processor and Post Processors

2011-09-05 Thread Deepak Shetty
1. Kindly tell me how to move ahead with this situation.
Usually means you have to compare every request that the browser sends which
what your Jmeter script is sending /receiving (using View Results Tree
).Common causes are
a. You aren't using a cookie manager
b. You aren't sending dynamic data correctly.

2. Also if there is solution with Bean shell pre/post-processor for this
then kindly help me in understanding - how to apply and Use Bean Shell
scripts in this situation.

Doesn't look like you need Bean Shell for this scenario. It or any other
scripting language is used when JMeter out of the box doesn't work or
doesn't have the functionality you are looking for and you dont need your
script to be highly optimised.

regards
deepak




On Mon, Sep 5, 2011 at 2:02 AM, Nisha G. nishag.1...@gmail.com wrote:

 Hello All,

 Thank you all for the advises, helps and advises you gave me for my all
 queries.

 Again I need your advise on two below mentioned queries which I am facing
 now.

 A. In My application there is a scenario in which I do below steps.

- Thread Group
 - Login
 - Search with different- different criteria
 - System shows a tabular result with multiple
 results
 - Select some of the rows by choosing Check
 Boxes and do a action on those selected results/rows (total table rows
 varies from 15 to 100).
 - Log out

 Now issues are with search criteria... As I search with different criteria
 system shows altogether different results. Here on the resulting page when
 I
 do a PAGE VIEW SOURCE (Manually) then system doesnot show any table
 results in that source code; so that could not get recorded in my JMeter
 Scripts. But when I do same scenario using Fiddler 2, in this tool all
 those tabular results got recorded and displayed very well.

 Query:
 1. Kindly tell me how to move ahead with this situation.

 2. Also if there is solution with Bean shell pre/post-processor for this
 then kindly help me in understanding - how to apply and Use Bean Shell
 scripts in this situation.
 (I never used this Bean shell scripting as I am new to this scripting
 language)

 Please help me out in this.

 Your advise and help mean to me a lot.

 Thanks and Regards,
 Nisha G.



Re: Store extracted data in a file

2011-09-02 Thread Deepak Shetty
And the user ID is not specified in the URL or in any variable..I
Again. if a user is using your site with a browser, does he ever enter his
ID? if not , then the browser does get this information somehow. if you cant
figure it out, you can ask any of the developers in your team.

I have to do this for more than one user
Variables are scoped to the thread. So if u have one user to a thread then
you are done since each thread will get its own value for the variable. if
you have multiple users for the thread then you just need to work out some
scheme for the key under which your variable is stored (e,g id_${username}).
A variable once defined is available till the end of the test. if you need
it in some other test then the easiest is to use sample_variables in
jmeter.properties , so that Jmeter will write out the variable to its result
file and you post process this file to extract out the data you need.

regards
deepak


On Fri, Sep 2, 2011 at 4:20 AM, bisbis aspat...@avaya.com wrote:

 Hello,

 First, I need to do this without a database.

 And the user ID is not specified in the URL or in any variable..I can only
 find the ID when I am creating the user - the ID is returned- or when I
 make
 a request that send me back some data about the user, including his ID. I
 was planning to extract the ID by using a regex, but I also need to store
 the ID - I have to do this for more than one user - and use it after
 ...That's why I was wondering how can I save the ID's in a file...

 Regards

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Store-extracted-data-in-a-file-tp4757868p4761988.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: Box plot or Cat and whisker

2011-09-02 Thread Deepak Shetty
not out of the box.
Some additional graphs are here - http://code.google.com/p/jmeter-plugins/
You can always parse the result logs to generate whatever you want , samples
available on googling

My attempts are here -
http://theworkaholic.blogspot.com/2009/12/graphs-for-jmeter-parsing-jmeter-result.html

regards
deepak

On Fri, Sep 2, 2011 at 7:47 AM, Sherif Amer sherif.moh.a...@gmail.comwrote:

 Hi All,

 does Jmeter supporting the  box plot or cat and whisker diagrams ?

 Regards,

 Sherif Amer.



Re: Store extracted data in a file

2011-09-01 Thread Deepak Shetty
 But to do the operation, I need the ID of the customer, which is returned
when the customer is created.
Forget Jmeter for a moment. When the customer logs in to the site with a
browser and performs the operation, does he enter his ID? I doubt thats the
case. Assuming it isn't , then usually the ID will be stored as a hidden
input variable in the HTML or be specified in the URL of the form or
something. In which case the standard way to do this in JMeter is extract
out the value from the previous response (in the customers flow of
performing the operation)  and use it.


regards
deepak


On Thu, Sep 1, 2011 at 3:53 AM, bisbis aspat...@avaya.com wrote:

 Hello,

 I have to do create a test that basically do this:
 - as admin create a number of customers (let's say 20)
 - after that, login with each user and do a set of actions.

 The first request I solved it in this way: login as admin, and then read
 the
 username and password needed to create the customer from a CSV file.

 And because I already know the username and password of each user, I can
 login with the users. But to do the operation, I need the ID of the
 customer, which is returned when the customer is created.

 I can extract the ID by using the regular expression extractor. But, I need
 to store this ID in a file, a CSV file preferable. And with this file
 created, when I login with the user, I can take his ID from the file and
 pass it to the application...

 Is there any way to do that? How can I store each extracted ID in a file?

 Thanks,

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Store-extracted-data-in-a-file-tp4757868p4757868.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: Question regarding NTLM

2011-08-31 Thread Deepak Shetty
According to their web page they added multiple user support back in 2007.
I only see  The code was refactored to facilitate future support of
multiple profiles and other planned extensions. - not that it actually
supports , and their config doesnt seem to indicate otherwise. Without
multiple users there isn't really a load test.

On Tue, Aug 30, 2011 at 1:44 PM, Bruce Ide flyingrhenqu...@gmail.comwrote:

 According to their web page they added multiple user support back in 2007.

 It would hardly be an optimal solution, but might work as a stopgap measure
 until something else could be figured out. If I had a choice between that
 and not testing, I'd be willing to give it a shot. My methods tend to be a
 bit... unorthodox... though.

 --
 Bruce Ide
 flyingrhenqu...@gmail.com



Re: Question regarding NTLM

2011-08-30 Thread Deepak Shetty
hi
seems there are some issues with HttpClient4 and NTLM
http://hc.apache.org/httpcomponents-client-ga/ntlm.html.

You might give the sample code a try and see if it works (standalone) , and
if it does you might need to modify the Jmeter code to work with HttpClient4

regards
deepak

On Tue, Aug 30, 2011 at 11:08 AM, Shmuel Krakower shmul...@gmail.comwrote:

 Hello everybody,
 This is my first message here.

 I am load testing an IIS application which using NTLM to authenticate.
 I am using the latest - 2.5 JMeter and trying to use the HTTP Authorization
 Manager.

 Firstly - it seems like only with HttpClient3.1 Implemented HTTP Request
 the
 NTLM string is being sent (I can see it on the view results tree for the
 relevant request).
 When using the new HttpClient4 or the old Jave implementation - this NTLM
 Authorization string is not being sent or not being visible on the view
 results tree.

 Secondly - I configure as best as I understand the Base URL, the Username
 and Password, also tried to play with the Realm and Domain but I keep on
 getting 401 error.
 I tried different combination like username = domain\uname, uname@domain,
 uname and on Realm and Domain separately and so on.

 Is there someone who actually succeed on authenticate with IIS NTLM ?

 Best Regards,
 Shmuel Krakower.



Re: Question regarding NTLM

2011-08-30 Thread Deepak Shetty
doesnt cntlm support just a single username/password?

On Tue, Aug 30, 2011 at 11:43 AM, Bruce Ide flyingrhenqu...@gmail.comwrote:

 There's an open source NTLM proxy, cntlm, which might let you work around
 it. It wasn't terribly difficult to configure when I looked at it. Works on
 UNIX too. If you're really hard up...

 --
 Bruce Ide
 flyingrhenqu...@gmail.com



Re: Guide me

2011-08-29 Thread Deepak Shetty
subscribe to the JMeter mailing list using the same email address as you
used on nabble





On Mon, Aug 29, 2011 at 4:57 AM, Garvita Mehta garvita.me...@tcs.comwrote:

 Hi All,

 Whenever I try to post any or solution in nabble community, I use to get
 this message:

 This post has NOT been accepted by the mailing list yet.

 Please giuide me how to get out of this.


 Garvita Mehta
 CEG - Open Source Technology Group
 Tata Consultancy Services
 Ph:- +91 22 67324756
 Mailto: garvita.me...@tcs.com
 Website: http://www.tcs.com
 
 Experience certainty.   IT Services
Business Solutions
Outsourcing
 
 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain
 confidential or privileged information. If you are
 not the intended recipient, any dissemination, use,
 review, distribution, printing or copying of the
 information contained in this e-mail message
 and/or attachments to it are strictly prohibited. If
 you have received this communication in error,
 please notify us by reply e-mail or telephone and
 immediately and permanently delete the message
 and any attachments. Thank you





Re: Error after HTTPS record

2011-08-26 Thread Deepak Shetty
Hi
I do not understand what you are trying to say. localhost works simply means
the machine on which JMeter is running can resolve localhost to an ip
address and connect to over the port.  Your error is for 
aquilademo.hovservices.com which means your client cannot resolve that name
or connect to it.

regards
deepak

On Fri, Aug 26, 2011 at 2:54 AM, vamba vino10.test...@gmail.com wrote:

 Thanks a lot shetty for ur reply ...in http its working fine in the lan
 setting i have given local host and port 8080..it work fine ..the same i
 have given but not ...error for ssl certificate ..how to solve this ..

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Error-after-HTTPS-record-tp4733937p4737592.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: Handling File Download Window

2011-08-25 Thread Deepak Shetty
Hi
various possibilities
a. If your file is a static file , possibly the URL is wrong. If you copy
the URL form Jmeter and paste it directly into a browser(new instance , all
cookies cleared, do you see the file?)
b. If your file is a dynamically generated PDF , then are all the parameters
etc being posted to it correctly?
c. If your file needs you to be logged in in order to download the file, is
your session/authentication setup correctly in JMeter?
d. Do all your previous steps execute correctly (i.e you have good
assertions on all your previous pages and all of them have passed)

regards
deepak

On Thu, Aug 25, 2011 at 12:35 AM, geetha.mangalam 
gmanga...@commerce.wa.gov.au wrote:

 Hi,

 I have a similar proble. I am trying to download a pdf file from the web
 page. On the browser it opens up a Save As dialog box which allows me to
 save the PDF file. The same URL if it is on JMeter throws Could not find
 resource at blah.PDF (with complete URL of course). Has anyone faced this
 issue or have a solution to this. Eventually I need to save this file
 locally for testing later. I am planning to do that with 'Save Response to
 a
 file' listener.

 Regards
 Geetha


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Handling-File-Download-Window-tp533745p4733421.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: Error after HTTPS record

2011-08-25 Thread Deepak Shetty
UnknownHostException usually means the machine you are running could not
resolve the DNS aquilademo.hovservices.com .
If your browser can resolve this (i.e. if you type the same url in your
browser and it shows you some page) then usually your browser has some proxy
configured that you have not configured JMeter to use. Since this seems to
be an internet accessible domain , possibly you need a proxy to connect to
the internet on whatever machine you are running jmeter from. See
http://jakarta.apache.org/jmeter/usermanual/get-started.html Section 2.4.2

if your browser cannot resolve this url then you need to see why you dont
have connectivity from your client machine

regards
deepak

On Thu, Aug 25, 2011 at 3:28 AM, vamba vino10.test...@gmail.com wrote:

 Can any 1 pls tel me how to record https . while i record i got the below
 error .kindly tel me wat the steps to follow while record in LAN setting as
 well in the proxy server



 java.net.UnknownHostException: aquilademo.hovservices.com at
 java.net.PlainSocketImpl.connect(Unknown Source) at
 java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown
 Source) at sun.net.NetworkClient.doConnect(Unknown Source) at
 sun.net.www.http.HttpClient.openServer(Unknown Source) at
 sun.net.www.http.HttpClient.openServer(Unknown Source) at
 sun.net.www.protocol.https.HttpsClient.(Unknown Source) at
 sun.net.www.protocol.https.HttpsClient.New(Unknown Source) at

 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown
 Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
 Source) at

 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
 Source) at
 sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown
 Source) at

 org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:483)
 at

 org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)
 at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:242)

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Error-after-HTTPS-record-tp4733937p4733937.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: SyncTimer is messed up if you stop a interrupt a test plan

2011-08-25 Thread Deepak Shetty
you probably need to raise this in BugZilla if it isnt already there
http://jakarta.apache.org/jmeter/issues.html


On Thu, Aug 25, 2011 at 7:07 AM, GRUWEZ gru...@gmail.com wrote:

 Scenario:
 Use a SyncTimer in your test plan and set it to block up to a number of
 threads, e.g. 5
 Run the test and interrupt it before all 5 threads have been blocked.
 Assume
 3 threads have been blocked so far.
 Rerun the test and let it run.
 You will notice the SyncTimer will unblock after 2 threads and not 5.

 The reason is that when the test is started, the clone() method is called
 on
 the SyncTimer to created a new. Since the test interruption left the
 previous SyncTimer with already 3 threads registered, this value (3) will
 be used in the cloned SyncTimer

 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/SyncTimer-is-messed-up-if-you-stop-a-interrupt-a-test-plan-tp4734617p4734617.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: Error in Jmeter Log (Can't connect after 10 retries, java.net.BindException: Address already in use: connect )

2011-08-25 Thread Deepak Shetty
are you running the JMeter proxy server by any chance while running your
actual test. (I thought the sampler were implemented by HTTPSampler or
something like that not HTTPJavaImpl)

regards
deepak

On Thu, Aug 25, 2011 at 2:56 AM, choudh...@labware.com wrote:

 Hi ,
  I am load testing our webapp that uses JSF 1.2  using HttpRequest
 Samplers . In my test Sampler A should come before Sampler B. When  I ran
 the test with 300 users I got into a situation where Tomcat was handling
 sampler B but the debugger was showing that things were not initialized
 properly and we got an exception . On further debugging it seemed that
 Sampler A may have been fired but probably was not served by Tomcat .(
 I can  say so because of the log statements that i have put in my code ) .
 First of all is kind of situation possible ? If yes , how ?

 Secondly at the time when I got the exception , I saw in the JMeter log
 entries like :
 2011/08/25 14:47:42 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl:
 Can't connect after 10 retries, java.net.BindException: Address already in
 use: connect

 What does this mean ? Tomcat is listening on 8080 in my case .


 Regards,

 Subhrajyoti
 Mobile: +919830079545
 Mail: choudh...@labware.com
 Web: www.labware.com

 LabWare LIMS Solutions - Results Count


Re: Compare Only Two HTTP Requests

2011-08-24 Thread Deepak Shetty
Try
*Rest Of Test
*Simple Controller
** HTTP Request #1 (first request of the final pair of requests)
** HTTP Request #2 (second request of the final pair of requests)
** Compare Assertion

Add the compare assertion visualizer to check.

regards
deepak

On Wed, Aug 24, 2011 at 3:50 PM, Nicholas Keene nke...@wxc.com wrote:

 Hello list. I have been futzing with JMeter for a long long time trying
 to figure something out. I have a test which needs to make a request,
 extract a datum, make a second request, extract a second datum, then use
 those two data when making a final pair of requests, and finally compare
 the results of those two requests. So, to be clear, I make an variable
 request which gives me a list of variables, then for each variable I
 make a datakey request which tells me the datakey for that variable,
 then I use the variable and the datakey to make a pair of requests, and
 compare the results of that pair of requests.



 My problem is in the very final step. I can't figure out how to get
 Compare Assertion to compare the results of that last pair of requests.
 I've tried moving my test objects all around, using all sorts of
 controllers in all sorts of ways, and I haven't found the right way yet.
 I hope one of you can point out what I'm doing wrong.



 My tree looks like this:



 * Thread Group

 ** User Defined Variables

 ** CSV Data Set Config

 ** HTTP Request (the variable request)

 *** Regular Expression Extractor (to get the variables)

 ** ForEach Controller (to loop over the variables)

 *** HTTP Request (the datakey request)

  Regular Expression Extractor (to get the datakeys -- but there is
 really only one datakey)

 *** HTTP Request #1 (first request of the final pair of requests)

 *** HTTP Request #2 (second request of the final pair of requests)

 *** Compare Assertion

 ** View Results Tree

 ** Comparison Assertion Visualizer



 Now, what I end up getting in the CAVisualizer is that Request #1 and
 Request #2, instead of being compared to one another, are each compared
 to the datakey request. I can see that the Compare Assertion must work
 by comparing the first request in its parent's group, to each other in
 that group. That would be fine, but in no way have I been able to put
 Request #1 and #2 into a Simple Controller, or into a ForEach
 Controller, or anything else to force the Compare Assertion to compare
 #1 and #2 to eachother.



 I've tried every combination I can think of and I'm quite stymied. Help!



 Nicholas










































































































































































































 CONFIDENTIALITY:  The information contained in this document is intended
 only for the personal and confidential use of the designated recipient(s).
 If the reader of this document is not the intended recipient or any agent
 responsible for delivering it to the intended recipient, you are hereby
 notified that you have received this document in error, and that any review,
 dissemination, distribution or copying of this message or use of its
 contents is strictly prohibited.  If you have received this communication in
 error, please notify the sender immediately, and delete it from your network
 server and/or hard drive.

 WARNING: Computer viruses can be transmitted via email. The recipient
 should check this email and any attachments for the presence of viruses.
 Weather Central, LP accepts no liability for any damage caused by any virus
 transmitted by this email. E-mail transmission cannot be guaranteed to be
 secure or error-free as information could be intercepted, corrupted, lost,
 destroyed, arrive late or incomplete, or contain viruses. Weather Central,
 LP therefore does not accept liability for any errors or omissions in the
 contents of this message, which arise as a result of e-mail transmission.




Re: Unable to extract the values from URL

2011-08-22 Thread Deepak Shetty
 Is there any other option to handle dynamic query string URL values.
The usual way is the same - extract out the value using a post processor and
add it,

Also I'm not able to find those dyn session values in previuos pages
Look at it from a browsers perspective. Either the values must be there  in
the previous pages or they are generated using javascript (or in some cases
from a cookie). Access your site using a browser and use for e.g. Fiddler.
This can save the responses and then you can inspect each response to see
where this value is from. Do not look at the previous responses in Jmeter -
its possible you are making a mistake there and you are getting incorrect
data returned

regards
deepak

On Mon, Aug 22, 2011 at 1:15 AM, Mohamed base...@gmail.com wrote:

 Thanks for the reply.

 Apologies if my question is not clear.

 Here are am talking about correlation part NOT parametersation. Since this
 is dynamic value, I've tried HTTP URL re-writing  HTML Link parser option
 but it seems to be working. Is there any other option to handle dynamic
 query string URL values.

 One more thing, I'm not getting the response data for this particular page
 as authencation fails. Also I'm not able to find those dyn session values
 in
 previuos pages (during it;s first run also as authencation fails) where as
 In LoadRunner we can find it out through Generation Log. Is there option to
 trace and find ?

 Thanks


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/Unable-to-extract-the-values-from-URL-tp4720225p4722529.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: Reg: Search Functionality and Dynamic Results

2011-08-18 Thread Deepak Shetty
The easiest way to figure out issues like these are if you have someone who
can tell you what the problem on the server/application is (either you can
read your application logs or you have a developer available to tell you) -
it will tell you whether you are passing an incorrect value or you arent
logged in or whatever.

if not you have to compare each request/response pair from Jmeter(view
results tree listener) with the browser request/response (using
firebug/livehtppheaders etc etc).

On Thu, Aug 18, 2011 at 5:09 AM, Nisha G. nishag.1...@gmail.com wrote:

 Hi Adrian,

 Thanks a lot for such a brief explanation and suggestions mentioned.

 I think, I should dig into the problem first step by step.

 Regards,
 Nisha


 On Thu, Aug 18, 2011 at 5:32 PM, Adrian Speteanu asp.ad...@gmail.com
 wrote:

  Sidepoint: you should also consider this a trivial bug - you're doing
  something a little wrong with your query then you should get 400 response
  code not 500, that is when something goes wrong server side (and I doubt
  its
  the second, but do mention this to the developers). Read:
  http://www.w3.org/Protocols/HTTP/HTRESP.html for details.
 
  Back to problem:
  1. Have you considered the Cookie manager before using the regex to
  extract the session?
  (I'm not necessarily sure that you are using it correctly and there are a
  lot of things that you can do wrong when you try to manage sessions
  yourself, especially when you begin with JMeter)
 
  Looking at the parameter's value, I don't recognise why its like that,
  seems
  a little weird, but if the sessions is surely ok and you send the exact
  string as the browser, it will work the same way (just make sure that the
  string of the value is correct).
 
  2. If I were in your position, I'd try to reconstitute the query step by
  step, myself and not rely on the recorded sampler - to see which
 parameter
  I'm using incorrectly, but this is general practice.
 
  3. Consider changing the HTTP method and redirect type in the sampler and
  play with the combinations of them - its another common cause for the
  application to return an error when all other are ok (url  parameter
 names
  and values).
 
 
 
  On Thu, Aug 18, 2011 at 2:26 PM, Nisha G. nishag.1...@gmail.com wrote:
 
   Hello Adrian,
  
   For session, I am using a regular expression and I have handled that
  point.
  
   While executing JMeter sends the same value of the parameter called as
   SelectedItems as below when I recorded the scenario.
  
  
 
 itemname_sort%3DItem_1_PART_101%60org_itemname_sort%3DVISTEON%60id%3D58680%7Cname_sort%3D
  
   Below is the request which got recorded by JMeter with the values.
  
  
   Then JMeter shows me up an error message like response code as :500 and
  it
   fails. What further investigation do I need to perform.
  
   Any suggestions most welcome.
  
   Regards,
   Nisha
  
  
   On Thu, Aug 18, 2011 at 4:43 PM, Adrian Speteanu asp.ad...@gmail.com
   wrote:
  
Hi,
   
You are getting an error message, not a incorrect list of results,
therefore, you should look into the message of the error to see what
 is
wrong (all solutions start from knowing the problem). Do you a
 session
cookie so that the virtual user stays logged in the application after
  log
in?
   
Regards,
Adrian S
   
On Thu, Aug 18, 2011 at 2:03 PM, Nisha G. nishag.1...@gmail.com
  wrote:
   
 Hello Friends,

 I am newbie to JMeter. While working on creation of JMeter scripts
 I
stuck
 on one scenario and cannot move ahead.

 Login to App--Search with wild card *--System display's 15 to 100
records
 which are getting updated in a flash--Select some odd number of
   records
 from 100 rows and Do some action on selected records.

 When I recorded the scenario then JMeter captured some filed values
  but
 while re-executing the script as the contents have been changed so
 it
fails
 showing the error.

 Please suggest me how to move ahead with this dynamic content. If
 you
 people
 can provide me an example that would be really helpful to me.

 Thanks,
 *Nisha*

   
  
 



Re: While launching JMeter .bat i am getting this message...

2011-08-18 Thread Deepak Shetty
jmeter.bat/sh has this flag. its valid if your JVM is Java 5.0 or less. Its
no longer needed with Java 6.0 and since you are running Jmeter on Java 6.0
you get this warning. The warning can be safely ignored  , or if you want
remove this flag from jmeter.bat/sh

On Thu, Aug 18, 2011 at 9:52 PM, sprasad sprasad.s...@gmail.com wrote:

 Hi Bruce,

 Thanks for the reply.

 I have one more when I am launching JMeter in another VM - I am getting
 this
 below message:

 Warning: The flag MaxLiveObjectEvacuationRatio=20 has been EOL'd as of
 6.0_24 and will be ignored

 I want to know why it is coming in the cmd - and what are the
 implicationsPlease suggest the best...

 Cheers,
 Sd



 On Thu, Aug 18, 2011 at 7:14 PM, Bruce Ide [via JMeter] 
 ml-node+4712150-254558935-230...@n5.nabble.com wrote:

  Yeah QTP installs some environment variables that add that. This has
  interfered with jmeter tests at my company. Your best bet would probably
 be
 
  to make sure your jmeter startup batch file unsets those variables prior
 to
 
  running jmeter. If you do it in the jmeter startup it won't affect the
  systemwide environment settings.
 
  --
  Bruce Ide
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4712150i=0
 
 
  --
   If you reply to this email, your message will be added to the discussion
  below:
 
 
 http://jmeter.512774.n5.nabble.com/While-launching-JMeter-bat-i-am-getting-this-message-tp470p4712150.html
   To unsubscribe from While launching JMeter .bat i am getting this
  message..., click here
 http://jmeter.512774.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=470code=c3ByYXNhZC5zYWR1QGdtYWlsLmNvbXw0NzExMTEwfC0xNDM4OTcyNzI4
 .
 
 


 --
 View this message in context:
 http://jmeter.512774.n5.nabble.com/While-launching-JMeter-bat-i-am-getting-this-message-tp470p4714484.html
 Sent from the JMeter - User mailing list archive at Nabble.com.



  1   2   3   4   5   6   7   8   9   10   >