-
Functional Test
-
Minor
-
Moodle 4.1
Docs
The relevant documentation for this feature can be found at Publish as LTI tool
Prerequisites
Two sites are required for testing this feature and they must be able to communicate with one another.
- LTI platform (formerly known as consumer)
- LTI tool (formerly known as provider).
Important: If you're testing locally, you'll need to disable the 'Blocked hosts' setting in BOTH sites. You can find it in Site administration ► Security ► HTTP security. You'll need to clear the values and save.
Registration and publication
- Following the docs linked above, specifically the section on Enabling the 'Publish as LTI tool' feature, enable the relevant plugins in the tool site.
- Following the docs linked above, specifically the section on Dynamic registration, create the tool-platform registration
- In the platform site, edit the preconfigured tool settings for the tool you just created
- Set "Tool configuration usage" to "Show in activity chooser and as a preconfigured tool"
- Change the name of the tool to "QA test tool"
- Save the tool configuration
- In the tool site, create a course with a single assignment and enrol a teacher t1
- Log in to the tool site as a teacher t1
Following the docs linked above, specifically the section on Sharing access to a course or activity, publish an assignment over LTI Advantage. When publishing, use the form defaults. - Log out of BOTH the tool and platform sites
Account provisioning modes
- Log in to the platform as the admin user
- Create a new course
- Enrol two teachers: t1 and t2
- Enrol two students: s1 and s2
- Log out
- Log in to the platform site as the teacher t1
- Go to the course and turn editing on
- Click to add an activity or resource
- Select "QA test tool"
- Click "Select content"
- When prompted, sign in to the tool site in another tab in the same browser session, and then repeat the "Select content" process (i.e. close the modal and launch it again)
- Now, when you see your teacher account in the modal, click to link the account
- When presented with the published resources list, select the "Add to course" checkbox for the assignment you published in the tool earlier.
- Click "Add content"
- Save the activity and return to the course home
- Launch the activity you just created
- Verify you're taken directly into the assignment
- Now log out of BOTH the tool and platform sites (note:you may need to visit TOOLSITE/login/index.php on the tool site to trigger a logout if running in embedded mode, since the site will be shown without navigation)
- Log in to the platform as teacher t2
- Go to the course
- Launch the assignment activity
- Verify you're presented with 2 options: Create a new account, or Link an existing account
- Log out of the platform
- Log in to the platform as the student s1
- Go to the course
- Launch the assignment activity
- Verify you're taken directly to the assignment without being prompted about account creation or linking
- Log out
- Log in to the tool site as the teacher t1
- Go to the course where the activity has been published
- Go to "Published as LTI tool" via the course navigation
- Edit the settings of the published assignment enrolment instance
- Change "Teacher first launch provisioning mode" to "Existing accounts only (prompt)"
- Change "Student first launch provisioning mode" to "Existing and new accounts (prompt)"
- Click "Save changes"
- Log out of the tool site
- Log in to the platform site as teacher t2
- Go to the course
- Launch the assignment activity
- Verify you now see only 1 option: Link an existing account
- Log out
- Log in to the platform site as the student s2
- Go to the course
- Launch the assignment activity
- Verify you're presented with 2 options: Create a new account, or Link an existing account
- is a QA test written for
-
MDL-69542 LTI: Update tool provider feature to support 1.3
- Closed