• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Full-stack webapp testing with Selenium and Rails

by

  • 38,981 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: ...

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

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

23 Embeds 371

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://pivotallabs.com 27
http://rndwiki.atlanta.hp.com 24
http://bocode.blogspot.com 22
http://bharatvamshi.blogspot.in 6
http://barrs.48outlet.com 6
http://www.williamsarris.com 3
http://blogs.pivotallabs.com 3
http://bharatvamshi.blogsopt.com 2
http://www.howl.or.kr 2
http://www.filescon.com 2
http://admin.howl.or.kr 2
http://www.lonerunners.net 2
http://bocode.blogspot.in 1
http://bocode.blogspot.co.uk 1
http://www.rapidshareeasy.com 1
http://static.slideshare.net 1
http://pivots-demo.pivotallabs.com 1
http://bocode.blogspot.mx 1

More...

Statistics

Likes
22
Downloads
1,055
Comments
1
Embed Views
371
Views on SlideShare
38,610
Total Views
38,981

11 of 1 previous next

  • jeffreylam jeffreylam Very Good 3 months ago
    Are you sure you want to
Post Comment
Edit your comment

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