Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@qformat @qformat_aiken
2
Feature: Test importing questions from Aiken format.
3
  In order to reuse questions
4
  As an teacher
5
  I need to be able to import them in Aiken format.
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | format |
10
      | Course 1 | C1        | topics |
11
    And the following "users" exist:
12
      | username | firstname |
13
      | teacher  | Teacher   |
14
    And the following "course enrolments" exist:
15
      | user    | course | role           |
16
      | teacher | C1     | editingteacher |
17
 
18
  @javascript @_file_upload
19
  Scenario: import some Aiken questions
20
    Given I am on the "Course 1" "core_question > course question import" page logged in as "teacher"
21
    And I set the field "id_format_aiken" to "1"
22
    And I upload "question/format/aiken/tests/fixtures/questions.aiken.txt" file to "Import" filemanager
23
    When I press "id_submitbutton"
24
    Then I should see "Parsing questions from import file."
25
    And I should see "Importing 2 questions from file"
26
    And I should see "The Moodle project was started by:"
27
    And I press "Continue"
28
    And I should see "The Moodle project was started by:"