Gatling's Cheat sheet

Hover over a DSL element to know how to use it and what it does

Scenario definition Describe your users behaviour

scenario

exec

group

pause

pauseExp

pauseCustom

doIf

doIfOrElse

randomSwitch

roundRobinSwitch

repeat

during

asLongAs

foreach

tryMax

exitBlockOnFail

exitHereIfFailed

Feeder definition Inject data in your scenario

csv

tsv

ssv

jdbc

redisFeeder

queue

random

circular

Scenario configuration Tune your simulation

users

ramp

delay

protocolConfig

HTTP Action Definine the HTTP requests sent in your scenario

http

get

post

put

delete

head

queryParam

header

headers

basicAuth

body

fileBody

byteArrayBody

param

upload

Checks Verifying server responses

check

status

currentLocation

header

headerRegex

responseTimeInMillis

latencyInMillis

regex

xpath

jsonPath

css

md5

sha1

find

findAll

count

transform

is

not

exists

notExists

in

whatever

saveAs

HTTP Configuration Factorise your scenario's code and tune the behaviour of Gatling's HTTP client

httpconfig

baseURL

baseURLs

proxy

httpsPort

credentials

acceptHeader

acceptCharsetHeader

acceptEncodingHeader

acceptLanguageHeader

hostHeader

userAgentHeader

disableFollowRedirect

disableAutomaticReferer

disableWarmUp

warmUp

requestInfoExtractor

responseInfoExtractor

disableResponseChunksDiscarding

Assertions Check that your results match your expectations

assertThat

global

details

responseTime

allRequests

failedRequests

successfulRequests

requestsPerSec

min

max

mean

stdDev

percentiles1

percentiles2

percent

count

lessThan

greaterThan

between

is

in

assert