__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@block @block_activity_results @javascript
Feature: The activity results block displays student low scores
  In order to be display student scores
  As a user
  I need to see the activity results block

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email | idnumber |
      | teacher1 | Teacher | 1 | teacher1@example.com | T1 |
      | student1 | Student | 1 | student1@example.com | S1 |
      | student2 | Student | 2 | student2@example.com | S2 |
      | student3 | Student | 3 | student3@example.com | S3 |
      | student4 | Student | 4 | student4@example.com | S4 |
      | student5 | Student | 5 | student5@example.com | S5 |
    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 |
      | student3 | C1 | student |
      | student4 | C1 | student |
      | student5 | C1 | student |
    And the following "activity" exists:
      | activity                      | assign          |
      | course                        | C1              |
      | idnumber                      | 0001            |
      | name                          | Test assignment |
      | assignsubmission_file_enabled | 0               |
    And the following "grade grades" exist:
      | gradeitem       | user     | grade |
      | Test assignment | student1 | 90.00 |
      | Test assignment | student2 | 80.00 |
      | Test assignment | student3 | 70.00 |
      | Test assignment | student4 | 60.00 |
      | Test assignment | student5 | 50.00 |
    And I log in as "teacher1"
    And I am on "Course 1" course homepage with editing mode on

  Scenario: Configure the block on the course page to show 1 low score
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 1 |
      | config_gradeformat | Percentages |
      | config_nameformat | Display full names |
      | config_decimalpoints | 0 |
    Then I should see "Student 5" in the "Activity results" "block"
    And I should see "50%" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show 1 low score as a fraction
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 1 |
      | config_gradeformat | Fractions |
      | config_nameformat | Display full names |
    Then I should see "Student 5" in the "Activity results" "block"
    And I should see "50.00/100.00" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show 1 low score as a absolute number
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 1 |
      | config_gradeformat | Absolute numbers |
      | config_nameformat | Display full names |
    Then I should see "Student 5" in the "Activity results" "block"
    And I should see "50.00" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show multiple low scores as percentages
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 3 |
      | config_gradeformat | Percentages |
      | config_nameformat | Display full names |
      | config_decimalpoints | 0 |
    Then I should see "Student 5" in the "Activity results" "block"
    And I should see "50%" in the "Activity results" "block"
    And I should see "Student 4" in the "Activity results" "block"
    And I should see "60%" in the "Activity results" "block"
    And I should see "Student 3" in the "Activity results" "block"
    And I should see "70%" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show multiple low scores as fractions
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 3 |
      | config_gradeformat | Fractions |
      | config_nameformat | Display full names |
    Then I should see "Student 5" in the "Activity results" "block"
    And I should see "50.00/100.00" in the "Activity results" "block"
    And I should see "Student 4" in the "Activity results" "block"
    And I should see "60.00/100.00" in the "Activity results" "block"
    And I should see "Student 3" in the "Activity results" "block"
    And I should see "70.00/100.00" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show multiple low scores as absolute numbers
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 3 |
      | config_gradeformat | Absolute numbers |
      | config_nameformat | Display full names |
    Then I should see "Student 5" in the "Activity results" "block"
    And I should see "50.00" in the "Activity results" "block"
    And I should see "Student 4" in the "Activity results" "block"
    And I should see "60.00" in the "Activity results" "block"
    And I should see "Student 3" in the "Activity results" "block"
    And I should see "70.00" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show multiple low scores using ID numbers
    Given the following config values are set as admin:
      | showuseridentity | idnumber,email |
    And I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 3 |
      | config_gradeformat | Percentages |
      | config_nameformat | Display only ID numbers |
    Then I should see "User S5" in the "Activity results" "block"
    And I should see "50.00%" in the "Activity results" "block"
    And I should see "User S4" in the "Activity results" "block"
    And I should see "60.00%" in the "Activity results" "block"
    And I should see "User S3" in the "Activity results" "block"
    And I should see "70.00%" in the "Activity results" "block"

  Scenario: Try to configure the block on the course page to show multiple low scores using anonymous names
    Given I add the "Activity results" block to the default region with:
      | config_showbest | 0 |
      | config_showworst | 3 |
      | config_gradeformat | Percentages |
      | config_nameformat | Anonymous results |
    Then I should see "User" in the "Activity results" "block"
    And I should see "50.00%" in the "Activity results" "block"
    And I should see "60.00%" in the "Activity results" "block"
    And I should see "70.00%" in the "Activity results" "block"

Filemanager

Name Type Size Permission Actions
addblockinactivity.feature File 4.55 KB 0777
addunconfiguredblock.feature File 2.64 KB 0777
addunsupportedactivity.feature File 1.94 KB 0777
defaultsettings.feature File 3.01 KB 0777
highscoreswithoutgroups.feature File 7.05 KB 0777
highscoreswithscales.feature File 5.23 KB 0777
highscoreswithscalesandgroups.feature File 6.71 KB 0777
highscoreswithseperategroups.feature File 9.51 KB 0777
highscoreswithvisiblegroups.feature File 7.74 KB 0777
lowscoreswithoutgroups.feature File 6.67 KB 0777
lowscoreswithscales.feature File 5.4 KB 0777
lowscoreswithscalesandgroups.feature File 6.59 KB 0777
lowscoreswithseperategroups.feature File 8.79 KB 0777
lowscoreswithvisiblegroups.feature File 7.61 KB 0777
Filemanager