
DemoStudent block
- Moodle 1.9–5.1
- 更新 2019-10-26
The DemoStudent block gives instructors a way to enroll a “demostudent” in their course, then switch back and forth between their instructor view and the student view.
Students have a different view of your course than instructors do. This block provides a way to test the student experience beyond the existing Switch role to… link in the Settings block. Instructors in a course can use the DemoStudent block to create a personal “demostudent” account, and then switch between the demostudent user and their instructor role. The demostudent user can complete assignments and quizzes with persistent data to verify grading, and can be used to test restricted access using groups or groupings.
To test email features, the DemoStudent account clones the email address of the user who creates it. For this reason, if your site has TAs/Instructors who are also students in other courses, note that grade imports which match on email will break if any of the graded students have created DemoStudent accounts. The workaround is to match on another field during the grade import, or update the profile of the DemoStudent account to use a different email address.