[wtr-general] Re: !assert doesn't work in in Unit Test.

2009-10-27 Thread de Villamil Frédéric


Le 27 oct. 2009 à 07:24, yuping zhong a écrit :


 Dear All,

 As it is known to all that,assert can be use in the unit test But
 when I try to use the !assert ,it always fails,any idea of this?

 Thanks in advance.

 -Zhong


Hello,

To have a negative assert working (mostly on non visible elements),  
I've been using the following:

assert true == false if 

Not the best way to do it I guess, but works like a charm.
Regards

-- 
Frédéric de Villamil
What's mine is mine. What's yours is still unsetteled – Go player  
proverb
frede...@de-villamil.comtel: +33 (0)6 62 19 1337
http://t37.net  Typo : 
http://typosphere.org


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: !assert doesn't work in in Unit Test.

2009-10-27 Thread Bret Pettichord

de Villamil Frédéric wrote:
 To have a negative assert working (mostly on non visible elements),  
 I've been using the following:

 assert true == false if 

 Not the best way to do it I guess, but works like a charm.
 Regards
   

These will also do the same thing:

assert false if ...
assert !(...)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: !assert doesn't work in in Unit Test.

2009-10-27 Thread de Villamil Frédéric


Le 27 oct. 2009 à 15:47, Bret Pettichord a écrit :


 de Villamil Frédéric wrote:
 To have a negative assert working (mostly on non visible elements),
 I've been using the following:

 assert true == false if 

 Not the best way to do it I guess, but works like a charm.
 Regards


 These will also do the same thing:

 assert false if ...
 assert !(...)



Oh, never thought about that...
Why going simple when you can make things complicated after all?

--  
Frédéric de Villamil
What's mine is mine. What's yours is still unsetteled – Go player  
proverb
frede...@de-villamil.comtel: +33 (0)6 62 19 1337
http://t37.net  Typo : 
http://typosphere.org


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---