Robot Framework icon

Robot Framework

Executes Robot Framework test scripts, allowing automation and testing directly within n8n workflows. Configure test scripts, control output file generation, and leverage Robot Framework capabilities for robust testing automation.

Robot Framework

AI-generated

Overview

This node executes Robot Framework test scripts within n8n workflows, enabling automation and testing directly in the workflow environment. It allows users to input a full Robot Framework script, run it, and optionally include output files such as output.json, log.html, and report.html as attachments in the node's output. This is useful for automating test execution and integrating test results into workflow processes, for example, running automated tests on software builds or validating system behaviors as part of a CI/CD pipeline.

Use Case Examples

  1. Running a Robot Framework script to automate UI testing and capturing the test report and logs for review.
  2. Executing backend API tests defined in Robot Framework and including the JSON output for further processing in the workflow.

Properties

Name Meaning
Robot Framework Script The full Robot Framework script to execute, including Settings, Variables, Tasks/Test Cases, and Keywords sections.
Include Output JSON Whether to include the output.json file generated by Robot Framework as a binary attachment in the node output.
Include Log HTML Whether to include the log.html file generated by Robot Framework as a binary attachment in the node output.
Include Report HTML Whether to include the report.html file generated by Robot Framework as a binary attachment in the node output.
Include Other Input Fields Whether to pass all the input fields along with variables extracted from the Robot Framework output to the node's JSON output.

Output

Binary

Contains optional attachments of Robot Framework output files (output.json, log.html, report.html) encoded in base64 with MIME type application/octet-stream.

JSON

  • terminal_output - The terminal output or console log from executing the Robot Framework script.
    error
  • terminal_output - Terminal output in case of an error during script execution.
    - Variables extracted from the Robot Framework output in case of an error. - Variables extracted from the Robot Framework output when execution is successful.

Dependencies

  • Robot Framework CLI must be installed and accessible in the environment where the node runs.

Troubleshooting

  • If the Robot Framework CLI is not installed or not in the system PATH, the node will fail to execute the script.
  • If the output.json file is not generated, the node throws an error indicating execution failure with the terminal output message.
  • Ensure the Robot Framework script syntax is correct to avoid execution errors.
  • If 'continue on fail' is not enabled and the script execution fails, the node will throw an error and stop the workflow.

Links

Discussion