![Page 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/1.jpg)
Open Source Web Open Source Web TestingTesting
Open Source Web Open Source Web TestingTesting
FreeFreeYou have the sourceYou have the source
Many people solving common problemsMany people solving common problems
by Len Vaz – Moreover Technologies
![Page 2: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/2.jpg)
FrameworksWatir (Ruby)Selenium (Java)Watij (Java)HtmlUnit (Java)HttpUnit (Java)WET (C#)
![Page 3: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/3.jpg)
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, VMWareLook at existing test cases for other
features
![Page 4: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/4.jpg)
Stuff to help - 1A good IDE
http://www.eclipse.org/downloads/ http://www.aptana.com/
IE Developer toolbar http://www.microsoft.com/downloads/details.aspx?
familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
Firebug https://addons.mozilla.org/en-US/firefox/addon/1843
![Page 5: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/5.jpg)
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"
![Page 6: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/6.jpg)
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??? http://wiki.openqa.org/display/WTR/Frames
Use Ruby’s unit/test framework http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html
![Page 7: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/7.jpg)
DocumentationWatir
http://wtr.rubyforge.org/rdoc/ (Watir API) http://www.ruby-doc.org/core/ (Ruby) http://www.ruby-doc.org/stdlib/ (Ruby) http://groups.google.com/group/watir-general (User group) http://rubyforge.org/mailman/listinfo/wtr-development (dev) http://wiki.openqa.org/display/WTR/Project+Home
Selenium http://seleniumhq.org/documentation/ LinkedIn (user group) http://clearspace.openqa.org/community/selenium (forum) http://www.jroller.com/selenium/
![Page 8: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/8.jpg)
Selenium – Platform, Browser and Languages supported
PlatformsWindows, OS X, Linux, Solaris
BrowsersFirefox 2, 3; IE 7; Safari 2, 3; Opera 8, 9,
ChromeLanguages
C#, Java, Perl, Python, PHP, Ruby
![Page 9: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/9.jpg)
Watir – Platform, Browser and Languages supported
PlatformsWindows, OS X, Linux
BrowsersFirefox 2, 3; IE 7; Safari 2, 3; Chrome
LanguageRuby
![Page 10: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/10.jpg)
Watir / Selenium Installation
Watir (http://wtr.rubyforge.org/install.html)Install Ruby (http://rubyforge.org/frs/?group_id=167)Install Watir (gem install watir)Install jssh (http://wiki.openqa.org/download/attachments/13893658/jssh-20080708-WINNT.xpi)
Selenium gem install selenium; gem install selenium-client (Ruby)Install Java (
http://www.java.com/en/download/manual.jsp)Install Selenium (http://seleniumhq.org/download/)
Remote control & Selenium IDE
![Page 11: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/11.jpg)
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
![Page 12: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/12.jpg)
Selenium example require ‘selenium/client’ @browser = Selenium::Client::Driver.new("localhost", 4444,
"*iexplore", "http://www.google.com", 10000); iexplore, konqueror, firefox, mock, chrome, iehta,
piiexplore, pifirefox, safari, opera, custom) @browser.start_new_browser_session @browser.open “/” @browser.type “q”, “automation” @browser.click “btnG”, :wait_for => :page puts @browser.title @browser.close_current_browser_session
![Page 13: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/13.jpg)
Selenium componentsSelenium IDESelenium CoreSelenium Remote ControlSelenium Grid
![Page 14: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/14.jpg)
![Page 15: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/15.jpg)
Selenium server
![Page 16: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/16.jpg)
IRB
![Page 17: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/17.jpg)
TestUnit in Eclipse
![Page 18: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/18.jpg)
Selenium IDE-1
![Page 19: 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](https://reader030.vdocuments.site/reader030/viewer/2022032517/56649c995503460f949566e7/html5/thumbnails/19.jpg)
Selenium IDE-2