-
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
You will need all three surveys that you have assigned data groups to to have data points with data.
- Go to the Data tab and Monitoring subtab
- Open the survey that has an approval group assigned to it, but NO responsible users and click to find data
- Data points are shown in the list. In the new column Approval status all points have the 1st step and status 'pending'
- No user (your current user, all your test users) can change the points approval status
(You are logged in user was assigned to step 2)
- In Monitoring subtab of the Data tab select your survey that has an ordered approval group and responsible users per steps assigned to it
- The data points are shown on the list of points and for the Approval status they all have 1st step - pending
- Open a data point, you cannot make any changes - you do not see the dropdown, comment box or submit for the 1st or any steps, not even step 2 that you are responsible for.
- Log out of the dashboard and log in with the test user account who is responsible for step 1
- Select the survey in the Monitoring tab again.
- Open a data point, you should now be able to change the point status for step 1
- For the 1st data point make the status approved and add a comment > the status change, timestamp and user name are logged down. The 2nd step is now in status 'pending' but there is no submit not comment box for you open to change it.
- For the 2nd data point change the status to 'pending'. Change is logged down, and the 1st step is still open while the 2nd step is still closed for editing
- For the 3rd data point change the status to 'rejected'. Change is logged down and the 1st step is still open while the 2nd step remains closed
- Log out of the dashboard and log in with the test user who is responsible for the 2nd step of the approval group.
- Select the survey in the monitored tab and you should see the changed statuses for the 3 data points.
- Open the point where the status is now in the 2nd step - pending. You cannot make any changes to the 1st step but only to the 2nd step. Approve the 2nd step. Now the status is in the 3rd step - pending, but you cannot edit it.
- Open the point where the status is in the 1st step - pending. You cannot make changes to the step.
- Open the point where the status is in the 1st step - rejected. You cannot make changes to the step.
- In the Monitoring subtab of the Data tab, select the survey where you have an unordered approval group with no users assigned to it.
- Data points are shown in the list and the approval status is the default status (1st step in the approval group).
- Open the 1st data points approval status > you see a dropdown with all steps for this approval group, a comment box and a submit button.
- Select one step from the dropdown, write a comment and hit submit. The status is now logged down with the step name, time stamp, your name and comment you added.
- Repeat 4. twice. You should be able with all attempts to choose from all steps in the list regardless if they were selected before or not and each submission is logged down with the latests on the top of the list.
- Change the status of 2 more data points. Make sure each of the three points has a different status in the end.
- In the Monitoring subtab of the Data tab, select the survey where you have an unordered approval group with users per steps assigned to it.
- Data points are shown in the list and the approval status is the default status (1st step in the approval group).
- Open the 1st data points approval status > you see a dropdown with only the steps you are responsible for, a comment box and a submit button.
- Select is from the dropdown, write a comment and hit submit. The status is now logged down with the step name, time stamp, your name and comment you added.
- Repeat once more. You can only, with all attempts, choose from the steps you are responsible for in the list regardless if they were selected before or not and each submission is logged down with the latests on the top of the list.
- Change the status of 2 more data points.
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