Storyboard Extension >

Screenshot Card

The screenshot card takes a screen shot of the application under test and presents it along with a description.

Behaviour:

Example 1: Add Screenshot

<p concordion:execute="addScreenshot()">false</p>

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


  • Example 1: Add Screenshot

    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 Screenshot 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 Screenshot 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 Screenshot Card being added to the Storyboard notifying that an exception occurred in the fixture.


  • Example 3: Capture Exception

    Click image to see example

Further Details