Skip to content

Specifications

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

What is a specification file

A specification file is a CSV file that provide data to the scenario. For each line, the scenario will run and import the data line in spec variable scope.

How to build your specification file

You CSV file MUST have header if you want to use variable names in your scenario. You can find an example of this file in examples. But, this is a good specification file :

url,cookiename
http://youtube.fr,youtube
http://google.fr,google
http://github.com,github

And you can use it in your scenario like {{ spec.url }} and {{ spec.cookiename }}

Hint

If your specification file looks like this :

http://youtube.fr,youtube
http://google.fr,google
http://github.com,github

You will have to use your variables as {{ spec.http://youtube.fr }} and {{ spec.youtube }} because AutoMate take the first line as variable names.

Clone this wiki locally