Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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 |
1441 ariadna 17
    And the following "activities" exist:
18
      | activity   | name    | course | idnumber |
19
      | qbank      | Qbank 1 | C1     | qbank1   |
1 efrain 20
 
21
  @javascript @_file_upload
22
  Scenario: import some Aiken questions
1441 ariadna 23
    Given I am on the "Qbank 1" "core_question > question import" page logged in as "teacher"
1 efrain 24
    And I set the field "id_format_aiken" to "1"
25
    And I upload "question/format/aiken/tests/fixtures/questions.aiken.txt" file to "Import" filemanager
26
    When I press "id_submitbutton"
27
    Then I should see "Parsing questions from import file."
28
    And I should see "Importing 2 questions from file"
29
    And I should see "The Moodle project was started by:"
30
    And I press "Continue"
31
    And I should see "The Moodle project was started by:"