Kelly Felkins's blog



Kelly FelkinsKelly Felkins
Standup 1/19/2011: How would you google this?
edit Posted by Kelly Felkins on Wednesday January 19, 2011 at 06:26PM

Ask for Help

"Anyone using Selenium 2 and Webdriver?"

One of our internal projects is using it.

"How to stop time in Jasmine?"

There were a couple suggestions:

  • use a global function, such as 'now'
  • send in your own clock object

"Whurl standalone, or more dynos?"

Apparently Whurl is running on a single dyno at Heroku, so a single bad request can tie up Whurl until the request times out. Where are you TildeWill?

"What's this called?"

Imagin these are records in a relational database, with the records on the left having a one to many relationship with the records on the right. How would you google this?

one to many diagram

Kelly FelkinsKelly Felkins
Happy Path Testing With Selenium RC Fu
edit Posted by Kelly Felkins on Tuesday February 05, 2008 at 03:51AM

Selenium RC Fu is a fantastic system for testing Ruby On Rails applications. It is the blending of xUnit testing with Selenium. Selenium is a cool system that operates your browser as if a human were sitting there moving the mouse pressing buttons and keys.

Selenium RC Fu is also a remarkable example of the power of open source. It's selenium remotely controlled by rails and ruby. You can learn more about it by viewing the slides for Full-stack webapp testing with Selenium and Rails presented by my colleagues Alex Chaffee and Brian Takita at the SDForum Silicon Valley Ruby Conference.

Now that you are excited about Selenium RC Fu, by law I must inform you that this wonderful testing tool comes with some costs. First, this is the daisy cutter of testing -- problems will be detected, but it won't be too specific about those problems. A failed selenium test will likely only tell you some expected text was not present on the page -- you have to do some digging to discover the real problem.

It's also slow. To be fair, a lot of software is running to do this testing.

So use selenium testing sparingly. A good strategy is to restrict selenium testing to "happy path" testing. These happy path tests become a compliment to other more focused and faster unit and integration tests.