No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
.gitignore
README.md
behat.yml
composer.json

README.md

Demo of multiple Mink sessions using Behat

Please refer to the supporting blog post

Usage

Clone this repo:

git clone https://github.com/swestcott/MinkMultipleSessions

Install the dependencies with composer:

curl http://getcomposer.org/installer | php
php composer.phar install

Download, extract to the same directory and run Selenium2 with the ChromeDriver

java -jar selenium-server-standalone-2.*.jar -Dwebdriver.chrome.driver=chromedriver

Now to launch Behat, just run:

bin/behat

You should see something like:

$ bin/behat 
Feature: User can communicate with each other

  Scenario: Simple 1-way chat            # features/ConcurrentUsers.feature:3
    Given "User1" enters the chat room   # FeatureContext::entersTheChatRoom()
    And "User2" enters the chat room     # FeatureContext::entersTheChatRoom()
    When "User1" posts a message         # FeatureContext::postsAMessage()
    Then "User2" should see that message # FeatureContext::shouldSeeThatMessage()

1 scenario (1 passed)
4 steps (4 passed)