Skip to content

Variables scopes

Julien Gidel edited this page Feb 23, 2021 · 2 revisions

Variable scopes

There are 3 variable scopes you can use.

World

It is a scope that store every global variables as the main scenario name. This is the scope used when you try to get a text or an attribute.

You can call a variable from this scope with {{ world.variable }} in your scenario file

Do not try to set the variable scenario in this scope. This variable store the main scenario name and can cause troubles.

Specification

This scope store the data from your specification file. The variables name are the columns name.

You can call a variable from this scope with {{ spec.variable }} in your scenario file

Scenario

This scope store the variables you set in your scenario file.

You can call a variable from this scope with {{ scenario.variable }} in your scenario file

Clone this wiki locally