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 /
grade /
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--
behat_grade.php
15.78
KB
-rwxrwxrwx
behat_grades.php
3.87
KB
-rwxrwxrwx
grade_UI_settings.feature
2.35
KB
-rwxrwxrwx
grade_aggregation.feature
30.71
KB
-rwxrwxrwx
grade_aggregation_changes.feat...
19.65
KB
-rwxrwxrwx
grade_average.feature
2.28
KB
-rwxrwxrwx
grade_calculated_grade_items.f...
10.71
KB
-rwxrwxrwx
grade_calculated_grade_items_2...
10.8
KB
-rwxrwxrwx
grade_calculated_weights.featu...
13.81
KB
-rwxrwxrwx
grade_category_validation.feat...
6.47
KB
-rwxrwxrwx
grade_contribution_with_extra_...
3.98
KB
-rwxrwxrwx
grade_grade_minmax_change.feat...
3.81
KB
-rwxrwxrwx
grade_hidden_items.feature
4.75
KB
-rwxrwxrwx
grade_hidden_items_locked_cate...
4.34
KB
-rwxrwxrwx
grade_item_duplication.feature
2.21
KB
-rwxrwxrwx
grade_item_validation.feature
5.02
KB
-rwxrwxrwx
grade_letter_boundary.feature
1.85
KB
-rwxrwxrwx
grade_letter_boundary_20160518...
1.96
KB
-rwxrwxrwx
grade_letter_logging.feature
1.46
KB
-rwxrwxrwx
grade_mingrade.feature
6.23
KB
-rwxrwxrwx
grade_minmax.feature
11.22
KB
-rwxrwxrwx
grade_natural_exclude_empty.fe...
20.13
KB
-rwxrwxrwx
grade_natural_exclude_empty_20...
21.03
KB
-rwxrwxrwx
grade_natural_normalisation.fe...
14.54
KB
-rwxrwxrwx
grade_natural_normalisation_20...
7.12
KB
-rwxrwxrwx
grade_override_letter.feature
9.56
KB
-rwxrwxrwx
grade_point_maximum.feature
4.7
KB
-rwxrwxrwx
grade_regrade_do_not_override....
3.74
KB
-rwxrwxrwx
grade_scales.feature
10.83
KB
-rwxrwxrwx
grade_scales_aggregation.featu...
6.99
KB
-rwxrwxrwx
grade_scales_logging.feature
959
B
-rwxrwxrwx
grade_single_item_scales.featu...
8.24
KB
-rwxrwxrwx
grade_to_pass.feature
13.24
KB
-rwxrwxrwx
grade_view.feature
5.15
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : grade_aggregation_changes.feature
@core @core_grades Feature: Changing the aggregation of an item affects its weight and extra credit definition In order to switch to another aggregation method As an teacher I need to be able to edit the grade category settings Background: Given the following "courses" exist: | fullname | shortname | | Course 1 | C1 | And the following "grade categories" exist: | fullname | course | aggregation | | Cat mean | C1 | 0 | | Cat median | C1 | 2 | | Cat min | C1 | 4 | | Cat max | C1 | 6 | | Cat mode | C1 | 8 | | Cat weighted | C1 | 10 | | Cat weighted2 | C1 | 10 | | Cat simple | C1 | 11 | | Cat ec | C1 | 12 | | Cat natural | C1 | 13 | And the following "grade items" exist: | itemname | course | category | aggregationcoef | aggregationcoef2 | weightoverride | | Item a1 | C1 | ? | 0 | 0 | 0 | | Item a2 | C1 | ? | 0 | 0.40 | 1 | | Item a3 | C1 | ? | 1 | 0.10 | 1 | | Item a4 | C1 | ? | 1 | 0 | 0 | | Item b1 | C1 | Cat natural | 0 | 0 | 0 | | Item b2 | C1 | Cat natural | 0 | 0.40 | 1 | | Item b3 | C1 | Cat natural | 1 | 0.10 | 1 | | Item b4 | C1 | Cat natural | 1 | 0 | 0 | And I log in as "admin" And I set the following administration settings values: | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural | And I am on "Course 1" course homepage And I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I follow "Edit Cat mean" And I set the following fields to these values: | Weight adjusted | 1 | | Weight | 20 | | Extra credit | 0 | And I press "Save changes" And I follow "Edit Cat median" And I set the following fields to these values: | Weight adjusted | 1 | | Weight | 5 | | Extra credit | 0 | And I press "Save changes" And I follow "Edit Cat min" And I set the following fields to these values: | Weight adjusted | 0 | | Weight | 0 | | Extra credit | 1 | And I press "Save changes" And I follow "Edit Item a1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Weight adjusted" matches value "1" And the field "id_aggregationcoef2" matches value "40.0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Weight adjusted" matches value "1" And the field "id_aggregationcoef2" matches value "10.0" And the field "Extra credit" matches value "1" And I press "Cancel" And I follow "Edit Item a4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "1" And I press "Cancel" And I follow "Edit Item b1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b2" And the field "Weight adjusted" matches value "1" And the field "id_aggregationcoef2" matches value "40.0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b3" And the field "Weight adjusted" matches value "1" And the field "id_aggregationcoef2" matches value "10.0" And the field "Extra credit" matches value "1" And I press "Cancel" And I follow "Edit Item b4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "1" And I press "Cancel" Scenario: Switching a category from Natural aggregation to Mean of grades and back Given I follow "Edit Course 1" And I set the field "Aggregation" to "Mean of grades" When I press "Save changes" And I follow "Edit Item a1" Then I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Item a2" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Item a3" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Item a4" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Cat mean" And I expand all fieldsets And I should not see "Weight adjusted" And I should not see "Weight" in the "#id_headerparent" "css_element" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Cat median" And I expand all fieldsets And I should not see "Weight adjusted" And I should not see "Weight" in the "#id_headerparent" "css_element" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Cat min" And I expand all fieldsets And I should not see "Weight adjusted" And I should not see "Weight" in the "#id_headerparent" "css_element" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Cat natural" And I set the field "Aggregation" to "Mean of grades" And I press "Save changes" And I follow "Edit Item b1" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Item b2" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Item b3" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" And I follow "Edit Item b4" And I should not see "Weight adjusted" And I should not see "Weight" And I should not see "Extra credit" And I press "Cancel" # Switching back. And I follow "Edit Course 1" And I set the field "Aggregation" to "Natural" And I press "Save changes" And I follow "Edit Item a1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat mean" And I expand all fieldsets And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat median" And I expand all fieldsets And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat min" And I expand all fieldsets And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat natural" And I set the field "Aggregation" to "Natural" And I press "Save changes" And I follow "Edit Item b1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b2" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b3" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" Scenario: Switching a category from Natural aggregation to Weighted mean of grades and back Given I follow "Edit Course 1" And I set the field "Aggregation" to "Weighted mean of grades" When I press "Save changes" And I follow "Edit Item a1" Then I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Item a2" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Item a3" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Item a4" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Cat mean" And I expand all fieldsets And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Cat median" And I expand all fieldsets And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Cat min" And I expand all fieldsets And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Cat natural" And I set the field "Aggregation" to "Weighted mean of grades" And I press "Save changes" And I follow "Edit Item b1" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Item b2" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Item b3" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" And I follow "Edit Item b4" And I should not see "Weight adjusted" And I should not see "Extra credit" And the field "Item weight" matches value "1" And I press "Cancel" # Switching back. And I follow "Edit Course 1" And I set the field "Aggregation" to "Natural" And I press "Save changes" And I follow "Edit Item a1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat mean" And I expand all fieldsets And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat median" And I expand all fieldsets And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat min" And I expand all fieldsets And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Cat natural" And I set the field "Aggregation" to "Natural" And I press "Save changes" And I follow "Edit Item b1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b2" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b3" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item b4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" @javascript Scenario: Switching grade items between categories # Move to same aggregation (Natural). Given I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" When I select "Cat natural" from the "Move selected items to" singleselect And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" Then the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Weight adjusted" matches value "1" And the field "id_aggregationcoef2" matches value "40.0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Weight adjusted" matches value "1" And the field "id_aggregationcoef2" matches value "10.0" And the field "Extra credit" matches value "1" And I press "Cancel" And I follow "Edit Item a4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "1" And I press "Cancel" # Move to Mean of grades (with extra credit). And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat ec" from the "Move selected items to" singleselect And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Extra credit" matches value "1" And I press "Cancel" And I follow "Edit Item a4" And the field "Extra credit" matches value "1" And I press "Cancel" # Move to Simple weight mean of grades. And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat simple" from the "Move selected items to" singleselect And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Extra credit" matches value "1" And I press "Cancel" And I follow "Edit Item a4" And the field "Extra credit" matches value "1" And I press "Cancel" # Move to Weighted mean of grades. And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat weighted" from the "Move selected items to" singleselect And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Item weight" matches value "1" And I set the field "Item weight" to "2" And I press "Save changes" And I follow "Edit Item a2" And the field "Item weight" matches value "1" And I set the field "Item weight" to "5" And I press "Save changes" And I follow "Edit Item a3" And the field "Item weight" matches value "1" And I set the field "Item weight" to "8" And I press "Save changes" And I follow "Edit Item a4" And the field "Item weight" matches value "1" And I set the field "Item weight" to "11" And I press "Save changes" # Move to same (Weighted mean of grades). And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat weighted2" from the "Move selected items to" singleselect And I wait "2" seconds And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Item weight" matches value "2" And I press "Save changes" And I follow "Edit Item a2" And the field "Item weight" matches value "5" And I press "Save changes" And I follow "Edit Item a3" And the field "Item weight" matches value "8" And I press "Save changes" And I follow "Edit Item a4" And the field "Item weight" matches value "11" And I press "Save changes" # Move back to Natural. And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Course 1" from the "Move selected items to" singleselect And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a2" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a3" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel" And I follow "Edit Item a4" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" And I press "Cancel"
Close