|
|
|
@@ -92,10 +92,10 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Finished regrading (2/2)"
|
|
|
|
|
And I should see "Regrade completed"
|
|
|
|
|
And I press "Continue"
|
|
|
|
|
And "Student OneReview attempt" row "Q. 1/50.00Sort by Q. 1/50.00 Ascending" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 1/50.00Sort by Q. 1/50.00 Ascending" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student OneReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "100.00/50.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "90.00/40.00"
|
|
|
|
|
And "Student OneReview attempt" row "Q. 1/50.00" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 1/50.00" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student OneReview attempt" row "Grade/100.00" column of "attempts" table should contain "100.00/50.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00" column of "attempts" table should contain "90.00/40.00"
|
|
|
|
|
|
|
|
|
|
Scenario: Regrade selected attempts and selected questions.
|
|
|
|
|
Given I am on the "Quiz for testing regrading" "mod_quiz > edit" page logged in as teacher
|
|
|
|
@@ -123,8 +123,8 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Finished regrading (1/1)"
|
|
|
|
|
And I should see "Regrade completed"
|
|
|
|
|
And I press "Continue"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 1/50.00Sort by Q. 1/50.00 Ascending" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "90.00/40.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 1/50.00" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00" column of "attempts" table should contain "90.00/40.00"
|
|
|
|
|
|
|
|
|
|
Scenario: Dry-run all attempts, then regrade all attempts.
|
|
|
|
|
Given I am on the "Quiz for testing regrading" "mod_quiz > edit" page logged in as teacher
|
|
|
|
@@ -141,13 +141,12 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Finished regrading (2/2)"
|
|
|
|
|
And I should see "Regrade completed"
|
|
|
|
|
And I press "Continue"
|
|
|
|
|
|
|
|
|
|
And "Student One" row "Regrade" column of "attempts" table should not contain "Needed"
|
|
|
|
|
And "Student TwoReview attempt" row "Regrade" column of "attempts" table should contain "Needed"
|
|
|
|
|
# In the following, the first number is strike-through, and the second is not, but Behat can't see that.
|
|
|
|
|
# At this point, it is showing what would change.
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00Sort by Q. 2/50.00 Ascending" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
And I press "Regrade attempts..."
|
|
|
|
|
And I click on "Regrade now" "button" in the "Regrade" "dialogue"
|
|
|
|
|
And I should see "Quiz for testing regrading"
|
|
|
|
@@ -158,8 +157,8 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Quiz for testing regrading"
|
|
|
|
|
And I should see "Overall number of students achieving grade ranges"
|
|
|
|
|
# Now, both old-score strike-through and new score plain, are still shown, but now it indicates what did change.
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00Sort by Q. 2/50.00 Ascending" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
|
|
|
|
|
Scenario: Dry-run a full regrade, then regrade the commit regrade.
|
|
|
|
|
Given I am on the "Quiz for testing regrading" "mod_quiz > edit" page logged in as teacher
|
|
|
|
@@ -180,8 +179,8 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And "Student TwoReview attempt" row "Regrade" column of "attempts" table should contain "Needed"
|
|
|
|
|
# In the following, the first number is strike-through, and the second is not, but Behat can't see that.
|
|
|
|
|
# At this point, it is showing what would change.
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00Sort by Q. 2/50.00 Ascending" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
Then I should see "The last dry run of a regrade found that the regrade would change the marks for 1 questions in 1 attempts."
|
|
|
|
|
And I press "Commit regrade"
|
|
|
|
|
And I should see "Quiz for testing regrading"
|
|
|
|
@@ -193,8 +192,8 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Quiz for testing regrading"
|
|
|
|
|
And I should see "Overall number of students achieving grade ranges"
|
|
|
|
|
# Now, both old-score strike-through and new score plain, are still shown, but now it indicates what did change.
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00Sort by Q. 2/50.00 Ascending" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Q. 2/50.00" column of "attempts" table should contain "40.00/25.00"
|
|
|
|
|
And "Student TwoReview attempt" row "Grade/100.00" column of "attempts" table should contain "90.00/75.00"
|
|
|
|
|
And I should not see "The last dry run of a regrade found that the regrade would change the marks for 1 questions in 1 attempts."
|
|
|
|
|
|
|
|
|
|
Scenario: Regrade all attempts works against quiz selected question version
|
|
|
|
@@ -227,7 +226,7 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Regrade completed"
|
|
|
|
|
And I press "Continue"
|
|
|
|
|
Then "student1@example.com" row "Regrade" column of "attempts" table should contain "Done"
|
|
|
|
|
And "Student OneReview attempt" row "Q. 1/50.00Sort by Q. 1/50.00 Ascending" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Student OneReview attempt" row "Q. 1/50.00" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Incorrect" "icon" should appear before "50.00/0.00" "text"
|
|
|
|
|
|
|
|
|
|
Scenario: Regrade all attempts works against quiz selected latest question version
|
|
|
|
@@ -267,7 +266,7 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I should see "Finished regrading (1/1)"
|
|
|
|
|
And I should see "Regrade completed"
|
|
|
|
|
And I press "Continue"
|
|
|
|
|
Then "student3@example.com" row "Q. 1/50.00Sort by Q. 1/50.00 Ascending" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
Then "student3@example.com" row "Q. 1/50.00" column of "attempts" table should contain "50.00/0.00"
|
|
|
|
|
And "Incorrect" "icon" should appear before "50.00/0.00" "text"
|
|
|
|
|
|
|
|
|
|
Scenario: Regrade attempts should always regrade against latest random question version
|
|
|
|
@@ -300,12 +299,12 @@ Feature: Regrading quiz attempts using the Grades report
|
|
|
|
|
And I set the field "Correct answer" to "False"
|
|
|
|
|
And I press "id_submitbutton"
|
|
|
|
|
And I navigate to "Results" in current page administration
|
|
|
|
|
And "student3@example.com" row "Q. 1/100.00Sort by Q. 1/100.00 Ascending" column of "attempts" table should contain "100.00"
|
|
|
|
|
And "student3@example.com" row "Q. 1/100.00" column of "attempts" table should contain "100.00"
|
|
|
|
|
And "Correct" "icon" should be visible
|
|
|
|
|
And I press "Regrade attempts..."
|
|
|
|
|
And I click on "Regrade now" "button" in the "Regrade" "dialogue"
|
|
|
|
|
And I should see "Finished regrading (1/1)"
|
|
|
|
|
And I should see "Regrade completed"
|
|
|
|
|
And I press "Continue"
|
|
|
|
|
Then "student3@example.com" row "Q. 1/100.00Sort by Q. 1/100.00 Ascending" column of "attempts" table should contain "100.00/0.00"
|
|
|
|
|
Then "student3@example.com" row "Q. 1/100.00" column of "attempts" table should contain "100.00/0.00"
|
|
|
|
|
And "Incorrect" "icon" should be visible
|
|
|
|
|