robot-framework-skill — Claude Code skill: Robot Framework tests
robot-framework-skill turns a described scenario into a .robot test in keyword-driven syntax, with SeleniumLibrary for browser flows and RequestsLibrary for API checks.
MIT 253 installs ★ 393 updated 2026-10-13
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a claude-codeWhat robot-framework-skill does
The skill writes the .robot file for you: settings, variables, test cases and keyword sections come out in keyword-driven form, Python underneath. It carries patterns for SeleniumLibrary browser flows and RequestsLibrary API calls, a [Template] example that runs one test across rows of data, and a remote-browser block for LambdaTest.
You supply the URL, the selectors and the expected text; the agent fills in the rest. Running the result is the usual routine: pip install robotframework robotframework-seleniumlibrary robotframework-requests, then robot tests/. Both report.html and log.html are produced automatically.
Cloud runs read LT_USERNAME and LT_ACCESS_KEY from the environment through the remote_url line, so the browser on hub.lambdatest.com will not start without both. reference/playbook.md goes further: page objects, CSV data driving, custom libraries via @keyword, and a GitHub Actions matrix.
What it helps with
- Generate a
.robotfile for a login flow that asserts the landing URL - Move a manual scenario into keyword-driven tests with reusable keywords
- Run a single test against several credential sets using
[Template] - Attach API checks on RequestsLibrary to existing browser tests
- Run the same suite on a remote LambdaTest browser
Example prompts for the agent
- Write a Robot Framework test for the login form into
tests/login.robot - Build a keyword-driven SeleniumLibrary test that opens the catalog, filters by price and counts the cards
- Add a RequestsLibrary test that creates a user with POST and expects 201
How to install robot-framework-skill
1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a claude-code2Manually: put the files in place
~/.claude/skills/robot-framework-skill/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/robot-framework-skill/
1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a codex2Manually: put the files in place
.agents/skills/robot-framework-skill/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a cursor2Manually: put the files in place
.cursor/skills/robot-framework-skill/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install LambdaTest/agent-skills robot-framework-skill2Manually: put the files in place
.github/skills/robot-framework-skill/SKILL.md1Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a gemini-cli2Platform CLI
gemini skills install https://github.com/LambdaTest/agent-skills --path robot-framework-skillManually: put the files in place
.devin/skills/robot-framework-skill/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about robot-framework-skill
How to install robot-framework-skill in Claude Code?
Run npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a claude-code. The skill lands at ~/.claude/skills/robot-framework-skill/SKILL.md.
What does robot-framework-skill do?
It generates .robot tests in keyword-driven syntax: SeleniumLibrary steps for the UI, RequestsLibrary calls for HTTP, custom keywords and data-driven runs through [Template].
What do I need to run the generated tests?
Install the packages with pip install robotframework robotframework-seleniumlibrary robotframework-requests. Then robot tests/ or robot --include smoke tests/ writes report.html and log.html.
Source text
SKILL.md · MIT
---
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](reference/cloud-integration.md) and [shared/testmu-cloud-reference.md](../shared/testmu-cloud-reference.md).
## Core Patterns
### Basic Test (tests/login.robot)
```robot
*** Settings ***
Library SeleniumLibrary
Suite Setup Open Browser ${BASE_URL} chrome
Suite Teardown Close All Browsers
*** Variables ***
${BASE_URL} http://localhost:3000
${EMAIL} [email protected]
${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 [email protected]
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
```robot
*** 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 [email protected] password123
Verify Dashboard Is Displayed
```
### Data-Driven Tests (Template)
```robot
*** Test Cases ***
Login With Various Users
[Template] Login And Verify
[email protected] admin123 Dashboard
[email protected] pass123 Dashboard
[email protected] wrong Error
*** Keywords ***
Login And Verify
[Arguments] ${email} ${password} ${expected}
Login As User ${email} ${password}
Page Should Contain ${expected}
```
### API Testing (RequestsLibrary)
```robot
*** 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 protected]
${response}= POST ${API_URL}/users json=${body} expected_status=201
Should Be Equal ${response.json()['name']} Alice
```
### Cloud Config
```robot
*** 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 |
© TestMu AI · MIT · LambdaTest/agent-skills