RoboCon 2024

Maximizing Efficiency with RobotCode CLI Tools: A Comprehensive Guide
2024-02-27 , RoboConOnline

RobotCode is widely known as Visual Studio Code Extension, but it also provides a set of powerful command line tools that greatly enhance the development experience with Robot Framework. This tutorial will introduce the practical uses of these tools and show how they can streamline your workflow and improve project quality.


Participants will learn how RobotCode CLI Tools can support their work in Robot Framework projects:

  • Utilizing Configuration Files: The robot.toml configuration file simplifies the definition of parameters necessary for executing tests and tasks, eliminating the need for complex command-line calls. It facilitates the creation of execution profiles for various environments, such as test, development, production, or CI.

  • Efficient Querying of Project Information: Developers can quickly identify which suites, tests, tasks, or tags are present in their project without the need for a complete test run or dry run. They can also experiment with different tag combinations and explore test cases associated with specific tags. This information can be easily displayed on the console and structured in a file for further processing.

  • Enhancing Project Quality: The RobotCode CLI Tools allow users to inspect their project for potential issues like typos, unknown keywords, imports, or variables. Furthermore, unused keywords or variables are detected, simplifying project-wide optimization. All diagnostic information displayed in the IDE is also available on the console.

  • Optimizing Project Structure: Developers can streamline their projects with RobotCode by removing unnecessary files or folders (i.e. the output folder). Additionally, they can generate new projects or files from pre-defined or custom templates.

This tutorial is for developers who want to optimize their use of Robot Framework with the advanced features of RobotCode. Participants should bring their own laptops, have a basic knowledge of Robot Framework and Python, and have a GitHub account. Installation is not required.


Lessons Learned:
  • How to create and use a robot.toml configuration file
  • How to use the robotcode command to execute tests and tasks, switching between different execution profiles, select profiles in VSCode, etc.
  • How to use the robotcode command to query project information
  • How to use the robotcode command to check project quality
  • How to clean up a project with the robotcode command
  • How to generate new projects or files from predefined templates with the robotcode command
Is this suitable for ..?:

Beginner RF user, Intermediate RF user, Advanced RF user

Managing Consultant for Test Automation/Developer at imbus Germany, Opensource enthusiast, Pro in many languages and testing tools,

He is the developer of RobotCode, a Robot Framework extension for VSCode.

This speaker also appears in: