joomla-projects/joomla-browser
Composer 安装命令:
composer require joomla-projects/joomla-browser
包简介
joomla-browser Codeception Module
README 文档
README
Table of Contents
The Joomla Browser
Joomla Browser is a Codeception.com Module. It allows to build system tests for a Joomla site much faster providing a set of predefined tasks.
In between the available functions you can find:
- INSTALLATION:
- install joomla
- install Joomla removing Installation Folder
- install Joomla Multilingual Site
- ADMINISTRATOR:
- do administrator login
- do administrator logout
- set error reporting to development
- search for item
- check for item existence
- publish a module
- setting a module position and publishing it
- EXTENSION MANAGER
- install extension from Folder
- install extension from url
- enable plugin
- uninstall extension
- search result plugin name
- FRONTEND:
- do frontend login
- ADMINISTRATOR USER INTERFACE:
- select option in chosen
- select Option In Radio Field
- select Multiple Options In Chosen
- OTHERS:
- check for php notices or warnings
The Joomla Browser is constantly evolving and more methods are being added every month. To find a full list of them check the public methods at: https://github.com/joomla-projects/joomla-browser/blob/develop/src/JoomlaBrowser.php
Joomla Browser in action
If you want to see a working example of JoomlaBrowser check weblinks tests: https://github.com/joomla-extensions/weblinks#tests
Using Instructions
Update Composer.json file in your project, and download
Download
composer require joomla-projects/joomla-browser:dev-develop
Loading the Module in Codeception
Finally make the following changes in Acceptance.suite.yml to add JoomlaBrowser as a Module.
Your original acceptance.suite.ymlprobably looks like:
modules: enabled: - WebDriver - AcceptanceHelper config: WebDriver: url: 'http://localhost/joomla-cms3/' # the url that points to the joomla cms browser: 'firefox' window_size: 1024x768 capabilities: unexpectedAlertBehaviour: 'accept' AcceptanceHelper: ...
You should remove the WebDriver module and replace it with the JoomlaBrowser module:
config: JoomlaBrowser: url: 'http://localhost/joomla-cms/' # the url that points to the joomla installation at /tests/system/joomla-cms browser: 'firefox' window_size: 1024x768 capabilities: unexpectedAlertBehaviour: 'accept' username: 'admin' password: 'admin' database host: 'localhost' # place where the Application is Hosted #server Address database user: 'root' # MySQL Server user ID, usually root database password: '1234' # MySQL Server password, usually empty or root database name: 'dbname' # DB Name, at the Server database type: 'mysqli' # type in lowercase one of the options: MySQL\MySQLi\PDO database prefix: 'jos_' # DB Prefix for tables install sample data: 'Yes' # Do you want to Download the Sample Data Along with Joomla Installation, then keep it Yes sample data: 'Default English (GB) Sample Data' # Default Sample Data admin email: 'admin@mydomain.com' # email Id of the Admin language: 'English (United Kingdom)' # Language in which you want the Application to be Installed joomla folder: '/home/.../path to Joomla Folder' # Path to Joomla installation where we execute the tests AcceptanceHelper: ...
Code Style Checker
To check automatically the code style execute the following commands in your Terminal window at the root of the repository:
$ composer install$ vendor/bin/phpcs --extensions=php -p --standard=vendor/joomla/coding-standards/Joomla src
joomla-projects/joomla-browser 适用场景与选型建议
joomla-projects/joomla-browser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 312.33k 次下载、GitHub Stars 达 19, 最近一次更新时间为 2015 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「BDD」 「TDD」 「joomla」 「acceptance testing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 joomla-projects/joomla-browser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 joomla-projects/joomla-browser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 joomla-projects/joomla-browser 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Helper that decorates any SUS with a phpspec lazy object wrapper
Behat Context for testing Symfony Api
Provides access to magento2 object manager from behat and allows to change magento config settings temporarly
Joomla Preload Package
Specification-oriented BDD helpers for PHPUnit
Lumen fork of orchestra/testbench-core - Testing Helper for Lumen Development
统计信息
- 总下载量: 312.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2015-04-23