Skip to content

Instantly share code, notes, and snippets.

@testautomationtribe
Created October 8, 2017 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save testautomationtribe/c6ec2fc55777176f58f767d767c7861a to your computer and use it in GitHub Desktop.
Save testautomationtribe/c6ec2fc55777176f58f767d767c7861a to your computer and use it in GitHub Desktop.
Sample Feature File
Feature: Login Feature
In order to create new post
As an Editor
I want to be able to login to the dashboard
Scenario: Successful Login
Given I Navigate to the Login page
When I Login with Username 'admin' and Password 'password' on the Login Page
Then the User Name 'admin' Should be seen on the Dashboard Page 
#Or we can chose to write the Scenario as:
Scenario: Successful Login
Given I Navigate to the login page
When I Input the Username 'admin' on the Login Page
When I Input the Password 'password' on the Login Page
When I Press the Login Button from on Login Page
Then the User Name 'admin' Should be seen on the Dashboard Page 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment