Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@tool @tool_generator @_file_uploadFeature: Create testing scenarios using generatorsIn order to execute manual testsAs a developerI need to use a feature file to execute generators into the current instance@javascriptScenario: Create a testing scenario with a course enrolled users and activitiesGiven I log in as "admin"And I navigate to "Development > Create testing scenarios" in site administrationWhen I upload "admin/tool/generator/tests/fixtures/testscenario/scenario.feature" file to "Feature file" filemanagerAnd I press "Import"And I should see "Scenario: Create course content"Then I am on the "C1" "Course" pageAnd I should see "Activity sample 1" in the "Section 1" "section"And I should see "Activity sample 2" in the "Section 1" "section"And I navigate to course participantsAnd I should see "Teacher Test1"And I should see "Student Test1"And I should see "Student Test2"And I should see "Student Test3"And I should see "Student Test4"And I should see "Student Test5"@javascriptScenario: Prevent creating a testing scenario with no steps to executeGiven I log in as "admin"And I navigate to "Development > Create testing scenarios" in site administrationWhen I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongempty.feature" file to "Feature file" filemanagerAnd I press "Import"Then I should see "There are no steps to execute in the file."@javascriptScenario: Prevent creating a testing scenario with only background steps to executeGiven I log in as "admin"And I navigate to "Development > Create testing scenarios" in site administrationWhen I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongonlybackground.feature" file to "Feature file" filemanagerAnd I press "Import"Then I should see "There are no steps to execute in the file."@javascriptScenario: Prevent creating a testing scenario with a wrong file formatGiven I log in as "admin"And I navigate to "Development > Create testing scenarios" in site administrationWhen I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongformat.feature" file to "Feature file" filemanagerAnd I press "Import"Then I should see "Error parsing feature file"@javascriptScenario: Prevent creating a testing scenario with non generator stepsGiven I log in as "admin"And I navigate to "Development > Create testing scenarios" in site administrationWhen I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongstep.feature" file to "Feature file" filemanagerAnd I press "Import"Then I should see "The file format is not valid or contains invalid steps"@javascriptScenario: Prevent creating a testing scenario from a scenario outlineGiven I log in as "admin"And I navigate to "Development > Create testing scenarios" in site administrationWhen I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongoutline.feature" file to "Feature file" filemanagerAnd I press "Import"Then I should see "Scenario outlines are not supported"Then I should see "There are no steps to execute in the file"