Skip to content

lloiacono/MageBehat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MageBehat

Behat Integration for Magento + Magento Extensions

Installation

  1. Install composer

  2. Install all dependencies: composer install

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

Documentation for Extension Developers

As an extension developer you are able to place your feature descriptions in your extension directory's Test/features folder.

Example: Hackathon_MageBehatExample1/Test/features/homepage.feature see https://github.com/fooman/MageBehatExamples

Place a behat context file in your extension directory Test/FeatureContext.php to use an extra context (sub context), which is used only for your extension.

Example: Hackathon_MageBehatExample1/Test/FeatureContext.php

Example: [MageAttack] (https://github.com/Schrank/mage-attack)

Implemented Features

  • Magento Frontend
    • Cart
    • Checkout

Usage

  1. Start Selenium2

     java -jar selenium-server-standalone.jar
    
  2. Run Features from Magento root folder

     php -f shell/behat.php
    

Ideas

About

Behat integration for Magento

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%