Provide a description to your test

You've already a name to identify your test vases but it can also be helpfull to have a whole text to explicit the reason or the justification of your test. This can be really helpful especially when your query is complex. This text will be displayed in the execution reports.

As a specific element

The most efficient way to specify this description is to make usage of the "description" element available in the NBi syntax.
<test name="test's name" uid="0001">
    <description>
       Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore 
       magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
       consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
       Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </description>
    <system-under-test>
        ...
    </system-under-test>
    <assert>
       ...
    </assert>
</test>

As an attribute of the test

An alternative is to make usage of the attribute named "description" at the level of the "test" element. This is probably less readable.
<test name="test's name" uid="0001" description="Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat">
    <system-under-test>
        ...
    </system-under-test>
    <assert>
        <exists/>
    </assert>
</test>

Last edited Mar 23, 2013 at 1:48 PM by Seddryck, version 1

Comments

No comments yet.