New features: expression syntax and post body

We get a lot of requests for new features and we go through them very carefully making sure to do the ones that most users can benefit from. We’re happy to announce that we’ve implemented two popular requests, and they are ready for you to use today.

  • Expression syntax – specify randomized data for your load tests
  • POST body – define your own custom POST body content

Expression syntax

One of the most popular things our users have asked for is the ability to randomize the data used when running load tests. Well, it’s here and it’s pretty sweet too. It’s clear that everyone wants easier ways to implement randomized content and dynamic URL structures to ensure uniqueness in their load tests. With our new expression syntax this can be accomplished quite easily.

The expression syntax can be used in the URL, Parameters (GET & POST) and Post body. Today you can define the following:

list of values
random values
range of values
lists of ranges

Example: The following syntax: %{1:100:1} would to create values 1 through 100 incrementing by 1

Syntax examples:

  • list of values %{1,2,3} – simple list of values
  • range of values %{1:10:1} – from 1-10 incrementing by 1
  • random value %{*:1-100} – pick random values between 1 & 100
  • list of ranges %{5, 7:100:1, 110, *:120:220,125} – list of diff ranges

Example when used in URL

url-exp-syntax 2013-04-23 20-37-27

Example when used in Params (GET or POST)

param-exp-syntax 2013-04-23 20-39-41

POST body

Now you can supply a POST body when performing load tests, and this can consist of any data format you’d like. In addition to the ability to submit a POST body you can use the loader.io expression syntax within the content.

post-body 2013-04-23 20-32-01

Check it out and let us know what you think.