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 |
|
|
|
17 |
And the following "question categories" exist:
|
|
|
18 |
| name | contextlevel | reference |
|
|
|
19 |
| Test questions | Course | C1 |
|
|
|
20 |
And the following "questions" exist:
|
|
|
21 |
| questioncategory | qtype | name |
|
|
|
22 |
| Test questions | numerical | Test question to be previewed |
|
|
|
23 |
|
|
|
24 |
Scenario: Question preview shows the question and other information
|
|
|
25 |
When I am on the "Test question to be previewed" "core_question > preview" page logged in as teacher
|
|
|
26 |
Then the state of "What is pi to two d.p.?" question is shown as "Not yet answered"
|
|
|
27 |
And "Download this question in Moodle XML format" "link" should exist
|