| Línea 6... |
Línea 6... |
| 6 |
|
6 |
|
| 7 |
Background:
|
7 |
Background:
|
| 8 |
Given the following "courses" exist:
|
8 |
Given the following "courses" exist:
|
| 9 |
| fullname | shortname | category |
|
9 |
| fullname | shortname | category |
|
| - |
|
10 |
| Course 1 | C1 | 0 |
|
| - |
|
11 |
And the following "activities" exist:
|
| - |
|
12 |
| activity | name | intro | course | idnumber |
|
| 10 |
| Course 1 | C1 | 0 |
|
13 |
| quiz | Quiz 1 | For testing backup | C1 | quiz1 |
|
| 11 |
And the following "question categories" exist:
|
14 |
And the following "question categories" exist:
|
| 12 |
| contextlevel | reference | name |
|
15 |
| contextlevel | reference | name |
|
| 13 |
| Course | C1 | Test questions |
|
16 |
| Activity module | quiz1 | Test questions |
|
| 14 |
And the following config values are set as admin:
|
17 |
And the following config values are set as admin:
|
| 15 |
| enableasyncbackup | 0 |
|
18 |
| enableasyncbackup | 0 |
|
| Línea 16... |
Línea 19... |
| 16 |
And I log in as "admin"
|
19 |
And I log in as "admin"
|
| 17 |
|
20 |
|
| 18 |
@javascript
|
- |
|
| 19 |
Scenario: Duplicate a quiz with two questions
|
- |
|
| 20 |
Given the following "activities" exist:
|
- |
|
| 21 |
| activity | name | intro | course | idnumber |
|
21 |
@javascript
|
| 22 |
| quiz | Quiz 1 | For testing backup | C1 | quiz1 |
|
22 |
Scenario: Duplicate a quiz with two questions
|
| 23 |
And the following "questions" exist:
|
23 |
And the following "questions" exist:
|
| 24 |
| questioncategory | qtype | name | questiontext |
|
24 |
| questioncategory | qtype | name | questiontext |
|
| 25 |
| Test questions | truefalse | TF1 | First question |
|
25 |
| Test questions | truefalse | TF1 | First question |
|
| Línea 35... |
Línea 35... |
| 35 |
Then I should see "TF1"
|
35 |
Then I should see "TF1"
|
| 36 |
And I should see "TF2"
|
36 |
And I should see "TF2"
|
| Línea 37... |
Línea 37... |
| 37 |
|
37 |
|
| 38 |
@javascript
|
38 |
@javascript
|
| 39 |
Scenario: Backup and restore a course containing a quiz with user data.
|
- |
|
| 40 |
Given the following "activities" exist:
|
- |
|
| 41 |
| activity | name | intro | course | idnumber |
|
- |
|
| 42 |
| quiz | Quiz 1 | For testing backup | C1 | quiz1 |
|
39 |
Scenario: Backup and restore a course containing a quiz with user data.
|
| 43 |
And the following "questions" exist:
|
40 |
And the following "questions" exist:
|
| 44 |
| questioncategory | qtype | name | questiontext |
|
41 |
| questioncategory | qtype | name | questiontext |
|
| 45 |
| Test questions | truefalse | TF1 | First question |
|
42 |
| Test questions | truefalse | TF1 | First question |
|
| 46 |
| Test questions | truefalse | TF2 | Second question |
|
43 |
| Test questions | truefalse | TF2 | Second question |
|