jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin D. Wilson" <>
Subject Re: what is the use of assertion
Date Thu, 09 Oct 2014 12:44:46 GMT
Here's a real-life example:

In our web application, many of our pages return a "200" response code, but the actual page
returned is an error message to the end user. In our system, all of our "end user error messages"
follow a consistent pattern in the HTML of the returned page. So we have a negative assertion
that checks that these patterns don't exist in any returned page - so we know that the system
did not return an error during the JMeter run.

Likewise, on most pages we have an assertion for some HTML pattern that will only be present
if the correct successful page is returned.

BUT, assertions are relatively expensive in JMeter - meaning they add a lot of test of processing
to the script, and slow down throughput of JMeter. (They use regular expressions to parse
the returned data fro the server, which takes a lot of compute power.) So use them efficiently...

Robin D. Wilson
VOICE: 512-777-1861

On Oct 9, 2014, at 4:26 AM, ZK <> wrote:

Assertions let you check the response you receive are the correct expected

See here:


View this message in context:
Sent from the JMeter - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message