2bepublished/behat-config-generator
Composer 安装命令:
composer require 2bepublished/behat-config-generator
包简介
A behat config generator driven to ease the use of browser-stack and multiple devices.
README 文档
README
- Brought to you by [2bePUBLISHED]
- Developed by Christoph Rosse
About
A command-line tool that lets you generate behat.yml configs.
It's main purpose is to ease the use of browserstack in combination with multiple devices.
BehatConfigGenerator lets you define which features should be executed on which devices when running the tests.
Installation
BehatConfigGenerator can be installed via composer
composer require "2bepublished/behat-config-generator"
Examples
Please have a look at the examples section. to see a config + the output that is generated.
Usage
Step 1: Create your devices list as .csv
The csv uses the following fields:
- device_name
- mink_session_name
- browserstack_device
- browserstack_user
- browserstack_password
- browserstack_os
- browserstack_browser
- browserstack_version
- browserstack_os_version
"iphone","iphone_5_ios7","iPhone 5S","my-username","my-password","ios","iPhone","","7" "firefox","firefox_35_win","ANY","my-username","my-password","WINDOWS","firefox","35",""
Step 2: Create your feature / device mappings per module. If you have a behat setup with feature-files like this:
features/
order/*.features
cart/*.features
You have to create a: order.features.csv and a cart.features.csv
The csv uses the following fields: feature,device1,device2,device3
feature,firefox,iphone search,true,true show,true,false
Step 3: Generate the behat.yml by using the following command:
php vendor/bin/behat-config-generator pub:generate-behat-config ./data/devices.csv ./data/feature_list/ ./output-directory/
Customize the templates
To customize the generated behat.yml you can easily change the templates that are used.
Create a folder containing a device.yml.twig and a module.yml.twig and pass the folder via. a command option like so:
php vendor/bin/behat-config-generator pub:generate-behat-config --template-path="/my/templates/" ...
Features
- Customize templates
- Generate a big number of Configurations
LICENSE
See LICENSE file.
2bepublished/behat-config-generator 适用场景与选型建议
2bepublished/behat-config-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.08k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 2bepublished/behat-config-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 2bepublished/behat-config-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-13