4 messages in com.canoo.lists.webtest[Webtest] possible extension to ifStep
FromSent OnAttachments
Paul King22 Oct 2007 05:15 
Paul King22 Oct 2007 05:50 
Michael Habbert22 Oct 2007 06:43 
Dierk Koenig22 Oct 2007 07:05 
Subject:[Webtest] possible extension to ifStep
From:Paul King (pau@asert.com.au)
Date:10/22/2007 05:15:56 AM
List:com.canoo.lists.webtest

One of my customers has asked for an enhancement to <ifStep> At the moment, if the ifStep condition is met, the nested steps within the ifStep are executed.

The extension would add a <then> group and an <else> "group" as nested steps for the ifStep. If either <then> or <else> appears as nested steps, no other direct nested steps are allowed (they would need to be contained within the appropriate then or else "group". At most one <then> and one <else> is allowed. The <else> group would be executed if the condition fails.

Existing usage would still be supported as is, i.e.:

<ifStep if="...">...</ifStep>

<ifStep unless="...">...</ifStep>

<ifStep> <condition>...</condition> ... </ifStep>

New usage would look like:

<ifStep> <condition>...</condition> <then>...</then> <else>...</else> </ifStep>

Is this of general interest of should I just create this for this customer as a customised extension?

Thanks, Paul.