- A course with one teacher and several students
- A forum activity with several discussions containing posts made by each of the students and at least one private reply made by the teacher, such as the Lounge forum on the QA testing site.
- Log in as the teacher and go to the forum.
- In the actions menu, select Export.
- Export all users and all discussions in .csv format.
- Open the file and check that it contains the following headings: id, discussion, parent, userid, created, modified, mailed, subject, message, messageformat, messagetrust, attachment, totalscore, mailnow, deleted, privatereplyto, wordcoun, charcount.
- Check that the file contains all forum posts, including any private replies.
- Check that all users enrolled in the course are listed in the Users setting, and any number of users may be selected.
- Check that all discussion subjects are listed in the Discussions setting, and any number of discussions may be selected.
- Try selecting different combinations of students, discussions and export formats and check that all exported forum posts are as expected.
- has a non-specific relationship to
MDL-66758 provide recordset to download_as_dataformat in export
- is a QA test written for
MDL-66075 Epic: Create forum export functionality