[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @mod @mod_assign 2 Feature: In an assignment, students start a new attempt based on their previous one 3 In order to improve my submission 4 As a student 5 I need to submit my assignment editing an online form, receive feedback, and then improve my submission. 6 7 @javascript 8 Scenario: Submit a text online and edit the submission 9 Given the following "courses" exist: 10 | fullname | shortname | category | groupmode | 11 | Course 1 | C1 | 0 | 1 | 12 And the following "users" exist: 13 | username | firstname | lastname | email | 14 | teacher1 | Teacher | 1 | [email protected] | 15 | student1 | Student | 1 | [email protected] | 16 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 And I log in as "teacher1" 21 And I follow "Course 1" 22 And I turn editing mode on 23 And I add a "Assignment" to section "1" and I fill the form with: 24 | Assignment name | Test assignment name | 25 | Description | Submit your online text | 26 | assignsubmission_onlinetext_enabled | 1 | 27 | assignsubmission_file_enabled | 0 | 28 | Attempts reopened | Manually | 29 And I log out 30 And I log in as "student1" 31 And I follow "Course 1" 32 And I follow "Test assignment name" 33 When I press "Add submission" 34 And I set the following fields to these values: 35 | Online text | I'm the student first submission | 36 And I press "Save changes" 37 And I log out 38 And I log in as "teacher1" 39 And I follow "Course 1" 40 And I follow "Test assignment name" 41 And I follow "View/grade all submissions" 42 And I click on "Grade Student 1" "link" in the "Student 1" "table_row" 43 And I set the following fields to these values: 44 | Allow another attempt | 1 | 45 And I press "Save changes" 46 And I log out 47 And I log in as "student1" 48 And I follow "Course 1" 49 And I follow "Test assignment name" 50 And I press "Add a new attempt based on previous submission" 51 And I press "Save changes" 52 Then I log out 53 And I log in as "teacher1" 54 And I follow "Course 1" 55 And I follow "Test assignment name" 56 And I follow "View/grade all submissions" 57 And I click on "Grade Student 1" "link" in the "Student 1" "table_row" 58 And I should see "I'm the student first submission"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |