Changes between Version 35 and Version 36 of Contribute/QA


Ignore:
Timestamp:
12/19/12 11:31:54 (12 years ago)
Author:
graeme
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Contribute/QA

    v35 v36  
    9393
    9494(Implemented: https://github.com/flavour/eden/commit/cec2df2dfeb0ea6779941d9a77fd65c6786e3b96)
     95=== Add a helper function to use DAL to replicate the simple search query ===
     96Construct a DAL query which will return the records that mirror a simple search.
     97This will need to be a generic solution so that the function needs to work for any given model.
     98
     99=== Add a helper function to use DAL to replicate the advance search query ===
     100Construct a DAL query which will return the records that mirror an advanced search.
     101
     102=== Automatically check that the number of records returned from a search is correct ===
     103Use the appropriate helper function, see above, to get the right search query. Use this query to automatically check that the number of records returned are correct.
     104
     105=== Automatically check that the records returned from a search are correct ===
     106Use the appropriate helper function, see above, to get the right search query. Use this query to check that all the record IDs are correct. NOTE this could be just restricted to the records on the first page if more than one page of records are returned.
     107
    95108=== ~~Create a Generic Test Function for Report Tests~~ ===
    96109~~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. Ideally this would re-use features from / share code with the {{{search}}} helper described above -- it would be good to read that description. Because of this dependency, it might be better if this is done after {{{search}}}. Note for GCI: It's ok to claim this task if someone is working on {{{search}}}, and get a start on it. The {{{report}}} helper would do the following:~~