Used correctly, unit test frameworks can be just fine.  I personally prefer 
rspec since I tend to work in agile shops where there is a lot of value to 
executable specifications (which is why I mostly use cucumber, read first 
two (free) chapters of this book http://www.manning.com/adzic/ to get an 
idea of the value proposition).  But I see no reason that test unit might 
work just fine, depending on your needs of course.  I would encourage the 
use of an abstraction layer or two.  For example I'm using the Test-Factory 
gem to do page and data objects to make it easier to maintain tests and 
have very dry and reusable test code. 

IMHO The problem comes when you don't create proper good automated tests 
which are atomic etc, but rather long chains of stuff, similar to an entire 
manual test scenario (that tests many things along the path it takes).  But 
that sort of thing is more a problem of how people make use of frameworks, 
not the frameworks themselves.  It's a bad habit often learned via 
commercial tools or even things like Selenium IDE, that make the false 
promise that you can create effective test automation by just recording 
your manual tests.. Tests that way tend to be very brittle, high 
maintenance, and far less useful.

On Monday, March 25, 2013 12:15:13 PM UTC-7, mc060200778 wrote:
>
> Hi Chuck van der Linden,
> *
> *
> I have question for you *"How would rate Watir Test-Unit framework"? *In 
> your detailed reply you did not mention Test_Unit Framework? you dont like 
> or it has limitation..
> i am asking so because i am currently using it and found it good.
> please comment.
> *
> *
> Thanks,
> *
> *
> On Mon, Mar 25, 2013 at 8:21 PM, Chuck van der Linden <
> [email protected] <javascript:>> wrote:
>
>> On Monday, March 25, 2013 5:26:32 AM UTC-7, [email protected] wrote:
>>
>>> Akiaa,
>>>
>>> Here is a good starting point.
>>> https://github.com/watir/**watir/blob/master/README.md<https://github.com/watir/watir/blob/master/README.md>
>>>
>>> Regards,
>>>  
>>> Joseph Fleck
>>>
>>> If your actions inspire others to dream more,
>>> learn more, do more and become more,
>>> you are a leader.
>>> John Quincy Adams 
>>>
>>> If you are just doing a simple proof of concept, and leaning to do some 
>> basic watir scripting, then you can just create your scripts as an RB file 
>> and execute them.
>>
>> But once you get past the point of the basics, you will really want some 
>> kind of framework within which to run your tests. This can make it easier 
>> to run groups of tests, or a specific test, and also deal with issues like 
>> reporting results, and making it easier to automate the running of the test 
>> automation
>>
>>  There are a number of good choices, but offhand I'd say two of the more 
>> popular ones are rspec and cucumber.  There are good books on both 
>> frameworks from Pragmatic Programmers, but neither specifically addresses 
>> using the frameworks with watir.. (still, I'd recommend reading the one 
>> that is applicable if you choose one of those as a framework) 
>>
>> There was a good training session held last year at the Test Automation 
>> Bazaar on using Cucumber, Watir, and the Page-Objects gem, you can find a 
>> recording of it via this page.  
>> https://github.com/watir/watir-bazaar/wiki/Test-Automation-Workshop-2012 
>> apologies for the quality of the recording, you can blame that on me.
>>
>> Other good starting resources are:
>>  1)  the Watir-Book  See the readme on this page 
>> https://github.com/watir/watirbook for more info
>>  2) Jeff "Cheesy" Morgan's Cucumber and Cheese book 
>> https://leanpub.com/cucumber_and_cheese
>>
>> -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to