Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can apache-jmeter check the return value of a URL for a correct response?

The set up for apache-jmeter allows for a URL to be sent to a web-server on multiple threads. I'm interested in first determining if the response codes are 200-500 and then whether the returned content is the expected content. Is this detailed configuration possible?

like image 736
dacracot Avatar asked Sep 23 '08 18:09

dacracot


People also ask

How does JMeter measure response time?

The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server. The formula is: Throughput = (number of requests) / (total time).

Which of the following defines a response assertions in JMeter?

Assertion in JMeter is used to validate response of the request, that you have sent to the server. Assertion is a process where you verify expected result with the actual result of the request at run time. If you need to apply assertion on a particular Sampler, then add it as a child of that Sampler.

What type of application JMeter does not test?

Answer: No, JMeter does not support the actual browser behavior. It does not render the HTML webpages as the normal browser does. The response can be viewed in HTML format but the actual timings are not present in the generated samples.


1 Answers

Yes it does. You simply need to add two Response Assertions to your HTTP Sampler.

One which checks the Response Code, and a second which checks the response message.

Whether these passed or failed will then be visible in the Summary Report.

like image 79
npellow Avatar answered Sep 23 '22 07:09

npellow