-
Notifications
You must be signed in to change notification settings - Fork 0
Scenario
Julien Gidel edited this page Mar 4, 2021
·
3 revisions
This is an example of how a scenario file should looks like, don't use it as it is :
#You can define a browser to run the test. It takes precedence over all definitions
browser: chrome
#You can set variables to use in your scenario
variables:
url: http://youtube.fr
urlToVerify: https://www.youtube.com/?gl=FR
cookie: 'myCookie'
scenario:
steps:
- go: {{ scenario.url }}
- titleContains: YouTube
- urlIs: {{ scenario.urlToVerify }}
#Example of a condition
- condition:
eval: 'true == false'
ifTrue:
steps:
- reload: page
- exit: Exit scenario because true is equal to true
ifFalse:
steps:
- go: http://github.com
#Example of a loop repeated 3 times
- loop:
repeat: 3
steps:
- presenceOf:
id: 'search-icon-legacy'
- cookie:
name: {{ scenario.cookie }}
value: myCookieValue
- reload: page
- fill:
id: search
with: AutoMate is great
#Run the scenario in this scenario folder called 'reaload'
- use: sub.reload
#Run the main scenario in the folder called 'reload'
- use: main.realod
AutoMate Wiki - v0.8.0 - This wiki can change at any moment