Skip to main content

Set up your IDE

This chapter will help you to install an IDE and Extensions for code-completion and debugging

Install IDE and Extensions

Several IDEs and Code Editors support the development of Robot Framework tests.
The support ranges from simple code-highlighting, code-completion to test execution and debugging.
We list several IDEs and Extensions here, but there are many more.

Visual Studio Code

An Open Source and Lightweight Code-Editor developed by Microsoft. https://code.visualstudio.com/ It provides extensions for a lot of different languages and technologies.

VS Code

Popular extensions for Robot Framework:

Install Visual Studio Code

See the VS Code setup guide for more information.

  1. Download the Windows installer from Visual Studio Code
  2. Run the Installer with default settings
  3. Start Visual Studio Code either by
    1. Pressing Windows key + R, typing code and pressing Enter
    2. Opening the start menu, searching for Visual Studio Code and clicking on it

Visual Studio Code Extensions

caution

Make sure that only a single Robot Framework extension is installed.

RobotCode is a Visual Studio Code extension for Robot Framework.

RobotCode

  1. Open Visual Studio Code
  2. Click on Extensions icon or press Ctrl + Shift + X
  3. Search for RobotCode and click on it
  4. Click on Install

PyCharm

PyCharm is a free and open-source IDE for Python.

Popular extensions for Robot Framework:

Install PyCharm

See the PyCharm installation instructions for more information.

There two installation approaches

Make sure to install the free PyCharm Community Edition and not the PyCharm Professional version.

PyCharm extensions

Make sure that only one single Robot Framework extension is installed.

Robot Framework Language Server
  1. Press Ctrl + Alt + S to open the settings dialog
  2. Select Plugins
  3. Select the Marketplace tab
  4. Search for Robot Framework Language Server and click on Install
  5. Add a Debug Configuration for Robot Framework to run current test suite
    Debug Config Current Test Suite
  6. Add a Debug Configuration for Robot Framework to run current test case (via selected text) Debug Config Current Test Case

Run and Debug Robot Framework Tests

Visual Studio Code with RobotCode

Run

Run Tests

Debug

Add a breakpoint to your test suite or resource file, by clicking on the left-hand side of the line.
Breakpoint

Right-Click on the Play button
Play Button

Select Debug Test from the context menu.
Test Execution will begin and stop at the breakpoint.
Debug Test

Use Debug Toolbar to select actions like step over, step into, step out, continue, pause, etc.
Debug Toolbar

Run Robot Frameworm commands while debugging from Debug Console.
Commands needs to start with !
Debug Console

PyCharm with Robot Framework Language Server

Run

Run current test suite Run Tests

Run current test case (via selected text) Run Tests

Debug

Debug Tests