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
@qbank @qbank_previewquestion
2
Feature: A teacher can export a question as XML from the preview question screen
3
  To help reuse questions
4
  As a teacher
5
  I can easily export the question I am previewing
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username |
10
      | teacher  |
11
    And the following "courses" exist:
12
      | fullname | shortname |
13
      | Course 1 | C1        |
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
    And the following "question categories" exist:
1441 ariadna 21
      | contextlevel    | reference | name           |
22
      | Activity module | qbank1    | Test questions |
1 efrain 23
    And the following "questions" exist:
24
      | questioncategory | qtype     | name                          |
25
      | Test questions   | numerical | Test question to be previewed |
26
 
27
  Scenario: Question preview shows the question and other information
28
    When I am on the "Test question to be previewed" "core_question > preview" page logged in as teacher
29
    Then the state of "What is pi to two d.p.?" question is shown as "Not yet answered"
30
    And "Download this question in Moodle XML format" "link" should exist