Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11 efrain 1
@mod @mod_workshop
1 efrain 2
Feature: Provide example submission
3
  In order to let students practise the assessment process in the workshop
4
  As a teacher
5
  I need to be able to define example submission and its referential assessment
6
 
11 efrain 7
  Background:
1 efrain 8
    Given the following "users" exist:
11 efrain 9
      | username | firstname | lastname | email                |
1 efrain 10
      | teacher1 | Terry1    | Teacher1 | teacher1@example.com |
11 efrain 11
      | student1 | Sam1      | Student1 | student1@example.com |
1 efrain 12
    And the following "courses" exist:
13
      | fullname  | shortname |
14
      | Course1   | c1        |
15
    And the following "course enrolments" exist:
16
      | user     | course | role           |
17
      | teacher1 | c1     | editingteacher |
11 efrain 18
      | student1 | c1     | student        |
1 efrain 19
    And the following "activities" exist:
20
      | activity | name         | course | idnumber  | useexamples |
21
      | workshop | TestWorkshop | c1     | workshop1 | 1           |
22
    # As a teacher, define the assessment form to be used in the workshop.
11 efrain 23
    And I am on the "Course1" course page logged in as teacher1
1 efrain 24
    And I edit assessment form in workshop "TestWorkshop" as:
25
      | id_description__idx_0_editor | Aspect1 |
26
      | id_description__idx_1_editor | Aspect2 |
27
      | id_description__idx_2_editor |         |
11 efrain 28
 
29
  @javascript @_file_upload
30
  Scenario: Add example submission with attachments to a workshop
1 efrain 31
    # Add an example submission with an attachment.
11 efrain 32
    Given I press "Add example submission"
1 efrain 33
    And I set the following fields to these values:
11 efrain 34
      | Title              | First example submission           |
1 efrain 35
      | Submission content | Just an example but hey, it works! |
11 efrain 36
      | Attachment         | lib/tests/fixtures/empty.txt       |
1 efrain 37
    And I press "Save changes"
11 efrain 38
    And I should see "First example submission"
39
    And I change phase in workshop "TestWorkshop" to "Submission phase"
40
    And I am on the "TestWorkshop" "workshop activity" page logged in as student1
41
    And I should see "Example submissions to assess"
42
    When I click on "Assess" "button"
43
    Then I should see "Assessed example submission"
44
    And I should see "First example submission"
1 efrain 45
    And I should see "Just an example but hey, it works!"
46
    And "empty.txt" "link" should exist