Controlling Robot Framework RPA flow with flowcharts
Robot Flow is a RPA tool for Robot Framework (RF). It uses flow charts to control task execution order. Robot Flow is based on concept by Mika Kaukoranta [email protected]
High level process can be designed in flowchart editor while RPA task steps are finished in Robot Framework. That makes overall flow easy to understand even for non programmers while still retaining Robot Framework more programming language like syntax for low level task implementation.
- Robot Framework 3.2 alpha 1 or later (3.2.dev1)
- Graphml drawing tool like yEd Graph Editor
Download both files from from this repository listeners folder and place them in a suitable location. Usually recommended place is listeners folder next to tests folder.
- Create high a level RPA flow using flow chart editor.
- Write RPA tasks with Robot Framework
- Robot Framework task name must match ones in flow chart. Names are case sensitive
- Place both files in same directory and check that their names are same but with different suffix
- Run Robot Framework with RobotFlow listener
robot -L RobotFlow.py mytask.robot
This repository contains a demo application and RPA scripts that show how this can be used. Application is in demo folder.
Script reads customerid's from input.xml, checks their status from application and writes output to output.xml.
There are two robot files:
- checkcustomer.robot
- This script uses RobotFlow to control process execution
- checkcustomer-rf.robot
- This script is written in traditional Robot Framework style and does not use RobotFlow
To use demo application:
- Install required libraries
- Start demoserver:
python demoserver.py
- Server opens to localhost port 8080
- Run RPA with this command:
robot --rpa --listener ../listeners/RobotFlow.py checkuser.robot
Tests are in test directory. You can run them using Robot Framework
cd tests
robot --listener ../listeners/RobotFlow.py test1.robot
RobotFlow is released under Apache license. See the bundled LICENSE file for details.