__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: Workshop 'Late submissions are allowed' task
  In order to encourage students submit their submissions on time when late submissions are allowed
  We want only students who have not submitted their work to see the 'Late submissions are allowed' task
  and they can only see this after the submission deadline.

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                 |
      | student1 | Sam1      | Student1 | student1@example.com  |
      | student2 | Sam2      | Student2 | student2@example.com  |
      | teacher1 | Terry1    | Teacher1 | teacher1@example.com  |
    And the following "courses" exist:
      | fullname  | shortname |
      | Course1   | c1        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | student1 | c1     | student        |
      | student2 | c1     | student        |
      | teacher1 | c1     | editingteacher |
    And the following "activities" exist:
      | activity | name          | course | idnumber  | latesubmissions | submisstionstart | submissionend |
      | workshop | TestWorkshop1 | c1     | workshop1 | 1               | 1514904308       | 1893369600    |
    # Teacher sets up assessment form and changes the phase to submission.
    And I am on the "TestWorkshop1" "workshop activity" page logged in as teacher1
    And I edit assessment form in workshop "TestWorkshop1" as:
      | id_description__idx_0_editor | Aspect1 |
      | id_description__idx_1_editor | Aspect2 |
      | id_description__idx_2_editor | Aspect3 |
    And I change phase in workshop "TestWorkshop1" to "Submission phase"

  @javascript
  Scenario: Student1 add his submission to TestWorkshop1 before submission deadline, but student2 does not submitt
    # Student1 submits.
    When I am on the "TestWorkshop1" "workshop activity" page logged in as student1
    Then I should see "Submissions deadline:"
    And I should not see "Late submissions are allowed"
    And I add a submission in workshop "TestWorkshop1" as:
      | Title              | Submission from s1  |
      | Submission content | Some content from student1 |

    # Teacher modifies submission deadline.
    When I am on the "TestWorkshop1" "workshop activity" page logged in as teacher1
    Then I should see "Late submissions are allowed"
    And I navigate to "Settings" in current page administration
    And I click on "Expand all" "link" in the "region-main" "region"
    And I set the field "id_submissionend_day" to "1"
    And I set the field "id_submissionend_month" to "January"
    And I set the field "id_submissionend_year" to "2018"
    And I click on "Save and display" "button"
    And I follow "Switch to the assessment phase"

    # Student1 has already submitted and cannot see 'Late submissions are allowed'.
    When I am on the "TestWorkshop1" "workshop activity" page logged in as student1
    Then I should see "Submissions deadline:"
    And I should not see "Late submissions are allowed"

    # Student2 has not submitted yet who can see 'Late submissions are allowed' text after the submission deadline.
    When I am on the "TestWorkshop1" "workshop activity" page logged in as student2
    Then I should see "Submissions deadline:"
    And I should see "Monday, 1 January 2018"
    And I should see "Late submissions are allowed"

    # Teacher can see 'Late submissions are allowed' text after submission deadline.
    When I am on the "TestWorkshop1" "workshop activity" page logged in as teacher1
    Then I should see "Submissions deadline:"
    And I should see "Monday, 1 January 2018"
    And I should see "Late submissions are allowed"

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