wiki:Contribute/QA

Version 18 (modified by Pat Tressel, 9 years ago) ( diff )

--

Contribute: QA

Easy

Report 2 Bugs in Sahana Eden

Explore either the The Sahana Eden Demo Site or a local instance of Sahana Eden as see if you can find any bugs. Report them following http://eden.sahanafoundation.org/wiki/BugReportingGuidelines

Report 2 Bugs in Sahana Eden for Hurricane Sandy Response

Test the http://sandyrelieftest.sahanafoundation.org/ (you will need to register and wait for approval). Review Deployments/Sandy/Occupy for a better understanding of what this site is used for. Report them following http://eden.sahanafoundation.org/wiki/BugReportingGuidelines.

Report 2 Bugs in Sahana Eden for Red Cross

Test your local instance of Sahana Eden with the IFRC (International Federation of Red Cross and Red Crescent Societies) deployment setting & . In models/000_config.py set:

settings.base.template = "IFRC"
...
# Over-rides to the Template may be done here
settings.base.prepopulate = ["IFRC_Train"]

Do this before first running Sahana Eden - or delete the contents of your databases/, cache/, and sessions/ folders to force Sahana Eden to prepopulate again. There will be an administrator account generated automatically: admin@example.com password: testing. Report them following http://eden.sahanafoundation.org/wiki/BugReportingGuidelines.

Review Open Tickets in Sahana Eden's Bug Tracker

  1. Select a ticket from the list of [report/1 Active Tickets] that hasn't been reviewed already during GCI.
  2. Review that the the bug that it describes still occurs, or that the feature that it describes has not been implemented and is still relevant.
  3. Update the ticket:
    1. If the description is unclear, add a better description.
    2. If there are several issues in the ticket, say which ones are still broken.
    3. Get screenshots if they're useful.
    4. Add anything else you think would be helpful.
    5. Add "Reviewed for GCI" so people know this one is done.

Write Manual Test Cases for a Sahana Eden Module

Write up the steps to perform the user tasks in the module, automate the tests using Selenium IDE, provide test data where useful. Document the User's workflows as test cases in the Sahana Eden Tests spreadsheet (Test Scripts sheet). Include any test data you use. You should test as much of the functionality as possible.

Intermediate

Create An Automated Tests for a Test Scripts from the Sahana Eden Tests Spreadsheet

Find 2 test cases in the Sahana Eden Tests spreadsheet (Test Scripts sheet) which have not been automated and create automated tests for them. Also check in the eden/modules/tests/<module>/ folder to see if there are any automated tests created. Follow the instructions on DeveloperGuidelines/Testing. Update the spreadsheet with the status, your initials or name and date.

Complete an Automated Tests for a Sahana Eden Module

The following Tests have been started, but have not yet been completed. The have been write, but the syntax used in these tests is not corrected and needs to be fixed. You will need to used selenium commands to select elements to run the tests instead of the create function in eden/modules/tests/web2unittests.py. Follow the instructions on DeveloperGuidelines/Testing to complete these tests, ensure that they run correctly and add them to the suite.

  • Asset:
    • eden/modules/tests/asset/asset_report.py
    • eden/modules/tests/asset/asset_search.py
  • Members:
    • eden/modules/tests/member/member_search.py
  • Project:
    • eden/modules/tests/project/project_report.py
    • eden/modules/tests/project/project_search.py
  • Staff:
    • eden/modules/tests/staff/staff_import.py
    • eden/modules/tests/staff/staff_report.py
    • eden/modules/tests/staff/staff_search.py
  • Volunteer:
    • eden/modules/tests/volunteer/vol_search.py
  • Inventory:
    • eden/modules/tests/inv/warehouse_search.py
    • eden/modules/tests/inv/wh_stock_report.py

Advanced

Create a Generic Test Function for Search Tests

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:

  • Fill the search criteria in the simple and advanced form
  • Search
  • Check the number of records
  • Sort the results by a specific column
  • Check the first 3 results in a specific column

Test this function in at least one test script.

Create a Generic Test Function for Report Tests

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:

  • Fill the search criteria in the simple and advanced form for the report (ideally this would re-use features from the Search function)
  • Fill the report options
  • Generate Report
  • Check the number of rows & columns
  • Check the contents of specific columns

Test this function in at least one test script.


Contribute

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.