Changes between Version 14 and Version 15 of Contribute/QA


Ignore:
Timestamp:
11/29/12 15:25:00 (9 years ago)
Author:
Michael Howden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Contribute/QA

    v14 v15  
    4545 * eden/modules/tests/inv/wh_stock_report.py
    4646
     47== Advanced ==
    4748
    48 == Advanced ==
     49=== Create a Generic Test Function for Search Tests ===
     50Currently 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
     56Test this function in at least one test script.
     57
     58=== Create a Generic Test Function for Report Tests ===
     59Currently 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
     65Test this function in at least one test script.
    4966
    5067----