Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

swestcott/MinkMultipleSessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages