JMeter - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Jmeter Assertions

Jmeter Assertions

shape Description

An assertion is nothing but a boolean expression at a specific point in a program which will be bona fide unless there is a bug in the program. A revelation could essentially be a comment used by the product specialist to consider how the code capacities. Programming specialists can use explanations to demonstrate programs and to reason about program rightness. For example, a precondition—a confirmation set toward the begin of a portion of code chooses the course of action of states under which the product build envisions that the code will execute. A postcondition put toward the end—delineates the ordinary state toward the end of execution.

Assertions in test plan

shape Description

The Size Assertion tests that every server reaction contains the normal number of byte in it. The engineer can determine that the size be equivalent to, more prominent than, not exactly, or not equivalent to a given number of bytes.

XML Assertion

The following is the way to open the XML assertion in the test plan.

HTML Assertion

HTML can be defined as “Hyper Text Markup Language.” Which is used to demonstrates the web pages with ordinary text. Every web page is HTML page. HTML pages are described by HTML tags. Most tags have two part, one is open and other close tag. The following is the way to open the HTML assertion in the test plan.

Response Assertion

The following is the way to open the response assertion in the test plan. When open the reponse assertion the following image will be displayed. Now here add the response which generated by the google server as follows. Now add the assertion result as follows. Now run the test plan the result will be as follows.

Summary

shape Key Points

  • The HTTP stands for hyper test transmission protocol.
  • The HTTP reaction status code 302 Found is a typical method for performing URL redirection.
  • The Jmeter is a platform independent so result will be same on every platform.