[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_lti 2 Feature: Configure tool types 3 In order to allow teachers to add external LTI tools 4 As an admin 5 I need to be able to add, remove and configure tool types 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Terry1 | Teacher1 | teacher1@example.com | 11 | student1 | Sam1 | Student1 | student1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And I log in as "admin" 20 And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool" 21 22 @javascript 23 Scenario: Add a tool type from a cartridge URL 24 When I set the field "url" to local url "/mod/lti/tests/fixtures/ims_cartridge_basic_lti_link.xml" 25 And I press "Add" 26 Then I should see "Enter your consumer key and shared secret" 27 And I press "Save changes" 28 And I should see "Example tool" 29 30 @javascript 31 Scenario: Try to add a non-existant cartridge 32 When I set the field "url" to local url "/mod/lti/tests/fixtures/nonexistant.xml" 33 And I press "Add" 34 Then I should see "Enter your consumer key and shared secret" 35 And I press "Save changes" 36 And I should see "Failed to create new tool. Please check the URL and try again." 37 38 @javascript 39 Scenario: Attempt to add a tool type from a configuration URL, then cancel 40 When I set the field "url" to local url "/mod/lti/tests/fixtures/tool_provider.php" 41 And I press "Add" 42 Then I should see "Cancel" 43 And I press "cancel-external-registration"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |