Misplaced Pages

Watir: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 15:19, 10 September 2016 editBender235 (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers, Rollbackers, Template editors471,671 editsm Similar tools: clean up; HTTP→HTTPS for Github using AWB← Previous edit Revision as of 05:31, 9 October 2016 edit undoBender the Bot (talk | contribs)Bots1,008,858 editsm top: http→https for Google Books and Google News using AWBNext edit →
Line 19: Line 19:
}} }}


'''Watir''' ('''W'''eb '''A'''pplication '''T'''esting '''i'''n '''R'''uby, pronounced water), is an open-source family of ] libraries for automating web browsers.<ref name=Watir>{{cite web|url=http://watir.com/|work=Watir web site|accessdate=11 October 2012|title=Watir home page}}</ref><ref name=Opera>{{cite web|title=A new member in the Watir-family|url=http://www.opera.com/developer/tools/operawatir/|work=Opera Software web site|publisher=Opera Software|accessdate=11 October 2012}}</ref><ref name=Facebook>{{cite web|title=Watir to WebDriver: Unit Test Frameworks|url=https://www.facebook.com/notes/facebook-engineering/watir-to-webdriver-unit-test-frameworks/10150314152278920|work=Facebook Engineering's Notes|publisher=Facebook|accessdate=11 October 2012}}</ref><ref name="Agile Testing">{{cite book|last=Crispin, Gregory|title=Agile Testing: A Practical Guide for Testers and Agile Teams|year=2008|publisher=Addison-Wesley|isbn=9780321534460|pages=172|url=http://books.google.com/books?id=68_lhPvoKS8C}}</ref> It drives ], ], ], ] and ], and is available as a ] gem.<ref name="Agile Testing" /><ref name="Everyday Scripting with Ruby">{{cite book|last=Marick|first=Brian|title=Everyday Scripting with Ruby: For Teams, Testers, and You|year=2007|publisher=Pragmatic Bookshelf|isbn=9780977616619|pages=2|url=http://books.google.com/books?id=1vKBQgAACAAJ}}</ref> Watir was primarily developed by Bret Pettichord and Paul Rogers. '''Watir''' ('''W'''eb '''A'''pplication '''T'''esting '''i'''n '''R'''uby, pronounced water), is an open-source family of ] libraries for automating web browsers.<ref name=Watir>{{cite web|url=http://watir.com/|work=Watir web site|accessdate=11 October 2012|title=Watir home page}}</ref><ref name=Opera>{{cite web|title=A new member in the Watir-family|url=http://www.opera.com/developer/tools/operawatir/|work=Opera Software web site|publisher=Opera Software|accessdate=11 October 2012}}</ref><ref name=Facebook>{{cite web|title=Watir to WebDriver: Unit Test Frameworks|url=https://www.facebook.com/notes/facebook-engineering/watir-to-webdriver-unit-test-frameworks/10150314152278920|work=Facebook Engineering's Notes|publisher=Facebook|accessdate=11 October 2012}}</ref><ref name="Agile Testing">{{cite book|last=Crispin, Gregory|title=Agile Testing: A Practical Guide for Testers and Agile Teams|year=2008|publisher=Addison-Wesley|isbn=9780321534460|pages=172|url=https://books.google.com/books?id=68_lhPvoKS8C}}</ref> It drives ], ], ], ] and ], and is available as a ] gem.<ref name="Agile Testing" /><ref name="Everyday Scripting with Ruby">{{cite book|last=Marick|first=Brian|title=Everyday Scripting with Ruby: For Teams, Testers, and You|year=2007|publisher=Pragmatic Bookshelf|isbn=9780977616619|pages=2|url=https://books.google.com/books?id=1vKBQgAACAAJ}}</ref> Watir was primarily developed by Bret Pettichord and Paul Rogers.


== Functionality == == Functionality ==

Revision as of 05:31, 9 October 2016

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Watir" – news · newspapers · books · scholar · JSTOR (October 2012) (Learn how and when to remove this message)
Watir
Developer(s)Bret Pettichord, Charley Baker, Angrez Singh, Jari Bakken, Jarmo Pertman, Hugh McGowan, Andreas Tolf Tolfsen, Paul Rogers, Dave Hoover, Sai Venkatakrishnan, Tom Copeland, Alex Rodionov, Titus Fortner
Stable release5.0 / October 5, 2013; 11 years ago (2013-10-05)
Preview release6.0.0.beta3 / August 7, 2016; 8 years ago (2016-08-07)
Written inRuby
Operating systemCross-platform
TypeSoftware testing framework for web applications
LicenseMIT license
Websitewatir.github.io

Watir (Web Application Testing in Ruby, pronounced water), is an open-source family of Ruby libraries for automating web browsers. It drives Internet Explorer, Firefox, Chrome, Opera and Safari, and is available as a RubyGems gem. Watir was primarily developed by Bret Pettichord and Paul Rogers.

Functionality

Watir project consists of several smaller projects. The most important ones are watir-classic, watir-webdriver and watirspec.

Watir-classic

Watir-classic makes use of the fact that Ruby has built in Object Linking and Embedding (OLE) capabilities. As such it is possible to drive Internet Explorer programmatically. Watir-classic operates differently than HTTP based test tools, which operate by simulating a browser. Instead Watir-classic directly drives the browser through the OLE protocol, which is implemented over the Component Object Model (COM) architecture.

The COM permits interprocess communication (such as between Ruby and Internet Explorer) and dynamic object creation and manipulation (which is what the Ruby program does to the Internet Explorer). Microsoft calls this OLE automation, and calls the manipulating program an automation controller. Technically, the Internet Explorer process is the server and serves the automation objects, exposing their methods; while the Ruby program then becomes the client which manipulates the automation objects.

Watir-webdriver

Watir-webdriver is a modern version of the Watir API based on Selenium. Selenium 2.0 (selenium-webdriver) aims to be the reference implementation of the WebDriver specification. In Ruby, Jari Bakken has implemented the Watir API as a wrapper around the Selenium 2.0 API. Not only is Watir-webdriver derived from Selenium 2.0, it is also built from the HTML specification, so Watir-webdriver should always be compatible with existing W3C specifications.

Watirspec

Watirspec is executable specification of the Watir API, like RubySpec is for Ruby.

Similar tools

See also

References

  1. "Watir home page". Watir web site. Retrieved 11 October 2012.
  2. "A new member in the Watir-family". Opera Software web site. Opera Software. Retrieved 11 October 2012.
  3. "Watir to WebDriver: Unit Test Frameworks". Facebook Engineering's Notes. Facebook. Retrieved 11 October 2012.
  4. ^ Crispin, Gregory (2008). Agile Testing: A Practical Guide for Testers and Agile Teams. Addison-Wesley. p. 172. ISBN 9780321534460.
  5. Marick, Brian (2007). Everyday Scripting with Ruby: For Teams, Testers, and You. Pragmatic Bookshelf. p. 2. ISBN 9780977616619.
  6. "Creating automated test scripts with Ruby and WATIR". ThoughtWorks web site. ThoughtWorks. Retrieved 11 October 2012.

External links

Categories: