×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Full-stack webapp testing with Selenium and Rails

by Advisor at Pivotal Labs, Inc. on Apr 23, 2007

  • 42,049 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.

Statistics

Views

Total Views
42,049
Views on SlideShare
41,668
Embed Views
381

Actions

Likes
24
Downloads
1,080
Comments
2

23 Embeds 381

http://www.slideshare.net 84
http://bharatvamshi.blogspot.com 56
http://blog.pivotallabs.com 53
http://www.pivotalblabs.com 42
http://pivots.pivotallabs.com 30
http://rndwiki.atlanta.hp.com 30
http://pivotallabs.com 28
http://bocode.blogspot.com 23
http://bharatvamshi.blogspot.in 7
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...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

12 of 2 previous next

  • RitchaAkhouri Ritcha Akhouri Excellent! 10 months ago
    Are you sure you want to
    Your message goes here
    Processing…
  • jeffreylam jeffreylam Very Good 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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