check is a verb that suggests something nasty will happen if the outcome
of the test is failure (akin to "assert").
Would you write this?
if assert ...
...
end
On 11/06/2010 02:23 PM, edA-qa wrote:
> "Condition.check" by design works exactly as "Check" does, but instead
> of throwing an exception sets the return value. Though it may seem like
> a good idea to make it return immediately, under many normal use cases
> it won't work.
>
> The checkNot condition however does not wait (as it can't make sense).
> Therefore you could use it as a non-waiting condition:
>
> if ! checkNot ...
>
> We could easily add an alternate checkNoWait condition if that would be
> cleared.
>
Stephane Mikaty
Quality Assurance
eCircle
P: +49 89 12009-784 | F: +49 89 12009-750 | E: <email address hidden>
Nymphenburger Str. 86, 80636 München
Stay in touch
Web: www.ecircle.com/de | Newsletter: www.ecircle.com/index.php?id=63&L=0
Für Hilfe mit dem eC-messenger wenden Sie sich bitte an unseren
Support unter Tel +49 (0)89 120 09 600 oder <email address hidden>
eCircle GmbH, HRB 184 478, Handelsregister München, Geschäftsführung: Volker Wiewer (Vorsitzender),
Alexander Meyer, Thomas Wilke, Vorsitzender des Aufsichtsrates: Dr. Arnold Bahlmann
check is a verb that suggests something nasty will happen if the outcome
of the test is failure (akin to "assert").
Would you write this?
if assert ...
...
end
On 11/06/2010 02:23 PM, edA-qa wrote:
> "Condition.check" by design works exactly as "Check" does, but instead
> of throwing an exception sets the return value. Though it may seem like
> a good idea to make it return immediately, under many normal use cases
> it won't work.
>
> The checkNot condition however does not wait (as it can't make sense).
> Therefore you could use it as a non-waiting condition:
>
> if ! checkNot ...
>
> We could easily add an alternate checkNoWait condition if that would be
> cleared.
>
Stephane Mikaty
Quality Assurance
eCircle
P: +49 89 12009-784 | F: +49 89 12009-750 | E: <email address hidden>
Nymphenburger Str. 86, 80636 München
Stay in touch com/index. php?id= 63&L=0
Web: www.ecircle.com/de | Newsletter: www.ecircle.
Für Hilfe mit dem eC-messenger wenden Sie sich bitte an unseren
Support unter Tel +49 (0)89 120 09 600 oder <email address hidden>
Neuste Untersuchungen com/index. php?id= 61&L=0
Ein unschlagbares Doppel: E-Mail-Marketing & Webanalyse
Download Whitepaper: www.ecircle.
eCircle GmbH, HRB 184 478, Handelsregister München, Geschäftsführung: Volker Wiewer (Vorsitzender),
Alexander Meyer, Thomas Wilke, Vorsitzender des Aufsichtsrates: Dr. Arnold Bahlmann