[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/workshop/tests/behat/ -> example_submission.feature (source)

   1  @mod @mod_workshop @_file_upload
   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  
   7    @javascript
   8    Scenario: Add example submission with attachments to a workshop
   9      # Prepare the users, course, enrolments and the workshop instance.
  10      Given the following "users" exist:
  11        | username | firstname | lastname | email            |
  12        | teacher1 | Terry1    | Teacher1 | teacher1@example.com |
  13      And the following "courses" exist:
  14        | fullname  | shortname |
  15        | Course1   | c1        |
  16      And the following "course enrolments" exist:
  17        | user     | course | role           |
  18        | teacher1 | c1     | editingteacher |
  19      And the following "activities" exist:
  20        | activity | name         | intro                     | course | idnumber  | useexamples |
  21        | workshop | TestWorkshop | Test workshop description | c1     | workshop1 | 1           |
  22      # As a teacher, define the assessment form to be used in the workshop.
  23      When I log in as "teacher1"
  24      And I follow "Course1"
  25      And I edit assessment form in workshop "TestWorkshop" as:"
  26        | id_description__idx_0_editor | Aspect1 |
  27        | id_description__idx_1_editor | Aspect2 |
  28        | id_description__idx_2_editor |         |
  29      # Add an example submission with an attachment.
  30      And I press "Add example submission"
  31      And I set the following fields to these values:
  32        | Title | First example submission |
  33        | Submission content | Just an example but hey, it works! |
  34        | Attachment | lib/tests/fixtures/empty.txt |
  35      And I press "Save changes"
  36      # Make sure that the submission was saved.
  37      Then I should see "First example submission"
  38      And I should see "Just an example but hey, it works!"
  39      And "empty.txt" "link" should exist


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1