Testscripts
From Amahi Wiki
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>