2017 © Pedro Peláez
 

library behat-framework

Initial behat framework

image

edmondscommerce/behat-framework

Initial behat framework

  • Thursday, July 12, 2018
  • by edmondscommerce
  • Repository
  • 1 Watchers
  • 0 Stars
  • 202 Installations
  • Shell
  • 0 Dependents
  • 6 Suggesters
  • 0 Forks
  • 1 Open issues
  • 8 Versions
  • 15 % Grown

The README.md

Behat Framework - A Behat 3 Quickstart

By Edmonds Commerce

An easy to get up and running Behat 3 testing framework that includes chrome based mobile and tablet testing, (*1)

Step One - Create or Update your Composer Dependencies

Template composer.json (copy paste)

For a brand new testing project, simply create a composer.json file and paste in the following:, (*2)

{
    "require": {
        "edmondscommerce/behat-framework": "dev-master",
        "edmondscommerce/behat-faker-context": "dev-master",
        "edmondscommerce/behat-chrome-performance-context": "dev-master",
        "edmondscommerce/behat-error-detection-context": "dev-master",
        "edmondscommerce/behat-screenshot-context": "dev-master",
        "edmondscommerce/behat-error-handling-context": "dev-master",
        "edmondscommerce/behat-html-context": "0.0.1",
        "edmondscommerce/behat-javascript-context": "dev-master",
        "edmondscommerce/behat-mouse-context": "dev-master"
    },
    "config": {
        "bin-dir": "bin/"
    }
}

Then install the dependencies., (*3)

composer install --prefer-source

Or to add to an existing Project

Set the bin dir in your composer.json, (*4)

"config": {
    "bin-dir": "bin/"
}

And then run this to add to your composer.json and install, (*5)

composer require edmondscommerce/behat-framework dev-master --prefer-source

Step Two - Copy Behat Config Files

Features

cp -R vendor/edmondscommerce/behat-framework/features ., (*6)

You can then add your features and custom contexts as needed., (*7)

Behat Config

cp vendor/edmondscommerce/behat-framework/behat.dist ./behat.yaml, (*8)

You will want to edit this file according to your requirements, but this is a good staritng point., (*9)

Step Three - Add Other Contexts

There are a number of packages available that compliment the framework with more features., (*10)

We have created some to get you started:, (*11)

Generic Contexts

[https://github.com/edmondscommerce/behat-chrome-performance-context], (*12)

[https://github.com/edmondscommerce/behat-error-handling-context], (*13)

[https://github.com/edmondscommerce/behat-error-detection-context], (*14)

[https://github.com/edmondscommerce/behat-faker-context], (*15)

[https://github.com/edmondscommerce/behat-html-context], (*16)

[https://github.com/edmondscommerce/behat-javascript-context], (*17)

[https://github.com/edmondscommerce/behat-mouse-context], (*18)

[https://github.com/edmondscommerce/behat-screenshot-context, (*19)

Platform Contexts

[https://github.com/edmondscommerce/behat-magento-one-context], (*20)

[https://github.com/edmondscommerce/behat-magento-2-context], (*21)

[https://github.com/edmondscommerce/behat-prestashop-context], (*22)

The Versions

12/07 2018

dev-master

9999999-dev

Initial behat framework

  Sources   Download

The Requires

 

testing behat data browser testing

12/07 2018
23/05 2018
22/11 2017
01/02 2016