Robocorp Suite has the deepest feature set, yet is very easy to use and master. Robocorp is the most full-featured open-source RPA tools which help you to build any automation you want…
In this ultimate guide, I have covered-
Let’s get started.
RPA is not all about learning UiPath or Blueprism or Automation Anywhere tools, you should know how to translate business users’ problems into robust automated solutions and analyze the problem at hand beyond the current manual way of doing it.
You should invest your time in understanding how the RPA tools work, not just how they are used. This will be handy when you start using more developer-oriented tools for automation.
In this article, I will discuss Robocorp, A Developer Oriented Opensource RPA Tool.
Robocorp Suite is a combination of different tools. Robocode lab and Robocode CLI (IDE and CLI tools) are open source. While Robocloud provides centralized orchestration of software robots form cloud-based Solution.
As quoted by Official website “Robocorp Suite is built for RPA developers, not business users. It is easy to get started with our tools, no need to contact sales, just download and start using it!”
So, let’s get started and build our first robot using Opensource RPA Tool Robocorp.
So, you can use all components of RPA tools provided by Robocorp for free and you will be only charged when you want to scale up.
This tutorial is designed for software programmers/testers, who want to learn the basics of Robot Framework automation testing in simple and easy ways.
This tutorial will give you enough understanding on various functionalities of Robot Framework with suitable examples.
Lets get started !
Robocorp has 4 components –
Another important component is Robohub, which contains all the helpful tutorials, resources, and examples, how-to-guide to get started.
RPA Framework is supported by Robocorp is well documented and maintained set of RPA libraries for both Python and Robot Framework.
As explained above, Robocorp contains a set of tools to build RPA automation, Lets start with configuring the environment for our development.
Step #1: Setup Robocloud
Step #2: Setup Robocode Lab
Step #3: Connect Robocode Lab with Robocloud
Important!
Robocode Lab comes with useful example activities that you can download from within the application, including all you need to work on your robot in this course. Click on the Download Example Activities button in the “Get Started” section in the Robocode Lab welcome screen:
After a loading screen, you will be taken back to the welcome screen. On the right, you will see a list of example activities.
For Visual Studio Code users, Robocorp provides extensions that bring you all the Robocorp features into your favorite editor. With the Robocorp extension for Visual Studio Code, you can create a new robot, run it locally, and publish it to Robocorp Cloud right from your favorite editor.
The Robot Framework Language Server extension provides code completion, syntax validation and highlighting, code formatting, and other powerful robot development features.
Free. Developing with Visual Studio Code is completely free. No strings attached.
Install extensions. Robocorp extensions will take care of all the dependencies you will need to develop robots, so no need to install anything else. Install both the Robocorp Code and Robot Framework Language Server extensions for Visual Studio Code from the Visual Studio Marketplace to get full benefits.
Robot Framework is a generic open-source automation framework. It can be used for test automation and robotic process automation (RPA).
Robot Framework provides support for external libraries, tools which are open source and can be used for any type of automation.
The most popular library used is the Selenium Library used for web development & UI testing.
You can read more about the Robot Framework here.
As Robocorp is tightly integrated with Robot Framework for building RPA Automation Cases, you need to understand various terms used in tabular format file created using the framework.
Those who already worked with Robot Framework will have added advantage to use the same code to extend their test automation to new areas.
Robot framework comes with a simple tabular format where the task is written using keywords. Let’s understand basic building block of. robot file.
Section in. Robot File | Description |
***Settings*** | It is used for importing resource files, libraries, and variable files. Also used for defining metadata for use cases and test suites. |
***Variables*** | Used for defining variables that can be used elsewhere in test data. |
***Tasks*** | Used to create tasks using available keywords |
***Keywords*** | Creating user keywords from available lower-level keywords |
***Comments*** | Additional comments that are normally ignored by the framework |
Here is a link for official documentation. In case you wish to read more details on various key concepts used in #robotframework.
The best way to start is using the example given by the “Robocorp Team”, You should go through the given example to understand the working, try running them and then start creating something basic.
Those who are already familiar with Robot Framework, Jupyter notebook and they will not face any challenge, however, if you have not worked with Jupyter notebook (Part of Anaconda Distribution) will face some challenges while running the bot.
For this article; we are going to build a stock price scraper robot which is capable of doing following steps –
There are two ways of doing it; It all depends upon your preference.
robo init basic-robocorp-example
Robot task file is the main file where you need to define the working of Robot, for better reusability keywords should be defined into resources folder so that they can be reused in multiple blocks.
You can treat this as main activity page, which call other subtask as per design.
For my Example (It will look like)
This file contains all the list of Keywords which will be used in the Robot Operation, this contains user-defined as well as default keywords imported from different library.
You can notice the use of Library (At top of file) which are nothing but reusable python packages designed for various operation.
For my Example (It will look like)
This file will contain all the assets, URL and other configuration. You might notice this as python file i.e. we can seamlessly integrate different python packages to store values(Such as os info, network, DateTime etc.)
For my example, it’s pretty simple.
'''
Variables for Robot Framework goes here.
'''
import calendar
from datetime import date
WEEK_DAY_NAME = calendar.day_name[date.today().weekday()]
FINANCE_URL = "https://money.rediff.com/sectors/bse/"
SCRIPT_NAME = "oilgas"
Once you are done with changes in your project code(for my example 3 files above) you can run it directly from Robocorp lab.
You can use Robocorp CLI utility to run command –
robo wrap
This will package your first robot as an executable package so that you can run it anywhere!
Running your bot is supper easy task, you can use below commands to run it locally.
Running robot files (robo run entrypoint.sh, robo run entrypoint.cmd)
robo run entrypoint.sh
Sign in to your account