camunda-community-hub / camunda-process-test-coverage

Community Extension Helper library to visualize which parts of a BPMN process have been covered by a process test.
https://camunda-community-hub.github.io/camunda-process-test-coverage/
Apache License 2.0
76 stars 44 forks source link

Show count for elements if executed more than once (e.g. loops) #26

Open berndruecker opened 7 years ago

berndruecker commented 7 years ago

Whenever you execute a loop in a diagram it would be awesome to see the number of executions on elements

StephenOTT commented 6 years ago

Loops:

screen shot 2018-06-12 at 11 11 08 am

Notice the counts on the two Multi-Instance processes. Will be the same if you were to manually create a loop.

The filter removes MultiInstanceBody activity types

Can also add the same logic to Sequence Flows. But obviously will start to get messy. So a better UI option would be preferable.

stephanpelikan commented 6 years ago

We also discussed loops. The kind of using badges holding each element's count is not intuitive to read. The way we colored tasks successful executed is excellent to catch the progress even at the very first second of looking on it. But it lacks in the context of loops. Maybe you find a better solution which is good in both situations.

StephenOTT commented 6 years ago

Ya i coloured them as well (but yes it need a better visual indicator for what the numbers represent):

screen shot 2018-06-12 at 11 29 17 am

and with still running user task:

screen shot 2018-06-12 at 11 29 50 am

Still need to add some printouts for the counts on the running activities, but the base is in place.

For visuals i was thinking of adding a few interactive check boxes/feature toggles next to the BPMN-js to allow someone to turn those extra visuals on and off so they have the proper context. Otherwise, for me, it just becomes a big junky visual with 1001 visuals jammed into the diagram.

Also: likely the 1 count instances can be dropped, and only show counts where it is > 1