-
Functional Test
-
Minor
-
Moodle 3.10
-
None
Test environment:
- Log in as admin
- Create a new topics course with start date the 1st of last month and end date in 5 or 10 minutes (basically the time you need to follow this step below)
- Assign multiple users as student to the course, log in as one of the students and generate 10 logs or more (e.g. access the course page, access the forum, check participants...) in that course
- Assign a user as a teacher to the course
- Log in as the teacher user go to "User menu > Preferences > Notification preferences". Enable web notifications for "Insights generated by prediction models" notifications
- Log back as an admin
- Go to "Site admin > Analytics > Analytics settings" and disable "Analytics processes execution via command line only" setting
Test:
- Log in as a manager and go to 'Analytics models' in the Site administration.
- For 'Students who have not accessed the course yet' select 'Edit' in the Actions column, tick 'Enabled' and select 'One week after start' as 'Analysis interval'. Save changes.
- For 'Students who have not accessed the course yet' select 'Execute scheduled analysis' in the Actions column.
- Scroll down the page listing info and click the continue button.
- For Students who have not accessed the course yet' choose the course you created before from the Insights column drop-down.
- Log in as a teacher you enrolled in the course.
- Verify that you have a notification about the new insight.
- View the notification and click the link.
- Verify that the link takes you to the insights page.
- Mark one of the predictions as 'Not applicable' by selecting it in the Actions drop-down menu.
- Verify that the prediction marked as 'Not applicable' is no longer listed.
- Go to the course main page and select More... from the gears menu.
- Click the Insights link under Reports and verify that you are again taken to the insights page.