...
- load an existing data set (or generate a new one as described above)
- record acceptance test operations using Selenium IDE
- if you will validate against a final database state, then dump the final database state (at the end of the operation) and create a new data set using DbUnitDataImportExport as described above
- write the acceptance test java code (such as CollectionSheetEntryTest.defaultAdminUserEntersSingleLoanPayment) which: _ loads an initial database state _ includes transitions to the page objects which map to the pages traversed during the test and any required data entry
- use the acceptance test code (with initially nonexistent methods) to generate (via Eclipse) the empty classes and methods that need to be implemented
- using existing page objects as examples and the Selenium IDE generated code, fill in the page object code needed to make the test functional
- test name should be a combination of words which describes the main purpose of the test
- test should verify that data entered on the create page are displayed properly on the preview page
- while writing the test remember to use appropriate line spacing to make the code easy to read
- it's good practice to add comments in the code which explain what is verified at each step of the test
- add comment to the acceptance test with the number of related test case e.g. 'This test is related to MIFOSTEST-139'
Executable Specification Style (added Jan 2011)
...