Skills Plugins MCP Prompt Model 博客 我的中心
生活とツール #browser #testing

behat-skill

Generates Behat BDD tests for PHP with Gherkin feature files and MinkContext for browser testing. Use when user mentions "Behat", "PHP BDD", "Mink", "behat.yml". Triggers on: "Behat", "PHP BDD", "Mink", "behat.yml", "FeatureContext PHP".

DeepseekModel キュレーション済みスキル 品質 優秀 · 78 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=lambdatest-agent-skills-behat-skill-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name behat-skill description Generates Behat BDD tests for PHP with Gherkin feature files and MinkContext for browser testing. Use when user mentions "Behat", "PHP BDD", "Mink", "behat.yml". Triggers on: "Behat", "PHP BDD", "Mink", "behat.yml", "FeatureContext PHP". languages ["PHP"] category bdd-testing license MIT metadata {"author":"TestMu AI","version":"1.0"} Behat BDD Skill Core Patterns Feature File (features/login.feature) Feature: User Login As a user I want to log in Scenario: Successful login Given I am on "/login" When I fill in "email" with "user@test.com" And I fill in "password" with "password123" And I press "Login" Then I should see "Dashboard" And I should be on "/dashboard" Scenario: Invalid credentials Given I am on "/login" When I fill in "email" with "wrong@test.com" And I fill in "password" with "wrong" And I press "Login" Then I should see "Invalid credentials" Custom Context (features/bootstrap/LoginContext.php) <?php use Behat \ MinkExtension \ Context \ MinkContext ; use Behat \ Behat \ Context \ Context ; class LoginContext extends MinkContext implements Context { /** * @When I login as :email with password :password */ public function iLoginAs ( string $email , string $password ): void { $this -> visit ( '/login' ); $this -> fillField ( 'email' , $email ); $this -> fillField ( 'password' , $password ); $this -> pressButton ( 'Login' ); } /** * @Then I should see the dashboard */ public function iShouldSeeTheDashboard ( ): void { $this -> assertSession ()-> addressEquals ( '/dashboard' ); $this -> assertSession ()-> pageTextContains ( 'Welcome' ); } /** * @Then the response time should be under :ms milliseconds */ public function responseUnder ( int $ms ): void { // Custom performance assertion } } Built-in MinkContext Steps # Navigation Given I am on "/path" When I go to "/path" When I reload the page # Forms When I fill in "field" with "value" When I select "option" from "select" When I check "checkbox" When I uncheck "checkbox" When I press "button" When I attach the file "path" to "field" # Assertions Then I should see "text" Then I should not see "text" Then I should be on "/path" Then the response status code should be 200 Then the "field" field should contain "value" Then I should see an "css-selector" element Then print current URL behat.yml default: suites: default: contexts: - LoginContext - Behat\MinkExtension\Context\MinkContext extensions: Behat\MinkExtension: base_url: 'http://localhost:3000' sessions: default: selenium2: browser: chrome wd_host: 'http://localhost:4444/wd/hub' Tags ./vendor/bin/behat --tags=@smoke ./vendor/bin/behat --tags= "@smoke&&~@slow" Setup: composer require --dev behat/behat behat/mink-extension behat/mink-selenium2-driver Init: ./vendor/bin/behat --init Cloud Execution on TestMu AI Set environment variables: LT_USERNAME , LT_ACCESS_KEY # behat.yml default: extensions: Behat\MinkExtension: base_url: 'https://your-app.com' selenium2: wd_host: 'https://hub.lambdatest.com/wd/hub' capabilities: browser: 'chrome' extra_capabilities: 'LT:Options': user: '%env(LT_USERNAME)%' accessKey: '%env(LT_ACCESS_KEY)%' build: 'Behat Build' name: 'Behat Test' platformName: 'Windows 11' video: true console: true network: true Run: ./vendor/bin/behat or ./vendor/bin/behat features/login.feature Deep Patterns See reference/playbook.md for production-grade patterns: Section What You Get §1 Project Setup behat.yml with suites, Mink extension, profiles, project structure §2 Feature Files Gherkin with Scenario Outline, Background, TableNode data §3 Context Classes Step definitions, dependency injection, API context, assertions §4 Hooks BeforeSuite/Scenario/Step, screenshot on failure, transaction rollback §5 Page Objects Page Object pattern with elements map, reusable components §6 LambdaTest Integration Remote Selenium config, cloud browser profiles §7 Custom Formatters HTML report formatter, result collection §8 CI/CD Integration GitHub Actions with MySQL, Selenium, JUnit reports §9 Debugging Table 12 common problems with causes and fixes §10 Best Practices 14-item BDD testing checklist
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。