Issue Details (XML | Word | Printable)

Key: WTR-159
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Bret Pettichord
Reporter: Bret Pettichord
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Watir

Remove "include Watir" from unittests and examples

Created: 04/Jun/07 01:41 PM   Updated: 22/Feb/10 09:27 AM   Resolved: 27/May/08 05:48 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.5


 Description  « Hide

I recently examined the common practice of use "include Watir" in scripts and have decided that we should stop suggesting it. Why?

1. This is designed for the use of mixins. However, Watir is not designed to be a mix in. This confuses new users and could lead to consequences later.
2. The common suggestion of using 'include Watir' appears to be based on a false analogy with the import statement in Java, where it allows you import references. Of course, include does do this, but this is not the primary purpose of the command and therefore, we should not suggest it.
3. New users are often confused about the different between require and include and often confuse the different syntaxes that they each require. Not teach include avoids this confusion.

Therefore we need to remove all references to include from our unit tests and our examples.



Sort Order: Ascending order - Click to sort in descending order
Bret Pettichord added a comment - 27/May/08 05:48 PM

I've fixed most of the unit tests and examples. There are some where it is harder to remove so i am going to punt on them for now.