On Wednesday, May 2, 2012 5:57:09 AM UTC-7, onk wrote: > > it's a wonderful tool to test web application, but how to test rich web > application using ajax, YUI, javascript, drag and drop utility . there is > any recorder tool generating watir code for rich application like that ? >
Record and playback is a terrible way to generate scripts. The resulting scripts are almost always very brittle and easy to break, it also encourages people to make long chained scripts instead of short atomic tests. The latter work great with frameworks and allow you to test just a very few specific things when needed (such as telling a developer which script just broke with their latest change so they can fix it) The former are horrible to maintain, and one little thing can cause a whole huge set of scripts to not run. You are far better off coding the scripts specifically to create small atomic tests that take care of their own setup/teardown, using a framework that allows for a large degree of step re-use and abstraction layers (such as the page object model) so that if the site changes, code only needs to be updated in a small number of places (sometimes just one) instead of having to page through hundreds of lines of scripts looking for the stuff you need to update. -- 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]
