SlideShare a Scribd company logo
Firewatir Script Generator Angrez Singh Proteans Software Solutions Pvt. Ltd
Motivation Web Applications are increasingly ubiquitous as a functionality delivery paradigm. Testing  Web Applications is important Most testers not used to writing the code. Need not learn new language for every tool
What is FireWatir? Testing Web Application using Ruby and Firefox browser Framework / Library for scripting Web application testing cases Functional testing tool for automated browser-based tests
Example Yahoo Mail require 'firewatir' include FireWatir ff=Firefox.new ff.goto("http://mail.yahoo.com") ff.text_field(:name,"login").set([username]) ff.text_field(:name,"passwd").set([password]) ff.button(:value,"Sign In").click ff.link(:text, "Sign Out").click ff.close
Conceptual Framework Class for Firefox Classes for each element (e.g. image, link, checkbox etc) Selection mechanism for elements (e.g. index, id, name, value etc)
How FireWatir interacts? Uses JSSh extension Runs at port 9997 and listens for commands Firewatir sends JavaScript commands via socket Read back the results
Advantages In built XML and XPath support More compliant to standards Can support Linux, Mac platform Made to run on any client machine
Firewatir Recorder Came as result of Google Summer of Code Records user action while user is interacting with the application User TestGen4Web XPI for capturing user actions Convert user actions to XML Convert XML to ruby file for playback using tg4rb gem
Example
Requirements Ruby 1.8.2 and above Firefox 1.5 and above (not tested with Firefox 3.0a) TestGen4Web XPI Tg4rb gem Firewatir 1.1 gem
How to install? Install firewatir 1.1 gem Install TestGen4Web XPI Apply patch to TestGen4Web  (TG4W) Install tg4rb 0.0.2 gem Start recording actions to XML using TG4W Convert XML to Ruby script using tg4rb
TO DO’s Adding support for recording Javascript pop up Adding support for recording windows pop up Still first release so all comments/issues are welcomed
References Firewatir ( http://code.google.com/p/firewatir ) tg4rb  ( http://code.google.com/p/tg4rb ) TestGen4Web ( http://developer.spikesource.com/wiki/index.php/Projects:TestGen4Web )
Q & A

More Related Content

PPTX
Robot framework Gowthami Goli
PPTX
Introduction to robot framework
DOC
Implementing checkpoint in qtp
PPTX
How to NLProc from .NET
PDF
TestWorks Conf Robot framework - the unsung hero of test automation - Michael...
PPTX
Integration Group - Robot Framework
PPTX
Let's play with ASP.NET 5 (vNext) RC1
PDF
UPC Plone Testing Talk
Robot framework Gowthami Goli
Introduction to robot framework
Implementing checkpoint in qtp
How to NLProc from .NET
TestWorks Conf Robot framework - the unsung hero of test automation - Michael...
Integration Group - Robot Framework
Let's play with ASP.NET 5 (vNext) RC1
UPC Plone Testing Talk

What's hot (20)

PPTX
Robot framework
PPTX
Auto integration testing
PDF
Introduction to Robot Framework
ODP
Smolder Introduction
PDF
Robot framework - Lord of the Rings
PPTX
Scripting robot
PDF
TDD for joomla extensions
PDF
Acceptance testing plone sites and add ons with robot framework and selenium
ODP
Testing Toolbox
PDF
Network Protocol Testing Using Robot Framework
PDF
Code Quality Control in a PHP project. GeekTalks, Cherkassy 2020
PDF
Introduction to Robot Framework (external)
PDF
Robot Framework :: Demo login application
PPT
Intro Of Selenium
PPTX
Software development terminology
PPTX
Python in Test automation
PPTX
Robotframework
PDF
Performance profiling and testing of symfony application 2
PDF
JavaCro'14 - Test Automation using RobotFramework Libraries – Stojan Peshov
PDF
ATDD Using Robot Framework
Robot framework
Auto integration testing
Introduction to Robot Framework
Smolder Introduction
Robot framework - Lord of the Rings
Scripting robot
TDD for joomla extensions
Acceptance testing plone sites and add ons with robot framework and selenium
Testing Toolbox
Network Protocol Testing Using Robot Framework
Code Quality Control in a PHP project. GeekTalks, Cherkassy 2020
Introduction to Robot Framework (external)
Robot Framework :: Demo login application
Intro Of Selenium
Software development terminology
Python in Test automation
Robotframework
Performance profiling and testing of symfony application 2
JavaCro'14 - Test Automation using RobotFramework Libraries – Stojan Peshov
ATDD Using Robot Framework
Ad

Similar to Fire Watir Script Generator Barcamp (20)

PPT
FireWatir - Web Application Testing Using Ruby and Firefox
PPT
Automated Testing With Watir
PPT
Watir Presentation Sumanth Krishna. A
PDF
Culerity and Headless Full Stack Integration Testing
PDF
Sinatra and JSONQuery Web Service
TXT
Gemlist
PDF
hp HP 2000 annual report
PDF
hp 2004 10-K only
PDF
hp 2002 annual report (text only)
PPT
Test Automation using Ruby, Watir, Rspec and AutoIT for GAMESCALE products te...
PPT
Keyword Driven Framework using WATIR
TXT
Gemlist
TXT
Gemlist
TXT
Gemlist
TXT
Gemlist
TXT
Gemlist this text should come
TXT
Gemlist
TXT
Gemlist
TXT
Gemlist
TXT
Gemlist
FireWatir - Web Application Testing Using Ruby and Firefox
Automated Testing With Watir
Watir Presentation Sumanth Krishna. A
Culerity and Headless Full Stack Integration Testing
Sinatra and JSONQuery Web Service
Gemlist
hp HP 2000 annual report
hp 2004 10-K only
hp 2002 annual report (text only)
Test Automation using Ruby, Watir, Rspec and AutoIT for GAMESCALE products te...
Keyword Driven Framework using WATIR
Gemlist
Gemlist
Gemlist
Gemlist
Gemlist this text should come
Gemlist
Gemlist
Gemlist
Gemlist
Ad

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
Understanding_Digital_Forensics_Presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
NewMind AI Monthly Chronicles - July 2025
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
20250228 LYD VKU AI Blended-Learning.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The AUB Centre for AI in Media Proposal.docx

Fire Watir Script Generator Barcamp

  • 1. Firewatir Script Generator Angrez Singh Proteans Software Solutions Pvt. Ltd
  • 2. Motivation Web Applications are increasingly ubiquitous as a functionality delivery paradigm. Testing Web Applications is important Most testers not used to writing the code. Need not learn new language for every tool
  • 3. What is FireWatir? Testing Web Application using Ruby and Firefox browser Framework / Library for scripting Web application testing cases Functional testing tool for automated browser-based tests
  • 4. Example Yahoo Mail require 'firewatir' include FireWatir ff=Firefox.new ff.goto("http://mail.yahoo.com") ff.text_field(:name,"login").set([username]) ff.text_field(:name,"passwd").set([password]) ff.button(:value,"Sign In").click ff.link(:text, "Sign Out").click ff.close
  • 5. Conceptual Framework Class for Firefox Classes for each element (e.g. image, link, checkbox etc) Selection mechanism for elements (e.g. index, id, name, value etc)
  • 6. How FireWatir interacts? Uses JSSh extension Runs at port 9997 and listens for commands Firewatir sends JavaScript commands via socket Read back the results
  • 7. Advantages In built XML and XPath support More compliant to standards Can support Linux, Mac platform Made to run on any client machine
  • 8. Firewatir Recorder Came as result of Google Summer of Code Records user action while user is interacting with the application User TestGen4Web XPI for capturing user actions Convert user actions to XML Convert XML to ruby file for playback using tg4rb gem
  • 10. Requirements Ruby 1.8.2 and above Firefox 1.5 and above (not tested with Firefox 3.0a) TestGen4Web XPI Tg4rb gem Firewatir 1.1 gem
  • 11. How to install? Install firewatir 1.1 gem Install TestGen4Web XPI Apply patch to TestGen4Web (TG4W) Install tg4rb 0.0.2 gem Start recording actions to XML using TG4W Convert XML to Ruby script using tg4rb
  • 12. TO DO’s Adding support for recording Javascript pop up Adding support for recording windows pop up Still first release so all comments/issues are welcomed
  • 13. References Firewatir ( http://code.google.com/p/firewatir ) tg4rb ( http://code.google.com/p/tg4rb ) TestGen4Web ( http://developer.spikesource.com/wiki/index.php/Projects:TestGen4Web )
  • 14. Q & A