In case you need to hover over an element:
When /^I hover over "(.*?)"$/ do |css|
We recently started using Varnish and up until now manual testing has been sufficient. Recently we decided to start using multiple caching strategies based on user agent. Since our caching strategy was getting more complex I took the time to write some automated tests.
Since this needs to be a web test and since Selenium does not give access the head, I had to look for a different method. I went decided to use the 'net/http' gem to generate... When testing Omniture it's a good idea to do manual testing with a tool like Fiddler in order to check that the correct values are getting passed into image requests. However, it's also a good idea to have some automated tests to make sure the correct variables and getting populated with the correct values. Using evaluate_script makes automation extremely easy. ... EDITED 2/21 I recently found out that MIT has some course material online for free. This includes lectures, projects and exams ( depending on the class ). I decided to take a look... If you're using SQLite for your database and you've come across this error while running the migrations in part 5 of the blog tutorial then you might have seen this error SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL. Apparently SQLite doesn't agree with adding new columns that cannot be null. So here is an updated migration that should help. class AddUserIdToPosts < ActiveRecord::Migration
Read full the full article
Automating Omniture tests with Capybara and Cucumber
By Robert Huberdeau. Published on September 26, 2012
Here is a sample feature:
Given I visit my site
Then I should see "foo" in "s.prop1"
Read full the full article
Python script to find the first 1000 prime numbers
By Robert Huberdeau. Published on November 22, 2011
I received an email from Warrick Holfeld that pointed out a few errors in my script. I was including 1 as a prime number, which is incorrect. I was missing the number 2, as I skipped it, and I was only getting the first 999 prime numbers. Warrick's updated code is below.
Read full the full article
Rails SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL
By Robert Huberdeau. Published on November 18, 2011
def self.up
 ...
Read full the full article