Hi Mart,

your wish seems not very logical to me: this is exactly the aim of
<ifStep><condition> not to fail when the condition fails.

Otherwise you just have to... put the content of <condition> outside of
the ifStep.

The better solution would probably to have the information on the user
to know what has to be done for him.

Marc.
-- 
Blog: http://mguillem.wordpress.com


Mart Toom wrote:
> Hi,
> 
> I have a situation where I use same verify condition with multiple
> users. For one user condition failing is already a sign of failing step,
> for another user more thorough verification should be performed.
> 
> Is it somehow possible to configure ifStep to fail when condition fails?
> 
> Script looks something like following:
> 
> ....
> 
>         <ifStep description = "If true, then..." >
>             <condition >
>                 <verifyInputField
>                     description = "Check if select is visible for user"
>                     name="SelectId"
>                     value = "${id}" />
>             </condition>
>        
>             <setRadioButton
>                 description = "Select item for editing"
>                 name = "SelectId"
>                 value = "${id}" />
>             <clickButton
>                 description = "Go to edit mode"
>                 label = "${button}" />
>             <verifyText
>                 description = "Verify text on page"
>                 text = "${label}" />
>             <not>
>                 <verifyElementText
>                           description="Check that the name is changed"
>                           type="span"
>                           htmlId="ElementSerialId"
>                           text="${SecondName}" />
>             </not>
>         </ifStep>
> 
> ....
> 
> Currently test fails only if nested steps are executed. Is there any way
> to make test fail also when condition fails?
> 
> BR,
> 
> Mart T
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to