Show
Setup
Log into your test site as site admin.
Visit each of the following user profile pages, and note down each user's name, as they will be referred to as the respective users later in testing:
User
URL
u1
<wwwroot>/user/profile.php?id=13
u2
<wwwroot>/user/view.php?id=7
Restore the attached course (Forum test course, FT101) into a new course in your test site.
Navigate to the "Forum test course" course, and open the forum called "Parlay".
Open the forum actions menu and click "Summary report".
CONFIRM the report contains 16 users, and the following users' details match (dates shortened here for table readability):
first/surname
Num Discussions
Num replies
Num attachments
Num views
Words
Chars
Earliest post
Most recent post
u1
1
6
5
115
34
186
19 July 3:05pm
10 Sep 2:15pm
u2
0
0
0
2
0
0
-
-
Testing - basic output and link
Remain logged in as site admin, viewing the "Parlay" forum summary report.
CONFIRM there is an 'Export posts' column on the far right of the report table, and CONFIRM clicking on that heading has no effect.
CONFIRM u2, and all other rows of users who have no 'Earliest post' and 'Most recent post' (ie no discussions or replies) do not have an 'Export' button in the 'Export posts' column.
CONFIRM all rows of users who do have an 'Earliest post' and 'Most recent post' date (ie have posted at least once) do have an 'Export' button in the 'Export posts column'.
Click on the 'Export' button in u1's report row.
CONFIRM the Export page loads, with the following values set:
Type
Value
Users
u1
Discussions
All discussions
Posts from
Not enabled
Posts to
Not enabled
Press the Export button at the bottom of the page, and download/open the file.
CONFIRM the export contains 1 new discussion (parent = 0) and 6 replies (parent is not 0).
CONFIRM the final 2 columns of the export are "wordcount" and "charcount".
Testing - Filters applied
Navigate back to the summary report (you can press 'back' in your browser).
Click the 'Dates' filter button.
Enable the 'from' date, and set the value to 9 September 2019.
Enable the 'to' date, and set the value to 10 September 2019.
Press save.
CONFIRM the dates filter button now shows '9 Sep 2019 - 10 Sep 2019'.
Click the 'Groups' filter button.
Select 'Group 1' and press 'save'.
CONFIRM u1 now shows 0 discussions posted and 2 replies posted.
Press the 'Export' button for u1.
CONFIRM the Export page loads, with the following values set:
Type
Value
Users
u1
Discussions
'Who is the best pirate you've ever seen?', 'Blah the third'
Posts from
9 September 2019 00:00 (enabled)
Posts to
10 September 2019 23:59 (enabled)
Press the Export button at the bottom of the page, and download/open the file.
CONFIRM the export contains only 2 rows, neither with parent = 0.
Testing - standalone export still working
Refresh the export page (if your browser asks you about resending data, click 'resend').
Click the cross on u1, so 'Users' becomes 'All users'.
Click Export, and CONFIRM the exported file contains 2 posts.
Refresh the export page (click 'resend' if prompted).
Click the cross on u1 again, also do the same for the 2 discussions, and disable both dates.
Click 'Export' again, and confirm the output contains 4 discussion posts (parent = 0), and 15 replies (parent not 0).