Use case StRS-MDOKFSTUDIO-DIAG-006
A writer reads PlantUML diagrams without any setup
As a writer, I get PlantUML pictures right after installing the extension, also in Restricted Mode, and learn why a diagram has no picture and what to change instead of seeing a blank block.
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. Where paths meet, they share the circle or the step.
path 1: Read a PlantUML diagram path 2: Learn why a diagram has no picture, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Read a PlantUML diagram
- The document holds a PlantUML diagramSwRS-MDOKFSTUDIO-DIAG-023 the text is kept as writtenSwRS-MDOKFSTUDIO-DIAG-039 a content patch draws only the new diagramsSwRS-MDOKFSTUDIO-DIAG-023 · 5 tests the built-in engine draws the fence or directive as one inert centred picture
- The diagram is drawn as a picture in the light or dark variant of the preview
Path 2: Learn why a diagram has no picture
- The document holds a PlantUML diagramSwRS-MDOKFSTUDIO-DIAG-032 a source over 1 MiBSwRS-MDOKFSTUDIO-DIAG-032 · 3 tests the built-in engine fails or refuses a library, a URL or too long a source and shows one message that says why
- A message says why there is no picture
This map has 22 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 19 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-DIAG-023PlantUML fences become centred inert pictures drawn by the built-in engine 5 testsSwRS-MDOKFSTUDIO-DIAG-024The useJar and jarPath settings choose the PlantUML engine not on the map8 testsSwRS-MDOKFSTUDIO-DIAG-032The built-in engine refuses what needs a URL, a library or more than 1 MiB 3 testsSwRS-MDOKFSTUDIO-DIAG-039Built-in pictures are kept by source and drawn one at a time 3 testsSwRS-MDOKFSTUDIO-DIAG-053Served include files are watched and redraw their diagrams not on the map4 tests
SwRS-MDOKFSTUDIO-DIAG-019Comment quotes are never wrapped inside diagrams superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-017 Markdown file
SwRS-MDOKFSTUDIO-DIAG-020Selecting text inside a diagram offers no comment superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-038 Markdown file
SwRS-MDOKFSTUDIO-DIAG-022A diagram under edit is hidden superseded superseded by SwRS-MDOKFSTUDIO-DIAG-001 Markdown file
SwRS-MDOKFSTUDIO-DIAG-026The built-in engine starts no process superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-028The built-in PlantUML script loads only when needed superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file
SwRS-MDOKFSTUDIO-DIAG-029Built-in PlantUML diagrams are drawn as inert pictures superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file
SwRS-MDOKFSTUDIO-DIAG-030Built-in diagrams follow the light or dark preview superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file
SwRS-MDOKFSTUDIO-DIAG-031The built-in engine needs nothing outside the extension superseded superseded by SwRS-MDOKFSTUDIO-DIAG-024 Markdown file
SwRS-MDOKFSTUDIO-DIAG-033The library loaders of the built-in engine refuse every request superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-034The file loader refuses local files without a render or a host superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-035A theme read from a folder is refused superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-036Unsupported directives inside included files name the file superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-037A built-in engine failure shows its reason superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-038The built-in engine refuses a source over 1 MiB superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-040The built-in result cache keeps 64 results deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-DIAG-041Results with refused includes are not kept superseded superseded by SwRS-MDOKFSTUDIO-DIAG-039 Markdown file
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-043A superseded built-in render does not overwrite a newer one superseded superseded by SwRS-MDOKFSTUDIO-DIAG-039 Markdown file
SwRS-MDOKFSTUDIO-DIAG-044A content patch draws only new built-in diagrams 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-079The built-in engine is pinned to an exact version superseded superseded by SwRS-MDOKFSTUDIO-TRUST-075 Markdown file
SwRS-MDOKFSTUDIO-DIAG-080The built-in engine bundle and licence are packaged superseded superseded by SwRS-MDOKFSTUDIO-TRUST-074 Markdown file
SwRS-MDOKFSTUDIO-DIAG-081PlantUML pictures are contained in the content width superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file
SwRS-MDOKFSTUDIO-DIAG-082PlantUML messages use the error style superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-083The PlantUML source disclosure is styled like Mermaid's superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file
SwRS-MDOKFSTUDIO-DIAG-112Unsupported directives never reach the engine or the host superseded superseded by SwRS-MDOKFSTUDIO-DIAG-032 Markdown file
SwRS-MDOKFSTUDIO-DIAG-115A theme switch between light and dark redraws built-in diagrams superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file
SwRS-MDOKFSTUDIO-DIAG-119PlantUML pictures are centred superseded superseded by SwRS-MDOKFSTUDIO-DIAG-023 Markdown file