Response Time Vs Request graph in jmeter html report - jmeter

I'm getting Response Time Vs Request and Latency Vs Request without graph in html report.
Other areas are showing with graph. I have included almost all listener.
Do i have missed any listener? what is my issue? please help

Related

Jmeter: I can't get the response that I needed for assertion

I have been working on this project and I can't get the response that I needed for assertion because the response body in Jmeter only says "Your browser does not support framing. Please update your browser", but Im using the latest version of Firefox (image 2). I also manually execute the request in the real browser, same as what browser Im using in Jmeter, and didn't encounter the said message. Can someone please tell me whats going on? Thank you for your help
Response Body
HTTP header Manager
As per JMeter project main page:
JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it's possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever displayed at a time).
Most probably the value you're looking for lives inside an iframe is being loaded using some JavaScript function which is not being kicked off by JMeter as it doesn't evaluate JavaScript.
So you need to invoke the relevant request manually using another HTTP Request sampler which would load the required page. You can figure out the necessary request URL by looking into page source using your favorite browser developer tools or by recording your test scenario using JMeter's HTTP(S) Test Script Recorder.
Also be aware that due to asynchronous nature of JavaScript calls it is better to wrap it (and other JavaScript calls, if any, in Parallel Controller
You can install Parallel Controller and Sampler via JMeter Plugins Manager

JMeter: JavaScript is not returning exact data in Response Data Sets

As we all know JMeter is not supporting JavaScript till now, but is there any alternative way to extract data from JavaScript's Response Data (Not generating exact response which we can get using Browser) using Regular Expression Extractor and inject it as parameter for another HTTP Request?
Note: In the response page getting message as "JavaScript is required. This web browser does not support JavaScript or JavaScript in this web browser is not enabled."
I think you are looking at HTML view. As documentation states:
The HTML view attempts to render the response as HTML. The rendered HTML is likely to compare poorly to the view one would get in any web browser; however, it does provide a quick approximation that is helpful for initial result evaluation.
Images, style-sheets, etc. aren't downloaded.
In your case that view is not very helpful, since page has <noscript> tag, which ensures that you only see one message about missing JavaScript. So don't look at it, use Text mode instead, which gives you the actual page source.
Another confusion you seems have is that JavaScript has some sort of "response data". It does not. JavaScript is a client-side technology, while JMeter is working directly with HTTP requests/responses. So when client issues a new HTTP request (which could be result of JavaScript code, user operation, or anything else), JMeter representation of such request is always the same: HTTP Sampler, which has some response data, which, as I said, bast viewed in Text mode.
So bottom line is: likely you have no problem with recording or playback of your script, you are just not checking it correctly.
If you send the same request as the browser you should get the same response. If you are receiving only the error message regarding not-enabled JavaScript - your test is not working properly and doesn't mimic all the requests which are being sent by a real browser with 100% accuracy (i.e. you are sending only main request with JMeter while browser does few more AJAX requests which fetch data from the server and actually render the content).
It also means that your test does not make a lot of sense as each JMeter virtual user needs to represent real user using real browser as close as possible with all its stuff (cookies, headers, cache, think times, etc.)
So I would recommend the next steps:
Make sure you have correlation in place.
Make sure you are following recommendations from the How to make JMeter behave more like a real browser article.
Once done - compare the request(s) which are being sent by browser and JMeter using a sniffer tool like Fiddler or Wireshark the requests should be exactly the same (apart from dynamic data which needs to be correlated). If there are inconsistencies or missing requests you need to amend JMeter configuration to so JMeter requests would exactly match the browser ones.

How to submit a html page which comes a response to previous request in jmeter

Scenario:
in response to api request we get a html page as response, we need to accomplish the page with details and need to 'submit' that.
In JMeter:
-- I am able the to save response as a page to html
-- Need to submit page with one textField, one dropdown value
Is there possibility, that we can automate these with JMeter?
Thank you.
I tried my best, can any one please help on this.
Just record your test scenario using JMeter's HTTP(S) Test Script Recorder, it is capable of capturing both GET and POST requests and converting them into corresponding HTTP Request samplers.
Alternative options of recording JMeter tests are JMeter Chrome Extension and Badboy.
If it misunderstood your query and you are asking about the ways of automatically detecting and submitting forms using random dropdown or radiobuttons values in JMeter test you can take a look at HTML Link Parser

Primefaces Ajax response fail randomly

I am using p:datatable and on clicking of row (Command link) I am displaying a panel. Most of the time it is working fine but in regression testing some time it is getting hanged but request is going to ManageBean fetching all the data.
But it is not rendering the panel. This error has no specific pattern. I have put log in all possible place even in phaselistner lifecycle everything looks good.
I checked in firebug response is also coming. from server
I am using weblogic 10.3.6,primefaces 3.5 and internet explorer 9.x
Try putting in a component in the page where the data table lives. This displays Ajax events and alot more. Then compare the log output for when it succeeds against the output for when it fails. This may point to DOM as was suggested or somewhere else.

Ajax request during a file upload takes a long time to complete

I'm using a Webphere server. I am performing a file upload through a servlet using the Apache FileUpload methods.
I attach a listener to this FileUpload which updates a "percentage" field denoting what percentage of the request has been processed. The request gets directed to an iframe (form's target is an iframe) so that the page that fired the request doesn't have to wait for the response to complete and therefore it won't show the user just a blank page. I add a reference to the progress listener to the session as well.
From the JSP page as soon as I fire the submit on the form, after 1 second and then every second I fire an ajax request which goes to a servlet which looks up the ProgressListener and responds with the percentage field. The process works fine, but on Websphere sometimes this Ajax request can take up to 30 seconds to complete! I tested the same thing on a simple Tomcat server and there the request/response comes out within a second.
What could be wrong? Is it a server setting?
Thank you,
Edit: The code inside the servlet that gets the percentage from the session runs as soon as the request is made. The bottleneck seems to be in delivering the request back to the client browser.
Do you have websphere configured to compile and cache the jsp page, or is it recompiling each time?
You may want to use AOP, either AspectJ or Spring, or a profiler, to see what is going on with the ajax call, so that you can monitor without changing any code in the jsp page.
The profiler may be a better starting point, just so you can look globally at what is going on, then use aspects to monitor in a fine-grained fashion and decide where the bottleneck is.
You could also see if precompiling the jsp pages will help. This tutorial should be useful:
http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=/com.ibm.commerce.samples.doc/tutorial/tdedeployjsp.htm

Resources