• Email
  • Favorite
  • Download
  • Embed
  • Private Content

Full-stack webapp testing with Selenium and Rails

by Alex Chaffee on Apr 23, 2007

  • 36,102 views

Want to test your entire Web 2.0 app, from AJAX and DHTML through browser-rendered HTML into a live instance of your application and database? Most web testing frameworks have gaps in their coverage: J...

Want to test your entire Web 2.0 app, from AJAX and DHTML through browser-rendered HTML into a live instance of your application and database? Most web testing frameworks have gaps in their coverage: JUnit and Test::Unit miss the client frontend; JSUnit misses the server backend; web testing frameworks miss some or all of the JavaScript. With Selenium we have a framework that can test the whole application, from browser-executed JavaScript, through a live application backend, then back to assertions on browser-rendered DOM code. Selenium RC takes this further: since you write your tests in your application language, your tests can do data setup and assertions based directly on server-side domain objects that may be inaccessible or only partially accessible from the client side. On our teams we have used and developed a series of helper methods and assertions that allow testing of AJAX and DHTML functions as well.

In this tutorial we outline the architecture of Selenium RC and walk through code and examples illustrating how to do full-stack testing against a Ruby on Rails application.

Accessibility

Categories

Tags

ajax pivotal testing rails svrc pivotallabs web20 selenium ruby favorite automation my

More...

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

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

21 Embeds 352

http://www.slideshare.net 84
http://bharatvamshi.blogspot.com 55
http://blog.pivotallabs.com 53
http://www.pivotalblabs.com 42
http://pivots.pivotallabs.com 30
http://bocode.blogspot.com 21
http://pivotallabs.com 18
http://rndwiki.atlanta.hp.com 18
http://barrs.48outlet.com 6
http://bharatvamshi.blogspot.in 5
http://www.williamsarris.com 3
http://blogs.pivotallabs.com 3
http://admin.howl.or.kr 2
http://www.howl.or.kr 2
http://bharatvamshi.blogsopt.com 2
http://www.filescon.com 2
http://www.lonerunners.net 2
http://www.rapidshareeasy.com 1
http://static.slideshare.net 1
http://pivots-demo.pivotallabs.com 1
http://bocode.blogspot.co.uk 1

More...

Statistics

Favorites
23
Downloads
1,023
Comments
0
Embed Views
352
Views on SlideShare
35,750
Total Views
36,102
Post Comment
Edit your comment Cancel

Full-stack webapp testing with Selenium and Rails — Presentation Transcript