News 2018-08-01T12:04:46+00:00

Scopes in JMeter

As you all know, JMeter runs performance test scripts on Test Plans. Those test plans are structured as a parent-child hierarchy relation. You can add as many children as possible to a parent object. That brings us the scoping issue. In this article, we will present an explanation of JMeter's scoping rules. When speaking of the scope of an element, we should understand which element has access to which another element. Basically scoping works as a parent-child hierarchy. When you execute the test, samplers are executed according to their location on Test Plan tree but some elements like assertions and [...]

Regular Expression Tutorial for Apache JMeter Tests

A regular expression is a special text string for describing a search pattern. Regular expressions have a reputation for being tough, but that all depends on how you approach them. You can start from expressions as simple as this: \d which helps you identify a character that matches any digit from 0 to 9, to something complex, like: ^(\(\d{3}\)|^\d{3}[.-]?)?\d{3}[.-]?\d{4}$ While testing web applications, you need to extract information from HTML, JSON or XML response body or validate fields. You can always use CSS Selectors or JSON/XML Extractors. Besides those using regular expressions in JMeter is very powerful. JMeter’s Regular Expression [...]

3 Ways of Debugging JMeter Scripts

In case you have worked with JMeter scripts before, you must have stuck at some point and find yourself asking “How do I debug this stuff?”, “Why is my regular expression or jsonpath not working?” Actually, there are many ways to debug JMeter scripts and it’s very easy. Here are some ways to debug a JMeter script. 1.View Result Tree JMeter has various listener types. View Result Tree is the one that should be used to debug any request. It allows you to debug Jsonpath, XML or a Regular expression by its user interface. It can be added to your [...]

Tags: , |

How to Make Validation on RESTful Web Service Performance Test

Hello, Representational State Transfer (REST) is an architectural style that pre-defines a set of constraints to be used for creating web services. Web services that use REST architectural style, or RESTful web services, provide interoperability between any system on the internet. Nowadays many development teams are switching to restful APIs to simplify client and server communication. That’s why performance or stress testing of that web service is crucial. By following this tutorial, you will be able to validate how many concurrent users your application’s server-side component can handle. Apache JMeter is strong when it comes to assertions. You can assert [...]

Built-in JMeter Functions

JMeter allows you to conduct performance tests on your application by using any type of request. During these tests, we sometimes need to create new data, timestamp or maybe manipulate a response. For these purposes, JMeter provides built-in functions easily adaptable to your tests. Let’s explore the ones that you might need during a test. Random String In order to create a random string in JMeter there are a few different ways. Examples: ${__RandomString(5)} This will create a random string, It can be readable or not. ${__RandomString(5,ABCD123)} This will create a random string containing only the alphanumeric values that you provide. [...]

Campaign Periods’ Key to Success: LOAD TEST

There is a testing principle known to those close to the test community. “100% testing of a product is not possible.” Therefore, it is necessary to plan risk or prioritization based tests that are of the project’s proper economic dimension. The load test is one of them. If you want your product or the service you provide to continue to serve your customers under high demand, as designed then a load test is one of the most important items of the activities that you need to plan that can provide information on your website performance. As Loadium team, we had a [...]