QA/Mozmill Test Automation/Test Modules Refactor: Difference between revisions

 
Line 128: Line 128:
** Boolean: "<element> is <state>."
** Boolean: "<element> is <state>."
** Value: "<element> is <state>: got 'value', expected 'value'"
** Value: "<element> is <state>: got 'value', expected 'value'"
** Example: "Password notification is visible"
** Example: "mozilla.org is loaded: got '<loaded_domain>', expected 'mozilla.org'"
* sleep() should be avoided and only used when...
** element is not immediately available
** state is not immediately available
** waitFor() fails to capture event


; Needs Discussion
; Needs Discussion
* sleep() should only be used when an element/state is not available for waitFor()
* TestFilesAPI for loading of test files
* TestFilesAPI for loading of test files
** We should have a module specific to loading of test files  
** We should have a module specific to loading of test files  
Confirmed users
14,525

edits