RSS

Tag Archives: Jmeter

How to use HTTP Basic Authentication in JMeter

From time to time you will need to test URLs, which can sometimes be restricted from anonymous visits. The types and resources can vary be it corporate libraries, knowledge bases, targeted forums, or other. All tend to have limited/restricted access.

Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on 24/09/2015 in Jmeter

 

Tags:

JMeter – Working with JSON – Extract JSON response

Ok, like i promised in a previous post of mine, talking about working with JSON and JMeter, i will discuss using the JSON response for extracting specific values, to be further used in the test script.

Now, there is no rocket science in this. Sending an HTTP Request with a JSON string as payload, will return a JSON string also, built on the same convention as already discussed. Now, the only thing you need is to extract the information you need from this response. I consider the Regular Expression Extractor to be the best  option.

Read the rest of this entry »

 
Leave a comment

Posted by on 15/09/2015 in Jmeter, Json

 

Tags: ,

How to count JSON objects in an Array using jsonpath

Although JSONPath Extractor doesn’t provide hasSize function it is still can be done.

Given example JSON from the answer by PMD UBIK-INGENIERIE, you can get matches number onbook array at least in 2 ways:

Read the rest of this entry »

 
Leave a comment

Posted by on 14/09/2015 in Jmeter, Json

 

Tags: ,

JMeter Tutorial for Load Testing – The ULTIMATE Guide

This tutorial is about JMeter.

These are the main points that we are going to cover:

  • We are going to explain what is JMeter used for.
  • How is JMeter implemented and with what technologies is designed.
  • How to install and configure it properly.
  • We are going to explain the basic features of its user interface.
  • We will detailed explain how to configure different test plans.
  • To show how to analyze its results.
  • Finally we will mention some important best practices.

Want to be a JMeter Master ?

Read the rest of this entry »

 
Leave a comment

Posted by on 10/09/2015 in Jmeter

 

Tags:

Creating a Java Sampler for JMeter

Creating a Java Sampler for JMeter

A Java Sampler is an easy way of creating a JMeter test by using native Java code. In fact there are several approaches that can be taken when creating a JMeter Sampler using Java code – they include:

Read the rest of this entry »

 
Leave a comment

Posted by on 10/09/2015 in Java, Jmeter

 

Tags: ,

JSONPath expressions

JSONPath expressions always refer to a JSON structure in the same way as XPath expression are used in combination with an XML document. Since a JSON structure is usually anonymous and doesn’t necessarily have a “root member object” JSONPath assumes the abstract name $ assigned to the outer level object.

Read the rest of this entry »

 
Leave a comment

Posted by on 09/09/2015 in Jmeter, Json

 

Tags: ,

Parsing JSON responses with JMeter

Parsing JSON responses with JMeter

Folding ruler

JSON is becoming more and more important as a data exchange format, especially in Ajax web frameworks and RESTful web services. Apache JMeter, which is a very popular tool to perform load tests for web applications, does not come with native support to handle HTTP responses with JSON bodies. This post shows different possibilities how to deal with JSON responses in JMeter.

Read the rest of this entry »

 
Leave a comment

Posted by on 08/09/2015 in Jmeter

 

Tags: