Storyboard Extension >

Notification Card

The notification card will display any text based data you wish to present, eg soap, xml, html, text.

To distinguish one type of data from another the card will show an image from either the supplied stock images, or a custom image can be passed in.

Behaviour:

Example 1: Add Card

<span concordion:execute="addNotification(#TEXT)"><b>Hello World:</b>This is some html!</span>

When this snippet is run with this fixture, this results in a Notification Card being added to the Storyboard.


  • Example 1: Add Card

    : click image to see example

Example 2: Capture Failure

    	<p concordion:assertEquals="true">false</p>
<p concordion:assertEquals="true">false</p>

When this snippet is run with this fixture, this results in 1 Notification Card being added to the Storyboard notifying that a test failed on the specification.


  • Example 2: Capture Failure

    : click image to see example

Example 2: Show Mulitple Failures

    	<p concordion:assertEquals="true">false</p>
<p concordion:assertEquals="true">false</p>

When this snippet is run with this fixture with repeating failures allowed, this results in 2 Notification Cards being added to the Storyboard notifying that a test failed on the specification.


  • Example 2: Show Mulitple Failures

    : click image to see example

Example 3: Capture Exception

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

When this snippet is run with this fixture, this results in a Notification Card being added to the Storyboard notifying that an exception occurred in the fixture.


  • Example 3: Capture Exception

    : click image to see example