1 |
efrain |
1 |
Feature: Prepare scenario for testing
|
|
|
2 |
Scenario: Create course content
|
|
|
3 |
Given the following "course" exists:
|
|
|
4 |
| fullname | Course test |
|
|
|
5 |
| shortname | C1 |
|
|
|
6 |
| category | 0 |
|
|
|
7 |
| numsections | 3 |
|
|
|
8 |
| initsections | 1 |
|
|
|
9 |
And the following "activities" exist:
|
|
|
10 |
| activity | name | intro | course | idnumber | section | visible |
|
|
|
11 |
| assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 | 1 |
|
|
|
12 |
| assign | Activity sample 2 | Test assignment description | C1 | sample2 | 1 | 0 |
|
|
|
13 |
Scenario: Create users
|
|
|
14 |
Given the following "users" exist:
|
|
|
15 |
| username | firstname | lastname | email |
|
|
|
16 |
| teacher1 | Teacher | Test1 | sample@example.com |
|
|
|
17 |
And the following "course enrolments" exist:
|
|
|
18 |
| user | course | role |
|
|
|
19 |
| teacher1 | C1 | editingteacher |
|
|
|
20 |
And "5" "users" exist with the following data:
|
|
|
21 |
| username | student[count] |
|
|
|
22 |
| firstname | Student |
|
|
|
23 |
| lastname | Test[count] |
|
|
|
24 |
| email | student[count]@example.com |
|
|
|
25 |
And "5" "course enrolments" exist with the following data:
|
|
|
26 |
| user | student[count] |
|
|
|
27 |
| course | C1 |
|
|
|
28 |
| role | student |
|