Skip to content

Instantly share code, notes, and snippets.

@realtimeprojects
Created November 3, 2013 21:56
Show Gist options
  • Save realtimeprojects/7295331 to your computer and use it in GitHub Desktop.
Save realtimeprojects/7295331 to your computer and use it in GitHub Desktop.
BDD rules in testing :-)
Feature: Login to quixplorer
In order to have sophisticated access control to quixplorer
I login to quixplorer to see if authentication procedures work
Scenario: Perparation
Given I have the reference configuration
Scenario: Login basic mask
When I run login function on quixplorer
Then I expect success and result containing "Login"
Scenario: Login invalid user
When I run login function on quixplorer with p_user=nonexistent_user&p_pass=invalid
Then I expect an error "Login failed: nonexistent_user"
Scenario: Login user with wrong password
When I run login function on quixplorer with p_user=admin&p_pass=invalid
Then I expect an error "Login failed: admin"
Scenario: Login user with correct password
When I run login function on quixplorer with p_user=admin&p_pass=pwd_admin
Then I expect success and result containing "action=logout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment