angupta edited this page Sep 13, 2010 · 6 revisions
  • Sites contain Pages
  • Sites have Flows that move through Pages
  • Sites can automatically open and close their browser window when given a block

Creating a site is one of the first things you’ll do to start writing some tests. From your Taza project directory:

$ ./script/generate site google

You’ll see some files get created most notably:

  • config/google.yml – Contains information for each of the site’s environments(urls, database names, etc)
  • lib/sites/google.rb – Contains site class to which site specific functionality can be added
  • lib/sites/google/ – The folder that contains the site’s pages and flows
  • spec/isolation/google/ – The folder that contains the Functional Testing specs for the site