Presentation is loading. Please wait.

Presentation is loading. Please wait.

Open Source Web Testing Free Free You have the source You have the source Many people solving common problems Many people solving common problems by Len.

Similar presentations


Presentation on theme: "Open Source Web Testing Free Free You have the source You have the source Many people solving common problems Many people solving common problems by Len."— Presentation transcript:

1 Open Source Web Testing Free Free You have the source You have the source Many people solving common problems Many people solving common problems by Len Vaz – Moreover Technologies

2 Frameworks Watir (Ruby) Selenium (Java) Watij (Java) HtmlUnit (Java) HttpUnit (Java) WET (C#)

3 What to look for? Documentation Active user groups Browsers supported Operating systems supported Ease of use Does it support what you are testing?  Logging, DB support, Reporting, VMWare  Look at existing test cases for other features

4 Stuff to help - 1 A good IDE   IE Developer toolbar  yid=e59c d-4511-bb3e- 2d5e1db91038&displaylang=en yid=e59c d-4511-bb3e- 2d5e1db91038&displaylang=en Firebug  https://addons.mozilla.org/en-US/firefox/addon/1843 https://addons.mozilla.org/en-US/firefox/addon/1843

5 Stuff to help - 2 IRB – Interactive Ruby shell  Tab completion (.irbrc)  require ‘irb/completion’  Persistent command history (.irbrc)  require ‘irb/ext/save-history’  ARGV.concat [ "--readline", "--prompt-mode", "simple" ]  IRB.conf[:SAVE_HISTORY] = 100  IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"

6 Stuff to help - 3 Turn off pop-up blockers Have browser windows open to new windows If you need UTF-8 support, add:  require 'win32ole'  WIN32OLE.codepage = WIN32OLE::CP_UTF8  Make sure your data is utf8 encoded when saved Problem dealing with frames – selenium???  Use Ruby’s unit/test framework 

7 Documentation Watir  (Watir API)  (Ruby)  (Ruby)  (User group)  (dev)  Selenium   LinkedIn (user group)  (forum) 

8 Selenium – Platform, Browser and Languages supported Platforms  Windows, OS X, Linux, Solaris Browsers  Firefox 2, 3; IE 7; Safari 2, 3; Opera 8, 9, Chrome Languages  C#, Java, Perl, Python, PHP, Ruby

9 Watir – Platform, Browser and Languages supported Platforms  Windows, OS X, Linux Browsers  Firefox 2, 3; IE 7; Safari 2, 3; Chrome Language  Ruby

10 Watir / Selenium Installation Watir ( )  Install Ruby ( )  Install Watir ( gem install watir )  Install jssh ( WINNT.xpi ) WINNT.xpi Selenium  gem install selenium; gem install selenium-client (Ruby)  Install Java ( )  Install Selenium ( )  Remote control & Selenium IDE

11 Watir example require ‘watir’ Watir.options[:browser]='firefox‘  ie, firefox, safari, chrome browser = Watir::Browser.new browser.goto ‘http://www.google.com’ browser.text_field(:id, 'q').set 'automation‘ browser.button(:name, 'btnG').click puts browser.title browser.close

12 Selenium example require = Selenium::Client::Driver.new("localhost", 4444, "*iexplore", "http://www.google.com", 10000);  iexplore, konqueror, firefox, mock, chrome, iehta, piiexplore, pifirefox, safari, “q”, “btnG”, :wait_for =>

13 Selenium components Selenium IDE Selenium Core Selenium Remote Control Selenium Grid

14

15 Selenium server

16 IRB

17 TestUnit in Eclipse

18 Selenium IDE-1

19 Selenium IDE-2


Download ppt "Open Source Web Testing Free Free You have the source You have the source Many people solving common problems Many people solving common problems by Len."

Similar presentations


Ads by Google