Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 53... Línea 53...
53
    And the following "activities" exist:
53
    And the following "activities" exist:
54
      | activity | name   | course | idnumber | groupmode | grouping |
54
      | activity | name   | course | idnumber | groupmode | grouping |
55
      | quiz     | Quiz 1 | C1     | quiz1    | 1         | tging    |
55
      | quiz     | Quiz 1 | C1     | quiz1    | 1         | tging    |
56
      | quiz     | Quiz 2 | C1     | quiz2    | 1         | tging    |
56
      | quiz     | Quiz 2 | C1     | quiz2    | 1         | tging    |
57
    And quiz "Quiz 1" contains the following questions:
57
    And quiz "Quiz 1" contains the following questions:
58
      | question         | page |
58
      | question         | page | displaynumber |
59
      | Short answer 001 | 1    |
59
      | Short answer 001 | 1    | 1a            |
Línea 60... Línea 60...
60
 
60
 
61
  Scenario: Manual grading report without attempts
61
  Scenario: Manual grading report without attempts
62
    When I am on the "Quiz 1" "mod_quiz > Manual grading report" page logged in as "teacher1"
62
    When I am on the "Quiz 1" "mod_quiz > Manual grading report" page logged in as "teacher1"
63
    Then I should see "Separate groups (Tutor groups)"
63
    Then I should see "Separate groups (Tutor groups)"
Línea 96... Línea 96...
96
    # Adjust the mark for Student1
96
    # Adjust the mark for Student1
97
    And I set the field "Comment" to "I have adjusted your mark to 0.6"
97
    And I set the field "Comment" to "I have adjusted your mark to 0.6"
98
    And I set the field "Mark" to "0.6"
98
    And I set the field "Mark" to "0.6"
99
    And I press "Save and show next"
99
    And I press "Save and show next"
100
    And I should see "All selected attempts have been graded. Returning to the list of questions."
100
    And I should see "All selected attempts have been graded. Returning to the list of questions."
-
 
101
    And "Short answer 001" row "Q #" column of "questionstograde" table should contain "1a"
101
    And "Short answer 001" row "To grade" column of "questionstograde" table should contain "0"
102
    And "Short answer 001" row "To grade" column of "questionstograde" table should contain "0"
102
    And "Short answer 001" row "Already graded" column of "questionstograde" table should contain "1"
103
    And "Short answer 001" row "Already graded" column of "questionstograde" table should contain "1"
Línea 103... Línea 104...
103
 
104
 
104
  Scenario: Manual grading settings are remembered as user preferences
105
  Scenario: Manual grading settings are remembered as user preferences
Línea 164... Línea 165...
164
    When I am on the "Quiz 1" "mod_quiz > Manual grading report" page logged in as "marker"
165
    When I am on the "Quiz 1" "mod_quiz > Manual grading report" page logged in as "marker"
165
    Then I should see "Quiz 1"
166
    Then I should see "Quiz 1"
166
    And I should see "Separate groups: All participants"
167
    And I should see "Separate groups: All participants"
167
    Then I should see "Sorry, but you need to be part of a group to see this page."
168
    Then I should see "Sorry, but you need to be part of a group to see this page."
Línea 168... Línea 169...
168
 
169
 
169
  @javascript @editor_atto
170
  @javascript
170
  Scenario: Manual grading report with attempts to be graded
171
  Scenario: Manual grading report with attempts to be graded
171
    Given the following "questions" exist:
172
    Given the following "questions" exist:
172
      | questioncategory | qtype | name     | user  | questiontext    |
173
      | questioncategory | qtype | name     | user  | questiontext    |
173
      | Test questions   | essay | Essay Q1 | admin | Question 1 text |
174
      | Test questions   | essay | Essay Q1 | admin | Question 1 text |
174
    And quiz "Quiz 2" contains the following questions:
175
    And quiz "Quiz 2" contains the following questions:
175
      | question | page |
176
      | question | page |
176
      | Essay Q1 | 1    |
-
 
177
    And I log out
177
      | Essay Q1 | 1    |
178
    When I am on the "Quiz 2" "mod_quiz > View" page logged in as "student1"
178
    When I am on the "Quiz 2" "mod_quiz > View" page logged in as "student1"
179
    And I press "Attempt quiz"
179
    And I press "Attempt quiz"
180
    And I set the field with xpath "//*[contains(concat(' ', @class, ' '), ' editor_atto_content ')]" to "This is my attempt 1"
180
    And I set the field "Answer text Question 1" to "This is my attempt 1"
181
    And I follow "Finish attempt ..."
181
    And I follow "Finish attempt ..."
182
    And I press "Submit all and finish"
182
    And I press "Submit all and finish"
183
    And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
183
    And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
184
    And I click on "Finish review" "link"
184
    And I click on "Finish review" "link"
185
    And I press "Re-attempt quiz"
185
    And I press "Re-attempt quiz"
186
    And I set the field with xpath "//*[contains(concat(' ', @class, ' '), ' editor_atto_content ')]" to "This is my attempt 2"
186
    And I set the field "Answer text Question 1" to "This is my attempt 2"
187
    And I follow "Finish attempt ..."
187
    And I follow "Finish attempt ..."
188
    And I press "Submit all and finish"
188
    And I press "Submit all and finish"
189
    And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
189
    And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
190
    And I click on "Finish review" "link"
190
    And I click on "Finish review" "link"
191
    And I press "Re-attempt quiz"
191
    And I press "Re-attempt quiz"
192
    And I set the field with xpath "//*[contains(concat(' ', @class, ' '), ' editor_atto_content ')]" to "This is my attempt 3"
192
    And I set the field "Answer text Question 1" to "This is my attempt 3"
193
    And I follow "Finish attempt ..."
193
    And I follow "Finish attempt ..."
194
    And I press "Submit all and finish"
194
    And I press "Submit all and finish"
195
    And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
-
 
196
    And I log out
-
 
197
 
195
    And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
198
    And I am on the "Quiz 2" "mod_quiz > Manual grading report" page logged in as "teacher1"
196
    And I am on the "Quiz 2" "mod_quiz > Manual grading report" page logged in as "teacher1"
199
    And I follow "Also show questions that have been graded automatically"
197
    And I follow "Also show questions that have been graded automatically"
200
    And I should see "Essay Q1"
198
    And I should see "Essay Q1"
201
    And "Essay Q1" row "To grade" column of "questionstograde" table should contain "3"
199
    And "Essay Q1" row "To grade" column of "questionstograde" table should contain "3"