Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-DIAG-009

PlantUML diagrams use local include files and PUML files

As a writer, I split a diagram into include files or keep it in a separate puml file, and the preview shows the assembled picture and follows my edits to those files.

Use case diagram

How it is split

This use case (StRS) is reached by 2 paths, one per 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: Include a local file in a diagram path 2: Keep a diagram in a PUML file other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-DIAG-046: PlantUML includes are read through the extension and refusals reach the diagramSwRS-MDOKFSTUDIO-DIAG-0463 teststhe page asks the extension forthe file and draws the diagramwith the text it returnsSwRS-MDOKFSTUDIO-DIAG-053: Served include files are watched and redraw their diagramsSwRS-MDOKFSTUDIO-DIAG-0534 teststhe included file changes on diskand the page draws the diagramsthat read files againSwRS-MDOKFSTUDIO-DIAG-068: A {uml} directive renders a PUML file as a render dependencySwRS-MDOKFSTUDIO-DIAG-0684 teststhe preview renders the diagramstored in the fileSwRS-MDOKFSTUDIO-DIAG-046: PlantUML includes are read through the extension and refusals reach the diagramSwRS-MDOKFSTUDIO-DIAG-0463 testsa refused include gives itsreason to the engine onceSwRS-MDOKFSTUDIO-DIAG-054: The host reads an include only next to the including file in allowed foldersSwRS-MDOKFSTUDIO-DIAG-0541 testa name that is never readis refused with a reasonSwRS-MDOKFSTUDIO-DIAG-061: Includes nest at most 8 deep, 64 files and 1 MiBSwRS-MDOKFSTUDIO-DIAG-0611 testan include cycle stops witha reason on the diagramSwRS-MDOKFSTUDIO-DIAG-053: Served include files are watched and redraw their diagramsSwRS-MDOKFSTUDIO-DIAG-0534 testswhile a block editor is open the message is sent after itclosesSwRS-MDOKFSTUDIO-DIAG-068: A {uml} directive renders a PUML file as a render dependencySwRS-MDOKFSTUDIO-DIAG-0684 testsa missing file shows a message in place of the diagramA diagram includes a local fileA diagram includes alocal fileThe assembled picture is drawnThe assembled picture isdrawnThe diagram is drawn again with the new file textThe diagram is drawnagain with the new filetextA uml directive names a PUML fileA uml directive names aPUML fileThe diagram of the file is drawnThe diagram of the fileis drawn

