Storyboard Extension >

Storyboard Card File Naming

Card data (eg screenshots) is written to the same folder as the specification output.

Example - Location of screenshot

<p concordion:assertTrue="#TEXT">false</p>

When run with this fixture in the spec.concordion.ext.storyboard package, there is one image written to

Location
/spec/concordion/ext/storyboard/StoryCardFileNaming0.jpg

Card data within the same spec are numbered sequentially.

Example - Two screenshots in the same specification

<p concordion:assertTrue="#TEXT">false</p>
<p concordion:assertTrue="#TEXT">false</p>

When run with this fixture, this results in two images being included in the HTML output and saved to the sub-folder spec/concordion/ext/storyboard:

Image name Saved to disk?
StoryCardFileNaming0.jpg true
StoryCardFileNaming1.jpg true

Image names start with the specification name so that they are unique within the package.

Example - Screenshots in different specifications

<p concordion:assertTrue="#TEXT">false</p>

When this snippet is run by a fixture named /fruit/GreenApple.html, it results in the image being written to the fruit folder:

Image name Saved to disk?
GreenApple0.jpg true

When subsequently run by a fixture named /fruit/RedApple.html, it results in the image being written to the fruit folder:

Image name Saved to disk?
RedApple0.jpg true