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/cohort/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/cohort/tests/behat/upload_cohort_users.feature
@core @core_cohort @_file_upload
Feature: Upload users to a cohort
  In order to quickly fill site-wide groups with users
  As an admin
  I need to upload a file with users data containing cohort assigns

  @javascript
  Scenario: Upload users and assign them to a course with cohort enrolment method enabled
    Given the following "cohorts" exist:
      | name | idnumber |
      | Cohort 1 | ASD |
      | Cohort 2 | DSA |
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1 | 0 |
      | Course 2 | C2 | 0 |
    And I log in as "admin"
    And I am on "Course 1" course homepage
    And I add "Cohort sync" enrolment method with:
      | Cohort | Cohort 1 |
    And I should see "Cohort sync (Cohort 1 - Student)"
    And I am on "Course 2" course homepage
    And I add "Cohort sync" enrolment method with:
      | Cohort | Cohort 2 |
    And I should see "Cohort sync (Cohort 2 - Student)"
    When I navigate to "Users > Accounts > Upload users" in site administration
    And I upload "lib/tests/fixtures/upload_users_cohorts.csv" file to "File" filemanager
    And I press "Upload users"
    And I press "Upload users"
    And I press "Continue"
    And I navigate to "Users > Accounts > Cohorts" in site administration
    And I click on "Assign" "link" in the "Cohort 1" "table_row"
    Then the "Current users" select box should contain "Tom Jones ([email protected])"
    And the "Current users" select box should contain "Bob Jones ([email protected])"
    And I press "Back to cohorts"
    And I click on "Assign" "link" in the "Cohort 2" "table_row"
    And the "Current users" select box should contain "Mary Smith ([email protected])"
    And the "Current users" select box should contain "Alice Smith ([email protected])"
    And I am on "Course 1" course homepage
    And I navigate to "Users > Enrolled users" in current page administration
    And I should see "Tom Jones"
    And I should see "Bob Jones"
    And I should not see "Mary Smith"
    And I am on "Course 2" course homepage
    And I navigate to "Users > Enrolled users" in current page administration
    And I should see "Mary Smith"
    And I should see "Alice Smith"
    And I should not see "Tom Jones"

Youez - 2016 - github.com/yon3zu
LinuXploit