JMeter Tips
usage of Jmeter, Badboy, Apache TCP Tunnel View (a Sniffer) is quite useful for testing web applications against heavy load. i had some problems extracting values from "302 Moved Temporarily" responses. "Location" contains some parameter values of interest, for these to get, you have to use an regexp extractor and assign the regexp hit to a user defined variable. You have to choose "Headers" scope in which the extractor has to work. but be careful, acutally there is a bug and this setting is not persisten on the GUI. If you set no value in the default setting field, then your extractor resets the user defined variable in the case of not having a hit. You have a problem with this if you are not sure which request produces the 302 response of interest as you cannot locate the regexp extractor on a higher level so that it works for several http request samplers. as a solution you can provide the value of your user defined variable itself als default value, then it works. Notation for this is ${VARDEF}.
But be careful when there is a chain of subrequests, then this
approach does not work. when you uncheck "follow redirects" only then i get it to work.
a solution is to extract additionally the whole url to be redirected and request this explicit in an http handler.
Check out the Jmeter Mailing list archives for helpful tips.
http://jakarta.apache.org/site/mail2.html#JMeter
But be careful when there is a chain of subrequests, then this
approach does not work. when you uncheck "follow redirects" only then i get it to work.
a solution is to extract additionally the whole url to be redirected and request this explicit in an http handler.
Check out the Jmeter Mailing list archives for helpful tips.
http://jakarta.apache.org/site/mail2.html#JMeter

0 Comments:
Kommentar veröffentlichen
<< Home