Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TRUST-009

What the page and the host exchange is checked and never applied to another version

As a reader or writer, I rely on what the preview page asks of the extension being checked before any file or setting changes, and I never see an answer, an edit, a move or a request meant for another document or for an older version of my page land in the current document.

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: The page asks the host to act path 2: The host answers the page other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TRUST-052: Every page message has a registered type and a valid envelope before any handler runsSwRS-MDOKFSTUDIO-TRUST-0522 teststhe host hands the value to ahandler only if it is a registeredmessage type with a valid envelopeSwRS-MDOKFSTUDIO-TRUST-065: A page message is matched to the shown render or document by the gate of its typeSwRS-MDOKFSTUDIO-TRUST-06512 teststhe host passes it to the handlerof its type after it matches therender or document the host holdsSwRS-MDOKFSTUDIO-TRUST-059: The page accepts only registered host messages addressed to its renderSwRS-MDOKFSTUDIO-TRUST-0596 teststhe page treats it as a hostmessage only if its type isregistered and it is addressed tothe pageSwRS-MDOKFSTUDIO-TRUST-059: The page accepts only registered host messages addressed to its renderSwRS-MDOKFSTUDIO-TRUST-0596 testsa content patch within its boundsis acceptedSwRS-MDOKFSTUDIO-TRUST-052: Every page message has a registered type and a valid envelope before any handler runsSwRS-MDOKFSTUDIO-TRUST-0522 testsa value that is not aregistered message isignored without a visiblechangeSwRS-MDOKFSTUDIO-TRUST-065: A page message is matched to the shown render or document by the gate of its typeSwRS-MDOKFSTUDIO-TRUST-06512 testsan older render is answered as out of date, and a foreignrender is droppedSwRS-MDOKFSTUDIO-TRUST-059: The page accepts only registered host messages addressed to its renderSwRS-MDOKFSTUDIO-TRUST-0596 testsa patch out of bounds is not acceptedThe page sends a message to the hostThe page sends a messageto the hostThe message is a registered oneThe message is aregistered oneThe message reaches the handler of its typeThe message reaches thehandler of its typeThe page receives a message from the hostThe page receives amessage from the hostThe page accepts a host messageThe page accepts a hostmessageThe content patch is acceptedThe content patch isaccepted

This map has 61 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 18 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-TRUST-052Every page message has a registered type and a valid envelope before any handler runs 2 testsSwRS-MDOKFSTUDIO-TRUST-059The page accepts only registered host messages addressed to its render 6 testsSwRS-MDOKFSTUDIO-TRUST-065A page message is matched to the shown render or document by the gate of its type 12 testsSwRS-MDOKFSTUDIO-TRUST-086The warning banner close message has a bounded key not on the map1 testSwRS-MDOKFSTUDIO-TRUST-090Every page request is answered once by its id and result type, or ends with a readable error not on the map14 tests
SwRS-MDOKFSTUDIO-TRUST-055The validator of the message type must accept the payload deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TRUST-061A content patch message is applied only within its bounds superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file
SwRS-MDOKFSTUDIO-TRUST-062A properties table message needs string markup superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file
SwRS-MDOKFSTUDIO-TRUST-063A link targets message needs an array of the current render superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file
SwRS-MDOKFSTUDIO-TRUST-064Flush and editor watch messages are addressed by their own id superseded superseded by SwRS-MDOKFSTUDIO-TRUST-059 Markdown file