History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-394
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Assignee: Paul King
Reporter: Paul King
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebTest

ifStep should allow nested 'then' and 'else' groups

Created: 27/Feb/08 14:02:28   Updated: 28/Feb/08 08:59:18
Affects Version/s: 2.5
Fix Version/s: 2.6


 Description   
Even when trying to write tests declaratively, it is sometimes convenient to have simplistic conditional logic. This is provided by 'ifStep' but only in a very simple form. Adding this feature will allow this style to be used when it is needed without resorting to duplication of code. The intent is to support this:

{code}
<ifStep test="${myCondition}">
    <then>
        <echo message="inside then"/>
    </then>
    <else>
        <echo message="inside else"/>
    </else>
</ifStep>
{code}


 All   Comments   Change History      Sort Order:
Comment by Paul King [27/Feb/08 23:29:32]
fixed in R_1677