Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@qtype @qtype_shortanswer
2
Feature: Test importing Short answer questions
3
  As a teacher
4
  In order to reuse Short answer questions
5
  I need to import them
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username |
10
      | teacher  |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1        | 0        |
14
    And the following "course enrolments" exist:
15
      | user    | course | role           |
16
      | teacher | C1     | editingteacher |
17
 
18
  @javascript @_file_upload
19
  Scenario: import Matching question.
20
    When I am on the "Course 1" "core_question > course question import" page logged in as teacher
21
    And I set the field "id_format_xml" to "1"
22
    And I upload "question/type/shortanswer/tests/fixtures/testquestion.moodle.xml" file to "Import" filemanager
23
    And I press "id_submitbutton"
24
    Then I should see "Parsing questions from import file."
25
    And I should see "Importing 1 questions from file"
26
    And I should see "1. Name an amphibian: __________"
27
    And I press "Continue"
28
    And I should see "shortanswer-001"