[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/admin/tests/behat/ -> upload_users.feature (source)

   1  @core @core_admin @_file_upload
   2  Feature: Upload users
   3    In order to add users to the system
   4    As an admin
   5    I need to upload files containing the users data
   6  
   7    @javascript
   8    Scenario: Upload users enrolling them on courses and groups
   9      Given the following "courses" exist:
  10        | fullname | shortname | category |
  11        | Maths | math102 | 0 |
  12      And the following "groups" exist:
  13        | name | course | idnumber |
  14        | Section 1 | math102 | S1 |
  15        | Section 3 | math102 | S3 |
  16      And I log in as "admin"
  17      And I navigate to "Upload users" node in "Site administration > Users > Accounts"
  18      When I upload "lib/tests/fixtures/upload_users.csv" file to "File" filemanager
  19      And I press "Upload users"
  20      Then I should see "Upload users preview"
  21      And I should see "Tom"
  22      And I should see "Jones"
  23      And I should see "verysecret"
  24      And I should see "[email protected]"
  25      And I should see "Reznor"
  26      And I should see "course1"
  27      And I should see "math102"
  28      And I should see "group1"
  29      And I should see "Section 1"
  30      And I press "Upload users"
  31      And I press "Continue"
  32      And I follow "Browse list of users"
  33      And I should see "Tom Jones"
  34      And I should see "Trent Reznor"
  35      And I should see "[email protected]"
  36      And I am on homepage
  37      And I follow "Maths"
  38      And I expand "Users" node
  39      And I follow "Groups"
  40      And I set the field "groups" to "Section 1 (1)"
  41      And the "members" select box should contain "Tom Jones"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1