-
Notifications
You must be signed in to change notification settings - Fork 10
Your First Test
Márcio Mendes edited this page Jul 15, 2019
·
7 revisions
For your first test, create the feature files inside /test/**
folders
> demo-qaaut
> test
> feature
> sample.feature
> step-defs
> custom-steps.js
> locators
> demo_qaaut_locators.json
> protractor.conf.js
> package.json
Feature file: sample-web.feature
Feature: First test with walnutjs
@simple_web
Scenario Outline: Load Feature Variables
Given user stores the value '<varValue>' in variable '<varName>'
Examples:
| varName | varValue |
| "site_url" | "http://www.google.com.br" |
| "site_user" | "marcio.mendes" |
@simple_web
Scenario: I want see the Google Page
Given user navigates to '${vars.site_url}'
When user fills 'GoogleHome-SearchInput' by replacing text with 'led zeppelin wikipedia'
And user clicks on 'GoogleResult-SiteLink'
And user waits for 5 seconds
To run your test just type the following in a command line:
$(npm bin)/walnut