Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
Feature: Fixture to prepare scenario for testingScenario: Create course contentGiven the following config values are set as admin:| sendcoursewelcomemessage | 0 | enrol_manual |And the following "course" exists:| fullname | Course test || shortname | C1 || category | 0 || numsections | 3 || initsections | 1 |And the following "activities" exist:| activity | name | intro | course | idnumber | section | visible || assign | Activity sample 1 | Test assignment description | C1 | sample1 | 1 | 1 || assign | Activity sample 2 | Test assignment description | C1 | sample2 | 1 | 0 |@cleanupScenario: clean course from fixture to prepare scenario for testingGiven the course "Course test" is deletedScenario: Create usersGiven the following "users" exist:| username | firstname | lastname | email || teachersample | Teacher | Test1 | sample@example.com |And the following "course enrolments" exist:| user | course | role || teachersample | C1 | editingteacher |And "5" "users" exist with the following data:| username | studentsample[count] || firstname | Student || lastname | Test[count] || email | studentsample[count]@example.com |And "5" "course enrolments" exist with the following data:| user | studentsample[count] || course | C1 || role | student |@cleanupScenario: clean users from fixture to prepare scenario for testingGiven the user "teachersample" is deletedAnd the user "studentsample1" is deletedAnd the user "studentsample2" is deletedAnd the user "studentsample3" is deletedAnd the user "studentsample4" is deletedAnd the user "studentsample5" is deleted