Skip to content

Instantly share code, notes, and snippets.

@colincalnan
Forked from jk/README.md
Created May 18, 2017 17:08
Show Gist options
  • Save colincalnan/1157a36f4519deaab090b86a66af1eaa to your computer and use it in GitHub Desktop.
Save colincalnan/1157a36f4519deaab090b86a66af1eaa to your computer and use it in GitHub Desktop.

Revisions

  1. @jk jk revised this gist Aug 30, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,6 @@ Here you find the DSL language definition for your phrases you can use in .featu
    With Homebrew that gets really easy:

    * `brew install selenium-server-standalone`

    before running `bin/behat` start up the selenium server:
    * `java -jar /usr/local/opt/selenium-server-standalone/selenium-server-standalone-2.35.0.jar -p 4444`
  2. @jk jk revised this gist Aug 30, 2013. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,10 @@
    Here you find the DSL language definition for your phrases you can use in .feature files:

    * `features/bootstrap/FeatureContext.php inherits from`
    * `vendor/behat/mink-extension/Behat/MinkExtension/Context/MinkContext.php`
    * `vendor/behat/mink-extension/Behat/MinkExtension/Context/MinkContext.php`

    # Installation
    With Homebrew that gets really easy:

    * `brew install selenium-server-standalone`
    * `java -jar /usr/local/opt/selenium-server-standalone/selenium-server-standalone-2.35.0.jar -p 4444`
  3. @jk jk revised this gist Aug 30, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    # Important files

    Here you find the DSL language definition for your phrases you can use in .feature files
    Here you find the DSL language definition for your phrases you can use in .feature files:

    * `features/bootstrap/FeatureContext.php inherits from`
    * `vendor/behat/mink-extension/Behat/MinkExtension/Context/MinkContext.php`
  4. @jk jk revised this gist Aug 30, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Important files

    Here you find the DSL language definition for your phrases you can use in .feature files
    * `features/bootstrap/FeatureContext.php inherits from`
    * `vendor/behat/mink-extension/Behat/MinkExtension/Context/MinkContext.php`
  5. @jk jk revised this gist Aug 30, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Important files
    * `features/bootstrap/FeatureContext.php inherits from`
    * `vendor/behat/mink-extension/Behat/MinkExtension/Context/MinkContext.php`
  6. @jk jk revised this gist Aug 29, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion composer.json
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,8 @@
    "behat/mink-goutte-driver": "*",
    "behat/mink-sahi-driver": "*",
    "behat/mink-selenium-driver": "*",
    "behat/mink-selenium2-driver": "*"
    "behat/mink-selenium2-driver": "*",
    "behat/mink-zombie-driver": "1.0.*"
    },
    "minimum-stability": "dev",
    "config": {
  7. @jk jk created this gist Aug 29, 2013.
    9 changes: 9 additions & 0 deletions behat.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    default:
    extensions:
    Behat\MinkExtension\Extension:
    base_url: http://example.tld
    show_cmd: open -a "Google Chrome" "%s"
    javascript_session: 'selenium2'
    browser_name: firefox # safari, googlechrome
    goutte: ~
    selenium2: ~
    15 changes: 15 additions & 0 deletions composer.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    {
    "require": {
    "behat/behat": "2.4.*@stable",
    "behat/mink": "1.4.*@stable",
    "behat/mink-extension": "*",
    "behat/mink-goutte-driver": "*",
    "behat/mink-sahi-driver": "*",
    "behat/mink-selenium-driver": "*",
    "behat/mink-selenium2-driver": "*"
    },
    "minimum-stability": "dev",
    "config": {
    "bin-dir": "bin/"
    }
    }
    3 changes: 3 additions & 0 deletions install_composer.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    curl http://getcomposer.org/installer | php
    php composer.phar install --prefer-source
    ./bin/behat --init
    12 changes: 12 additions & 0 deletions myfeature.feature
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # features/myfeature.feature
    Feature: Search
    In order to test something
    As a website user
    I need to be able to start a test

    @javascript
    Scenario: Searching for a page with autocompletion
    Given I am on "/wiki/Main_Page"
    When I fill in "search" with "Behavior Driv"
    And I wait for the suggestion box to appear
    Then I should see "Behavior-driven development"