macintoshplus/behat-lambdatest-extension
Composer 安装命令:
composer require --dev macintoshplus/behat-lambdatest-extension
包简介
Extends the Selenium2 Extension to use Lambdatest browser. Service provider https://lambdatest.com
README 文档
README
This Behat extension provide a Mink Selenium2 Extension integration for Lambdatest SaaS.
Tested browser :
- Firefox 88+
- Chrome 90+
- Safari 13+
Installation
Run this command to add this extension on your projet:
$ php composer require --dev macintoshplus/behat-lambdatest-extension
Configuration
In your behat.yml.dist file, enable this extension
default: extensions: Macintoshplus\Lambdatest\LambdatestExtension: ~
Configure the Lambdatest Mink extension in behat.yml.dist file:
default: extensions: Behat\MinkExtension: lambdatest: # You can use the LT_USERNAME and LT_USERKEY environment variables instead of this keys: user: your_email@domain.tld # Your Lambdatest login key: xxxxx # Your Lambdatest key available here: https://accounts.lambdatest.com/detail/profile restart_session_between_scenario: false #If false, run all scenario in one session. If true, close and open a new session for each scenario # The rest of key are the same as Mink Extension wd_host: https://hub.lambdatest.com/wd/hub # The URL of Selenium2 Hub capabilities: name: Behat test suite # Define the name to change the Lambdatest session name or prefix if `restart_session_between_scenario` is true # The rest of key are the same as Mink Extension browser: firefox # The browser name marionette: true extra_capabilities: resolution: 1920x1080 platform: windows10 browserName: firefox version: latest # If you need select file to upload in your tests # Upload the files before run test. See: https://www.lambdatest.com/support/docs/upload-files-using-lambdatest/ # Define below all files names needed in your test. 'lambda:userFiles': [file_name_uploaded_to_lamdatest.zip, file_2.zip] #If you need use the Lambdatest tunnel tunnel: true tunnelName: test_tunnel
See this documentation to customize your capabilities configuration.
Credential priority
When LT_USERNAME and LT_USERKEY environment variable are defined, they are used.
Otherwise, the values provided into behat.yml.dist file are used.
Define your credential
To define environment variables, on Windows, open a cmd window and run these commands after change the value with your personnal information:
set LT_USERNAME=user@domain.tld set LT_USERKEY=xxxxxxxxxx
To define environment variables, on Unix, open a terminal window and run these commands after change the value with your personnal information:
export LT_USERNAME=user@domain.tld export LT_USERKEY=xxxxxxxxxx
Run Behat
Run Behat command, and view the result on you Lambdatest account:
vendor/bin/behat --tags=@javascript
macintoshplus/behat-lambdatest-extension 适用场景与选型建议
macintoshplus/behat-lambdatest-extension 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.76k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 02 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「javascript」 「testing」 「browser」 「ajax」 「selenium」 「webdriver」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 macintoshplus/behat-lambdatest-extension 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 macintoshplus/behat-lambdatest-extension 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 macintoshplus/behat-lambdatest-extension 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Give your JS App some Backbone with Models, Views, Collections, and Events.
Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.
Testing Suite For Lumen like Laravel does.
Caching and compression for Twig assets (JavaScript and CSS).
A pretty nice way to expose your translation messages to your JavaScript.
Instrument headless chrome/chromium instances from php5.6
统计信息
- 总下载量: 4.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-22