Executing Lists

The execute command has special behavior when placed on a list element (<ol> or <ul>). Instead of executing once, it executes every list item in the list (and all its sub lists) and transfers the commands from the list element to each list item element. This feature can for example be used to setup a hierarchical structure of test data.

Example

Given the following HTML list:

<ol concordion:execute="ParseNode(#TEXT, #LEVEL)">
    <li>Europe</li>
    <ul>
        <li>Austria</li>
        <ol>
            <li>Vienna</li>
        </ol>
        <li>UK</li>
        <ul>
            <li>England</li>
            <li>Scotland</li>
        </ul>
        <li>France</li>
    </ul>
    <li>Australia</li>
</ol>

When executing the active specification containing the execute command, the following items are used as parameters to the "ParseNode" method:

#TEXT #LEVEL
Europe 1
Austria 2
Vienna 3
UK 2
England 3
Scotland 3
France 2
Australia 1