| 48 | | == Advanced == |
| | 49 | === Create a Generic Test Function for Search Tests === |
| | 50 | Currently the Sahana test framework has a {{{create}}} function in {{{eden/modules/tests/web2unittests.py}}} which makes it simple to write tests for creating records. A similar function could be written for the Search Function: This would do the following: |
| | 51 | * Fill the search criteria in the simple and advanced form |
| | 52 | * Search |
| | 53 | * Check the number of records |
| | 54 | * Sort the results by a specific column |
| | 55 | * Check the first 3 results in a specific column |
| | 56 | Test this function in at least one test script. |
| | 57 | |
| | 58 | === Create a Generic Test Function for Report Tests === |
| | 59 | Currently the Sahana test framework has a {{{create}}} function in {{{eden/modules/tests/web2unittests.py}}} which makes it simple to write tests for creating records. A similar function could be written for the Report Function: This would do the following: |
| | 60 | * Fill the search criteria in the simple and advanced form for the report (ideally this would re-use features from the Search function) |
| | 61 | * Fill the report options |
| | 62 | * Generate Report |
| | 63 | * Check the number of rows & columns |
| | 64 | * Check the contents of specific columns |
| | 65 | Test this function in at least one test script. |