Subscribe by Email


Showing posts with label Web Application Testing in Ruby. Show all posts
Showing posts with label Web Application Testing in Ruby. Show all posts

Monday, February 11, 2013

What smaller projects are contained in Watir projects?


About Watir

- Web application testing in Ruby often known as ‘watir’ belongs to the family of the open source family of tools for automation of the web browsers. 
- This tool is available under BSD license and consists of ruby libraries that can be used for automating the web browsers. 
- The tool possesses the ability for driving the web browsers such as Mozilla firefox, internet explorer, opera, safari and chrome. 
- Further, watir has been even made available in the form of RubyGems gem. 
- The credit for the primary development of this tool goes to Brett Pettichord and his colleague Paul Rogers.

Functionality of Watir

- The functionality of watir has been divided in to three main smaller projects. 
- Actually, watir consists of a number of smaller projects but we shall discuss the 3 major ones namely:
  1. Watir – classic
  2. Watir – webdriver
  3. Watirspec

About Water–classic

- This project of watir is based on the fact that the OLE (i.e., object linking and embedding) capabilities come in – built with the ruby package.
- With such capabilities it becomes easy for watir–classic to drive the browsers pro-grammatically.
- One thing to be noted about the water – classic is that its way of operation is quite different from the way the other HTTP based test tools operate. 
- The other HTTP based testing tools operate via the simulation of the browsers. 
- The web browsers are directly driven by the water – classic using the OLE protocol. 
- The implementation of this protocol is done over the COM (component object model) architecture.
- Inter-process communication is possible due to COM such as in IE and ruby. 
- Further, dynamic object creation as well as manipulation is also possible with such architecture. 
- This is termed as OLE automation by Microsoft. 
- The manipulating program has been termed as the automation controller. 
- Technically this can be explained as follows: The internet explorer serves as the server and caters to the automation objects and exposes their methods. The ruby program then serves as the client that carries out the manipulation of the automation objects. Water – classic can be put in to the gemfile or can be installed manually.

About Water–webdriver

 
- This project has been developed as a modern version of selenium based water API. 
- The selenium 2.0 has been taken to be the reference implementation of the specification of the webdriver.
- Selenium 2.0 is the selenium webdriver. 
- Water API has been implemented as a wrapper around the selenium webdriver by Jari Bakken.
- The selenium 2.0 is what from which the water – webdriver has been derived and has been built up on the html specifications. 
- This implies that the water webdriver always maintain compatibility with the world wide web consortium specifications that already exist. 
- Webdriver is quite an elegant way for using webdriver with ruby. 
- Ruby 1.9.3 is perfectly supported by the watir – webdriver but nonetheless it works well with its old versions also. 
- When you start with watir ruby will take your commands and the spath selectors are absent here. 
- Even though the xpath selectors are supported by watir, its API is so awesome that the need for using the xpaths is totally eliminated. 
- Using watir web driver increases your efficiency as well as productivity. 
- In addition to this, the quality of the scripts execution increases by a thousand times.

About Watirspec

- This is the third major project of watir and can be considered to be its API’s executable specification such as ruby has rubyspec. 
- The performance of watir is better with watirspec and also improves the compliance with the watir – webdriver. 


Sunday, February 10, 2013

Explain Watir (Web application testing in Ruby)?


Watir stands for Web application testing in Ruby and was developed as an open source that would provide Ruby libraries by Paul Rogers and Bret Pettichord. The software is licensed under BSD and contains all ruby libraries that would be required for the automation of the web browsers. The software is known to drive a number of web browsers namely:
  1. Internet explorer
  2. Mozilla firefox
  3. Chrome
  4. Opera
  5. Safari
The software has been made available especially for ruby as the ruby gems. Watir is comprised of several smaller projects which define its functionality:
  1. Watir–classic: Ruby has got built – in OLE capabilities that can be used by water classic for driving the IE pro grammatically. The way of operation of water classic is different than that of the other HTTP based based testing tools.
  2. Watirspec: This one is watir’s executable specification.
  3. Water–webdriver: The reference implementation of the web driver specification is the selenium 2.0. the roots of the water web driver can be traced to the HTML specification.
- This automated test tool uses ruby as the scripting language for driving the above mentioned web browsers. 
- You can call it a tool kit for developing effective automated tests and run them against the browsers. 
- Watir can be used for driving the web applications which can be looked up as HTML pages while browsing. 
- However, Watir is not known to work with the following:
  1. Active X plug – in components
  2. Java applets
  3. Macromedia flash and other plug – in applications.