This map has 68 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 30 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-DIAG-039Built-in pictures are kept by source and drawn one at a time not on the map3 testsSwRS-MDOKFSTUDIO-DIAG-046PlantUML includes are read through the extension and refusals reach the diagram 3 testsSwRS-MDOKFSTUDIO-DIAG-050The host accepts only well-formed include requests not on the map1 testSwRS-MDOKFSTUDIO-DIAG-053Served include files are watched and redraw their diagrams 4 testsSwRS-MDOKFSTUDIO-DIAG-054The host reads an include only next to the including file in allowed folders 1 testSwRS-MDOKFSTUDIO-DIAG-061Includes nest at most 8 deep, 64 files and 1 MiB 1 testSwRS-MDOKFSTUDIO-DIAG-068A {uml} directive renders a PUML file as a render dependency 4 tests
SwRS-MDOKFSTUDIO-DIAG-042The built-in engine draws one diagram at a time superseded superseded by SwRS-MDOKFSTUDIO-DIAG-039 Markdown file
SwRS-MDOKFSTUDIO-DIAG-045A changed included file redraws the diagrams that read files superseded superseded by SwRS-MDOKFSTUDIO-DIAG-053 Markdown file
SwRS-MDOKFSTUDIO-DIAG-047Include answers are matched by their edit id superseded superseded by SwRS-MDOKFSTUDIO-TRUST-090 Markdown file
SwRS-MDOKFSTUDIO-DIAG-048A host refusal of an include reaches the diagram as its reason superseded superseded by SwRS-MDOKFSTUDIO-DIAG-046 Markdown file
SwRS-MDOKFSTUDIO-DIAG-049Malformed include requests are ignored superseded superseded by SwRS-MDOKFSTUDIO-DIAG-046 Markdown file
SwRS-MDOKFSTUDIO-DIAG-051Include requests are handled for the current document superseded superseded by SwRS-MDOKFSTUDIO-TRUST-065 Markdown file
SwRS-MDOKFSTUDIO-DIAG-052The host answers an include request with the same edit id superseded superseded by SwRS-MDOKFSTUDIO-TRUST-090 Markdown file
SwRS-MDOKFSTUDIO-DIAG-055A forged relative from is refused superseded superseded by SwRS-MDOKFSTUDIO-DIAG-054 Markdown file
SwRS-MDOKFSTUDIO-DIAG-056Includes resolve next to the including file superseded superseded by SwRS-MDOKFSTUDIO-DIAG-054 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-058A missing include file is refused and watched superseded superseded by SwRS-MDOKFSTUDIO-DIAG-054 Markdown file
SwRS-MDOKFSTUDIO-DIAG-059An include file over 5 MiB is refused superseded superseded by SwRS-MDOKFSTUDIO-DIAG-054 Markdown file
SwRS-MDOKFSTUDIO-DIAG-060A symlink leaving the allowed folders is refused superseded superseded by SwRS-MDOKFSTUDIO-DIAG-054 Markdown file
SwRS-MDOKFSTUDIO-DIAG-062A diagram includes at most 64 files superseded superseded by SwRS-MDOKFSTUDIO-DIAG-061 Markdown file
SwRS-MDOKFSTUDIO-DIAG-063A diagram and its includes hold at most 1 MiB of text superseded superseded by SwRS-MDOKFSTUDIO-DIAG-061 Markdown file
SwRS-MDOKFSTUDIO-DIAG-064An include cycle stops with a message superseded superseded by SwRS-MDOKFSTUDIO-DIAG-061 Markdown file
SwRS-MDOKFSTUDIO-DIAG-065A changed include file tells the page superseded superseded by SwRS-MDOKFSTUDIO-DIAG-053 Markdown file
SwRS-MDOKFSTUDIO-DIAG-066The include watch holds at most 1024 files superseded superseded by SwRS-MDOKFSTUDIO-DIAG-053 Markdown file
SwRS-MDOKFSTUDIO-DIAG-067The include watch is cleared when the preview follows another document superseded superseded by SwRS-MDOKFSTUDIO-DIAG-053 Markdown file
SwRS-MDOKFSTUDIO-DIAG-069A diagram file is a dependency of the render superseded superseded by SwRS-MDOKFSTUDIO-DIAG-068 Markdown file
SwRS-MDOKFSTUDIO-DIAG-070An unreadable diagram file shows its refusal superseded superseded by SwRS-MDOKFSTUDIO-DIAG-068 Markdown file
SwRS-MDOKFSTUDIO-DIAG-071A missing diagram file is reported and watched superseded superseded by SwRS-MDOKFSTUDIO-DIAG-068 Markdown file
SwRS-MDOKFSTUDIO-DIAG-072An exhausted include budget stops diagram files superseded superseded by SwRS-MDOKFSTUDIO-DIAG-068 Markdown file
SwRS-MDOKFSTUDIO-DIAG-073A {uml} directive without file or body says so superseded superseded by SwRS-MDOKFSTUDIO-DIAG-068 Markdown file
SwRS-MDOKFSTUDIO-DIAG-074Nested diagrams resolve includes next to their own file superseded superseded by SwRS-MDOKFSTUDIO-DIAG-068 Markdown file
SwRS-MDOKFSTUDIO-DIAG-113Include silence and malformed answers reach the diagram as reasons superseded superseded by SwRS-MDOKFSTUDIO-DIAG-046 Markdown file
SwRS-MDOKFSTUDIO-DIAG-114A non-string from is sent as null superseded superseded by SwRS-MDOKFSTUDIO-DIAG-046 Markdown file