Changes

From Amahi Wiki
Jump to: navigation, search
593 bytes added ,  01:49, 7 July 2010
no edit summary
Testsscripts Testscripts look like:
app << { ... test ... }
:page => ['Title', 'some string']
 
The testing engine will look for
 
<title>Title</title>
 
and
 
some string
 
in the HTML of the current page.
 
= Submitting a Form =
 
:form => [['field-name1', 'keystrokes'], ... , 'form-name']
 
The testing engine will look for
 
<form name="form-name" ...>
<input name="field-name1" .../>
<input name="field-name2" .../>
</form>
 
and then input the keystrokes in the fields, followed by submitting the form.
 
= Clicking on a Link =
 
:click => 'Sign out'
 
The testing engine will look for a <code><nowiki><a ...>Sign out</a></nowiki></code> and click on it.
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
3,789

edits