kassner/magento-behat-extension

此包已被 弃用 并不再维护。没有建议的替代包。

MageBehat - 用于运行 Behat/Mink 以进行 Magento 扩展集成测试的框架

安装: 98

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 7

类型:magento-module

1.0.1 2015-04-08 12:31 UTC

This package is auto-updated.

Last update: 2021-09-15 20:36:25 UTC


README

为 Magento 和 Magento 扩展提供 Behat 集成

安装

composer require kassner/magento-behat-extension:dev-master

为扩展开发者提供的文档

作为扩展开发者,您可以将功能描述放在扩展目录的 Test/features 文件夹中。

示例:Hackathon_MageBehatExample1/Test/features/homepage.feature 查看 https://github.com/fooman/MageBehatExamples

在扩展目录 Test/FeatureContext.php 中放置 behat 上下文文件以使用额外的上下文(子上下文),该上下文仅用于您的扩展。

示例:Hackathon_MageBehatExample1/Test/FeatureContext.php

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

已实现功能

  • Magento 前端
    • 购物车
    • 结账

用法

  1. 启动 Selenium2

     java -jar selenium-server-standalone.jar
    
  2. 从 Magento 根目录运行功能

     php -f shell/behat.php
    

想法