-
Notifications
You must be signed in to change notification settings - Fork 31
Flow Basic regression testing Data approval
Jana Gombitova edited this page Jan 16, 2017
·
10 revisions
Currently we have two data approval types in place, ordered and unordered. Only the ordered one is fully supported and thus when testing only focus on the ordered one.
- Go to Data tab in dashboard - check new subtab is shown - Data approval
- Click on Data approval subtab - check that you see a list of existing workflows (or an empty list if none are created yet) with 3 columns (Name, Type, two action links - edit and delete) and that you have the button Add approval group available
- Click on Add approval group and the editing window should open with Name, Approval type, Steps, + Add step, cancel and save
- Add name "cancel test" and hit Cancel > you are brought back to the list of existing approval groups and the Cancel test approval group does NOT exist
- Create a new approval group - Name: release version-ordered; type: ordered with 5 steps and save > you are brought back to the list and the new group is shown in the list in alphabetical order
- Click on edit of the new group and check all settings are still the same, all 5 steps are shown and in the proper order; click cancel that will bring you back to the list
- SKIP NOW: Create a new group - Name: release version-unordered; type: unordered with 3 steps and save. The 1st step you create should indicate that it is the 'default step'
- SKIP NOW: Repeat step 6 for the unordered group
- Create a third new approval group - Name: to delete, type - ordered with 2 steps > save
- Open the "to delete" approval group again, delete the 2nd step and add it a new one with a different name. Save and check all changes are save.
- In the list click on delete for the 'to delete' group > group is deleted and not in the list anymore
- Refresh Flow dashboard and cross check that the deleted group is still deleted, that the ordered and unordered groups have all settings still properly set
To run this test you need to have a few test user accounts in place.
- Open a survey on the dashboard
- Go to Survey basics > Advanced Settings - you should see two unchecked boxes, one for enabling monitoring and one for enabling data approval
- Enable monitoring on the survey if it is not monitored (you should select a survey that has some data already collected)
- Check the Save button is now enabled as well - is blue again and not grey
- Select Enable data approval > a dropdown with the list of existing approval groups show, with the new ones you have created
- Select release version - ordered group and click on Show approval
- All step are shown in proper order, the type is indicated correctly as well
- Click on the user icon for a step
- You receive a list of users to select from (users who have view data permission for this survey)
- Select one or multiple user per step > user is assigned to the step. (Make sure you assign test users you have access to to cross check if assignment logic works when executing the approval)
- Save changes for the survey
- refresh the dashboard, open the survey again and cross check all changes are saved properly
- Open another survey and repeat the above steps, make sure that you can add everything differently for the same approval group but for a different survey
- Open and 3rd survey and repeat steps: Add an ordered approval group. Do not assign users to this approval group
About Akvo Flow
Akvo Flow API
Developer Guides
- Deployments
- Development tools
- Android emulator setup
- Creating New Dashboard Instances
- Disabling Dashboard Instances
- Adding Translations to Dashboards
- Setup your development environment with IntelliJ IDEA
- Setup your development environment on Windows OS
Technical Specification
Regression Tests