Proyectos de Subversion Moodle

Rev

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

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