Automatic generation of synthetic UI log in RPA context introducing variability.
You need to have Python installed.
If you are using a linux based OS, install tkinter, p.e. in the case of Ubuntu:
sudo apt-get install python3-tk
If desired, you can create an isolated installation of the project requirements by creating a virtual environment.
Firstly, you need configure the Database for the proyect. To do this, create an .env file in the folder configuration with the following contents: `
- DB_NAME="Database name"
- DB_HOST="Database URL"
- DB_PORT="Database access port"
- DB_USER="Database user to access. Use a new user with limited credentials"
- DB_PASSWORD="Password for the previous user"
- DJANGO_SETTINGS_MODULE=bpmloggenerator.settings
- DJANGO_SECRET_KEY="Secret text for cryptographic purposes"
- EMAIL_HOST_USER="Mail used in the server p.e.: [email protected]"
- EMAIL_HOST_PASSWORD="Password of the mail used in the server"
- API_VERSION="Prefix used in all endpoints p.e.: bpmloggenerator/api/v1/"
- PREFIX_SCENARIO="Prefix used to identify scenarios folders p.e.: sc_"
- EXPERIMENT_RESULTS_PATH="Name of the folder where experiment data will be stored"
- UI_LOGS_FOLDERNAME="Name of the folder that appears inside the resulting data of generating a experiment where experiment UI logs and screenshots will be stored"
- ADDITIONAL_SCENARIOS_RESOURCES_FOLDERNAME="Name of the folder that appears inside the resulting data of generating a experiment where experiment scenarios variability .json files will be stored" `
In the project directory, open a terminal and run:
python manage.py makemigrations
To create a DB model.
python manage.py migrate
To create the tables in the DB based on project models.
python manage.py loaddata configuration/db_populate_v1.json
To take all the advantage that pre-loaded data offers to us, it is needed to include privatefiles/GUI_components folder in root of the project. The same need to be done by resources.
To insert initial data in DB.
python manage.py runserver
Runs the app in the debug mode. If you want to init in deploy mode, change in the bpmloggenerator/settings.py file, the DEBUG mode attribute to False.
Note that to change the domain name that appears in users verification mail it is needed to edit Site entity via Django Admin.
You can learn more about the deploy of the aplication backend in the Django documentation.
A video demo is available at: bpmLogGenerator