| Línea 1... |
Línea 1... |
| 1 |
Feature: Prepare scenario for testing
|
1 |
Feature: Fixture to prepare scenario for testing
|
| 2 |
Scenario: Create course content
|
2 |
Scenario: Create course content
|
| - |
|
3 |
Given the following config values are set as admin:
|
| - |
|
4 |
| sendcoursewelcomemessage | 0 | enrol_manual |
|
| 3 |
Given the following "course" exists:
|
5 |
And the following "course" exists:
|
| 4 |
| fullname | Course test |
|
6 |
| fullname | Course test |
|
| 5 |
| shortname | C1 |
|
7 |
| shortname | C1 |
|
| 6 |
| category | 0 |
|
8 |
| category | 0 |
|
| 7 |
| numsections | 3 |
|
9 |
| numsections | 3 |
|
| 8 |
| initsections | 1 |
|
10 |
| initsections | 1 |
|
| 9 |
And the following "activities" exist:
|
11 |
And the following "activities" exist:
|
| 10 |
| activity | name | intro | course | idnumber | section | visible |
|
12 |
| activity | name | intro | course | idnumber | section | visible |
|
| 11 |
| assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 | 1 |
|
13 |
| assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 | 1 |
|
| 12 |
| assign | Activity sample 2 | Test assignment description | C1 | sample2 | 1 | 0 |
|
14 |
| assign | Activity sample 2 | Test assignment description | C1 | sample2 | 1 | 0 |
|
| - |
|
15 |
|
| - |
|
16 |
@cleanup
|
| - |
|
17 |
Scenario: clean course from fixture to prepare scenario for testing
|
| - |
|
18 |
Given the course "Course test" is deleted
|
| - |
|
19 |
|
| 13 |
Scenario: Create users
|
20 |
Scenario: Create users
|
| 14 |
Given the following "users" exist:
|
21 |
Given the following "users" exist:
|
| 15 |
| username | firstname | lastname | email |
|
22 |
| username | firstname | lastname | email |
|
| 16 |
| teacher1 | Teacher | Test1 | sample@example.com |
|
23 |
| teachersample | Teacher | Test1 | sample@example.com |
|
| 17 |
And the following "course enrolments" exist:
|
24 |
And the following "course enrolments" exist:
|
| 18 |
| user | course | role |
|
25 |
| user | course | role |
|
| 19 |
| teacher1 | C1 | editingteacher |
|
26 |
| teachersample | C1 | editingteacher |
|
| 20 |
And "5" "users" exist with the following data:
|
27 |
And "5" "users" exist with the following data:
|
| 21 |
| username | student[count] |
|
28 |
| username | studentsample[count] |
|
| 22 |
| firstname | Student |
|
29 |
| firstname | Student |
|
| 23 |
| lastname | Test[count] |
|
30 |
| lastname | Test[count] |
|
| 24 |
| email | student[count]@example.com |
|
31 |
| email | studentsample[count]@example.com |
|
| 25 |
And "5" "course enrolments" exist with the following data:
|
32 |
And "5" "course enrolments" exist with the following data:
|
| 26 |
| user | student[count] |
|
33 |
| user | studentsample[count] |
|
| 27 |
| course | C1 |
|
34 |
| course | C1 |
|
| 28 |
| role | student |
|
35 |
| role | student |
|
| - |
|
36 |
|
| - |
|
37 |
@cleanup
|
| - |
|
38 |
Scenario: clean users from fixture to prepare scenario for testing
|
| - |
|
39 |
Given the user "teachersample" is deleted
|
| - |
|
40 |
And the user "studentsample1" is deleted
|
| - |
|
41 |
And the user "studentsample2" is deleted
|
| - |
|
42 |
And the user "studentsample3" is deleted
|
| - |
|
43 |
And the user "studentsample4" is deleted
|
| - |
|
44 |
And the user "studentsample5" is deleted
|