Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@mod @mod_workshop @core_completion @javascriptFeature: Workshop submission and assessment with pass grade activity completionBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Sam1 | Student1 | student1@example.com || student2 | Sam2 | Student2 | student2@example.com || student3 | Sam3 | Student3 | student3@example.com || student4 | Sam4 | Student4 | student3@example.com || teacher1 | Terry1 | Teacher1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | enablecompletion || Course1 | c1 | 1 |And the following "course enrolments" exist:| user | course | role || student1 | c1 | student || student2 | c1 | student || student3 | c1 | student || student4 | c1 | student || teacher1 | c1 | editingteacher |And the following "activity" exists:| activity | workshop || name | TestWorkshop || course | c1 || idnumber | workshop1 || submissiontypetext | 2 || submissiontypefile | 1 || completion | 2 || completiongradeitemnumber | 0 || submissiongradepass | 40 || gradinggradepass | 60 || completionpassgrade | 1 |# teacher1 sets up assessment form and changes the phase to submissionWhen I am on the "TestWorkshop" "workshop activity" page logged in as teacher1And I edit assessment form in workshop "TestWorkshop" as:| id_description__idx_0_editor | Aspect1 || id_description__idx_1_editor | Aspect2 || id_description__idx_2_editor | |And I change phase in workshop "TestWorkshop" to "Submission phase"# student1 submitsAnd I am on the "TestWorkshop" "workshop activity" page logged in as student1And I add a submission in workshop "TestWorkshop" as:| Title | Submission1 || Submission content | Some content |# student2 submitsAnd I am on the "TestWorkshop" "workshop activity" page logged in as student2And I add a submission in workshop "TestWorkshop" as:| Title | Submission2 || Submission content | Some content |# student3 submitsAnd I am on the "TestWorkshop" "workshop activity" page logged in as student3And I add a submission in workshop "TestWorkshop" as:| Title | Submission3 || Submission content | Some content |# teacher1 allocates reviewers and changes the phase to assessmentAnd I am on the "TestWorkshop" "workshop activity" page logged in as teacher1And I allocate submissions in workshop "TestWorkshop" as:| Participant | Reviewer || Sam1 Student1 | Sam2 Student2 || Sam2 Student2 | Sam1 Student1 || Sam3 Student3 | Sam1 Student1 || Sam2 Student2 | Sam4 Student4 |And I am on the "TestWorkshop" "workshop activity" pageAnd I change phase in workshop "TestWorkshop" to "Assessment phase"# student1 assesses work of student2 and student3And I am on the "TestWorkshop" "workshop activity" page logged in as student1And I assess submission "Sam2" in workshop "TestWorkshop" as:| grade__idx_0 | 5 / 10 || peercomment__idx_0 | You can do better || grade__idx_1 | 10 / 10 || peercomment__idx_1 | Amazing || Feedback for the author | Good work |And I am on "Course1" course homepageAnd I assess submission "Sam3" in workshop "TestWorkshop" as:| grade__idx_0 | 9 / 10 || peercomment__idx_0 | Well done || grade__idx_1 | 8 / 10 || peercomment__idx_1 | Very good || Feedback for the author | No comments |# student2 assesses work of student1And I am on the "TestWorkshop" "workshop activity" page logged in as student2And I assess submission "Sam1" in workshop "TestWorkshop" as:| grade__idx_0 | 6 / 10 || peercomment__idx_0 | || grade__idx_1 | 7 / 10 || peercomment__idx_1 | || Feedback for the author | Keep it up |# teacher1 makes sure he can see all peer gradesAnd I am on the "TestWorkshop" "workshop activity" page logged in as teacher1And I click on "//table/tbody/tr[td[contains(concat(' ', normalize-space(@class), ' '), ' participant ') and contains(.,'Sam2')]]/td[contains(concat(' ', normalize-space(@class), ' '), ' receivedgrade ') and contains(.,'Sam1')]/descendant::a[@class='grade']" "xpath_element"# teacher1 assesses the work on submission1 and assesses the assessment of peerAnd I set the following fields to these values:| Override grade for assessment | 11 || Feedback for the reviewer | |And I press "Save and close"And I change phase in workshop "TestWorkshop" to "Grading evaluation phase"And I follow "Submission1"And I press "Assess"And I set the following fields to these values:| grade__idx_0 | 1 / 10 || peercomment__idx_0 | Extremely bad || grade__idx_1 | 2 / 10 || peercomment__idx_1 | Very bad || Feedback for the author | Your peers overestimate you |And I press "Save and close"And I press "Re-calculate grades"And I change phase in workshop "TestWorkshop" to "Closed"Scenario: Add and assess submissions in workshop with javascript enabledAnd I am on the "Course1" course page logged in as student1And the "Receive a grade" completion condition of "TestWorkshop" is displayed as "done"And the "Receive a passing grade" completion condition of "TestWorkshop" is displayed as "failed"And I am on the "Course1" course page logged in as student2And the "Receive a grade" completion condition of "TestWorkshop" is displayed as "done"And the "Receive a passing grade" completion condition of "TestWorkshop" is displayed as "done"And I am on the "Course1" course page logged in as student3And the "Receive a grade" completion condition of "TestWorkshop" is displayed as "done"And the "Receive a passing grade" completion condition of "TestWorkshop" is displayed as "done"And I am on the "Course1" course page logged in as student4And the "Receive a grade" completion condition of "TestWorkshop" is displayed as "todo"And the "Receive a passing grade" completion condition of "TestWorkshop" is displayed as "todo"And I am on the "Course1" course page logged in as teacher1And "Sam1 Student1" user has completed "TestWorkshop" activityAnd "Sam2 Student2" user has completed "TestWorkshop" activityAnd "Sam3 Student3" user has completed "TestWorkshop" activityAnd "Sam4 Student4" user has not completed "TestWorkshop" activity