Skip to content

Latest commit

 

History

History
145 lines (109 loc) · 5.94 KB

INTEGRATION_TEST.md

File metadata and controls

145 lines (109 loc) · 5.94 KB

Note: If possible, execute the integration test on our released artifacts.

Integration Test

We use a number of pre-defined steps to ensure the stability of our releases through integration tests.

Target: Perform tests on nightly builds on supported platforms.

Test Procedure

Test Checklist

Manual integration tests:

BPMN Modeling

  • create a new BPMN diagram
  • build this diagram from scratch
  • save file on disk as test.bpmn
  • save file with other file name on disk
  • export as SVG
  • export as PNG
  • export as JPG
  • SVG, PNG and JPG exports open in browser
Copy/Paste
  • create a new diagram
  • CTRL + A + CTRL + C in previously created diagram
  • remove start event in empty diagram
  • CTRL + V in empty diagram pastes all contents
BPMN properties panel
  • configure service task in properties panel
  • add async:before
  • add execution listener
  • add input mapping
  • verify results in XML tab
Keep implementation Details (Copy/Paste and Morph)

Based on the test diagram:

  • Add Form configuration (FormField + FormData) to "Inspect Invoice" UserTask
    • Copy / Paste task; properties are kept
    • Change task to ServiceTask; properties are gone from XML
    • Undo last step CTRL + Z; properties are back
    • Redo last step CTRL + Y; Task changed to Service Task without form properties
  • Add Properties, Input/Output Mapping, asyncBefore, Retry Time Cycle and implementation to "Check" ServiceTask
    • Copy / Paste task; properties are kept
    • Change task to Send Task; properties are kept
    • Change task to UserTask; implementation property is gone from XML (except Retry Time Cycle, Input/output Mapping and asyncBefore)

Version chooser

  • I can select the latest (alpha?) version of a diagram
    • For Camunda 7, BPMN, validation works
    • For Camunda 8, BPMN, validation works

Problems panel

  • In a Camunda 8 BPMN the problems panel indicates missing implementation details
  • In a Camunda 7 BPMN diagram the problems panel indicates missing HTTL (Process > History time to live)

DMN modeling

  • create a new DMN diagram
  • build this diagram from scratch
  • morph Go on Holidays to a decision table
  • morph Which Season to a decision table
  • morph Which Region to a literal expression
  • click onto blue overlay on Go on Holidays jumps into table editing mode
  • changing name reflects in DRD
  • save file on disk as test.dmn from table editing mode
  • save file on disk as test2.dmn from diagram mode
  • both import correctly after save
  • export DRD as SVG
  • export DRD as PNG
  • export DRD as JPG
  • SVG, PNG and JPG exports open in browser

Forms modeling

  • create a new Camunda Form
  • build this form from scratch
  • add a regular expression (^CAM-[0-9]+$) to the invoice number field
  • save file on disk as test.form
  • file imports correctly after save
  • Set the Execution Platform Version to Camunda 8 (Zeebe 1.0)
    • 4 errors are shown: Text, Number, Checkbox, and Radio are not supported
    • Clicking on an error focuses the respective element
  • Set the Execution Platform Version to Camunda 8 (Zeebe 1.2)
    • 0 errors are shown

BPMN + Camunda Forms deployment

  • Create a simple Start Event -> User Task -> End Event process
  • Create a simple form with id foo
  • Reference the form in the user task via Camunda Forms -> reference=foo
  • Verify that deployment of BPMN + Form file works

FS integration (platform specific)

  • external change detection works
    • change file in external editor
    • focus editor with file open
    • message to reload displays
  • double click in FS opens file in editor (existing instance ?)
    • .bpmn
    • .dmn
    • .form

Error Handling

  • Open broken.bpmn and verify a proper error message is shown (No diagram to display)

Accessibility

  • No new issues were reported during the tests
  • The modal opened via "Accessibility issues" button is empty

Installers (platform specific)

Other (platform specific)

  • key bindings work (Mac = CMD, CMD+SHIFT+Z, Other = CTRL)
  • restore workspace on reopen (diagrams, properties panel)
  • drag and drop
  • icons are present
  • OS specific menus are being displayed
  • menu bar (icons, correctly disabled + enabled)
  • correct modeler version displayed in about menu
  • flags work (e.g., start with $ ./camunda-modeler --no-disable-cmmn or provide flag in flags.json file => CMMN diagrams can be created)
    • Note: On MacOS, you need to $ cd Camunda\ Modeler.app/Contents/MacOS first.