Skip to content

Instantly share code, notes, and snippets.

@testautomationtribe
Last active November 25, 2017 08:56
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/91501e47354c47d3bd3fad27da0eb3c6 to your computer and use it in GitHub Desktop.
Save testautomationtribe/91501e47354c47d3bd3fad27da0eb3c6 to your computer and use it in GitHub Desktop.
Login Test Feature and Scenario Outline Tutorials.
Feature: Login
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
Scenario Outline: UnSuccessful Login
Given I Navigate to the Login page
When I Unsucessfully Login with Username '<username>' and Password '<password>' on the Login Page
Then I Should See Error Message '<errorMsg>' on the Login Page
Examples:
| name | username | password | errorMsg |
| Blank Username | | password | ERROR: The username field is empty. |
| Blank Password | admin | | ERROR: The password field is empty. |
| invalid Password | admin | $%GGH | ERROR: The password you entered for the username admin is incorrect. Lost your password? |
| invalid username | 66987 | password | ERROR: Invalid username. Lost your password? |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment