Jmeter - Performance test - performance

I want to load test my web site.
I can extract all http requests from the site and put it on J meter.
But the page have alot more things(like ajax calls)
How can i load test my site (find complete page load time)

I'd go the route of capturing the AJAX calls as past of your script - you have two options:
The JMeter proxy:
http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
BlazeMeter's JMeter chrome extension:
https://chrome.google.com/webstore/detail/blazemeter-the-load-testi/mbopgmdnpcbohhpnfglgohlbhfongabi/details?hl=en

Jmeter is Server side load testing tool and though client is using ajax still http request will be sent to server which will be recorded/scripted in jmeter and thus load testing can be carried out.
please check similar questions on jmeter
check this also
http://jmetertips.blogspot.in/2009/04/ajax-testing-with-jmeter.html

Related

F5 BIG IP - ajax POST with HTTP response truncated

Jmeter 2.12.
I used a scenario fully functional in front of a reverse proxy Apache. Recently we 've replaced the reverse proxy with the F5 BIGIP technology and now my scenario hangs.
The problem is for a particular ajax POST request the HTTP response is truncated : i receive a 200 OK but the HTML content is not full (no html tags for example). When i post the same request with Firefox the full content is ok.
Note that i don't receive the http header Transfer-Encoding: chunked.
In this case what can be the difference between Firefox and JMETER ?
Anyone have an idea on how could i get the full html response ?
Thanks for any reply.
That completely depends on the settings on your F5 and what exactly you mean with "response is truncated" and "no html tags". Do you get the correct response but the html tags are stripped out? or is the response just truncated so you i.e. only get the first n bytes?
The best way to find out what is actually going wrong is to use something like fiddler in between and try to find the real difference between the responses, especially regarding the response headers (Content-Length, Transfer-Encoding, etc).
When you found the actual difference please post here so we can help you further.
On a sidenote, by any chance do you have some custom coding on the f5 (iRules) which react to different user-agent settings?
Given you send identical requests you should be receiving identical responses.
Use JMeter's View Results Tree listener to inspect request details, or even better compare requests which are being sent by Firefox and JMeter using a lower level network sniffer tool like Wireshark, detect the differences and configure JMeter accordingly to send the same request(s) as Firefox does.
The other reason might be JMeter truncating large response, by default JMeter displays "only" first 10 megabytes in the View Results Tree listener, if this is the case - you can add the next line to user.properties file:
view.results.tree.max_size=0
and restart JMeter to pick the property up - it will suppress response truncation and you will be able to view the full response data.
Alternative way of setting the property is passing it via -J command line argument like:
jmeter -Jview.results.tree.max_size=0 ....
References:
Full list of command-line options
Apache JMeter Properties Customization Guide

JMeter - In My local UAT Server same URL request not hitting second time(Error - 500)?

JMeter - Parameterization(using CSV data),
JMeter - In My local UAT Server same URL request not hitting second time(Error- 500)
In My local UAT Server same URL request is not hitting second time it's displaying a Response code like - 500.
I generate script by using blazemeter chrome addons V.1.5.184.
Kindly give any solution for this.
It is not possible to suggest anything without seeing request details, response message, response body, your CSV Data Set Config details and partial CSV file.
Most likely your parameterization doesn't work as expected, I would recommend comparing what's is being sent in 1st and 2nd request using View Results Tree listener and double check variables coming from CSV using Debug Sampler. See How to Debug your Apache JMeter Script article for more details on JMeter tests troubleshooting.

Tips to confirm JMeter script is working when receiving no errors

I am running a JMeter script to hit a web page that opens another link to a shopping cart. There are a few different urls that JMeter recorded for me using the HTTP Script Recorder. When running the JMeter script, I receive no errors in any logs ( JMeter log and a few summary report / View results tree logs ). I even added a Constant Timer to some of the pages that do actually take a few seconds to load when hitting them manually in a web browser. In the end, I cannot see what is happening, but JMeter also does not indicate any errors. How can I confirm that each url hit is actually succeeding so that the shopping cart actually gives me my item when JMeter is done?
If JMeter is able to make a http request successfully, it will be always green in View Results Tree (200 http code). It does not mean that your test is correct - ie even if the login is not successful JMeter does not report it as error/failure unless you validate the response.
I think you need assertions to ensure that the http response you get is as you are expecting.

Jmeter - Simulate link(href) request (javascript)

I am new to Jmeter. So far I have been successful in getting Jmeter to
access my companies test site. Login and retrive results by sending
parameters. However now I have a problem.
How can I get JMETER to simulate the href click this randomly generated links? Also the link
is a popup link. An example of the link is posted below.
<a class="qmchild" href="javascript:goMenuLink(5,6);" name="SUBSearch by Batch" id="SUBSearch by Batch" style="font-weight: normal;">Search by Batch</a>
I can extract "javascript:goMenuLink(5,6)" using CSS/XPATH/REGEX but the problem is how to send that HTTP Request from JMeter as I don't the target of the href?
If it is pure javascript - there is no point in using JMeter as it does not execute Javascript. Also, It does not make sense for JMeter to execute Javascript either as it is the tool for testing the Server performance. Javascript is going to run in your Browser-local machine.
However, if it is a HTTP request, ie - when you click on this link, if it hits a server to load the pop up - you should be able to record as you did with your login request. Try to see what is sent in the http request when you click on these links - Then I am sure you would be able to figure it out!

Does jmeter work with webseal?

I've trying to make some jmeter test to work with webseal.
The test were working fine without it even in https but with webseal I get 302 and 404 error on some of my httprequest while other work just fine.
But according to this page : http://90kts.com/2008/10/27/performance-testing-spnego-or-kerberos-with-loadrunner/
jmeter and webseal don't work.
I'm probably reading it wrong but I can't seem to find info about the usage of those 2 product together.
Anybody have experience using jmeter and webseal or should I look for a alternative load test product ?
the problem is neither jmeter or webseal but how badboy was exporting the request in jmeter.
The implementation fo the http request need to be httpclient4 in order for the login to work but badboy was settin git to java by default.
And the path saved by badboy is plain wrong, it giving the sub path were has the initial request (which was working) was a level higher.
working: /parent_path/Apps/servlet
badboy: /Apps/servlet
however this seem to not be a problem in a environement without webseal.

Resources