Fire Watir Script Generator Barcamp

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + angrez angrez 8 months ago
    Thanks for the suggestion, I appreciate that. Will take care next time.
  • + guest1bab28 guest1bab28 2 years ago
    for a presentation in English, it would be very easy and cheap to find an english speaker to copy edit this. the broken english grammar sounds broken in an Indian way to me. there are lots of English speakers who would revise the wording for free, if you were only to ask them.
Post a comment
Embed Video
Edit your comment Cancel

Favorites, Groups & Events

Fire Watir Script Generator Barcamp - Presentation Transcript

  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
  9. Example
  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

+ angrezangrez, 3 years ago

custom

3325 views, 0 favs, 2 embeds more stats

Firewatir script generator allows user to generate more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 3325
    • 3307 on SlideShare
    • 18 from embeds
  • Comments 2
  • Favorites 0
  • Downloads 82
Most viewed embeds
  • 17 views on http://www.freewebs.com
  • 1 views on http://10.1.0.4

more

All embeds
  • 17 views on http://www.freewebs.com
  • 1 views on http://10.1.0.4

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories