[Watinfixture-development] WatiNFixture 0.2 Released
Status: Alpha
Brought to you by:
kalnir
|
From: Jeff P. <ka...@iw...> - 2007-01-05 04:07:03
|
WatiNFixture 0.2 has been released. The complete release notes can be found at http://sourceforge.net/project/shownotes.php?group_id=181273 <http://sourceforge.net/project/shownotes.php?group_id=181273&release_id=475 975> &release_id=475975 The following are highlights for this release: * Renamed FindXXX methods to XXXExists - example, FindLabel to LabelExists * Renamed public variables to more accurate and standardized names - example, searchForTextbox to textboxID * Rename CheckXXX methods to VerifyXXX - example, CheckCheckboxIsChecked to VerifyCheckboxIsChecked * Added tests for the new methods so the old versions can be removed in Release 0.3. The old methods still exist in Release 0.2, to help ease the transition between versions. * Included WatiN 0.9.5 DLL and the Internet Explore interop DLL in the release files, to help with installation without having to download the source code. * Encapsulated public variables into properties (refactoring) * Moved logic for each control type into its own handler, so that common logic used across fixtures occurs in only one location (refactoring) In addition, new functionality has been added: * UserActions * Compared and rounded out the methods available for each control * Added logic to click an image button that has a specified image source * Added logic for workflow testing of a page * Pressing of the tab key, one or more times * Setting the focus to a control based on its ID * Entering text at the point of the current cursor location * Selecting items from a select list at the point of the current cursor location * Clicking of the control at the current cursor location * Sleeping for a given number of milliseconds, to simulate a user pause or wait for a long page load to complete * CheckPageContents * Check for the existence of image buttons according to the image source graphic Also, new fixtures have been added to this release: * CheckPageHyperlinksRead - validates the list of hyperlinks that should be displayed on the page * CheckTableContents - validates tables of data on a web page, including textbox and dropdown list controls Certain methods also support regular expressions. * UserActions * VerifyLinkWithTextHasAddress - text of the hyperlink * ClickLinkWithText - text of the hyperlink * ClickImageButtonWithImage - image source of the image * CheckPageContents * VerifyLinkWithTextHasAddress - imageSource property Future releases will likely include adjustments to use regular expressions, so that complete IDs, exact labels and exact paths do not have to be entered to find the correct control on the page. Currently, WatiN has problems with the PressTab method. The best way I have found to resolve this issue is to set the focus to a specific control on the web page prior to any press tab commands. This seems to stabilize the behavior. Also, pressing tabs will not work if the tests are run from a Continuous Integration environment, such as CruiseControl.NET. This will hopefully be fixed in future releases of WatiN. I have included the press tab functionality in this release, because even with the current problems I have found this to still be useful for testing web applications. Enjoy! Jeff |