Details
-
Functional Test
-
Status: Passed
-
Minor
-
Moodle 3.2
-
None
Description
Prerequisites
- Download and install ngrok and run it with ngrok http 80 or have a public accessible site.
Test
- As admin: (Test in all browsers, except the last two steps)
- Go to "Site administration > Plugins > Activity modules > LTI > Manage tools"
- Add a tool using only the launch url (old interface) by clicking on 'configure a tool manually.'
- Add a tool using an xml cartridge (e.g. from eduappcenter.com - you need to visit this site to get the URL you need, eg. https://www.edu-apps.org/lti_public_resources/config.xml?id=youtube)
- Add a tool using the configuration url (LTI2)
- Remove a tool using the x button on the card
- Enter a url that does not exist, make sure you recieve a message that it is having trouble loading after 20 seconds
- Enter a url to an xml file that is not a cartridge, make sure you get an error ( http://www.w3schools.com/xml/note.xml )
- Edit a tool that was made via a cartridge url using the cog button on the card
- Edit a tool that was made via the configuration url using the cog button on the card
- As a teacher (Test the first 3 steps in all browsers).
- Add an external tool to a course
- Set the launch URL/cartridge URL to a cartridge (e.g. from eduappcenter.com)
- Ensure you get the green tick and it says a cartridge will be used
- Click save changes
- Make sure the external tool is now set up using the settings from the cartridge
- Add another external tool to a course
- Set the Launch URL to the url used by one of the tools you added as an admin
- Ensure you get a green tick
- Save changes
- Ensure the settings you configured as an admin are used
- Add another external tool to a course
- Set a url to any site you didn't add as an admin. Ensure you get a yellow warning saying that no configuration was found.
- Save changes
- Add another external tool to a course
- On the settings page, click the plus to add a tool type.
- In the popup, put a cartridge url into the "tool base url/cartridge url" text box
- Press save changes on that popup
- Press save and display
- Make sure the tool works, and correct tool is displayed