Watir

4,185 views
3,961 views

Published on

Watir presentation for Ruby Barcamp

Published in: Technology
3 Comments
3 Likes
Statistics
Notes
No Downloads
Views
Total views
4,185
On SlideShare
0
From Embeds
0
Number of Embeds
251
Actions
Shares
0
Downloads
156
Comments
3
Likes
3
Embeds 0
No embeds

No notes for slide

Watir

  1. 1. WATIR Automated testing that doesn’t hurt
  2. 2. Who am I <ul><li>Am a Watir contributor. </li></ul><ul><li>Have been using Watir since 2005. </li></ul><ul><li>Used it in projects, built frameworks around it as well extended it. </li></ul><ul><li>Contributions </li></ul><ul><ul><li>Ported FireWatir to JRuby. </li></ul></ul><ul><ul><li>Wrote the Flash Extension for Watir </li></ul></ul><ul><ul><li>Project owner for ChromeWatir. </li></ul></ul><ul><ul><li>Project owner for Schnell. </li></ul></ul><ul><ul><li>Active member of Watir dev community and mailing list. </li></ul></ul>
  3. 3. What is Watir <ul><li>A browser driver. Can be used for testing web based applications. </li></ul><ul><li>Started as a library to teach testers to write ruby code. </li></ul><ul><li>Grew to be an IE implementation by Bret Pettichord. </li></ul><ul><li>Now supports IE, Firefox, Safari, Google Chrome and Opera. As well headless browser support using HtmlUnit through Celerity and Schnell. </li></ul><ul><li>Current release is 1.6.2. Can be found in http://wtr.rubyforge.org </li></ul>
  4. 4. Watir is cool because
  5. 5. Watir is cool because <ul><li>It is written in Ruby and open source. </li></ul><ul><li>It has standardized interface across browsers. </li></ul><ul><li>The API and implementation is clean, intuitive and simple. </li></ul><ul><li>Supports major browsers. And fast headless browser support through Celerity and Schnell.  </li></ul><ul><li>Good locator support </li></ul><ul><li>Easily extensible. </li></ul><ul><li>Active community (Watir wiki, mailing list and irc). Agile principles like refactoring, continuous integration and short releases strictly followed. </li></ul><ul><li>Has corporate support (www.watircraft.com)  . </li></ul>
  6. 6. Watir can be better because <ul><li>Firefox implementation using JSSH is really crummy. Discussions are going on to move to XPCOM </li></ul><ul><li>The standardization across implementations is still going on. FireWatir work is almost complete. The details about the other implementations is yet to be known. </li></ul><ul><li>SafariWatir and ChromeWatir are still not inside Watir mainline code base. </li></ul><ul><li>OperaWatir is still not open sourced. </li></ul>
  7. 7. Frameworks using Watir <ul><li>Frameworks built using Watir as core </li></ul><ul><ul><li>Taza – Now called WatirCraft </li></ul></ul><ul><ul><li>Rasta - a FIT influenced keyword driven framework </li></ul></ul><ul><ul><li>Watirloo - Semantic Page Objects Modelling </li></ul></ul><ul><ul><li>Excel and Wiki driven frameworks </li></ul></ul><ul><ul><li>More frameworks are out there </li></ul></ul><ul><li>If you have built any cool frameworks or DSLs like Domain Driven or Fluent Interface, let me know. We can try it with Watir </li></ul><ul><li>For more info on frameworks, please see Watir wiki. </li></ul>
  8. 8. Watir Architecture IE COM Your awesome framework Test Script Component 1 WATIR API FF JSSH Apple Events V8 Debugger Dragonfly Component 2 Component 3 Component 4
  9. 9. References <ul><li>Watir website http://wtr.rubyforge.org </li></ul><ul><li>Watir Wiki http://wiki.openqa.org/display/WTR/Project+Home </li></ul><ul><li>ChromeWatir website http://code.google.com/p/chrome-watir </li></ul><ul><li>My blog http://developer-in-test.blogspot.com </li></ul>
  10. 10. Finally… Thank you for your patience Lets see some code…

×