4 messages in com.canoo.lists.webtestRE: [Webtest] possible extension to i...
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:RE: [Webtest] possible extension to ifStep
From:Dierk Koenig (dier@canoo.com)
Date:10/22/2007 07:05:43 AM
List:com.canoo.lists.webtest

Just like I always said: as soon as we allow something like ifStep the demands will push us into implementing a programming language in XML syntax.

I would very much like to avoid that.

Dierk

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Paul King Sent: Montag, 22. Oktober 2007 14:16 To: webt@lists.canoo.com Subject: [Webtest] possible extension to ifStep

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.