-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d3a96f8
commit 8f1761d
Showing
3 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
*** Settings *** | ||
Library CamundaLibrary ${CAMUNDA_HOST} | ||
Resource ../cleanup.resource | ||
Test Setup Delete all instances from process '${PROCESS_DEFINITION_KEY}' | ||
|
||
*** Variables *** | ||
${CAMUNDA_HOST} http://localhost:8080 | ||
${PROCESS_DEFINITION_KEY} demo_for_robot | ||
${EXISTING_TOPIC} process_demo_element | ||
|
||
*** Variables *** | ||
${CAMUNDA_HOST} http://localhost:8080 | ||
|
||
*** Test Cases *** | ||
BPMN error without task does not fail | ||
# only throws a warning | ||
throw bpmn error de1 | ||
|
||
Test 'fetch and lock' for existing topic | ||
[Setup] set camunda url ${CAMUNDA_HOST} | ||
# GIVEN | ||
Start process ${PROCESS_DEFINITION_KEY} | ||
${variables} Create Dictionary text=Manna Manna | ||
|
||
# AND | ||
${work_items} fetch workload topic=${existing_topic} | ||
|
||
# WHEN | ||
throw bpmn error de1 Alles kaputt variables=${variables} | ||
|
||
# THEN | ||
${workload} Fetch Workload handle_error | ||
Should Not Be Empty ${workload} | ||
|
||
Should Be Equal As Strings Manna Manna ${workload}[text] | ||
Should Be Equal As Strings de1 ${workload}[error_code] | ||
Should Be Equal As Strings Alles kaputt ${workload}[error_message] |