Use case StRS-MDOKFSTUDIO-DIAG-007
A writer renders PlantUML with an own JAR or command, safely bounded
As a writer, I decide whether PlantUML runs in the safe bundled engine or in my own installation, changing the choice applies to open previews, and a blocked, failing or heavy diagram never freezes the editor or leaves processes running.
Use case diagram
How it is split
This use case (StRS) is reached by one path (the coloured line). A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.
path 1: Draw with an own JAR other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Draw with an own JAR
- PlantUML diagrams are drawn by the built-in engineSwRS-MDOKFSTUDIO-DIAG-024 a value that is not the boolean true keeps the built-in engineSwRS-MDOKFSTUDIO-DIAG-024 · 8 tests the writer sets useJar to true and the JAR pipeline is selected
- The JAR pipeline is selectedSwRS-MDOKFSTUDIO-DIAG-089 a jarPath that does not exist shows a message on the diagramSwRS-MDOKFSTUDIO-DIAG-097 a render that runs past 30 seconds stops with a messageSwRS-MDOKFSTUDIO-DIAG-084 · 5 tests java or the plantuml command runs once per diagram, at most 2 at once
- The JAR has drawn the diagrams of the renderSwRS-MDOKFSTUDIO-DIAG-105 one failing diagram does not affect the othersSwRS-MDOKFSTUDIO-DIAG-105 · 6 tests each result replaces the content of its diagram in document order
- Each diagram shows the picture the JAR drew
This map has 721 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 5 behaviours on the map are tested one by one, with 39 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-DIAG-024The useJar and jarPath settings choose the PlantUML engine 8 testsSwRS-MDOKFSTUDIO-DIAG-032The built-in engine refuses what needs a URL, a library or more than 1 MiB not on the map3 testsSwRS-MDOKFSTUDIO-DIAG-054The host reads an include only next to the including file in allowed folders not on the map1 testSwRS-MDOKFSTUDIO-DIAG-084The JAR pipeline runs java or plantuml once per diagram on stdin, at most 2 at once 5 testsSwRS-MDOKFSTUDIO-DIAG-089JAR failures are reported on the diagram and in the status line 5 testsSwRS-MDOKFSTUDIO-DIAG-097A JAR render is bounded in input, output, time and process lifetime 4 testsSwRS-MDOKFSTUDIO-DIAG-105JAR results replace the diagrams of the current render in order 6 tests
SwRS-MDOKFSTUDIO-DIAG-025useJar in an untrusted workspace keeps the JAR pipeline superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-026The built-in engine starts no process superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-027jarPath is ignored until useJar is on superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-057The trust state sets the folders an include may read superseded superseded by SwRS-MDOKFSTUDIO-DIAG-054 Markdown file
SwRS-MDOKFSTUDIO-DIAG-075Changing a PlantUML setting renders the open document again superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-076The useJar setting is contributed with an explanation superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-077The jarPath setting is contributed with an explanation superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-078The PlantUML settings form their own category superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-082PlantUML messages use the error style superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-085Without a JAR the plantuml command is run superseded superseded by SwRS-MDOKFSTUDIO-DIAG-084 Markdown file
SwRS-MDOKFSTUDIO-DIAG-086The JAR pipeline takes the SVG from the process output superseded superseded by SwRS-MDOKFSTUDIO-DIAG-084 Markdown file
SwRS-MDOKFSTUDIO-DIAG-087jarPath is read as a trimmed string superseded superseded by SwRS-MDOKFSTUDIO-DIAG-084 Markdown file
SwRS-MDOKFSTUDIO-DIAG-088A relative jarPath is resolved from the workspace folder superseded superseded by SwRS-MDOKFSTUDIO-DIAG-084 Markdown file
SwRS-MDOKFSTUDIO-DIAG-090A jarPath that is a directory is reported superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-091Restricted Mode disables JAR rendering superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-092A missing plantuml command is reported superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-093A missing Java is reported like a missing command superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-094A failing PlantUML process shows its exit and error output superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-095Output without an SVG is reported superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-096A process that cannot be spawned is reported superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-098The JAR pipeline refuses a source over 1 MiB superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-099The JAR pipeline stops an output over 8 MiB superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-100A JAR render stops after 30 seconds superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-101Cancelling a render stops the PlantUML process group superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-102A process that ignores its input becomes a message superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-103A render settles exactly once superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-104The JAR pipeline starts one process per diagram superseded superseded by SwRS-MDOKFSTUDIO-DIAG-084 Markdown file
SwRS-MDOKFSTUDIO-DIAG-106JAR results replace the diagrams in the open preview superseded superseded by SwRS-MDOKFSTUDIO-DIAG-105 Markdown file
SwRS-MDOKFSTUDIO-DIAG-107Each JAR failure is also a status-line warning superseded superseded by SwRS-MDOKFSTUDIO-DIAG-089 Markdown file
SwRS-MDOKFSTUDIO-DIAG-108JAR results reach a ready page in place superseded superseded by SwRS-MDOKFSTUDIO-DIAG-105 Markdown file
SwRS-MDOKFSTUDIO-DIAG-109Results of an older render stage are dropped superseded superseded by SwRS-MDOKFSTUDIO-DIAG-105 Markdown file
SwRS-MDOKFSTUDIO-DIAG-110JAR results wait for an open block edit superseded superseded by SwRS-MDOKFSTUDIO-DIAG-105 Markdown file
SwRS-MDOKFSTUDIO-DIAG-111A working JAR draws a diagram as a loaded picture superseded superseded by SwRS-MDOKFSTUDIO-DIAG-105 Markdown file
SwRS-MDOKFSTUDIO-DIAG-117One failing JAR diagram does not affect the others superseded superseded by SwRS-MDOKFSTUDIO-DIAG-105 Markdown file
SwRS-MDOKFSTUDIO-DIAG-118A cancelled JAR render reports the cancellation superseded superseded by SwRS-MDOKFSTUDIO-DIAG-097 Markdown file
SwRS-MDOKFSTUDIO-DIAG-120The JAR pipeline feeds the text on stdin in the workspace folder superseded superseded by SwRS-MDOKFSTUDIO-DIAG-084 Markdown file