__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@mod @mod_workshop
Feature: Setting grades to pass via workshop editing form
  In order to define grades to pass
  As a teacher
  I can set them in the workshop settings form, without the need to go to the gradebook

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | teacher1 | Terry1    | Teacher1 | teacher1@example.com |
    And the following "courses" exist:
      | fullname  | shortname |
      | Course1   | c1        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | c1     | editingteacher |

  Scenario: Adding a new workshop with grade to pass field set
    Given the following "activities" exist:
      | activity   | name             | course | idnumber    |
      | workshop   | Awesome workshop | c1     | workshop1   |
    When I am on the "Awesome workshop" "workshop activity editing" page logged in as teacher1
    And I set the field "Submission grade to pass" to "45"
    And I set the field "Assessment grade to pass" to "10.5"
    And I press "Save and return to course"
    And I am on the "Awesome workshop" "workshop activity editing" page
    Then the field "Submission grade to pass" matches value "45.00"
    And the field "Assessment grade to pass" matches value "10.50"

  @javascript
  Scenario: Grade to pass kept even with submission types without online text (MDL-64862)
    Given the following "activities" exist:
      | activity | course | name             | submissiongradepass | gradinggradepass | submissiontypetextavailable |
      | workshop | c1     | Another workshop | 42                  | 10.1             | 0                           |
    When I am on the "Course1" course page logged in as teacher1
    Then I should not see "New Workshop"
    And I am on the "Another workshop" "workshop activity editing" page
    And the field "Submission grade to pass" matches value "42.00"
    And the field "Assessment grade to pass" matches value "10.10"

  Scenario: Adding a new workshop with grade to pass fields left empty
    Given the following "activities" exist:
      | activity   | name                     | course | idnumber    |
      | workshop   | Another awesome workshop | c1     | workshop1   |
    When I am on the "Another awesome workshop" "workshop activity editing" page logged in as teacher1
    Then the field "Submission grade to pass" matches value "0.00"
    And the field "Assessment grade to pass" matches value "0.00"

  Scenario: Adding a new workshop with non-numeric value of a grade to pass
    Given the following "activities" exist:
      | activity   | name                     | course | idnumber    | section |
      | workshop   | Another awesome workshop | c1     | workshop1   | 1       |
    When I am on the "Another awesome workshop" "workshop activity editing" page logged in as teacher1
    And I set the field "Assessment grade to pass" to "You shall not pass!"
    And I press "Save and return to course"
    Then I should see "Edit settings"
    And I should see "You must enter a number here"

  Scenario: Adding a new workshop with invalid value of a grade to pass
    Given the following "activities" exist:
      | activity   | name                    | course | idnumber   | section |
      | workshop   | Almost awesome workshop | c1     | workshop1  | 1       |
    When I am on the "Almost awesome workshop" "workshop activity editing" page logged in as teacher1
    And I set the field "Assessment grade to pass" to "10000000"
    And I press "Save and return to course"
    Then I should see "Edit settings"
    And I should see "The grade to pass can not be greater than the maximum possible grade"

  Scenario: Emptying grades to pass fields sets them to zero
    Given the following "activities" exist:
      | activity   | name                   | course | idnumber  | section |
      | workshop   | Super awesome workshop | c1     | workshop1 | 1       |
    When I am on the "Super awesome workshop" "workshop activity editing" page logged in as teacher1
    And I set the field "Submission grade to pass" to "59.99"
    And I set the field "Assessment grade to pass" to "0.000"
    And I press "Save and return to course"
    And I should not see "Edit settings"
    And I am on the "Super awesome workshop" "workshop activity editing" page
    And the field "Submission grade to pass" matches value "59.99"
    And the field "Assessment grade to pass" matches value "0.00"
    When I set the field "Submission grade to pass" to ""
    And I set the field "Assessment grade to pass" to ""
    And I press "Save and display"
    Then I should not see "New Workshop"
    And I am on the "Super awesome workshop" "workshop activity editing" page
    And the field "Submission grade to pass" matches value "0.00"
    And the field "Assessment grade to pass" matches value "0.00"

Filemanager

Name Type Size Permission Actions
behat_mod_workshop.php File 8.05 KB 0777
delete_submission.feature File 4.38 KB 0777
embedded_images.feature File 4.33 KB 0777
example_submission.feature File 2.2 KB 0777
export_submission.feature File 4.47 KB 0777
file_type_restriction.feature File 6.19 KB 0777
grade_to_pass.feature File 4.81 KB 0777
grading_strategy.feature File 4.62 KB 0777
group_mode.feature File 3.81 KB 0777
self_assessment.feature File 3.7 KB 0777
submission_types.feature File 9.28 KB 0777
workshop_activity_allocation.feature File 3.89 KB 0777
workshop_activity_completion.feature File 4.57 KB 0777
workshop_activity_filter.feature File 4.53 KB 0777
workshop_assessment.feature File 8.83 KB 0777
workshop_assessment_comparison.feature File 5.38 KB 0777
workshop_assessment_navigation.feature File 3.42 KB 0777
workshop_completion_pass_grade.feature File 7.36 KB 0777
workshop_edit_form.feature File 2.25 KB 0777
workshop_grade.feature File 7.24 KB 0777
workshop_late_submission.feature File 3.63 KB 0777
workshop_section_remembered.feature File 1.6 KB 0777
workshop_submission_max_upload.feature File 2.26 KB 0777
workshop_submission_view.feature File 3.89 KB 0777
Filemanager