- Before you use watir for your application you need to determine whether it will work for it or not. 
- To do so just right click on the object and check for the view source menu.
- If the HTML source for the object is available it can be well automated using watir otherwise not. 
- There are certain prerequisites for using watir which are that you need to have knowledge about the following:
  1. HTML
  2. Programming basics including simple control structures.
  3. Ruby: this is required if you put water to a really good use.
- Watir works well for all the windows platforms including windows 2000, server 2003, XP and vista and it can be run on versions 6 and 7 of internet explorer. 
- Using Ruby 1.8.5 – 24 or 1.8.6 – 26 is recommended. 
- For installing ruby and water you need to log on as the administrator. 
- There are two ways for installing watir:
  1. From behind a proxy and
  2. From behind a firewall
- The tests written using watir are quite easy to read as well as maintain and exhibit simplicity and flexibility.
- The way watir drives the web browsers is the same as done by people. 
- It performs clicking operations such as clicking on links and buttons, forms filling operations and so on. 
- Results are also checked by watir. 
- Ruby, like other programming languages provides your application with the ability to do the following:
  1. To connect to data bases
  2. To read from spreadsheets and data files
  3. To export the XML files
  4. To restructure your code so that it can be converted in to a reusable library.
- Watir is free open source tool and therefore no money expenditure in using it. 
- Ruby is a full featured modern programming language which lets watir support all the web applications no matter by what technology it has been developed. 
- Watir provides support to a number of browsers on different platforms. 
- Though the tool is quite powerful it is extremely simple and easy to use. 
- For using watir, it is recommended that you install the IE developer tool bar. 


Wednesday, January 30, 2013

Explain Watir - Web Application Testing in Ruby?


Watir stands for web application testing in Ruby and was developed as an open source that would provide Ruby libraries by Paul Rogers and Bret Pettichord. The software is licensed under BSD and contains all ruby libraries that would be required for the automation of the web browsers. The software is known to drive a number of web browsers namely:
  1. Internet explorer
  2. Mozilla firefox
  3. Chrome
  4. Opera
  5. Safari
The software has been made available especially for ruby as the ruby gems. Watir is comprised of several smaller projects which define its functionality:
1.Watir – Classic: Ruby has got built – in OLE capabilities that can be used by watir classic for driving the IE pro grammatically. The way of operation of watir classic is different than that of the other HTTP based testing tools.
2.Watirspec: This one is watir’s executable specification.
3.Watir–web driver: The reference implementation of the web-driver specification is the selenium 2.0. the roots of the watir web driver can be traced to the HTML specification.

This automated test tool uses Ruby as the scripting language for driving the above mentioned web browsers. You can call it a tool kit for developing effective automated tests and run them against the browsers. Watir can be used for driving the web applications which can be looked up as HTML pages while browsing. 
However, Watir is not known to work with the following:
  1. Active X plug – in components
  2. Java applets
  3. Macromedia flash and other plug – in applications.
Before you use Watir for your application you need to determine whether it will work for it or not. To do so just right click on the object and check for the view source menu. If the HTML source for the object is available it can be well automated using watir otherwise not. There are certain prerequisites for using Watir which are that you need to have knowledge about the following:
  1. HTML
  2. Programming basics including simple control structures.
  3. Ruby: this is required if you put watir to a really good use.
Watir works well for all the windows platforms including Windows 2000, server 2003, XP and vista and it can be run on versions 6 and 7 of internet explorer. Using ruby 1.8.5 – 24 or 1.8.6 – 26 is recommended. For installing ruby and watir you need to log on as the administrator. 
There are two ways for installing Watir:
  1. From behind a proxy and
  2. From behind a firewall
The tests written using Watir are quite easy to read as well as maintain and exhibit simplicity and flexibility. The way Watir drives the web browsers is the same as done by people. It performs clicking operations such as clicking on links and buttons, forms filling operations and so on. Results are also checked by Watir. 
Ruby, like other programming languages provides your application with the ability to do the following:
  1. To connect to data bases
  2. To read from spreadsheets and data files
  3. To export the XML files
  4. To restructure your code so that it can be converted in to a reusable library.
Watir is free open source tool and therefore no money expenditure in using it. Ruby is a full featured modern programming language which lets Watir support all the web applications no matter by what technology it has been developed. Watir provides support to a number of browsers on different platforms. Though the tool is quite powerful it is extremely simple and easy to use. For using Watir it is recommended that you install the IE developer tool bar. 


Facebook activity