Sets of exemplary Gherkin features and step definitions written for fictitious applications

Applications available:

Each feature has:

A feature summary:

    Feature: Login with the ChatApp account
       As a ChatApp user
       I want to login with my ChatApp credentials
       So that I can chat with my friends

Scenarios

    Scenario: Correct Email Pass Combo
        Given I am not logged into the ChatApp
        And I use the email address: "foo@example.com"
        And I use the password: "goodpass"
        When I attempt to login
        Then I should be given access to the service

Java step definitions

    @Given("^a user with the username \"([^\"]*)\"$")
    public void a_user_with_the_username_something(String strArg1) throws Throwable {
        throw new PendingException();
    }

    @Given("^I am not logged into the ChatApp$")
    public void i_am_not_logged_into_the_chatapp() throws Throwable {
        throw new PendingException();

JavaScript step definitions

 this.Given(/^a user with the username \"([^\"]*)\"$/, function (foochatappcom, callback) {
    callback.pending();
  });

  this.Given(/^I am not logged into the ChatApp$/, function (callback) {
    callback.pending();
  });

  this.When(/^I attempt to login$/, function (callback) {
    callback.pending();
  });

Ruby step definitions

    Given /^a user with the username \"([^\"]*)\"$/" do |foochatappcom|
        # do something
    end
    Given /^I am not logged into the ChatApp$/ do 
        # do something
    end
    When /^I attempt to login$/ do 
        # do something
    end