开发编程
#python
robot-framework-skill
Generates Robot Framework tests in keyword-driven syntax with Python. Supports SeleniumLibrary, RequestsLibrary, and custom keywords. Use when user mentions "Robot Framework", "*** Test Cases ***", "SeleniumLibrary", ".robot file". Triggers on: "Robot Framework", "*** Test Cases ***", ".robot", "SeleniumLibrary", "keyword-driven test".
DeepseekModel
官方收录技能
质量 优秀 · 78
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=lambdatest-agent-skills-robot-framework-skill-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name robot-framework-skill description Generates Robot Framework tests in keyword-driven syntax with Python. Supports SeleniumLibrary, RequestsLibrary, and custom keywords. Use when user mentions "Robot Framework", "*** Test Cases ***", "SeleniumLibrary", ".robot file". Triggers on: "Robot Framework", "*** Test Cases ***", ".robot", "SeleniumLibrary", "keyword-driven test". languages ["Python","Robot Framework"] category e2e-testing license MIT metadata {"author":"TestMu AI","version":"1.0"} Robot Framework Skill For TestMu AI cloud execution, see reference/cloud-integration.md and shared/testmu-cloud-reference.md . Core Patterns Basic Test (tests/login.robot) *** Settings *** Library SeleniumLibrary Suite Setup Open Browser ${BASE_URL} chrome Suite Teardown Close All Browsers *** Variables *** ${BASE_URL} http://localhost:3000 ${EMAIL} user@test.com ${PASSWORD} password123 *** Test Cases *** Login With Valid Credentials Go To ${BASE_URL}/login Wait Until Element Is Visible id:email 10s Input Text id:email ${EMAIL} Input Text id:password ${PASSWORD} Click Button css:button[type='submit'] Wait Until Element Is Visible css:.dashboard 10s Page Should Contain Welcome Location Should Contain /dashboard Login With Invalid Credentials Shows Error Go To ${BASE_URL}/login Input Text id:email wrong@test.com Input Text id:password wrong Click Button css:button[type='submit'] Wait Until Element Is Visible css:.error 5s Element Should Contain css:.error Invalid credentials Custom Keywords *** Keywords *** Login As User [Arguments] ${email} ${password} Go To ${BASE_URL}/login Input Text id:email ${email} Input Text id:password ${password} Click Button css:button[type='submit'] Verify Dashboard Is Displayed Wait Until Element Is Visible css:.dashboard 10s Page Should Contain Welcome *** Test Cases *** Valid Login Flow Login As User user@test.com password123 Verify Dashboard Is Displayed Data-Driven Tests (Template) *** Test Cases *** Login With Various Users [Template] Login And Verify admin@test.com admin123 Dashboard user@test.com pass123 Dashboard bad@test.com wrong Error *** Keywords *** Login And Verify [Arguments] ${email} ${password} ${expected} Login As User ${email} ${password} Page Should Contain ${expected} API Testing (RequestsLibrary) *** Settings *** Library RequestsLibrary *** Test Cases *** Get Users Returns 200 ${response}= GET ${API_URL}/users expected_status=200 Should Not Be Empty ${response.json()['users']} Create User ${body}= Create Dictionary name=Alice email=alice@test.com ${response}= POST ${API_URL}/users json=${body} expected_status=201 Should Be Equal ${response.json()['name']} Alice Cloud Config *** Settings *** Library SeleniumLibrary *** Variables *** ${REMOTE_URL} https://%{LT_USERNAME}:%{LT_ACCESS_KEY}@hub.lambdatest.com/wd/hub *** Keywords *** Open Cloud Browser ${caps}= Create Dictionary ... browserName=chrome browserVersion=latest ... LT:Options=${{{"build":"Robot Build","name":"Login Test","platform":"Windows 11","video":True}}} Open Browser ${BASE_URL} remote_url=${REMOTE_URL} desired_capabilities=${caps} Setup: pip install robotframework robotframework-seleniumlibrary robotframework-requests Run: robot tests/ or robot --include smoke tests/ Report: report.html and log.html auto-generated Deep Patterns See reference/playbook.md for production-grade patterns: Section What You Get §1 Project Setup Project structure, variable files, execution commands, pabot §2 Web UI Testing Login tests with Page Objects, dynamic content, waits, modals §3 API Testing CRUD with RequestsLibrary, error handling, validation, auth §4 Data-Driven Testing DataDriver with CSV, FOR loops, bulk operations §5 Custom Python Libraries @keyword decorator, resource tracking, test data generation §6 Browser Library Playwright-based modern testing, network interception, responsive §7 LambdaTest Integration Remote browser config, cross-browser suite, status reporting §8 CI/CD Integration GitHub Actions with matrix strategy, pabot parallel, report merging §9 Debugging Table 12 common problems with causes and fixes §10 Best Practices 14-item Robot Framework checklist
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |