Esta página se muestra en inglés. Una traducción al español está en curso.
ConfigsJul 18, 2026·3 min de lectura

Robot Framework — Keyword-Driven Test Automation for Any Stack

Robot Framework is a generic open-source automation framework for acceptance testing, acceptance test-driven development (ATDD), and robotic process automation (RPA). It uses a keyword-driven approach with plain-text test syntax.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Robot Framework
Comando de instalación directa
npx -y tokrepo@latest install 6aa645fc-8262-11f1-9bc6-00163e2b0d79 --target codex

Ejecutar después de confirmar el plan con dry-run.

Introduction

Robot Framework uses a keyword-driven testing approach where tests read like structured English. Keywords abstract away implementation details, so test cases stay readable by non-developers while remaining fully executable. It ships with a rich standard library and supports extension via Python or Java.

What Robot Framework Does

  • Executes keyword-driven test cases written in plain-text tabular syntax
  • Supports web, API, database, desktop, and mobile testing through external libraries
  • Generates detailed HTML reports and logs after every run
  • Provides built-in data-driven and behavior-driven testing styles
  • Extends through Python and Java libraries with a simple keyword API

Architecture Overview

Robot Framework is implemented in Python and runs on CPython and PyPy. The core framework parses .robot files (plain-text tabular format), resolves keyword references from imported libraries, executes them in sequence, and collects results into an XML output file. A post-processing step converts the XML into HTML reports and logs. Libraries communicate with the framework through a straightforward keyword interface.

Self-Hosting & Configuration

  • Install via pip; requires Python 3.8 or later
  • Test files use .robot extension with a simple tabular syntax
  • Configure test execution with command-line options or argument files
  • Set up CI integration by calling robot in your pipeline script
  • Use rebot to merge and post-process results from parallel runs

Key Features

  • Plain-text tabular syntax that non-technical stakeholders can review
  • 500+ external libraries covering web, mobile, API, database, SSH, and more
  • Built-in HTML reporting with screenshots, timing, and pass/fail statistics
  • Tag-based test selection for running subsets of large test suites
  • Listener API for custom integrations with test management and CI systems

Comparison with Similar Tools

  • pytest — Code-centric Python testing; Robot Framework is keyword-driven and more accessible to non-developers
  • Cucumber — Uses Gherkin syntax; Robot Framework's tabular format is more concise for data-driven tests
  • Selenium IDE — Record-and-playback; Robot Framework offers reusable keyword abstraction
  • Playwright Test — JavaScript-focused; Robot Framework supports any language through libraries
  • Behave — Python BDD framework; Robot Framework provides richer built-in reporting

FAQ

Q: Can Robot Framework test APIs as well as web UIs? A: Yes. Libraries like RequestsLibrary handle REST APIs, and you can combine API and UI tests in a single suite.

Q: Is it suitable for large test suites? A: Yes. Robot Framework supports parallel execution via Pabot, tag-based filtering, and result merging with rebot for large-scale testing.

Q: What languages can I write custom keywords in? A: Python and Java are natively supported. You can also create keywords via remote library interface in any language that supports XML-RPC.

Q: Does it support BDD-style tests? A: Yes. Robot Framework has a Given/When/Then syntax option that maps directly to keywords.

Sources

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados