pagantis/selenium-form-utils
Composer 安装命令:
composer require pagantis/selenium-form-utils
包简介
Pagantis PHP Library. Selenium helper to end a test purchase. Helper to test the payment validation and redirection
README 文档
README
Selenium Form Utils will help you when developing integration test of Pagantis. The utils will go pass Pagantis form to ensure you can test the Notification and the Redirection. Be sure that KO and OK controllers work. You can automate your testing using travis-ci or circle-ci.
How to use
Install the library by:
-
Downloading it from here
-
Using Composer:
composer require pagantis/selenium-form-utils
Finally, be sure to include the autoloader:
require_once '/path/to/your-project/vendor/autoload.php';
Once the library is ready and inside the project the stub objects will available and the ordersApiClient will also available.
// Once the webDriver of selenium is inside Pagantis form, basically: // $webdriver->getCurrentUrl == 'form.pagantis.com/....' // Then you can use this tool to finish the form: SeleniumHelper::finishForm($this->webDriver); //The method will end once the form is approved, so the current URL will be OK_URL of the order //Optionally you can also send the mobilePhone if the user is returning SeleniumHelper::finishForm($this->webDriver, '600123123');
You can also check the cancel action automated
SeleniumHelper::cancelForm($this->webDriver);
To Develop and improve the library:
after doing the modifications please run the precised testing
docker-compose up -d
docker-compose exec php php-7.1 vendor/bin/phpunit
Help us to improve
We are happy to accept suggestions or pull requests. If you are willing to help us develop better software please create a pull request here following the PSR-2 code style and we will use reviewable to check the code and if al test pass and no issues are detected by SensioLab Insights you could will be ready to merge.
pagantis/selenium-form-utils 适用场景与选型建议
pagantis/selenium-form-utils 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.73k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pagantis/selenium-form-utils 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pagantis/selenium-form-utils 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-03-13