Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.19 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.19 KB

Test Problem

  1. Open the URL http://www.wetpaint.com/moms/video/virtual-puppy-room-corgi-stampede
  2. Verifies that a GET request was sent to www.google-analytics.com with the following parameters:
  • utme contains: “moms_video”, “Direct”
  • utmac equals: “UA-10597003-4”
  • utmp exists (no specific content checks, only that it is present)
  1. licks the “Daynah Burnett” link leading to the following URL: http://www.wetpaint.com/author/daynah-burnett
  2. Repeating the verification from step 2 with these changes:
  • utme contains: "none_publishable_rollup", "Direct"
  • utme does NOT contain: “moms”
  • utmac equals: “UA-10597003-4”

Implementation

I have solve the above problem in two way. My first method is js file that uses PhantomJs/CasperJs. The second implementation is using Ruby/Cucumber/Capybara/Poltergeist. Since I had some extra time, I thought I would try out Ruby and a Gerkins implementation of the above test.

You will find a README.md in each of the folders exmplaining the example.