Skip to content

Commit

Permalink
Merge branch 'v13.7.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
4bbakers committed Jan 18, 2024
2 parents e48fb6f + cb38723 commit 94318c5
Show file tree
Hide file tree
Showing 184 changed files with 1,861 additions and 2,083 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.idea
.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Then I should NOT see "Control Center"

#FUNCTIONAL_REQUIREMENT
##VERIFY: Admin only can make project
When I create a new project named "A.2.2.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_1.xml" and clicking the "Create Project" button
When I create a new project named "A.2.2.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_1.xml", and clicking the "Create Project" button
And I click on the button labeled "I Agree" in the dialog box
Then I should see "Request Sent"
When I logout
Expand All @@ -111,6 +111,6 @@ Then I should see "New Project"

#FUNCTIONAL_REQUIREMENT
##VERIFY: User can make project
When I create a new project named "A.2.2.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_1.xml" and clicking the "Create Project" button
When I create a new project named "A.2.2.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_1.xml", and clicking the "Create Project" button
And I click on the button labeled "I Agree" in the dialog box
Then I should see "Project Setup"
66 changes: 66 additions & 0 deletions Feature Tests/A/Add Manage Users/A.2.2.400 - Delete.feature
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!"
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
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
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
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!"

This file was deleted.

This file was deleted.

Loading

0 comments on commit 94318c5

Please sign in to comment.