Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add LambdaTest/agent-skills --skill robot-framework-skill -a claude-code
Open on GitHub

What 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 .robot file 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-code

2Manually: put the files in place

~/.claude/skills/robot-framework-skill/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/robot-framework-skill/

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

Similar skills

All skills for Testing and QA →

From the same set47

The whole set →
phpunit-skill This skill generates PHPUnit tests for PHP code, including assertions, data providers, mocks, and test doubles. Use it when you need tests shaped around a class or service. CX Codex +1 287installs cucumber-skill Creates Gherkin feature files and matching step definitions. Use it to turn application behavior into Cucumber BDD scenarios. CX Codex +1 283installs webdriverio-skill Generates WebdriverIO end-to-end tests in JavaScript or TypeScript for local runs and TestMu AI cloud. CX Codex +1 265installs cypress-skill Generates production-grade E2E and component tests in JavaScript or TypeScript. Runs tests locally or on TestMu AI cloud, understands Cypress commands, and writes tests with proper selectors and network interception. CX Codex +1 264installs detox-skill Generates Detox E2E tests for React Native projects in JavaScript and TypeScript. Sets up tests for local emulators and TestMu AI cloud runs. CX Codex +1 252installs hyperexecute-skill This skill prepares and runs HyperExecute test jobs, checks YAML locally, connects CI, and helps investigate failed cloud runs. CX Codex +1 250installs xcuitest-skill Generates XCUITest UI tests for iOS and iPadOS apps. Detects whether to use local Xcode simulators or TestMu AI cloud devices, then builds test code accordingly. CX Codex +1 248installs puppeteer-skill Generates Puppeteer scripts for browser automation, scraping, and PDF output. Activates when you mention Puppeteer, headless Chrome, page.goto, or PDF generation. CX Codex +1 247installs

Project sponsors

Companies that keep this analytics open