-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
184 changed files
with
1,861 additions
and
2,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
66 changes: 66 additions & 0 deletions
66
Feature Tests/A/Add Manage Users/A.2.2.400 - Delete.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Feature: A.2.2.400 Add/Manage users | ||
|
||
As a REDCap end user | ||
I want to see that Delete Users is functioning as expected. | ||
|
||
Scenario: A.2.2.400.100 Delete User Function | ||
|
||
#SETUP_USER | ||
Given I login to REDCap with the user "Test_Admin" | ||
And I click on the link labeled "Control Center" | ||
And I click on the link labeled "Browse Users" | ||
Then I should see "User Search: Search for user by username, first name, last name, or primary email" | ||
|
||
##ACTION_MANUAL_TESTING: Verify Delete_User is already created. If Delete_User is not created, skip to Create Delete_User (Line 21). | ||
#When I enter "Delete_User" into the input field labeled "User Search: Search for user by username, first name, last name, or primary email" | ||
# And I click on the button labeled "Search" | ||
#Then I should see "Delete_User" | ||
# And I should see "Editable user attributes" | ||
|
||
#Manual skip to Functional Requirement test (Line 41: ##ACTION Cancel delete user ) | ||
##ACTION_AUTOMATED_TESTING: Create Delete_User | ||
When I click on the link labeled "Add Users (Table-based Only)" | ||
Then I should see "Create single user" | ||
|
||
When I enter "Delete_User" into the input field labeled "Username:" | ||
And I enter "User_firstname" into the input field labeled "First name:" | ||
And I enter "User_lastname" into the input field labeled "Last name:" | ||
And I enter "[email protected]" into the input field labeled "Primary email:" | ||
And I click on the button labeled "Save" | ||
Then I should see "User has been successfully saved." | ||
|
||
When I click on the link labeled "Browse Users" | ||
Then I should see "User Search: Search for user by username, first name, last name, or primary email" | ||
|
||
When I enter "Delete_User" into the input field labeled "User Search: Search for user by username, first name, last name, or primary email" | ||
And I click on the button labeled "Search" | ||
Then I should see "Editable user attributes" | ||
And I should see "Delete_User" | ||
|
||
#FUNCTIONAL REQUIREMENT | ||
##ACTION Cancel delete user | ||
When I click on the button labeled "Delete user from system" and cancel the confirmation window | ||
Then I should NOT see "The user 'Delete_User' has now been removed and deleted from all REDCap projects" | ||
|
||
When I click on the link labeled "Browse Users" | ||
Then I should see "User Search: Search for user by username, first name, last name, or primary email" | ||
|
||
#VERIFY User exist | ||
When I enter "Delete_User" into the input field labeled "User Search: Search for user by username, first name, last name, or primary email" | ||
And I click on the button labeled "Search" | ||
Then I should see "Editable user attributes" | ||
And I should see "Delete_User" | ||
|
||
#FUNCTIONAL REQUIREMENT | ||
##ACTION Delete user | ||
When I click on the button labeled "Delete user from system" and accept the confirmation window | ||
Then I should see "The user 'Delete_User' has now been removed and deleted from all REDCap projects" | ||
And I click on the button labeled "Close" | ||
|
||
#VERIFY User does not exist | ||
When I click on the link labeled "Browse Users" | ||
Then I should see "User Search: Search for user by username, first name, last name, or primary email" | ||
|
||
When I enter "Delete_User" into the input field labeled "User Search: Search for user by username, first name, last name, or primary email" | ||
And I click on the button labeled "Search" | ||
Then I should see "User does not exist!" |
7 changes: 7 additions & 0 deletions
7
Feature Tests/A/Add Manage Users/A.2.2.500 - REDUNDANT Tabular View.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: A.2.2.500 Add/Manage users | ||
|
||
As a REDCap end user | ||
I want to see that Users in tabular form is functioning as expected | ||
|
||
Scenario: A.2.2.500.100 Users in tabular form | ||
This feature test is REDUNDANT and can be viewed in A.2.2.300.100 |
82 changes: 82 additions & 0 deletions
82
Feature Tests/A/Add Manage Users/A.2.2.600 - Account Lockout.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Feature: A.2.2.600 Add/Manage users | ||
|
||
As a REDCap end user | ||
I want to see that Users failed login lockout is functioning as expected. | ||
|
||
Scenario: A.2.2.600.100 User account locked out after too many attempts | ||
#SETUP | ||
Given I login to REDCap with the user "Test_Admin" | ||
And I click on the link labeled "Control Center" | ||
And I click on the link labeled "Security & Authentication" | ||
Then I should see "Security & Authentication Configuration" | ||
|
||
#FUNCTIONAL REQUIREMENT | ||
##ACTION Setup the failed login attempts | ||
When I clear the field labeled "Number of failed login attempts before user is locked out for a specified amount of time, which is set below." | ||
And I enter "1" into the input field labeled "Number of failed login attempts before user is locked out for a specified amount of time, which is set below." | ||
And I clear the field labeled "Amount of time user will be locked out after having failed login attempts exceeding the limit set above." | ||
And I enter "2" into the input field labeled "Amount of time user will be locked out after having failed login attempts exceeding the limit set above." | ||
And I click on the button labeled "Save Changes" | ||
Then I should see "Your system configuration values have now been changed!" | ||
Given I logout | ||
|
||
##ACTION Login with bad password; first failed attempt at logging in | ||
Given I enter "Test_User1" into the input field labeled "Username:" | ||
And I enter "test" into the input field labeled "Password:" | ||
And I click on the button labeled "Log In" | ||
Then I should see "ERROR: You entered an invalid user name or password!" | ||
|
||
##ACTION Try to login again with a bad password; we will be locked out | ||
Given I enter "Test_User1" into the input field labeled "Username:" | ||
And I enter "test" into the input field labeled "Password:" | ||
And I click on the button labeled "Log In" | ||
##VERIFY Timeout / lockout We only have to wait for 2 minute total this time | ||
Then I should see "ACCESS DENIED!" | ||
|
||
Given I wait for 2 minutes | ||
|
||
##VERIFY Login after timeout/lockout | ||
Given I login to REDCap with the user "Test_User1" | ||
Then I see "My Projects" | ||
Given I logout | ||
|
||
#SETUP | ||
Given I login to REDCap with the user "Test_Admin" | ||
And I click on the link labeled "Control Center" | ||
And I click on the link labeled "Security & Authentication" | ||
Then I should see "Security & Authentication Configuration" | ||
|
||
##ACTION Change failed login attempts settings | ||
When I clear the field labeled "Number of failed login attempts before user is locked out for a specified amount of time, which is set below." | ||
And I enter "2" into the input field labeled "Number of failed login attempts before user is locked out for a specified amount of time, which is set below." | ||
And I clear the field labeled "Amount of time user will be locked out after having failed login attempts exceeding the limit set above." | ||
And I enter "1" into the input field labeled "Amount of time user will be locked out after having failed login attempts exceeding the limit set above." | ||
And I click on the button labeled "Save Changes" | ||
Then I should see "Your system configuration values have now been changed!" | ||
Given I logout | ||
|
||
##ACTION Login with bad password; first failed attempt at logging in | ||
Given I enter "Test_User1" into the input field labeled "Username:" | ||
And I enter "test" into the input field labeled "Password:" | ||
And I click on the button labeled "Log In" | ||
Then I should see "ERROR" | ||
|
||
##ACTION Login with bad password; failed attempt at logging in | ||
Given I enter "Test_User1" into the input field labeled "Username:" | ||
And I enter "test" into the input field labeled "Password:" | ||
And I click on the button labeled "Log In" | ||
Then I should see "ERROR" | ||
|
||
##ACTION Try to login again with a bad password and we will be locked out | ||
Given I enter "Test_User1" into the input field labeled "Username:" | ||
And I enter "test" into the input field labeled "Password:" | ||
And I click on the button labeled "Log In" | ||
##VERIFY Timeout / lockout; We only have to wait for 1 minute total this time | ||
Then I should see "ACCESS DENIED!" | ||
|
||
Given I wait for 1 minute | ||
|
||
##VERIFY Login after timeout/lockout | ||
Given I login to REDCap with the user "Test_User1" | ||
Then I see "My Projects" | ||
Given I logout |
7 changes: 7 additions & 0 deletions
7
Feature Tests/A/Add Manage Users/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Feature: A.2.2.700 Add/Manage users | ||
|
||
As a REDCap end user | ||
I want to see that Users failed login lockout is functioning as expected. | ||
|
||
Scenario: A.2.2.700.100 User account locked time | ||
This feature test is REDUNDANT and can be viewed in A.2.2.600.100 |
89 changes: 89 additions & 0 deletions
89
Feature Tests/A/Add Manage Users/A.2.2.800 - Auto-Logout Inactivity Time.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
Feature: A.2.2.800 Add/Manage users | ||
|
||
As a REDCap end user | ||
I want to see that amount of inactivity time before auto logout time is functioning as expected. | ||
|
||
Scenario: A.2.2.800.100 User account locked time | ||
#SETUP control center Auto logout time | ||
Given I login to REDCap with the user "Test_Admin" | ||
And I click on the link labeled "Control Center" | ||
And I click on the link labeled "Security & Authentication" | ||
Then I should see "Security & Authentication Configuration" | ||
|
||
When I clear the field labeled "Auto logout time" | ||
And I enter "4" into the input field labeled "Auto logout time" | ||
And I click on the button labeled "Save Changes" | ||
Then I should see "Your system configuration values have now been changed!" | ||
|
||
Given I logout | ||
|
||
#SETUP timeout warning | ||
Given I login to REDCap with the user "Test_User1" | ||
Then I should see"My Projects" | ||
|
||
#FUNCTIONAL REQUIREMENT | ||
##ACTION wait for timeout warning | ||
Given I wait for 2 minutes | ||
##VERIFY warning | ||
Then I should see a dialog containing the following text: "REDCap Auto Logout Warning" | ||
|
||
##ACTION wait for login expiration | ||
Given I wait for another 2 minutes | ||
##VERIFY login expiration message | ||
Then I should see a dialog containing the following text: "Due to inactivity, your REDCap session has expired" | ||
|
||
##ACTION re-login | ||
Given I click on the button labeled "Log In" in the dialog box | ||
Then I should see "Please log in with your user name and password." | ||
|
||
Given I login to REDCap with the user "Test_User1" | ||
##VERIFY Can login | ||
Then I should see"My Projects" | ||
|
||
#SETUP control center Auto logout time | ||
Given I logout | ||
|
||
Given I login to REDCap with the user "Test_Admin" | ||
And I click on the link labeled "Control Center" | ||
And I click on the link labeled "Security & Authentication" | ||
Then I should see "Security & Authentication Configuration" | ||
|
||
When I clear the field labeled "Auto logout time" | ||
And I enter "3" into the input field labeled "Auto logout time" | ||
And I click on the button labeled "Save Changes" | ||
Then I should see "Your system configuration values have now been changed!" | ||
|
||
Given I logout | ||
|
||
#FUNCTIONAL REQUIREMENT | ||
##ACTION wait for timeout warning | ||
Given I login to REDCap with the user "Test_User1" | ||
And I wait for 2 minutes | ||
##VERIFY warning | ||
Then I should see a dialog containing the following text: "REDCap Auto Logout Warning" | ||
|
||
##ACTION wait for login expiration | ||
Given I wait for 1 minute | ||
##VERIFY login expiration message | ||
Then I should see a dialog containing the following text: "Due to inactivity, your REDCap session has expired" | ||
|
||
##ACTION re-login | ||
Given I click on the button labeled "Log In" in the dialog box | ||
Then I should see "Please log in with your user name and password." | ||
|
||
Given I login to REDCap with the user "Test_User1" | ||
##VERIFY Can login | ||
Then I should see"My Projects" | ||
|
||
Given I logout | ||
|
||
#SETUP control center Auto logout time | ||
Given I login to REDCap with the user "Test_Admin" | ||
And I click on the link labeled "Control Center" | ||
And I click on the link labeled "Security & Authentication" | ||
Then I should see "Security & Authentication Configuration" | ||
|
||
When I clear the field labeled "Auto logout time" | ||
And I enter "20" into the input field labeled "Auto logout time" | ||
And I click on the button labeled "Save Changes" | ||
Then I should see "Your system configuration values have now been changed!" |
55 changes: 0 additions & 55 deletions
55
Feature Tests/A/Add manage users/A.2.2.400 - Add Manage Users - Delete.feature
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
Feature Tests/A/Add manage users/A.2.2.500 - Add Manage Users - Tabular View.feature
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.