Testscripts

From Amahi Wiki
Revision as of 01:46, 7 July 2010 by Cpg (talk | contribs)
Jump to: navigation, search

Testscripts look like:

 app << { ... test ... }

There are three types of tests:

  • checking a page test
  • submitting a form
  • clicking on a link

Checking a page

   :page => ['Title', 'some string']

Submitting a Form

   :form => [['field-name', 'keystrokes'], ... , 'form-name']

Clicking on a Link

   :click => 'Sign out'

The testing engine will look for a <a ...>Sign out</a>