Keywords for camunda rest api, leading open source workflow engine.
Project description
Robot Framework Camunda
This library provides keywords for accessing camunda workflow engine. Complete REST API reference of camunda can be found here.
Library is in an early stage. Please review issue board for known issues or report one yourself. You are invited to contribute pull requests.
Documentation
Keyword documentation exists for sub-libraries:
Installation
The library is published on pypi.org and can be installed with pip:
pip install robotframework-camunda
Running robotframework-camunda
The tests
folder has example robot tests for keywords already implemented. Those tests assume you already have an
instance of camunda running.
Deploy process definition
*** Settings ***
Library CamundaLibrary.Deployment ${CAMUNDA_HOST}
*** Variables ***
${CAMUNDA_HOST} http://localhost:8080
*** Test Cases ***
Test deployment of models
${response} deploy model from file ${CURDIR}/../../bpmn/demo_for_robot.bpmn
Starting a process instance
*** Settings ***
Library CamundaLibrary.ProcessDefinition ${CAMUNDA_HOST}
*** Variables ***
${CAMUNDA_HOST} http://localhost:8080
*** Test Cases ***
Test starting process
#GIVEN
${process_definition_key} Set Variable demo_for_robot
# WHEN
${process_instance} start process ${process_definition_key}
Execute Task
"Executing task" bascially means, you execute a robot task that fetches a workload from camunda, processes it and returns its workload back to camunda during completion. Main keywords involved are:
CamundaLibrary.ExternalTask.Fetch and lock workloads
CamundaLibrary.ExternalTask.Complete Task
*** Settings ***
Library CamundaLibrary.ExternalTask ${CAMUNDA_HOST}
Library Collections
*** Variables ***
${CAMUNDA_HOST} http://localhost:8000
${existing_topic} process_demo_element
*** Test Cases ***
Test 'fetch and lock' for non existing topic
# WHEN
${work_items} fetch and lock workloads topic=${existing_topic}
# THEN
Should Not Be Empty ${work_items}
${recent_task} Get recent process instance
log Recent task:\t${recent_task}
${my_result} Create Dictionary lastname=Stahl
complete task ${existing_topic} ${recent_task} ${my_result}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for robotframework-camunda-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d761e53cdb61a5cbba047820a470f13909ba8c2d6887663d6295cc7407827960 |
|
MD5 | 840b6152259f972ddec708bb1e285f1a |
|
BLAKE2b-256 | f58fac7b1795f08625c266c7784725fe2eaa12c1303ea7bc46127af02a3e14cc |
Hashes for robotframework_camunda-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef215ec150771aa9865f77c39d9eedd7be62af8b278a288c20c4665d38680a58 |
|
MD5 | 8147f34ac56ba52ef3328f4569265b59 |
|
BLAKE2b-256 | d9b742284389b0c3dffbc81e2d7be606561481c88fcf3a845319d7abbaed7fa7 |