Allows you to set a variable for future uses in the test. For example,  you can save a value retrieved from the response and use it in a subsequent call.


Name Type/Value Required
Var String Yes
Variable mode ‘String’, ‘Data’, ‘Language’ Yes
Value (depends on ‘Variable mode = string’) String Yes
Data (depends on ‘Variable mode = data’) Data Yes
Lang (depends on ‘Variable mode = language’) ‘Groovy’ Yes
Content (depends on ‘Variable mode = language’) Data Yes

Var: artistId
Variable mode: String


Var: sobjects
Variable mode: Data
Data: payload.findAll { == ‘bananas’}

Var: queries
Variable mode: Language
Lang: Groovy
if (>100)
return ‘furniture’