diff --git a/Feature Tests/A/Add Manage Users/A.2.2.100 - Create Users.feature b/Feature Tests/A/Add Manage Users/A.2.2.100 - Create Users.feature deleted file mode 100644 index b82fb5a2..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.100 - Create Users.feature +++ /dev/null @@ -1,116 +0,0 @@ -Feature: A.2.2.100 Add/Manage users Control Center - Users: The system shall support the ability create a single unique user with username, first name, last name, primary email, expiration date, and allow the user to create/copy projects. - -As a REDCap end user -I want to see that Add / Manage Users is functioning as expected - -Scenario: A.2.2.100.100 Create Users -#FUNCTIONAL_REQUIREMENT -##ACTION: A.2.2.100.200 Create a Table-based 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 "Add Users (Table-based Only)" -Then I should see "User Management for Table-based Authentication" - -When I enter "Test_User1" into the input field labeled "Username:" - And I enter "User1" into the input field labeled "First name:" - And I enter "Test" into the input field labeled "Last name:" - And I enter "Test_User1@redcap.edu" into the input field labeled "Primary email:" - And I check the checkbox labeled "Allow this user to request that projects be created for them by a REDCap administrator?" - And I click on the button labeled "Save" -Then I should see "User has been successfully saved." - And I should see "An email with login information was sent to: Test_User1@redcap.edu" - -# Reset password through email link -# leader will handle password change feature test - -#FUNCTIONAL_REQUIREMENT -##ACTION: A.2.2.100.300 Create Table-based users via bulk upload -When I click on the link labeled "Control Center" - And I click on the link labeled "Add Users (Table-based Only)" -Then I should see "User Management for Table-based Authentication" - -When I click on the link labeled "Create users (bulk upload)" - And I upload a "csv" format file located at "import_files/testusers_bulkupload.csv", by clicking the button near "Upload CSV file of new users" to browse for the file, and clicking the button labeled "Upload File" to upload the file -Then I should see "User was successfully added, and an email with login info was sent to user" - And I should see "Test_User2" - And I should see "Test_User3" - And I should see "Test_User4" - -# Reset password through email link -# leader will handle password change feature test - -#FUNCTIONAL_REQUIREMENT -##ACTION: A.2.2.100.400 Prevent a Second User with the Same Username - -When I click on the link labeled "Control Center" - And I click on the link labeled "Add Users (Table-based Only)" -Then I should see "User Management for Table-based Authentication" - -When I click on the link labeled "Add Users (Table-based Only)" - And I enter "Test_User1" into the input field labeled "Username:" - And I enter "User1" into the input field labeled "First name:" - And I enter "Test" into the input field labeled "Last name:" - And I enter "Test_User1@redcap.edu" into the input field labeled "Primary email:" - And I click on the button labeled "Save" -Then I should see "ERROR: The user could not be added!" - -#FUNCTIONAL_REQUIREMENT -##ACTION: A.2.2.100.500 Search a Table-based user - -When 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" - -When I enter "Test_User1" 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 "Test_User1" - -#FUNCTIONAL_REQUIREMENT -##ACTION: System-level User Settings -When I click on the link labeled "User Settings" -Then I should see "System-level User Settings" - -When I select "No, only Administrators can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" - And I select "No" on the dropdown field labeled "By default, allow new users to create projects" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -When I logout - -#FUNCTIONAL_REQUIREMENT -##ACTION: A.2.2.100.600 User has no control center access -Given I login to REDCap with the user "Test_User1" -Then I should NOT see "Control Center" - And I should see "New Project" - -#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 -And I click on the button labeled "I Agree" in the dialog box -Then I should see "Request Sent" -When I logout - -#FUNCTIONAL_REQUIREMENT -##ACTION: System-level User Settings -Given I login to REDCap with the user "Test_Admin" - And I click on the link labeled "Control Center" - When I click on the link labeled "User Settings" -Then I should see "System-level User Settings" - -When I select "Yes, normal users can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" - And I select "Yes" on the dropdown field labeled "By default, allow new users to create projects" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -When I logout - -#FUNCTIONAL_REQUIREMENT -##ACTION: User can make new project without admin -Given I login to REDCap with the user "Test_User1" -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 -And I click on the button labeled "I Agree" in the dialog box -Then I should see "Project Setup" diff --git a/Feature Tests/A/Add Manage Users/A.2.2.200 - Suspend - Unsuspend.feature b/Feature Tests/A/Add Manage Users/A.2.2.200 - Suspend - Unsuspend.feature deleted file mode 100644 index 9e095cc8..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.200 - Suspend - Unsuspend.feature +++ /dev/null @@ -1,119 +0,0 @@ -Feature: A.2.2.200 Add/Manage users - - As a REDCap end user - I want to see that Suspend/Unsuspend Individual Users is functioning as expected - - Scenario: A.2.2.200.100 Account suspension - 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 "Add Users (Table-based Only)" - Then I should see "User Management for Table-based Authentication" - - #SETUP_CYPRESS - add users - #NOTE: We are testing Suspend / Unsuspend - NOT bulk upload feature - # Bulk upload steps are concessions to make this functional if performed manually - When I click on the link labeled "Create users (bulk upload)" - And I upload a "csv" format file located at "import_files/testusers_bulkupload.csv", by clicking the button near "Upload CSV file of new users" to browse for the file, and clicking the button labeled "Upload File" to upload the file - Then I should see "User was successfully added, and an email with login info was sent to user" - And I should see "Test_User1" - And I should see "Test_User2" - And I should see "Test_User3" - And I should see "Test_User4" - -#FUNCTIONAL REQUIREMENT -##ACTION Cancel Suspend user account - When I click on the link labeled "Browse Users" - And I enter "Test_User1" 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 "Test_User1" - - - When I click on the button labeled "Suspend user account" and cancel the confirmation window - Then I should NOT see "Success! The user has now been suspended from REDCap" - And I should NOT see "unsuspend user" - - When I logout - -#VERIFY User not suspended - Given I login to REDCap with the user "Test_User1" - Then I should see "Home" - - When I logout - -#FUNCTIONAL REQUIREMENT -##ACTION Suspend user account - 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" - - When I enter "Test_User1" 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 "Test_User1" - - When I click on the button labeled "Suspend user account" and accept the confirmation window - Then I should see a dialog containing the following text: "Success! The user has now been suspended from REDCap" - - Given I click on the button labeled "Close" in the dialog box - Then I should see "unsuspend user" - -#VERIFY_USER #Control Center - Verify user is on suspended list - When I click on the link labeled "View User List By Criteria" - And I select "Suspended users" on the dropdown field labeled "Display only:" - And I click on the button labeled "Display User List" - Then I should see "Loading..." - And I should see "User List" - And I should see a link labeled "Test_User1" - - Given I logout - -#VERIFY User suspended - Given I login to REDCap with the user "Test_User1" - Then I should see "The following REDCap user account has been suspended:" - - When I logout - -#FUNCTIONAL REQUIREMENT -##ACTION Cancel unsuspend user account - 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" - - When I enter "Test_User1" 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 "Test_User1" - - When I click on the link labeled "unsuspend user" and cancel the confirmation window - Then I should see "unsuspend user" - - Given I logout - -#VERIFY User suspended - Given I login to REDCap with the user "Test_User1" - Then I should see "The following REDCap user account has been suspended:" - - When I logout - -#FUNCTIONAL REQUIREMENT -##ACTION Unsuspend user account - 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" - - When I enter "Test_User1" 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 "Test_User1" - - When I click on the link labeled "unsuspend user" and accept the confirmation window - Then I should see a dialog containing the following text: "Success! The user has now been unsuspended and will now be able to access REDCap again" - - When I click on the button labeled "Close" in the dialog box - Then I should see a button labeled "Suspend user account" - - When I logout - -#VERIFY User access - Given I login to REDCap with the user "Test_User1" - Then I should see "Home" diff --git a/Feature Tests/A/Add Manage Users/A.2.2.300 - Search by Criteria.feature b/Feature Tests/A/Add Manage Users/A.2.2.300 - Search by Criteria.feature deleted file mode 100644 index fab3863e..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.300 - Search by Criteria.feature +++ /dev/null @@ -1,60 +0,0 @@ -Feature: A.2.2.300 Add/Manage users Control Center - Users: The system shall support the ability to search for individual users and view/edit user information for username, first name, last name and/or primary email. - - As a REDCap end user - I want to see that Search Users is functioning as expected. - - Scenario: A.2.2.300.100 Search by username, first name, last name and/or primary email - - 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" - And I click on the link labeled "View User List By Criteria" - Then I should see "View User List By Criteria" - -#FUNCTIONAL REQUIREMENT -##ACTION Search by username with "Keyword search" - #Username is Test_Admin - When I enter "Test_Admin" into the field with the placeholder text of "Keyword search" - And I click on the button labeled "Display User List" - -#VERIFY_SEARCH - Then I should see a table header and rows containing the following values in the browse users table: - | Username | First Name | Last Name | Email | - | test_admin | Admin | User | test_admin@test.edu | - -#FUNCTIONAL REQUIREMENT -##ACTION Search by First Name with "Keyword search" - #First Name is Admin - When I click on the link labeled "View User List By Criteria" - And I enter "Admin" into the field with the placeholder text of "Keyword search" - And I click on the button labeled "Display User List" - - #VERIFY_SEARCH - Then I should see a table header and rows containing the following values in the browse users table: - | Username | First Name | Last Name | Email | - | test_admin | Admin | User | test_admin@test.edu | - -#FUNCTIONAL REQUIREMENT -##ACTION Search by Last Name with "Keyword search" - #Last Name is User - When I click on the link labeled "View User List By Criteria" - And I enter "Test" into the field with the placeholder text of "Keyword search" - And I click on the button labeled "Display User List" - - #VERIFY_SEARCH - Then I should see a table header and rows containing the following values in the browse users table: - | Username | First Name | Last Name | Email | - | test_admin | Admin | User | test_admin@test.edu | - -#FUNCTIONAL REQUIREMENT -##ACTION Search by Email with "Keyword search" - #Email is test_admin@test.edu - When I click on the link labeled "View User List By Criteria" - And I enter "test_admin@test.edu" into the field with the placeholder text of "Keyword search" - And I click on the button labeled "Display User List" - - #VERIFY_SEARCH - Then I should see a table header and rows containing the following values in the browse users table: - | Username | First Name | Last Name | Email | - | test_admin | Admin | User | test_admin@test.edu | - diff --git a/Feature Tests/A/Add Manage Users/A.2.2.400 - Delete.feature b/Feature Tests/A/Add Manage Users/A.2.2.400 - Delete.feature deleted file mode 100644 index 7f0c4ad8..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.400 - Delete.feature +++ /dev/null @@ -1,66 +0,0 @@ -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 "Delete_User@test.edu" 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!" diff --git a/Feature Tests/A/Add Manage Users/A.2.2.500 - REDUNDANT Tabular View.feature b/Feature Tests/A/Add Manage Users/A.2.2.500 - REDUNDANT Tabular View.feature deleted file mode 100644 index 43b7ef0f..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.500 - REDUNDANT Tabular View.feature +++ /dev/null @@ -1,7 +0,0 @@ -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 diff --git a/Feature Tests/A/Add Manage Users/A.2.2.600 - Account Lockout.feature b/Feature Tests/A/Add Manage Users/A.2.2.600 - Account Lockout.feature deleted file mode 100644 index 6cfe68c0..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.600 - Account Lockout.feature +++ /dev/null @@ -1,82 +0,0 @@ -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 diff --git a/Feature Tests/A/Add Manage Users/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature b/Feature Tests/A/Add Manage Users/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature deleted file mode 100644 index ee17033c..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature +++ /dev/null @@ -1,7 +0,0 @@ -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 diff --git a/Feature Tests/A/Add Manage Users/A.2.2.800 - Auto-Logout Inactivity Time.feature b/Feature Tests/A/Add Manage Users/A.2.2.800 - Auto-Logout Inactivity Time.feature deleted file mode 100644 index 87165462..00000000 --- a/Feature Tests/A/Add Manage Users/A.2.2.800 - Auto-Logout Inactivity Time.feature +++ /dev/null @@ -1,89 +0,0 @@ -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!" diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.100 - Create Users.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.100 - Create Users.feature new file mode 100644 index 00000000..154b8e77 --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.100 - Create Users.feature @@ -0,0 +1,117 @@ +Feature: A.2.2.100 Add/Manage users Control Center - Users: The system shall support the ability create a single unique user with username, first name, last name, primary email, expiration date, and allow the user to create/copy projects. + + As a REDCap end user + I want to see that Add / Manage Users is functioning as expected + + Scenario: A.2.2.100.100 Create Users + #FUNCTIONAL_REQUIREMENT + ##ACTION: A.2.2.100.200 Create a Table-based 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 "Add Users (Table-based Only)" + Then I should see "User Management for Table-based Authentication" + + When I enter "Test_User1" into the input field labeled "Username:" + And I enter "User1" into the input field labeled "First name:" + And I enter "Test" into the input field labeled "Last name:" + And I enter "Test_User1@redcap.edu" into the input field labeled "Primary email:" + And I check the checkbox labeled "Allow this user to request that projects be created for them by a REDCap administrator?" + And I click on the button labeled "Save" + Then I should see "User has been successfully saved." + And I should see "An email with login information was sent to: Test_User1@redcap.edu" + + # Reset password through email link + # leader will handle password change feature test + + #FUNCTIONAL_REQUIREMENT + ##ACTION: A.2.2.100.300 Create Table-based users via bulk upload + When I click on the link labeled "Control Center" + And I click on the link labeled "Add Users (Table-based Only)" + Then I should see "User Management for Table-based Authentication" + + When I click on the link labeled "Create users (bulk upload)" + And I upload a "csv" format file located at "import_files/testusers_bulkupload.csv", by clicking the button near "Upload CSV file of new users" to browse for the file, and clicking the button labeled "Upload File" to upload the file + Then I should see "User was successfully added, and an email with login info was sent to user" + And I should see "Test_User2" + And I should see "Test_User3" + And I should see "Test_User4" + + # Reset password through email link + # leader will handle password change feature test + + #FUNCTIONAL_REQUIREMENT + ##ACTION: A.2.2.100.400 Prevent a Second User with the Same Username + + When I click on the link labeled "Control Center" + And I click on the link labeled "Add Users (Table-based Only)" + Then I should see "User Management for Table-based Authentication" + + When I click on the link labeled "Add Users (Table-based Only)" + And I enter "Test_User1" into the input field labeled "Username:" + And I enter "User1" into the input field labeled "First name:" + And I enter "Test" into the input field labeled "Last name:" + And I enter "Test_User1@redcap.edu" into the input field labeled "Primary email:" + And I click on the button labeled "Save" + Then I should see "ERROR: The user could not be added!" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: A.2.2.100.500 Search a Table-based user + + When 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" + + When I enter "Test_User1" 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 "Test_User1" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: System-level User Settings + When I click on the link labeled "User Settings" + Then I should see "System-level User Settings" + + When I select "No, only Administrators can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" + And I select "No" on the dropdown field labeled "By default, allow new users to create projects" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + When I logout + + #FUNCTIONAL_REQUIREMENT + ##ACTION: A.2.2.100.600 User has no control center access + Given I login to REDCap with the user "Test_User1" + Then I should NOT see "Control Center" + And I should see "New Project" + + #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 + And I click on the button labeled "I Agree" in the dialog box + Then I should see "Request Sent" + When I logout + + #FUNCTIONAL_REQUIREMENT + ##ACTION: System-level User Settings + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "Control Center" + When I click on the link labeled "User Settings" + Then I should see "System-level User Settings" + + When I select "Yes, normal users can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" + And I select "Yes" on the dropdown field labeled "By default, allow new users to create projects" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + When I logout + + #FUNCTIONAL_REQUIREMENT + ##ACTION: User can make new project without admin + Given I login to REDCap with the user "Test_User1" + 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 + And I click on the button labeled "I Agree" in the dialog box + Then I should see "Project Setup" +#End \ No newline at end of file diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.200 - Suspend - Unsuspend.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.200 - Suspend - Unsuspend.feature new file mode 100644 index 00000000..f1bca591 --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.200 - Suspend - Unsuspend.feature @@ -0,0 +1,118 @@ +Feature: A.2.2.200 Add/Manage users + + As a REDCap end user + I want to see that Suspend/Unsuspend Individual Users is functioning as expected + + Scenario: A.2.2.200.100 Account suspension + 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 "Add Users (Table-based Only)" + Then I should see "User Management for Table-based Authentication" + + #SETUP_CYPRESS - add users + #NOTE: We are testing Suspend / Unsuspend - NOT bulk upload feature + # Bulk upload steps are concessions to make this functional if performed manually + When I click on the link labeled "Create users (bulk upload)" + And I upload a "csv" format file located at "import_files/testusers_bulkupload.csv", by clicking the button near "Upload CSV file of new users" to browse for the file, and clicking the button labeled "Upload File" to upload the file + Then I should see "User was successfully added, and an email with login info was sent to user" + And I should see "Test_User1" + And I should see "Test_User2" + And I should see "Test_User3" + And I should see "Test_User4" + + #FUNCTIONAL REQUIREMENT + ##ACTION Cancel Suspend user account + When I click on the link labeled "Browse Users" + And I enter "Test_User1" 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 "Test_User1" + When I click on the button labeled "Suspend user account" and cancel the confirmation window + Then I should NOT see "Success! The user has now been suspended from REDCap" + And I should NOT see "unsuspend user" + + Given I logout + + #VERIFY User not suspended + Given I login to REDCap with the user "Test_User1" + Then I should see "Home" + + When I logout + + #FUNCTIONAL REQUIREMENT + ##ACTION Suspend user account + 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" + + When I enter "Test_User1" 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 "Test_User1" + + When I click on the button labeled "Suspend user account" and accept the confirmation window + Then I should see a dialog containing the following text: "Success! The user has now been suspended from REDCap" + + Given I click on the button labeled "Close" in the dialog box + Then I should see "unsuspend user" + + #VERIFY_USER #Control Center - Verify user is on suspended list + When I click on the link labeled "View User List By Criteria" + And I select "Suspended users" on the dropdown field labeled "Display only:" + And I click on the button labeled "Display User List" + Then I should see "Loading..." + And I should see "User List" + And I should see a link labeled "Test_User1" + + Given I logout + + #VERIFY User suspended + Given I login to REDCap with the user "Test_User1" + Then I should see "The following REDCap user account has been suspended:" + + Given I logout + + #FUNCTIONAL REQUIREMENT + ##ACTION Cancel unsuspend user account + 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" + + When I enter "Test_User1" 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 "Test_User1" + + When I click on the link labeled "unsuspend user" and cancel the confirmation window + Then I should see "unsuspend user" + + Given I logout + + #VERIFY User suspended + Given I login to REDCap with the user "Test_User1" + Then I should see "The following REDCap user account has been suspended:" + + When I logout + + #FUNCTIONAL REQUIREMENT + ##ACTION Unsuspend user account + 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" + + When I enter "Test_User1" 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 "Test_User1" + + When I click on the link labeled "unsuspend user" and accept the confirmation window + Then I should see a dialog containing the following text: "Success! The user has now been unsuspended and will now be able to access REDCap again" + + When I click on the button labeled "Close" in the dialog box + Then I should see a button labeled "Suspend user account" + + When I logout + + #VERIFY User access + Given I login to REDCap with the user "Test_User1" + Then I should see "Home" + #End \ No newline at end of file diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.300 - Search by Criteria.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.300 - Search by Criteria.feature new file mode 100644 index 00000000..a7b77db3 --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.300 - Search by Criteria.feature @@ -0,0 +1,60 @@ +Feature: A.2.2.300 Add/Manage users Control Center - Users: The system shall support the ability to search for individual users and view/edit user information for username, first name, last name and/or primary email. + + As a REDCap end user + I want to see that Search Users is functioning as expected. + + Scenario: A.2.2.300.100 Search by username, first name, last name and/or primary email + + 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" + And I click on the link labeled "View User List By Criteria" + Then I should see "View User List By Criteria" + + #FUNCTIONAL REQUIREMENT + ##ACTION Search by username with "Keyword search" + #Username is Test_Admin + When I enter "Test_Admin" into the field with the placeholder text of "Keyword search" + And I click on the button labeled "Display User List" + + #VERIFY_SEARCH + Then I should see a table header and rows containing the following values in the browse users table: + | Username | First Name | Last Name | Email | + | test_admin | Admin | User | test_admin@test.edu | + + #FUNCTIONAL REQUIREMENT + ##ACTION Search by First Name with "Keyword search" + #First Name is Admin + When I click on the link labeled "View User List By Criteria" + And I enter "Admin" into the field with the placeholder text of "Keyword search" + And I click on the button labeled "Display User List" + + #VERIFY_SEARCH + Then I should see a table header and rows containing the following values in the browse users table: + | Username | First Name | Last Name | Email | + | test_admin | Admin | User | test_admin@test.edu | + + #FUNCTIONAL REQUIREMENT + ##ACTION Search by Last Name with "Keyword search" + #Last Name is User + When I click on the link labeled "View User List By Criteria" + And I enter "Test" into the field with the placeholder text of "Keyword search" + And I click on the button labeled "Display User List" + + #VERIFY_SEARCH + Then I should see a table header and rows containing the following values in the browse users table: + | Username | First Name | Last Name | Email | + | test_admin | Admin | User | test_admin@test.edu | + + #FUNCTIONAL REQUIREMENT + ##ACTION Search by Email with "Keyword search" + #Email is test_admin@test.edu + When I click on the link labeled "View User List By Criteria" + And I enter "test_admin@test.edu" into the field with the placeholder text of "Keyword search" + And I click on the button labeled "Display User List" + + #VERIFY_SEARCH + Then I should see a table header and rows containing the following values in the browse users table: + | Username | First Name | Last Name | Email | + | test_admin | Admin | User | test_admin@test.edu | + #End \ No newline at end of file diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.400 - Delete.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.400 - Delete.feature new file mode 100644 index 00000000..25c5c79a --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.400 - Delete.feature @@ -0,0 +1,67 @@ +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 "Delete_User@test.edu" 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!" + #End \ No newline at end of file diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.500 - REDUNDANT Tabular View.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.500 - REDUNDANT Tabular View.feature new file mode 100644 index 00000000..58bd1a7a --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.500 - REDUNDANT Tabular View.feature @@ -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 diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.600 - Account Lockout.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.600 - Account Lockout.feature new file mode 100644 index 00000000..35372f0f --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.600 - Account Lockout.feature @@ -0,0 +1,83 @@ +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 +#End \ No newline at end of file diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature new file mode 100644 index 00000000..360a823a --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.700 - REDUNDANT -Account Lockout Time Change.feature @@ -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 \ No newline at end of file diff --git a/Feature Tests/A/Add Manage Users_2/A.2.2.800 - Auto-Logout Inactivity Time.feature b/Feature Tests/A/Add Manage Users_2/A.2.2.800 - Auto-Logout Inactivity Time.feature new file mode 100644 index 00000000..4405752e --- /dev/null +++ b/Feature Tests/A/Add Manage Users_2/A.2.2.800 - Auto-Logout Inactivity Time.feature @@ -0,0 +1,90 @@ +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!" +#End \ No newline at end of file diff --git a/Feature Tests/A/Assign Administrators/A.2.3.100 - Administrators Table.feature b/Feature Tests/A/Assign Administrators/A.2.3.100 - Administrators Table.feature deleted file mode 100644 index 1406261c..00000000 --- a/Feature Tests/A/Assign Administrators/A.2.3.100 - Administrators Table.feature +++ /dev/null @@ -1,13 +0,0 @@ -Feature: A.2.3.100 Assign administrators and account managers - - As a REDCap end user - I want to see that Control Center is functioning as expected - - Scenario: A.2.3.100.100 View administrator accounts - 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 "Administrator Privileges" - Then I should see "Set administrator privileges" - And I should see a table header and rows containing the following values in the administrators table: - | Administrators | - | Test_Admin (Admin User) | diff --git a/Feature Tests/A/Assign Administrators/A.2.3.200 - Add Remove Admins.feature b/Feature Tests/A/Assign Administrators/A.2.3.200 - Add Remove Admins.feature deleted file mode 100644 index 3557ad39..00000000 --- a/Feature Tests/A/Assign Administrators/A.2.3.200 - Add Remove Admins.feature +++ /dev/null @@ -1,45 +0,0 @@ -Feature: A.2.3.200 Assign administrators and account managers - - As a REDCap end user - I want to see that Assign Super Users / Account Managers is functioning as expected - - Scenario: A.2.3.200.100 Give/remove user admin user rights - Given I login to REDCap with the user "Test_Admin" - When I click on the link labeled "Control Center" - Then I click on the link labeled "Administrator Privileges" - And I should see "Set administrator privileges" - - Given I enter "Test_User1" into the field with the placeholder text of "Search users to add as admin" - When I enable the Administrator Privilege "Set administrator privileges" for a new administrator - And I click on the button labeled "Add" - Then I should see 'The user "Test_User1" has now been granted one or more administrator privileges' - - Given I click on the button labeled "OK" - Then I should see "Test_User1" - - Given I click on the link labeled "Control Center" - When I click on the link labeled "Administrator Privileges" - Then I should see "Set administrator privileges" - And I should see "Test_User1" - - Given I logout - When I login to REDCap with the user "Test_User1" - Then I should see a link labeled "Control Center" - - Given I logout - When 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 "Administrator Privileges" - Then I should see "Set administrator privileges" - - Given I disable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" - Then I should see a dialog containing the following text: "Please be aware that you have unchecked ALL the administrator privileges for this user" - - Given I click on the button labeled "Close" in the dialog box - When I click on the link labeled "Administrator Privileges" - Then I should see "Set administrator privileges" - And I should NOT see "Test_User1" - - Given I logout - When I login to REDCap with the user "Test_User1" - Then I should NOT see a link labeled "Control Center" diff --git a/Feature Tests/A/Assign Administrators/A.2.3.300 - Super Users and Account Managers.feature b/Feature Tests/A/Assign Administrators/A.2.3.300 - Super Users and Account Managers.feature deleted file mode 100644 index 2d945fc8..00000000 --- a/Feature Tests/A/Assign Administrators/A.2.3.300 - Super Users and Account Managers.feature +++ /dev/null @@ -1,79 +0,0 @@ -Feature: A.2.3.300 Assign administrators and account managers - - As a REDCap end user - I want to see that Assign Super Users / Account Managers is functioning as expected - -Scenario: A.2.3.300.100 Modify and Revoke Admin's User Rights -#SETUP control center -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 "Administrator Privileges" -Then I should see "Set administrator privileges" - -#FUNCTIONAL REQUIREMENT -##ACTION Add administrator #A.2.3.200.100 -When I enter "Test_User1" into the field with the placeholder text of "Search users to add as admin" - And I enable the Administrator Privilege "Set administrator privileges" for a new administrator - And I click on the button labeled "Add" -Then I should see 'The user "Test_User1" has now been granted one or more administrator privileges' - And I click on the button labeled "OK" - And I should see "Test_User1" - -##VERIFY added administrator -When I click on the link labeled "Control Center" - And I click on the link labeled "Administrator Privileges" -Then I should see "Set administrator privileges" - And I enable the Administrator Privilege "Manage user accounts" for the administrator "Test_User1" - And I enable the Administrator Privilege "Modify system configuration pages" for the administrator "Test_User1" - -Given I logout - -##VERIFY new administrator access to control center -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "Control Center" -Then I should see "Control Center Home" - And I should see a link labeled "Browse Projects" - And I should see a link labeled "Browse Users" - And I should see a link labeled "Multi-Language Management" - And I should see a link labeled "General Configuration" - -Given I logout - -##ACTION change new admins rights -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 "Administrator Privileges" -Then I should see "Set administrator privileges" - -Given I enable the Administrator Privilege "Access to Control Center dashboards" for the administrator "Test_User1" -When I disable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" - And I disable the Administrator Privilege "Manage user accounts" for the administrator "Test_User1" - And I disable the Administrator Privilege "Modify system configuration pages" for the administrator "Test_User1" - And I logout - -##VERIFY limited admin rights -Given I login to REDCap with the user "Test_User1" -Then I should see a link labeled "Control Center" - -Given I logout - -##ACTION Remove new admin #A.2.3.200.100 -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 "Administrator Privileges" -Then I should see "Set administrator privileges" - -Given I disable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" -Then I should see a dialog containing the following text: "Please be aware that you have unchecked ALL the administrator privileges for this user" - -Given I click on the button labeled "Close" in the dialog box - When I click on the link labeled "Administrator Privileges" -Then I should see "Set administrator privileges" - And I should NOT see "Test_User1" - -Given I logout - -##VERIFY user is no longer admin. -When I login to REDCap with the user "Test_User1" -Then I should NOT see a link labeled "Control Center" - diff --git a/Feature Tests/A/Assign Administrators/A.2.3.400 - Assign Administrators and Account Managers.feature b/Feature Tests/A/Assign Administrators/A.2.3.400 - Assign Administrators and Account Managers.feature deleted file mode 100644 index 3b01f7cf..00000000 --- a/Feature Tests/A/Assign Administrators/A.2.3.400 - Assign Administrators and Account Managers.feature +++ /dev/null @@ -1,83 +0,0 @@ -Feature: A.2.3.400 Assign administrators and account managers - -As a REDCap end user -I want to see that Assign Super Users / Account Managers is functioning as expected - -Scenario: A.2.3.400.100 Give and remove user maximum user privileges - #SETUP control center -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 "Administrator Privileges" -Then I should see "Set administrator privileges" - -#FUNCTIONAL REQUIREMENT -##ACTION Add administrator #A.2.3.200.100 and #A.2.3.300.100 -When I enter "Test_User1" into the field with the placeholder text of "Search users to add as admin" - And I enable the Administrator Privilege "Set administrator privileges" for a new administrator - And I enable the Administrator Privilege "Access to all projects and data" for a new administrator - And I enable the Administrator Privilege "Manage user accounts" for a new administrator - And I enable the Administrator Privilege "Perform REDCap upgrades" for a new administrator - And I enable the Administrator Privilege "Install, upgrade, and configure" for a new administrator - And I enable the Administrator Privilege "Modify system configuration pages" for a new administrator - And I enable the Administrator Privilege "Access to Control Center dashboards" for a new administrator - And I click on the button labeled "Add" -##VERIFY added administrator -Then I should see 'The user "Test_User1" has now been granted one or more administrator privileges' - And I click on the button labeled "OK" in the dialog box - -Given I logout - -##VERIFY new administrator access to control center -Given I login to REDCap with the user "Test_User1" - And I click on the link labeled "Control Center" -Then I should see "Control Center Home" - And I should see a link labeled "Browse Projects" - And I should see a link labeled "Browse Users" - And I should see a link labeled "General Configuration" - -Given I logout - -##ACTION change new admins rights -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 "Administrator Privilege" -Then I should see "Set administrator privileges" - -When I disable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" - And I disable the Administrator Privilege "Access to all projects and data" for the administrator "Test_User1" - And I disable the Administrator Privilege "Manage user accounts" for the administrator "Test_User1" - And I disable the Administrator Privilege "Perform REDCap upgrades" for the administrator "Test_User1" - And I disable the Administrator Privilege "Install, upgrade, and configure" for the administrator "Test_User1" - And I disable the Administrator Privilege "Modify system configuration pages" for the administrator "Test_User1" - And I disable the Administrator Privilege "Access to Control Center dashboards" for the administrator "Test_User1" -Then I should see a dialog containing the following text: "NOTICE" - And I should see a dialog containing the following text: "Please be aware that you have unchecked ALL the administrator privileges for this user" - And I click on the button labeled "Close" in the dialog box - -Given I logout - -##VERIFY limited admin rights -Given I login to REDCap with the user "Test_User1" - Then I should NOT see "Control Panel" - And I logout - -##ACTION Remove new admin #A.2.3.200.100 -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 "Administrator Privileges" -Then I should see "Set administrator privileges" - -Given I disable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" -Then I should see a dialog containing the following text: "Please be aware that you have unchecked ALL the administrator privileges for this user" - -Given I click on the button labeled "Close" in the dialog box - When I click on the link labeled "Administrator Privileges" -Then I should see "Set administrator privileges" - And I should NOT see "Test_User1" - -Given I logout - -##VERIFY user is no longer admin. -When I login to REDCap with the user "Test_User1" -Then I should NOT see a link labeled "Control Center" - diff --git a/Feature Tests/A/Assign Administrators_3/A.2.3.100 - REDUNDANT Administrators Table.feature b/Feature Tests/A/Assign Administrators_3/A.2.3.100 - REDUNDANT Administrators Table.feature new file mode 100644 index 00000000..c21ee147 --- /dev/null +++ b/Feature Tests/A/Assign Administrators_3/A.2.3.100 - REDUNDANT Administrators Table.feature @@ -0,0 +1,8 @@ +Feature: A.2.3.100 Assign administrators and account managers + + As a REDCap end user + I want to see that Control Center is functioning as expected + + Scenario: A.2.3.100.100 View administrator accounts + +#REDUNDANT - Tested in A.2.3.200.100 \ No newline at end of file diff --git a/Feature Tests/A/Assign Administrators_3/A.2.3.200 - Add Remove Admins.feature b/Feature Tests/A/Assign Administrators_3/A.2.3.200 - Add Remove Admins.feature new file mode 100644 index 00000000..1d691b66 --- /dev/null +++ b/Feature Tests/A/Assign Administrators_3/A.2.3.200 - Add Remove Admins.feature @@ -0,0 +1,117 @@ +Feature: A.2.3.200 Assign administrators and account managers + + As a REDCap end user + I want to see that Assign Super Users / Account Managers is functioning as expected + + Scenario: A.2.3.200.100 Give/remove user admin user rights + +Feature: A.2.3.200 Assign administrators and account managers + + As a REDCap end user + I want to see that Assign Super Users / Account Managers is functioning as expected + + Scenario: A.2.3.200.100 Give/remove user admin user rights + #FUNCTIONAL REQUIREMENT A.2.3.100.100 View administrator accounts + ##ACTION A.2.3.100.100 View administrator accounts + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "Control Center" + And I click on the link labeled "Administrator Privileges" + + #VERIFY A.2.3.100.100 View administrator accounts + Then I should see "Set administrator privileges" + And I should see a table header and rows containing the following values in the administrators table: + | Administrators | + | Test_Admin (Admin User) | + + #FUNCTIONAL REQUIREMENT A.2.3.200 Assign administrators and account managers + ##ACTION Add administrator account no privileges + Given I enter "Test_User1" into the field with the placeholder text of "Search users to add as admin" + And I click on the button labeled "Add" + #VERIFY: Required privileges to be selected + Then I should see a dialog containing the following text: "check one or more" + And I close the popup + + #FUNCTIONAL REQUIREMENT A.2.3.200 Assign administrators + Given I enter "Test_User1" into the field with the placeholder text of "Search users to add as admin" + And I enable the Administrator Privilege "Set administrator privileges" for a new administrator + And I click on the button labeled "Add" + + #VERIFY A.2.3.200 Assign administrators + Then I should see 'The user "Test_User1" has now been granted one or more administrator privileges' + When I click on the button labeled "OK" + Then I should see a table header and rows containing the following values in the administrators table: + | Administrators | Set administrator privileges | Access to all projects and data with maximum user privileges | Manage user accounts | Modify system configuration pages | Install, upgrade, and configure External Modules | Perform REDCap upgrades | Access to Control Center dashboards | + | Test_User1 | Enable | Disable | Disable | Disable | Disable | Disable | Disable | + + Given I logout + Then I login to REDCap with the user "Test_User1" + And I click on the link labeled "Control Center" + And I click on the link labeled "Administrator Privileges" + + Then I should see a table header and rows containing the following values in the administrators table: + | Administrators | Set administrator privileges | Access to all projects and data with maximum user privileges | Manage user accounts | Modify system configuration pages | Install, upgrade, and configure External Modules | Perform REDCap upgrades | Access to Control Center dashboards | + | Test_User1 | Enable | Disable | Disable | Disable | Disable | Disable | Disable | + + #FUNCTIONAL REQUIREMENT A.2.3.300 & A.2.3.400 Modify by Enable Administrator Privileges + When I enable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" + And I enable the Administrator Privilege "Access to all projects and data with maximum user privileges" for the administrator "Test_User1" + And I enable the Administrator Privilege "Manage user accounts" for the administrator "Test_User1" + And I enable the Administrator Privilege "Modify system configuration pages" for the administrator "Test_User1" + And I enable the Administrator Privilege "Install, upgrade, and configure External Modules" for the administrator "Test_User1" + And I enable the Administrator Privilege "Perform REDCap upgrades" for the administrator "Test_User1" + And I enable the Administrator Privilege "Access to Control Center dashboards" for the administrator "Test_User1" + + Then I should see a table header and rows containing the following values in the administrators table: + | Administrators | Set administrator privileges | Access to all projects and data with maximum user privileges | Manage user accounts | Modify system configuration pages | Install, upgrade, and configure External Modules | Perform REDCap upgrades | Access to Control Center dashboards | + | Test_User1 | Enable | Enable | Enable | Enable | Enable | Enable | Enable | + + #VERIFY Administrator Privileges + When I click on the link labeled "Control Center" + Then I should see "Administrator privileges" + And I should see "Browse Projects" + And I should see "Edit Project Settings" + And I should see "Add Users" + And I should see "General Configurations" + And I should see "User Settings" + + #FUNCTIONAL REQUIREMENT A.2.3.300 & A.2.3.400 Modify by Disable Administrator Privileges + When I enable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" + And I disable the Administrator Privilege "Access to all projects and data with maximum user privileges" for the administrator "Test_User1" + And I disable the Administrator Privilege "Manage user accounts" for the administrator "Test_User1" + And I disable the Administrator Privilege "Modify system configuration pages" for the administrator "Test_User1" + And I disable the Administrator Privilege "Install, upgrade, and configure External Modules" for the administrator "Test_User1" + And I disable the Administrator Privilege "Perform REDCap upgrades" for the administrator "Test_User1" + And I disable the Administrator Privilege "Access to Control Center dashboards" for the administrator "Test_User1" + + Then I should see a table header and rows containing the following values in the administrators table: + | Administrators | Set administrator privileges | Access to all projects and data with maximum user privileges | Manage user accounts | Modify system configuration pages | Install, upgrade, and configure External Modules | Perform REDCap upgrades | Access to Control Center dashboards | + | Test_User1 | Enable | Disable | Disable | Disable | Disable | Disable | Disable | + + #VERIFY Administrator Privileges + When I click on the link labeled "Control Center" + Then I should see "Administrator privileges" + And I should see "Browse Projects" + And I should NOT see "Edit Project Settings" + And I should NOT "Add Users" + And I should see "General Configurations" + And I should NOT "User Settings" + Given I logout + + #ACTION Remove admin #A.2.3.200.100 + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "Control Center" + And I click on the link labeled "Administrator Privileges" + And I disable the Administrator Privilege "Set administrator privileges" for the administrator "Test_User1" + + Then I should see a dialog containing the following text: "Please be aware that you have unchecked ALL the administrator privileges for this user" + + When Given I click on the button labeled "Close" in the dialog box + When I click on the link labeled "Administrator Privileges" + Then I should see "Set administrator privileges" + And I should NOT see "Test_User1" + Given I logout + + ##VERIFY user is no longer admin. + When I login to REDCap with the user "Test_User1" + Then I should NOT see a link labeled "Control Center" + #End \ No newline at end of file diff --git a/Feature Tests/A/Assign Administrators_3/A.2.3.300 - REDUNDANT Super Users and Account Managers.feature b/Feature Tests/A/Assign Administrators_3/A.2.3.300 - REDUNDANT Super Users and Account Managers.feature new file mode 100644 index 00000000..56e9c36a --- /dev/null +++ b/Feature Tests/A/Assign Administrators_3/A.2.3.300 - REDUNDANT Super Users and Account Managers.feature @@ -0,0 +1,5 @@ +Feature: A.2.3.300 Assign administrators and account managers + + Scenario: A.2.3.300.100 Modify and Revoke Admin's User Rights + +#REDUNDANT - Tested in A.2.3.200.100 \ No newline at end of file diff --git a/Feature Tests/A/Assign Administrators_3/A.2.3.400 - REDUNDANT Assign Administrators and Account Managers.feature b/Feature Tests/A/Assign Administrators_3/A.2.3.400 - REDUNDANT Assign Administrators and Account Managers.feature new file mode 100644 index 00000000..67d0238f --- /dev/null +++ b/Feature Tests/A/Assign Administrators_3/A.2.3.400 - REDUNDANT Assign Administrators and Account Managers.feature @@ -0,0 +1,5 @@ +Feature: A.2.3.400 Assign administrators and account managers + + Scenario: A.2.3.400.100 Give and remove user maximum user privileges + +#REDUNDANT - Tested in A.2.3.200.100 \ No newline at end of file diff --git a/Feature Tests/A/Browse Projects/ A.1.5.100 - Browse Projects.feature b/Feature Tests/A/Browse Projects/ A.1.5.100 - Browse Projects.feature deleted file mode 100644 index f5dc0457..00000000 --- a/Feature Tests/A/Browse Projects/ A.1.5.100 - Browse Projects.feature +++ /dev/null @@ -1,56 +0,0 @@ -Feature: A.1.5.100 Browse Projects - - As a REDCap end user - I want to see that I have the ability to access, search, and filter projects - - Scenario: A.1.5.100.100 Search/Sort project and Locate by User - Given I login to REDCap with the user "Test_Admin" - And I create a new project named "A.1.5.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 link labeled "Control Center" - And I click on the link labeled "Browse Projects" - Then I should see "Viewing projects accessible by user:" - - When I click on the button labeled "View all projects" - Then I should see "A.1.5.100.100" - - When I click on the link labeled "Control Center" - And I click on the link labeled "Browse Projects" - Then I should see "Viewing projects accessible by user:" - - When I enter "A.1.5.100.100" into the input field labeled "Search project title by keyword(s):" - And I click on the button labeled "Search project title" - Then I should see a row labeled "A.1.5.100.100" in the projects table - - When I click on the link labeled "Browse Projects" - Then I should see "Viewing projects accessible by user:" - - When I click on the button labeled "View all projects" - Then I should see "A.1.5.100.100" - - When I click on the table heading column labeled "Project Title" - Then I should see projects sorted correctly when I click on "Project Title" to sort in either direction - - When I click on the table heading column labeled "PID" - Then I should see projects sorted correctly when I click on "PID" to sort in either direction - - When I click on the table heading column labeled "Records" - Then I should see projects sorted correctly when I click on "Records" to sort in either direction - - When I click on the table heading column labeled "Fields" - Then I should see projects sorted correctly when I click on "Fields" to sort in either direction - - When I click on the table heading column labeled "Instruments" - Then I should see projects sorted correctly when I click on "Instruments" to sort in either direction - - When I click on the table heading column labeled "Type" - Then I should see projects sorted correctly when I click on "Type" to sort in either direction - - When I click on the table heading column labeled "Status" - Then I should see projects sorted correctly when I click on "Status" to sort in either direction - - When I click on the link labeled "Browse Projects" - Then I should see "Viewing projects accessible by user:" - - When I enter "Test_Admin" into the input field labeled "Viewing projects accessible by user:" - And I click on the button labeled exactly "View" - Then I should see "A.1.5.100.100" diff --git a/Feature Tests/A/Browse Projects_5/ A.1.5.100 - Browse Projects.feature b/Feature Tests/A/Browse Projects_5/ A.1.5.100 - Browse Projects.feature new file mode 100644 index 00000000..c5ee2329 --- /dev/null +++ b/Feature Tests/A/Browse Projects_5/ A.1.5.100 - Browse Projects.feature @@ -0,0 +1,50 @@ +Feature: A.1.5.100 Browse Projects + + As a REDCap end user + I want to see that I have the ability to access, search, and filter projects + + Scenario: A.1.5.100.100 Search/Sort project and Locate by User + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.1.5.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 link labeled "Control Center" + And I click on the link labeled "Browse Projects" + Then I should see "Viewing projects accessible by user:" + + When I enter "A.1.5.100.100" into the input field labeled "Search project title by keyword(s):" + And I click on the button labeled "Search project title" + Then I should see a row labeled "A.1.5.100.100" in the projects table + + When I click on the link labeled "Browse Projects" + Then I should see "Viewing projects accessible by user:" + + When I click on the button labeled "View all projects" + Then I should see "A.1.5.100.100" + + When I click on the table heading column labeled "Project Title" + Then I should see projects sorted correctly when I click on "Project Title" to sort in either direction + + When I click on the table heading column labeled "PID" + Then I should see projects sorted correctly when I click on "PID" to sort in either direction + + When I click on the table heading column labeled "Records" + Then I should see projects sorted correctly when I click on "Records" to sort in either direction + + When I click on the table heading column labeled "Fields" + Then I should see projects sorted correctly when I click on "Fields" to sort in either direction + + When I click on the table heading column labeled "Instruments" + Then I should see projects sorted correctly when I click on "Instruments" to sort in either direction + + When I click on the table heading column labeled "Type" + Then I should see projects sorted correctly when I click on "Type" to sort in either direction + + When I click on the table heading column labeled "Status" + Then I should see projects sorted correctly when I click on "Status" to sort in either direction + + When I click on the link labeled "Browse Projects" + Then I should see "Viewing projects accessible by user:" + + When I enter "Test_Admin" into the input field labeled "Viewing projects accessible by user:" + And I click on the button labeled exactly "View" + Then I should see "A.1.5.100.100" +#End \ No newline at end of file diff --git a/Feature Tests/A/Configuration Check/A.1.1.100 - Run Configuration Check.feature b/Feature Tests/A/Configuration Check/A.1.1.100 - Run Configuration Check.feature deleted file mode 100644 index d2f5d0ae..00000000 --- a/Feature Tests/A/Configuration Check/A.1.1.100 - Run Configuration Check.feature +++ /dev/null @@ -1,26 +0,0 @@ -Feature: A.1.1.100 Run Configuration Check test page - - As a REDCap end user - I want to see that Configuration Checklist is functioning as expected - - Scenario: A.1.1.100.100 Configuration Checklist Tests - - Given I login to REDCap with the user "Test_Admin" - And I click on the link labeled "Control Center" - Then I should be able to locate and visit the Control Center link labeled "Browse Projects" - And I should be able to locate and visit the Control Center link labeled "Edit a Project's Settings" - And I should be able to locate and visit the Control Center link labeled "Configuration Check" - And I should be able to locate and visit the Control Center link labeled "General Configuration" - And I should be able to locate and visit the Control Center link labeled "Security & Authentication" - And I should be able to locate and visit the Control Center link labeled "User Settings" - And I should be able to locate and visit the Control Center link labeled "File Upload Settings" - And I should be able to locate and visit the Control Center link labeled "Field Validation Types" - - When I click on the link labeled "Configuration Check" - Then I should see "Configuration Check" - And I should see "TEST 1" - And I should see "TEST 2" - And I should see "TEST 3" - And I should see "TEST 4" - And I should see "TEST 5" - And I should see "TEST 6" diff --git a/Feature Tests/A/Configuration Check_1/A.1.1.100 - Run Configuration Check.feature b/Feature Tests/A/Configuration Check_1/A.1.1.100 - Run Configuration Check.feature new file mode 100644 index 00000000..904d42d6 --- /dev/null +++ b/Feature Tests/A/Configuration Check_1/A.1.1.100 - Run Configuration Check.feature @@ -0,0 +1,40 @@ +Feature: A.1.1.100 Run Configuration Check test page + + As a REDCap end user + I want to see that Configuration Checklist is functioning as expected + + Scenario: A.1.1.100.100 Configuration Checklist Tests + + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "Control Center" + Then I should be able to locate and visit the Control Center link labeled "Browse Projects" + And I should be able to locate and visit the Control Center link labeled "Edit Project Settings" + And I should be able to locate and visit the Control Center link labeled "Configuration Check" + And I should be able to locate and visit the Control Center link labeled "General Configuration" + And I should be able to locate and visit the Control Center link labeled "Security & Authentication" + And I should be able to locate and visit the Control Center link labeled "User Settings" + And I should be able to locate and visit the Control Center link labeled "File Upload Settings" + And I should be able to locate and visit the Control Center link labeled "Field Validation Types" + + When I click on the link labeled "Configuration Check" + Then I should see "Configuration Check" + And I should see "TEST 1" + And I should see "SUCCESSFUL! - All necessary files and folders were found." + And I should see "TEST 2" + And I should see 'SUCCESSFUL! - The table "redcap_config" in the MySQL database named' + And I should see "TEST 3" + And I should see "SUCCESSFUL! - Your REDCap database structure is correct!" + And I should see "TEST 4" + And I should see "SUCCESSFUL! - The cURL extension is installed." + And I should see "TEST 5" + And I should see "SUCCESSFUL! - Communicated successfully with the REDCap Consortium server." + And I should see "TEST 6" + #And I should see "SUCCESSFUL! - REDCap Cron job is running properly." + #And I should see "Using SSL" + #And I should see "Using PHP 7.3.0 or higher" + #And I should see "Using MariaDB 5.5.5 or higher" + #And I should see "GD library (version 2 or higher) is installed" + #And I should see "PHP Imagick extension is installed" + #And I should see "PHP Fileinfo extension is installed" + #And I should see "REDCap is able to send emails" +#End \ No newline at end of file diff --git a/Feature Tests/A/Field Validation/A.4.8.100 - Enable field validation.feature b/Feature Tests/A/Field Validation/A.4.8.100 - Enable field validation.feature deleted file mode 100644 index 7053a5da..00000000 --- a/Feature Tests/A/Field Validation/A.4.8.100 - Enable field validation.feature +++ /dev/null @@ -1,103 +0,0 @@ -Feature: Control Center: The system shall support the enabling/disabling of field validation types. (Date (Y-M-D) | Datetime (Y-M-D H:M) | Datetime w/seconds (Y-M-D H:M:S) | Email | Integer | Number | Number (1 decimal place - comma as decimal) | Time (HH:MM)) - -As a REDCap end user -I want to see that Field validation is functioning as expected - -Scenario: A.4.8.100.100 Control center Enable/disable field validation -#SETUP -Given I login to REDCap with the user "Test_Admin" - And I create a new project named "A.4.8.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" - And I click on the button labeled "Move project to production" - And I click on the radio labeled "Keep ALL data saved so far" in the dialog box - And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status -Then I should see Project status: "Production" - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation Disable -When I click on the link labeled "Control Center" - And I click on the link labeled "Field Validation Types" -Then I should see "Validation Types Currently Available for Use in All Projects" - -When I click on the button labeled "Disable" for the field labeled "Date (D-M-Y)" - And I click on the button labeled "Disable" for the field labeled "Datetime (M-D-Y H:M)" - And I click on the button labeled "Disable" for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" - And I click on the button labeled "Disable" for the field labeled "Email" - And I click on the button labeled "Disable" for the field labeled "Integer" - And I click on the button labeled "Disable" for the field labeled "Number" - And I click on the button labeled "Disable" for the field labeled "Number (1 decimal place - comma as decimal)" - And I click on the button labeled "Disable" for the field labeled "Time (HH:MM)" -Then I should see the disabled icon for the field labeled "Date (D-M-Y)" - And I should see the disabled icon for the field labeled "Datetime (M-D-Y H:M)" - And I should see the disabled icon for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" - And I should see the disabled icon for the field labeled "Email" And I should see the disabled icon for the field labeled "Integer" - And I should see the disabled icon for the field labeled "Number" - And I should see the disabled icon for the field labeled "Number (1 decimal place - comma as decimal)" - And I should see the disabled icon for the field labeled "Time (HH:MM)" - -##VERIFY: options not available on validation dropdown field -When I click on the link labeled "My Projects" - And I click on the link labeled "A.4.8.100.100" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode." - -When I click on the instrument labeled "Data Types" - And I click on the button labeled "Add Field" at the bottom of the instrument - And I select the dropdown option labeled "Text Box" from the dropdown field with the placeholder text "Select a Type of Field" -Then I should see the field labeled "Validation?" - -When I click on the dropdown field for the field labeled "Validation?" -Then I should see the dropdown option "None" - And I should NOT see the dropdown option "Date (D-M-Y)" - And I should NOT see the dropdown option " Datetime (M-D-Y H:M)" - And I should NOT see the dropdown option " Datetime w/seconds (Y-M-D H:M:S)" - And I should NOT see the dropdown option "Email" - And I should NOT see the dropdown option "Integer" - And I should NOT see the dropdown option "Number" - And I should NOT see the dropdown option "Number (1 decimal place - comma as decimal)" - And I should NOT see the dropdown option "Time (HH:MM)" - - #SETUP - Given I click on the button labeled "Cancel" - And I click on the link labeled "Control Center" - And I click on the link labeled "Field Validation Types" -Then I should see "Validation Types Currently Available for Use in All Projects" - -When I click on the button labeled "Enable" for the field labeled "Date (D-M-Y)" - And I click on the button labeled "Enable" for the field labeled "Datetime (M-D-Y H:M)" - And I click on the button labeled "Enable" for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" - And I click on the button labeled "Enable" for the field labeled "Email" - And I click on the button labeled "Enable" for the field labeled "Integer" - And I click on the button labeled "Enable" for the field labeled "Number" - And I click on the button labeled "Enable" for the field labeled "Number (1 decimal place - comma as decimal)" - And I click on the button labeled "Enable" for the field labeled "Time (HH:MM)" -Then I should see the green checkmark icon for the field labeled "Date (D-M-Y)" - And I should see the green checkmark icon for the field labeled "Datetime (M-D-Y H:M)" - And I should see the green checkmark icon for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" - And I should see the green checkmark icon for the field labeled "Email" - And I should see the green checkmark icon for the field labeled "Integer" - And I should see the green checkmark icon for the field labeled "Number" - And I should see the green checkmark icon for the field labeled "Number (1 decimal place - comma as decimal)" - And I should see the green checkmark icon for the field labeled "Time (HH:MM)" - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation Enable -##VERIFY: options are available on validation dropdown field - -When I click on the link labeled "My Projects" - And I click on the link labeled "A.4.8.100.100" And I click on the link labeled "Designer" - And I click on the instrument labeled "Data Types" - And I click on the button labeled "Add Field" at the bottom of the instrument - And I select the dropdown option labeled "Text Box" from the dropdown field with the placeholder text "Select a Type of Field" Then I should see the field labeled "Validation?" - And I click on the dropdown field for the field labeled "Validation?" -Then I should see the dropdown option "Date (D-M-Y)" - And I should see the dropdown option " Datetime (M-D-Y H:M)" - And I should see the dropdown option " Datetime w/seconds (Y-M-D H:M:S)" - And I should see the dropdown option "Email" - And I should see the dropdown option "Integer" - And I should see the dropdown option "Number" - And I should see the dropdown option "Number (1 decimal place - comma as decimal)" - And I should see the dropdown option "Time (HH:MM)" And I click on the button labeled "Cancel" diff --git a/Feature Tests/A/Field Validation_8/A.4.8.100 - Enable field validation.feature b/Feature Tests/A/Field Validation_8/A.4.8.100 - Enable field validation.feature new file mode 100644 index 00000000..0c5b079c --- /dev/null +++ b/Feature Tests/A/Field Validation_8/A.4.8.100 - Enable field validation.feature @@ -0,0 +1,104 @@ +Feature: Control Center: The system shall support the enabling/disabling of field validation types. (Date (Y-M-D) | Datetime (Y-M-D H:M) | Datetime w/seconds (Y-M-D H:M:S) | Email | Integer | Number | Number (1 decimal place - comma as decimal) | Time (HH:MM)) + + As a REDCap end user + I want to see that Field validation is functioning as expected + + Scenario: A.4.8.100.100 Control center Enable/disable field validation + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.4.8.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status + Then I should see Project status: "Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation Disable + When I click on the link labeled "Control Center" + And I click on the link labeled "Field Validation Types" + Then I should see "Validation Types Currently Available for Use in All Projects" + + When I click on the button labeled "Disable" for the field labeled "Date (D-M-Y)" + And I click on the button labeled "Disable" for the field labeled "Datetime (M-D-Y H:M)" + And I click on the button labeled "Disable" for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" + And I click on the button labeled "Disable" for the field labeled "Email" + And I click on the button labeled "Disable" for the field labeled "Integer" + And I click on the button labeled "Disable" for the field labeled "Number" + And I click on the button labeled "Disable" for the field labeled "Number (1 decimal place - comma as decimal)" + And I click on the button labeled "Disable" for the field labeled "Time (HH:MM)" + Then I should see the disabled icon for the field labeled "Date (D-M-Y)" + And I should see the disabled icon for the field labeled "Datetime (M-D-Y H:M)" + And I should see the disabled icon for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" + And I should see the disabled icon for the field labeled "Email" And I should see the disabled icon for the field labeled "Integer" + And I should see the disabled icon for the field labeled "Number" + And I should see the disabled icon for the field labeled "Number (1 decimal place - comma as decimal)" + And I should see the disabled icon for the field labeled "Time (HH:MM)" + + ##VERIFY: options not available on validation dropdown field + When I click on the link labeled "My Projects" + And I click on the link labeled "A.4.8.100.100" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode." + + When I click on the instrument labeled "Data Types" + And I click on the button labeled "Add Field" at the bottom of the instrument + And I select the dropdown option labeled "Text Box" from the dropdown field with the placeholder text "Select a Type of Field" + Then I should see the field labeled "Validation?" + + When I click on the dropdown field for the field labeled "Validation?" + Then I should see the dropdown option "None" + And I should NOT see the dropdown option "Date (D-M-Y)" + And I should NOT see the dropdown option " Datetime (M-D-Y H:M)" + And I should NOT see the dropdown option " Datetime w/seconds (Y-M-D H:M:S)" + And I should NOT see the dropdown option "Email" + And I should NOT see the dropdown option "Integer" + And I should NOT see the dropdown option "Number" + And I should NOT see the dropdown option "Number (1 decimal place - comma as decimal)" + And I should NOT see the dropdown option "Time (HH:MM)" + + #SETUP + Given I click on the button labeled "Cancel" + And I click on the link labeled "Control Center" + And I click on the link labeled "Field Validation Types" + Then I should see "Validation Types Currently Available for Use in All Projects" + + When I click on the button labeled "Enable" for the field labeled "Date (D-M-Y)" + And I click on the button labeled "Enable" for the field labeled "Datetime (M-D-Y H:M)" + And I click on the button labeled "Enable" for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" + And I click on the button labeled "Enable" for the field labeled "Email" + And I click on the button labeled "Enable" for the field labeled "Integer" + And I click on the button labeled "Enable" for the field labeled "Number" + And I click on the button labeled "Enable" for the field labeled "Number (1 decimal place - comma as decimal)" + And I click on the button labeled "Enable" for the field labeled "Time (HH:MM)" + Then I should see the green checkmark icon for the field labeled "Date (D-M-Y)" + And I should see the green checkmark icon for the field labeled "Datetime (M-D-Y H:M)" + And I should see the green checkmark icon for the field labeled "Datetime w/seconds (Y-M-D H:M:S)" + And I should see the green checkmark icon for the field labeled "Email" + And I should see the green checkmark icon for the field labeled "Integer" + And I should see the green checkmark icon for the field labeled "Number" + And I should see the green checkmark icon for the field labeled "Number (1 decimal place - comma as decimal)" + And I should see the green checkmark icon for the field labeled "Time (HH:MM)" + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation Enable + ##VERIFY: options are available on validation dropdown field + + When I click on the link labeled "My Projects" + And I click on the link labeled "A.4.8.100.100" And I click on the link labeled "Designer" + And I click on the instrument labeled "Data Types" + And I click on the button labeled "Add Field" at the bottom of the instrument + And I select the dropdown option labeled "Text Box" from the dropdown field with the placeholder text "Select a Type of Field" Then I should see the field labeled "Validation?" + And I click on the dropdown field for the field labeled "Validation?" + Then I should see the dropdown option "Date (D-M-Y)" + And I should see the dropdown option " Datetime (M-D-Y H:M)" + And I should see the dropdown option " Datetime w/seconds (Y-M-D H:M:S)" + And I should see the dropdown option "Email" + And I should see the dropdown option "Integer" + And I should see the dropdown option "Number" + And I should see the dropdown option "Number (1 decimal place - comma as decimal)" + And I should see the dropdown option "Time (HH:MM)" And I click on the button labeled "Cancel" + #End \ No newline at end of file diff --git a/Feature Tests/A/File Repository/A.3.26.100 - Public File Share.feature b/Feature Tests/A/File Repository/A.3.26.100 - Public File Share.feature deleted file mode 100644 index 1d77e015..00000000 --- a/Feature Tests/A/File Repository/A.3.26.100 - Public File Share.feature +++ /dev/null @@ -1,67 +0,0 @@ -Feature: Control Center: The system shall provide the ability to enable/disable sharing of files via a public link. - -As a REDCap end user - I want to see that file repository is functioning as expected - -Scenario: C.3.26.100.100 Enable/Disable file repository public links via Control Center -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "A.3.26.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 link labeled "My Projects" -And I click on the link labeled "A.3.26.100.100" -And I click the link labeled "Designer" -And I click the button labeled "Survey Settings" for the instrument "Consent" -And I click on the button labeled "Auto-Archiver enabled + e-Consent Framework" -Then I click the button labeled "Save Changes" - -##SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -##ACTION Upload to top tier file repo (all users will see file) - using the Select files to upload button -When I click on the link labeled "File Repository" -When I upload a "csv" format file located at "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file -##VERIFY_FiRe file uploaded in folder -Then I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Disable File Repository Module -When I click on the link labeled "Control Center" -And I click on the link labeled "File Upload Settings " -Then I should see "Configuration Option for Various Types of Stored Files" - -When I select the dropdown option labeled "Disabled" on the dropdown field labeled "File Repository: Users are able to share files via public links" -And I click on the button labeled "Save Changes" - -##VERIFY File Repository Module Disabled -Then I should see "Your system configuration values have now been changed!" -##VERIFY Project settings share ability in File Repository -When I click on the link labeled "My Projects" -And I click on the link labeled "A.3.26.100.100" -When I click on the link labeled "File Repository." -And I click on the file share icon for "testusers_bulk_upload.csv" -Then I should see "Send the file securely using Send-It" -And I should NOT see "Share a public link to view the file" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Enable File Repository Module -When I click on the link labeled "Control Center" -And I click on the link labeled "File Upload Settings" -And I select the dropdown option labeled "Enabled" on the dropdown field labeled "File Repository: Users are able to share files via public links" -And I select the button "Save Changes" - ##VERIFY File Repository Module Enabled -Then I should see "Your system configuration values have now been changed!" -##VERIFY Project settings shareability in File Repository -When I click on the link labeled "My Projects" -And I click on the link labeled "A.3.26.100.100" -And I click on the link labeled "File Repository." -And I click on the file share icon for "testusers_bulk_upload.csv" -Then I should see Send the file securely using Send-It" -And I should see "Share a public link to view the file" -And I click on the button labeled "Close" in the dialog box - - - diff --git a/Feature Tests/A/File Repository_26/A.3.26.100 - Public File Share.feature b/Feature Tests/A/File Repository_26/A.3.26.100 - Public File Share.feature new file mode 100644 index 00000000..68981321 --- /dev/null +++ b/Feature Tests/A/File Repository_26/A.3.26.100 - Public File Share.feature @@ -0,0 +1,68 @@ +Feature: Control Center: The system shall provide the ability to enable/disable sharing of files via a public link. + + As a REDCap end user + I want to see that file repository is functioning as expected + + Scenario: C.3.26.100.100 Enable/Disable file repository public links via Control Center + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.3.26.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 link labeled "My Projects" + And I click on the link labeled "A.3.26.100.100" + And I click the link labeled "Designer" + And I click the button labeled "Survey Settings" for the instrument "Consent" + And I click on the button labeled "Auto-Archiver enabled + e-Consent Framework" + And I click the button labeled "Save Changes" + + ##SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##ACTION Upload to top tier file repo (all users will see file) - using the Select files to upload button + When I click on the link labeled "File Repository" + And I upload a "csv" format file located at "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + ##VERIFY_FiRe file uploaded in folder + Then I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Disable File Repository Module + When I click on the link labeled "Control Center" + And I click on the link labeled "File Upload Settings " + Then I should see "Configuration Options for Various Types of Stored Files" + + When I select the dropdown option labeled "Disabled" on the dropdown field labeled "File Repository: Users are able to share files via public links" + And I click on the button labeled "Save Changes" + + ##VERIFY File Repository Module Disabled + Then I should see "Your system configuration values have now been changed!" + ##VERIFY Project settings share ability in File Repository + When I click on the link labeled "My Projects" + And I click on the link labeled "A.3.26.100.100" + And I click on the link labeled "File Repository." + And I click on the file share icon for "testusers_bulk_upload.csv" + Then I should see "Send the file securely using Send-It" + And I should NOT see "Share a public link to view the file" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Enable File Repository Module + When I click on the link labeled "Control Center" + And I click on the link labeled "File Upload Settings" + And I select the dropdown option labeled "Enabled" on the dropdown field labeled "File Repository: Users are able to share files via public links" + And I select the button "Save Changes" + ##VERIFY File Repository Module Enabled + Then I should see "Your system configuration values have now been changed!" + + ##VERIFY Project settings shareability in File Repository + When I click on the link labeled "My Projects" + And I click on the link labeled "A.3.26.100.100" + And I click on the link labeled "File Repository." + And I click on the file share icon for "testusers_bulk_upload.csv" + Then I should see "Send the file securely using Send-It" + And I should see "Share a public link to view the file" + + When I click on the button labeled "Close" in the dialog box + Then I should see "All Files" +#End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup/A.6.4.100 - User Create Projects.feature b/Feature Tests/A/Project Setup/A.6.4.100 - User Create Projects.feature deleted file mode 100644 index 0f504bbd..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.100 - User Create Projects.feature +++ /dev/null @@ -1,59 +0,0 @@ -Feature: A.6.4.100 Manage project creation, deletion, and settings. Control Center: The system shall support the option to limit the creation of new projects to administrators. - -As a REDCap end user -I want to see that manage project functions is functioning as expected - - Scenario: A.6.4.100.100 User's ability to create new projects -#SETUP_CONTROL_CENTER -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 "User Settings" -Then I should see "System-level User Settings" - -#FUNCTIONAL REQUIREMENT -##ACTION Admin only can make project -When I select "No, only Administrators can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -# Manual tester skips next step. -# BEGIN: STEPS FOR ATS -# - EMAIL ADDRESS SET FOR REDCAP ADMIN - without it, project request behavior does not work properly -# - CUSTOM MESSAGE SET - Makes the dialog box pop up when requesting a project -Given I click on the link labeled "General Configuration" -Then I should see "General Configuration" - -When I enter "redcap@test.instance" into the input field labeled "Email Address of REDCap Administrator" - And I enter "You are now creating a test project" into the textarea field labeled "Custom message when creating/copying project" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed" -# END: STEPS FOR ATS ### - -Given I logout - -##VERIFY User can create new project with request to Admin -Given I login to REDCap with the user "Test_User1" - And I create a new project named "A.6.4.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 "Send Request" button - And I click on the button labeled "I Agree" in the dialog box -Then I should see "Request Sent!" - -Given I logout - -#FUNCTIONAL REQUIREMENT -##ACTION Normal user can make new project -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 "User Settings" -Then I should see "System-level User Settings" - -When I select "Yes, normal users can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -Given I logout - -##VERIFY User can create new project without request -Given I login to REDCap with the user "Test_User1" - And I create a new project named "A.6.4.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 "Your new REDCap project has been created" diff --git a/Feature Tests/A/Project Setup/A.6.4.1500 - Manage Survey User..feature b/Feature Tests/A/Project Setup/A.6.4.1500 - Manage Survey User..feature deleted file mode 100644 index 15cc52ec..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.1500 - Manage Survey User..feature +++ /dev/null @@ -1,45 +0,0 @@ -Feature: Control Center: The system shall allow the survey feature to be enabled or disabled. - -As a REDCap end user - I want to see that survey feature is functioning as expected - -Scenario: A.6.4.1500.100 Enable and disable survey feature -#SETUP_DEV -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "A.6.4.1500.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 - -#FUNCTIONAL REQUIREMENT -##ACTION Disable survey feature in Control Center -When I click on the link labeled "Control Center" -And I click on the link labeled "Modules/Services Configuration" -And I select "Disabled" on the dropdown field labeled "Enable the use of surveys in projects?" -And I click on the button "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -#VERIFY Disable survey feature in project setup -When I click on the link labeled "My Projects" -And I click on the link labeled "A.6.4.1500.100" - And I click on the link labeled "Project Setup" -Then I should NOT see the button labeled "Enable" for the field labeled "Use surveys in this project?" - - #FUNCTIONAL REQUIREMENT -##ACTION: Enable survey mode in Control Center - Given I click on the link labeled "Control Center" -And I click on the link labeled "Modules/Services Configuration" - And I select "Enabled" on the dropdown field labeled " Enable the use of surveys in projects?" -And I click on the button "Save Changes" -Then I should see "Your system configuration values have now been changed! " - -#VERIFY Enable survey feature in project setup -When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.1500.100" -And I click on the link labeled "Project Setup" -Then I should see the button labeled "Disable" for the field labeled "Use surveys in this project?" - -When I click on the button labeled "Disable" for the field labeled "Use surveys in this project?" -And I click on the button "Disable" in the dialog box -Then I should see the button labeled "Enable" for the field labeled "Use surveys in this project?" - -##VERIFY_LOG -When I click the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: | Username | Action | List of Data Changes OR Fields Exported | | test_admin | Manage/Design | Modify project settings| diff --git a/Feature Tests/A/Project Setup/A.6.4.1600 - Edit Survey Responses.feature b/Feature Tests/A/Project Setup/A.6.4.1600 - Edit Survey Responses.feature deleted file mode 100644 index b8dd030f..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.1600 - Edit Survey Responses.feature +++ /dev/null @@ -1,76 +0,0 @@ -Feature: Control Center: The system shall allow users to edit survey responses to be enabled or disabled. - - As a REDCap end user - I want to see that allow edit survey response is functioning as expected - -Scenario: A.6.4.1600.100 -#PARENT to A.6.4.300.100 User's ability to edit survey responses -#SETUP_DEV -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "A.6.4.1600.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 - -#FUNCTIONAL REQUIREMENT - ##ACTION Admin Disable edit survey response function in control center - When I click on the link labeled "Control Center" - And I click on the link labeled "User Settings" -And I select the dropdown option labeled "Disabled" on the dropdown field labeled "Allow users to edit survey responses?" -And I click on the button labeled "Save Changes" - Then I should see "Your system configuration values have now been changed!" - -##VERIFY: Admin Go to user rights and look for the edit survey checkbox (should be missing) - When I click on the link labeled "My Projects" And I click on the link labeled "A.6.4.1600.100" -And I click on the link labeled "User Rights" And I click on the link labeled "test_admin" -And I click on the button labeled "Edit user privileges" -Then I should NOT see the checkbox labeled "Edit user privileges" for the instrument labeled "Survey" - And I click on the button labeled "Cancel" - - #FUNCTIONAL REQUIREMENT -##ACTION: Admin Enable edit survey response function in control center -Given I click on the link labeled "Control Center" -When I click on the link labeled "User Settings" -And I select the dropdown option labeled "Enabled" on the dropdown field labeled "Allow users to edit survey responses?" -And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -##VERIFY: Admin Go to user rights and look for the edit survey checkbox (should be there) -Given I click on the link labeled "My Projects" -When I click on the link labeled "A.6.4.1600.100" -And I click on the link labeled "User Rights" -And I click on the link labeled "test_admin" -And I click on the button labeled "Edit user privileges" -Then I should see the checkbox labeled "Edit user privileges" for the instrument labeled "Survey" - -#FUNCTIONAL REQUIREMENT - ##ACTION: Enable editing survey responses for survey instrument -When I click on the checkbox labeled "Edit user privileges" for the instrument labeled "Survey" -And I click on the button labeled "Save Changes" - Then I should see "User "test_admin" was successfully edited" - -#SETUP -#A.6.4.300.100 User's ability to edit survey responses -Given I click the link labeled "Record Status Dashboard" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" for record "1" - And I click on the button labeled "Survey options" And I select the option labeled "Open survey" - And I enter "SURVEY RESPONSE" in the field labeled "Name" And I click on the button labeled "Submit" - Then I should see "Thank you for taking the survey" And I click on the button labeled "Close survey" - -##VERIFY_RSD -Given I click on the button labeled "Leave without saving changes" -Then I should see the Completed Survey Response icon for the "Survey" longitudinal instrument on event "Event Three" for record "1" - -When I click the bubble for the "Survey" longitudinal instrument on event "Event Three" for record "1" -Then I should see "Survey response is editable" - - #FUNCTIONAL REQUIREMENT -##ACTION: Edit survey response -When I click on the button labeled "Edit response" -And I enter "EDITED SURVEY RESPONSE" in the field labeled "Name" -And I click on the button labeled "Save & Stay" from the dropdown field -Then I should see "EDITED SURVEY RESPONSE" in the field labeled "Name" - -##VERIFY_LOG -When I click the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: - | Username | Action | List of Data Changes OR Fields Exported | - | test_admin | Update record 1 | name_survey = 'EDITED SURVEY RESPONSE ' | - | [survey respondent] | Update Response 1 | name_survey = 'SURVEY RESPONSE ' | diff --git a/Feature Tests/A/Project Setup/A.6.4.200 - Move to Production.feature b/Feature Tests/A/Project Setup/A.6.4.200 - Move to Production.feature deleted file mode 100644 index b331be44..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.200 - Move to Production.feature +++ /dev/null @@ -1,98 +0,0 @@ -Feature: A.6.4.200 Manage project creation, deletion, and settings - - As a REDCap end user - I want to see that project management features are functioning as expected - -Scenario: A.6.4.200.100 User requests admin move project to production -#SETUP_CONTROL_CENTER -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 "User Settings" -Then I should see "System-level User Settings" - -When I select "No, only Administrators can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" - 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_DEV -Given I login to REDCap with the user "Test_User1" - And I create a new project named "A.6.4.200.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 -Then I should see "Project Setup" - -#FUNCTIONAL REQUIREMENT -##ACTION User request move to production -When I click on the button labeled "Move project to production" - And I click on the radio labeled "Keep ALL data saved so far" in the dialog box - And I click on the button labeled "Yes, Request Admin to Move to Production Status" in the dialog box to request a change in project status -##VERIFY -Then I should see "Request pending" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Send request to move project to production status | - -Given I logout - -##ACTION Admin moves project to production -Given I login to REDCap with the user "Test_Admin" - And I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.200.100" - And I click on the link labeled "Control Center" - And I click on the link labeled "To-Do List" -Then I should see "Pending Requests" - And I should see the "Move to prod" request created for the project named "A.6.4.200.100" within the "Pending Requests" table - -When I click on the "process request" icon for the "Move to prod" request created for the project named "A.6.4.200.100" within the "Pending Requests" table -Then I should see "Move Project To Production Status" in the iframe - -When I click on the radio labeled "Keep ALL data saved so far." in the dialog box in the iframe - And I click on the button labeled "YES, Move to Production Status" in the dialog box in the iframe - And I close the iframe window -Then I should see the "Move to prod" request created for the project named "A.6.4.200.100" within the "Completed & Archived Requests" table - -##VERIFY -When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.200.100" -Then I should see Project status: "Production" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Move project to Production status | - - -Scenario: A.6.4.200.200 User moves project to production -#SETUP_CONTROL_CENTER -When I click on the link labeled "Control Center" - And I click on the link labeled "User Settings" -Then I should see "System-level User Settings" - -When I select "Yes, normal users can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" - 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_DEV -Given I login to REDCap with the user "Test_Admin" - And I create a new project named "A.6.4.200.200" 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 -Then I should see "Project Setup" - -#FUNCTIONAL REQUIREMENT -##ACTION User moves project into production -When I should see a button labeled "Move project to production" - And I click on the radio labeled "Keep ALL data saved so far." in the dialog box - And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status -##VERIFY_PRODUCTION -Then I should see Project status: "Production" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Move project to Production status | diff --git a/Feature Tests/A/Project Setup/A.6.4.300 - REDUNDANT Edit Survey Responses.feature b/Feature Tests/A/Project Setup/A.6.4.300 - REDUNDANT Edit Survey Responses.feature deleted file mode 100644 index 49216841..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.300 - REDUNDANT Edit Survey Responses.feature +++ /dev/null @@ -1,10 +0,0 @@ -Feature: A.6.4.300 Manage project creation, deletion, and settings - - Manage project creation, deletion, and settings - Control Center: The system shall support enabling users to edit survey responses. - - Scenario: A.6.4.300.100 User's ability to edit survey responses - -#REDUNDANT - Tested in A.6.4.1600.100 -#CHILD - diff --git a/Feature Tests/A/Project Setup/A.6.4.400 - Draft Mode.feature b/Feature Tests/A/Project Setup/A.6.4.400 - Draft Mode.feature deleted file mode 100644 index ee11456f..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.400 - Draft Mode.feature +++ /dev/null @@ -1,419 +0,0 @@ -Feature: A.6.4.400 Manage project creation, deletion, and settings. Control Center: The system shall allow production Draft Mode changes to be approved automatically under certain conditions. - -As a REDCap end user - I want to see that manage project functions is functioning as expected - - Scenario: A.6.4.400.100 User's ability to approve draft changes without administrative approval - -#SETUP - Given I login to REDCap with the user "Test_Admin" - And I create a new project named "A.6.4.400.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 - -#SETUP_CONTROL_CENTER - # BEGIN: STEPS FOR ATS - # - EMAIL ADDRESS SET FOR REDCAP ADMIN - without it, project request behavior does not work properly - Given I click on the link labeled "Control Center" - And I click on the link labeled "General Configuration" - Then I should see "General Configuration" - - When I enter "redcap@test.instance" into the input field labeled "Email Address of REDCap Administrator" - And I click on the button labeled "Save Changes" - Then I should see "Your system configuration values have now been changed" - # END: STEPS FOR ATS ### - -#SETUP_USER - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - - And I click on the link labeled "User Rights" - And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" - And I click on the button labeled "Assign to role" - And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown - When I click on the button labeled exactly "Assign" on the role selector dropdown - Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -#SETUP_PRODUCTION - Given I click on the link labeled "Project Setup" - And I click on the button labeled "Move project to production" - And I click on the radio labeled "Keep ALL data saved so far" in the dialog box - And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status - Then I should see Project status: "Production" - -##VERIFY_LOG - And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Move project to Production status | - -#FUNCTIONAL REQUIREMENT -#SETUP_CONTROL_CENTER Never allow user to automatically approve changes - When I click on the link labeled "Control Center" - And I click on the link labeled "User Settings" - Then I should see "System-level User Settings" - When I select "Never (always require an admin to approve changes)" on the dropdown field labeled "Allow production Draft Mode changes to be approved automatically under certain conditions?" - 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 -#User submit change request - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" -##VERIFY_LOG - And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Enter draft mode | - - When I click on the link labeled "Designer" - When I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Awaiting review of project changes" -##VERIFY_LOG -And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | - - Given I logout - -#FUNCTIONAL REQUIREMENT -#Admin rejects changes - Given I login to REDCap with the user "Test_Admin" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - Then I should see "REVIEW CHANGES?" - - When I click on the button labeled "Project Modification Module" - And I click on the button labeled "Reject Changes" - And I click on the button labeled "Reject Changes" in the dialog box - Then I should see "Project Changes Rejected / User Notified" - Given I logout - -#FUNCTIONAL REQUIREMENT -#User submit change request - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" -##VERIFY_LOG -And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Reject production project modifications | - - And I click on the link labeled "Designer" - #THE PROJECT STAYS IN DRAFT MODE IF THE CHANGES ARE REJECTED SO DRAFT MODE BUTTON DOES NOT APPEAR - #And I click on the button labeled "Enter Draft Mode" - #Then I should see "The project is now in Draft Mode" - - When I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Awaiting review of project changes" -##VERIFY_LOG -And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | - - Given I logout - -#FUNCTIONAL REQUIREMENT -#Admin commits changes - Given I login to REDCap with the user "Test_Admin" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - Then I should see "REVIEW CHANGES?" - - When I click on the button labeled "Project Modification Module" - And I click on the button labeled "COMMIT CHANGES" - And I click on the button labeled "COMMIT CHANGES" in the dialog box - Then I should see "Project Changes Committed / User Notified" - Given I logout - - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" -##VERIFY_LOG -And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Approve production project modifications | - - And I click on the link labeled "Designer" - Then I should see "Enter Draft Mode" - -##A.6.4.400.200 User's ability to approve draft changes without administrative approval if no existing fields were modified -##SETUP_CONTROL_CENTER Allow user to approve changes automatically - 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 "User Settings" - Then I should see "System-level User Settings" - When I select "Yes, if no existing fields were modified" on the dropdown field labeled "Allow production Draft Mode changes to be approved automatically under certain conditions?" - 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 -#User Modifies field and submit changes - request sent to admin - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" - - When I click on the link labeled "Data Types" - And I click on the Edit image for the field named "Radio" - And I enter Choices of "102, Choice102" into the open "Edit Field" dialog box - And I click on the button labeled "Save" - And I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Awaiting review of project changes" - -##VERIFY_LOG -When I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Request approval for production project modifications| - - Given I logout - -#FUNCTIONAL REQUIREMENT -#Admin remove changes - Given I login to REDCap with the user "Test_Admin" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - Then I should see "REVIEW CHANGES?" - - When I click on the button labeled "Project Modification Module" - And I click on the button labeled "Remove All Drafted Changes" - And I click on the button labeled "Remove All Drafted Changes" in the dialog box - Then I should see "Project Changes Removed / User Notified" - - ##VERIFY_LOG -When I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Remove production project modifications| - - Given I logout - -#FUNCTIONAL REQUIREMENT -#User modifies by adding field and submitting changes - changes automatically accepted - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" - - When I click on the link labeled "Data Types" - And I add a new Text Box field labeled "Text Box 2" with variable name "textbox_2" and click on the "Save" button - Then I should see "Text Box 2" - - When I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Changes Were Made Automatically" - And I click on the button labeled "Close" in the dialog box - And I click on the link labeled "Logging" - - ##VERIFY_LOG - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Approve production project modifications (automatic) | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Create project field | - -## A.6.4.400.300 User's ability to approve draft changes without administrative approval if no critical issues exist -##SETUP_CONTROL_CENTER Allow user to approve changes automatically if project has no records OR if has records and no critical issues exist - Given I login to REDCap with the user "Test_Admin" - When I click on the link labeled "Control Center" - And I click on the link labeled "User Settings" - And I select "Yes, if project has no records OR if has records and no critical issues exist" on the dropdown field labeled "Allow production Draft Mode changes to be approved automatically under certain conditions?" - 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 -#User automatically submit changes with no change - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.4.400.100" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" - - When I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Changes Were Made Automatically" - And I click on the button labeled "Close" in the dialog box -##VERIFY_LOG - And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Approve production project modifications (automatic) | - -#FUNCTIONAL REQUIREMENT -#User creates critical modification to field and request change -When I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" - -When I click on the link labeled "Data Types" - And I click on the Edit image for the field named "Radio Button Manual" - - #We are deleting the third option and renaming "100, Choice100" to "101, Choice100" in one step. This is a critical change - And I clear field and enter Choices of "9..9, Choice99{enter}101, Choice100" into the open "Edit Field" dialog box - - And I click on the button labeled "Save" - And I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Awaiting review of project changes" -##VERIFY_LOG -And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | - - Given I logout - -#FUNCTIONAL REQUIREMENT -#Admin removes All Drafted Changes - Given I login to REDCap with the user "Test_Admin" - And I click on the link labeled "Designer" - Then I should see "REVIEW CHANGES?" - - When I click on the button labeled "Project Modification Module" - Then I should see "Total potentially critical issues: 1" - And I click on the button labeled "Remove All Drafted Changes" - And I click on the button labeled "Remove All Drafted Changes" in the dialog box - Then I should see "Project Changes Removed / User Notified" - -##VERIFY_LOG -And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Remove production project modifications | - - Given I logout - - -#FUNCTIONAL REQUIREMENT -#User creates critical modification to field and request change -Given I login to REDCap with the user "Test_User1" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" - - When I click on the link labeled "Data Types" - And I click on the Edit image for the field named "Radio Button Manual" - - #We are deleting the third option and renaming "100, Choice100" to "101, Choice100" in one step - And I clear field and enter Choices of "9..9, Choice99{enter}101, Choice100" into the open "Edit Field" dialog box - - And I click on the button labeled "Save" - And I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Awaiting review of project changes" - And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | - - Given I logout - -#FUNCTIONAL REQUIREMENT -#Admin Commit Changes - Given I login to REDCap with the user "Test_Admin" - And I click on the link labeled "Designer" - Then I should see "REVIEW CHANGES?" - - When I click on the button labeled "Project Modification Module" - Then I should see "Total potentially critical issues: 1" - And I click on the button labeled "COMMIT CHANGES" - And I click on the button labeled "COMMIT CHANGES" in the dialog box - Then I should see "Project Changes Committed / User Notified" - -##VERIFY_LOG - And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Approve production project modifications | - -##VERIFY_CODEBOOK - And I click on the link labeled "Codebook" - Then I should see a table header and rows containing the following values in the logging table: - | # | Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | - | 14 | [radio_button_manual] | Radio Button Manual |radio 9..9 Choice99 101 Choice100 | - - ##VERIFY_DE - When I click on the link labeled "Data Exports, Reports, and Stats" - - Given I see a table rows containing the following values in the reports table: - | A | All data (all records and fields) | - | B | Selected instruments and/or events | - - And I click on the button labeled "View Report" - - # The manual step: Then I should see "Choice100 (101)" - # IMPORTANT: The above is NOT what we would expect to see - # The data entered in this project was entered BEFORE we made these changes to the Radio Button Manual field - # Thus, because we have unmapped the original value (100) from the label of Choice100 ... - # We would expect to see ONLY the raw value (100) in the report data table - - Given I see a table header and rows containing the following values in the report data table: - | Record ID | Repeat Instrument | Event Name | Radio Button Manual | - | 1 | Data Types | Event 1 (Arm 1: Arm 1) | | - | 2 | Data Types | Event 1 (Arm 1: Arm 1) | (100) | - | 3 | Data Types | Event 1 (Arm 1: Arm 1) | (100) | - | 4 | Data Types | Event 1 (Arm 1: Arm 1) | (100) | - - When I click on the link labeled "Designer" - - Given I logout - - -#FUNCTIONAL REQUIREMENT -#User creates non-critical modification to field and automatically committed -Given I login to REDCap with the user "Test_User1" - And I click on the link labeled "Designer" - And I click on the button labeled "Enter Draft Mode" - Then I should see "The project is now in Draft Mode" - - When I click on the link labeled "Data Types" - And I click on the Edit image for the field named "Radio Button Manual" - - #We are adding the third option of "102, Choice102" - And I clear field and enter Choices of "9..9, Choice99{enter}101, Choice100{enter}102, Choice102" in the open "Edit Field" dialog box - - And I click on the button labeled "Save" - And I click on the button labeled "Submit Changes for Review" - And I click on the button labeled "Submit" in the dialog box - Then I should see "Changes Were Made Automatically" - And I click on the button labeled "Close" in the dialog box - -##VERIFY_LOG - And I click on the link labeled "Logging" - - Then I should see a table header and rows containing the following values in the logging table: - | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | - | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Approve production project modifications (automatic) | diff --git a/Feature Tests/A/Project Setup/A.6.4.500 - Repeatable Instruments.feature b/Feature Tests/A/Project Setup/A.6.4.500 - Repeatable Instruments.feature deleted file mode 100644 index 8dea2869..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.500 - Repeatable Instruments.feature +++ /dev/null @@ -1,265 +0,0 @@ -Feature: Control Center: The system shall support the option to limit adding or modifying repeatable instruments while in production to administrators - -As a REDCap end user -I want to see that repeatable function is functioning as expected - -Scenario: A.6.4.500.100 User's ability to add or modify repeatable instrument while in production mode -#SETUP_PROJECT -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "A.6.4.500.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 click on the link labeled "My Projects" -And I click on the link labeled "A.6.4.500.100" -#SETUP_USER -And I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown - -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -#SETUP_PRODUCTION -Given I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status - -Then I should see Project status: "Production" - -#FUNCTIONAL REQUIREMENT - Only admins can modify repeating instance setup in production -#SETUP_CONTROL_CENTER -When I click on the link labeled "Control Center" -And I click on the link labeled "User Settings" - -Then I should see "System-level User Settings" - -When I select "No, only Administrators can modify the repeating instance setup in production" on the dropdown field labeled "Allow normal users to modify the 'Repeating Instruments & Events' settings for projects while in production status?" -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 -#User unable to see repeatable instruments -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "A.6.4.500.100" -And I click on the link labeled "Project Setup" - -Then I should see a button labeled "Modify" on the field labeled "Repeating instruments and events" - #And I should see that I am unable to click on Modify - -Given I logout - -#FUNCTIONAL REQUIREMENT - normal users can modify the repeating instance setup in production -#SETUP_CONTROL_CENTER -Given I login to REDCap with the user "Test_Admin" -When I click on the link labeled "My Projects" -And I click on the link labeled "A.6.4.500.100" -And I click on the link labeled "Control Center" -And I click on the link labeled "User Settings" - -Then I should see "System-level User Settings" - -When I select "Yes, normal users can modify the repeating instance setup in production" on the dropdown field labeled "Allow normal users to modify the 'Repeating Instruments & Events' settings for projects while in production status?" -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 -#User modifies repeat instrument -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "A.6.4.500.100" -And I click on the link labeled "Project Setup" - -Then I should see "Repeating instruments and events" - -When I open the dialog box for the Repeatable Instruments and Events module -And I close the popup -And I select "-- not repeating --" on the dropdown field labeled "Event 1 (Arm 1: Arm 1)" -And I select "Repeat Instruments (repeat independently of each other)" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" -And I check the checkbox labeled "Survey" -And I click on the button labeled "Save" - -Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." - -Given I click on the button labeled "Close" in the dialog box - -##VERIFY_LOG -And I click on the link labeled "Logging" - -Then I should see a table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Set up repeating instruments/events | - -#Verify record home page -When I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -And I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" -And I enter "MyName" into the data entry form field labeled "Name" -And I select the submit option labeled "Save & Add New Instance" on the Data Collection Instrument -And I enter "MyOtherName" into the data entry form field labeled "Name" -And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument - -##VERIFY_DE -Given I click on the link labeled "Data Exports, Reports, and Stats" - -Then I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | - -When I click on the button labeled "View Report" - -Then I should see table rows containing the following values in the report data table: - | Record ID | Event Name | Repeat Instrument | Repeat Instance | name_survey | - | 1 | Event Three (Arm 1: Arm 1) | Survey | 1 | Name MyName | - | 1 | Event Three (Arm 1: Arm 1) | Survey | 2 | Name MyOtherName | -And I should NOT see "Data Types" - -#FUNCTIONAL REQUIREMENT -#User deletes repeatable instance -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -And I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" instance "2" -And I click on the button labeled "Delete data for THIS FORM only" - -Then I should see a dialog containing the following text: "Delete all data on this form" - -Given I click on the button labeled "Delete data for THIS FORM only" in the dialog box - -Then I should NOT see "(#2)" - -#FUNCTIONAL REQUIREMENT -#User modifies repeat instrument to capture orphaned data -Given I click on the link labeled "Project Setup" - -Then I should see "Repeating instruments and events" - -When I open the dialog box for the Repeatable Instruments and Events module -And I close the popup -And I select "Repeat Instruments (repeat independently of each other)" on the dropdown field labeled "Event 1 (Arm 1: Arm 1)" -And I check the checkbox labeled "Data Types" -And I select "-- not repeating --" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" -And I click on the button labeled "Save" - -Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." - -When I click on the button labeled "Close" in the dialog box - - ##VERIFY_LOG -When I click on the link labeled "Logging" - -Then I should see a table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Set up repeating instruments/events | - -#Verify record home page -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -And I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" - -Then I should NOT see "Current instance:" - -When I click on the button labeled "Cancel" -And I click on the button labeled "OK" in the dialog box - -Then I see "data entry cancelled - not saved" - -When I click the bubble to select a record for the "Data Types" longitudinal instrument on event "Event 1" - -Then I see "Current instance:" - -##VERIFY_DE -Given I click on the link labeled "Data Exports, Reports, and Stats" - -Then I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | - -When I click on the button labeled "View Report" - -Then I should see a table row containing the following values in the report data table: - | Event 2 (Arm 1: Arm 1) | | 1 | | | Name | email@test.edu | Unverified | -And I should NOT see "MyOtherName" - -#FUNCTIONAL REQUIREMENT -#User modifies repeat event -When I click on the link labeled "Project Setup" -And I open the dialog box for the Repeatable Instruments and Events module -And I close the popup -And I select "-- not repeating --" on the dropdown field labeled "Event 2 (Arm 1: Arm 1)" -And I select "Repeat Entire Event (repeat all instruments together)" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" -And I click on the button labeled "Save" - -Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." - -Given I click on the button labeled "Close" in the dialog box - - ##VERIFY_LOG -And I click on the link labeled "Logging" - -Then I should see a table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Set up repeating instruments/events | - - - #Verify record home page -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page - -Then I should NOT see "(#2)" - -When I click on the button labeled "Add new" -And I click the bubble to add a record for the "Survey" longitudinal instrument on event "(#3)" - -Then I should see "Editing existing Record ID 1" - -When I clear field and enter "My repeat event name" into the data entry form field labeled "Name" -And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument - -Then I should see "(#2)" - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -And I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | -And I click on the button labeled "View Report" -Then I should see a table row containing the following values in the report data table: - | Event Three (Arm 1: Arm 1) | My repeat event name | - -#FUNCTIONAL REQUIREMENT -#User modifies repeat event to see orphaned event -When I click on the link labeled "Project Setup" -And I open the dialog box for the Repeatable Instruments and Events module -And I close the popup -And I select "Repeat Entire Event (repeat all instruments together)" on the dropdown field labeled "Event 2 (Arm 1: Arm 1)" -And I select "-- not repeating --" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" -And I click on the button labeled "Save" - -Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." - -Given I click on the button labeled "Close" in the dialog box - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" - -Then I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | - -When I click on the button labeled "View Report" - -Then I should see a "1" within the "Event 2 (Arm 1: Arm 1)" row of the column labeled "Repeat Instance" of the Reports table -And I should see "" within the "Event Three (Arm 1: Arm 1)" row of the column labeled "Repeat Instance" of the Reports table -And I should NOT see "My repeat event name" - -#FUNCTIONAL REQUIREMENT -#User deletes repeatable event -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -And I click the X to delete all data related to the event named "Event 2" -And I click on the button labeled "Delete this instance of this event" in the dialog box - -Then I should see "successfully deleted entire event of data" -And I should NOT see "(#2)" diff --git a/Feature Tests/A/Project Setup/A.6.4.600 - Events and Arms in Production.feature b/Feature Tests/A/Project Setup/A.6.4.600 - Events and Arms in Production.feature deleted file mode 100644 index a5887d58..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.600 - Events and Arms in Production.feature +++ /dev/null @@ -1,291 +0,0 @@ -Feature: A.6.4.600 Manage project creation, deletion, and settings. Control Center: The system shall support the option to limit adding or modifying events and arms while in production to administrators. Note: user can add instrument to event in production. - -As a REDCap end user -I want to see that manage project is functioning as expected - -Scenario: A.6.4.600.100 User's ability to add or modify events and arms while in production mode -#SETUP_CONTROL_CENTER -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 "User Settings" -And I select "No, only Administrators can add/modify events in production" on the dropdown field labeled "Allow normal users to add or modify events and arms on the Define My Events page for longitudinal projects while in production status?" -And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -#SETUP_DEV -When I create a new project named "A.6.4.600.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 - -#SETUP_USER -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -When I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table -Given I logout - -#FUNCTIONAL REQUIREMENT -##ACTION - User Adds new arm in Development mode -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" - -Then I should see a link labeled "Add New Arm" - -When I click on the link labeled "Add New Arm" -And I enter "Arm 3" into the input field labeled "Arm name:" -And I click on the button labeled "Save" - -Then I should see "Arm name: Arm 3" - -When I add an event named "Event 1" with offset of 0 days into the currently selected arm - -Then I should see "Event 1" in the define events table - -##VERIFY_LOG -When I click on the link labeled "Logging" - -Then I should see table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Create event (Event: Event 1, Arm: Arm 3, Days Offset: 0, Offset Range: -0/+0) | - | test_user1 | Manage/Design | Create arm (Arm 3: Arm 3) | - -#FUNCTIONAL REQUIREMENT -##ACTION - User Rename Arm in Development mode -When I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" -And I click on the link labeled "Arm Two" -And I click on the link labeled "Rename Arm 2" -And I clear field and enter "Arm 2" into the input field labeled "Arm name" -And I click on the button labeled "Save" - -Then I should see "Arm name: Arm 2" - -When I click on the Edit image for the event named "Event 1" -#And I change the current Event Name from "Event 1" to "Event One" -And I clear field and enter "Event One" into the input field labeled "1" -And I click on the button labeled "Save" - -Then I should see "Event One" - -##VERIFY_LOG -When I click on the link labeled "Logging" - -Then I should see table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Edit event (Event: Event One, Arm: Arm 1, Days Offset: 1, Offset Range: -0/+0 | - | test_user1 | Manage/Design | Edit arm name/number (Arm 2: Arm 2) | - -#FUNCTIONAL REQUIREMENT -##ACTION - User Adds event with days offset in development mode -Given I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" -And I click on the link labeled "Arm 1" -And I add an event named "Event 4" with offset of 4 days into the currently selected arm -Then I should see "Event 4" in the define events table - -#VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "Arm 3: Arm 3" -And I should see "Arm 2: Arm 2" - -When I click on the link labeled "Arm 2" -Then I should see "Event One" - -When I click on the link labeled "Arm 1" -Then I should see "Event 4" - -#FUNCTIONAL REQUIREMENT -##ACTION - User designates instruments in development mode -Given I click on the link labeled "Project Setup" -When I click on the button labeled "Designate Instruments for My Events" -And I click on the link labeled "Arm 1" -And I click on the button labeled "Begin Editing" -And I disable the Data Collection Instrument named "Data Types" for the Event named "Event 1" -And I enable the Data Collection Instrument named "Consent" for the Event named "Event 2" -And I enable the Data Collection Instrument named "Text Validation" for the Event named "Event 4" -And I click on the button labeled "Save" on the Designate Instruments for My Events page - -Then I verify the Data Collection Instrument named "Data Types" is disabled for the Event named "Event 1" -And I verify the Data Collection Instrument named "Consent" is enabled for the Event named "Event 1" -And I verify the Data Collection Instrument named "Text Validation" is enabled for the Event named "Event 4" -And I click on the button labeled "Save" on the Designate Instruments for My Events page - -When I click on the link labeled "Arm 3" -And I click on the button labeled "Begin Editing" -And I enable the Data Collection Instrument named "Consent" for the Event named "Event 1" -And I click on the button labeled "Save" on the Designate Instruments for My Events page - -Then I verify the Data Collection Instrument named "Consent" is enabled for the Event named "Event 1" - -#VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "Arm 1" - -Then I should see a Data Collection Instrument named "Consent" for the Event named "Event 1" -And I should see a Data Collection Instrument named "Text Validation" for the Event named "Event 1" - -When I click on the link labeled "Arm 3" -Then I should see a Data Collection Instrument named "Consent" for the Event named "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" - -Then I should see table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Perform instrument-event mappings | - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status -Then I should see Project status: "Production" - -#FUNCTIONAL REQUIREMENT -##ACTION - User verifies no ability to modify events -When I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" - -Then I should see "Events cannot be modified in production" -And I should NOT see a button labeled "Add new arm" -And I should NOT see a button labeled "Add new event" - -When I click on the button labeled "Upload or download arms/events" - -Then I should see "Download arms (CSV)" -And I should see "Download events (CSV)" -And I should NOT see "Upload arms (CSV)" -And I should NOT see "Upload events (CSV)" - -When I click on the button labeled "Designate Instruments for My Events" - -Then I should see "Events cannot be modified in production" -And I should NOT see a button labeled "Begin Editing" - -When I click on the button labeled "Upload or download instrument mappings" - -Then I should see "Download instrument-event mappings (CSV)" -And I should NOT see "Upload instrument-event mappings (CSV)" - -Given I logout - -#SETUP_CONTROL_CENTER -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 "User Settings" -And I select "Yes, normal users can add/modify events in production" on the dropdown field labeled "Allow normal users to add or modify events and arms on the Define My Events page for longitudinal projects while in production status?" -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 - User verifies has the ability to modify events - -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "A.6.4.600.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" - -Then I should see a link labeled "Add New Arm" -And I should see a link labeled "Add new event" - -When I click on the link labeled "Add New Arm" -And I enter "Arm 4" into the input field labeled "Arm name:" -And I click on the button labeled "Save" -And I add an event named "Event 1" with offset of 0 days into the currently selected arm - -Then I should see "Arm 4" -And I should see "Event 1" in the define events table - -##ACTION - User renames arms and events -When I click on the link labeled "Arm 2" -And I click on the link labeled "Rename Arm 2" - -Then I should see "Sorry, but arms can only be renamed by REDCap administrators" - -When I click on the button labeled "Close" in the dialog box - -Then I should see "Arm 2" - -When I click on the link labeled "Arm 2" -hen I click on the Edit image for the event named "Event 1" - -Then I should see a dialog containing the following text: "Sorry, but events can only be renamed by REDCap administrators when a project is in production status" - -When I click on the button labeled "Close" in the dialog box - -#VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "Arm 1" - -Then I should see a link labeled "Arm 1" -And I should see a link labeled "Event 2" -And I should see a link labeled "Arm 2" -And I should see a link labeled "Arm 4" - -##ACTION - User unable to undesignated events -When I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" -And I click on the link labeled "Arm 1" -And I click on the button labeled "Begin Editing" - -Then I should see "only REDCap administrators are allowed to uncheck any instruments that are already designated" - -When I verify the Data Collection Instrument named "Data Types" is unmodifiable for the Event named "Event One" - -##ACTION - User unable to Upload designated instruments -When I click on the button labeled "Upload or download instrument mappings" -And I click on the link labeled "Upload instrument-event mappings (CSV)" -And I upload a "csv" format file located at "import_files/instrument_designation.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file - -Then I should see a dialog containing the following text: "ERROR" -And I click on the button labeled "Close" in the dialog box - - ##ACTION - User designates instruments in production mode -Given I click on the link labeled "Arm 1" -And I click on the button labeled "Begin Editing" -When I enable the Data Collection Instrument named "Data Types" for the Event named "Event 4" -And I click on the button labeled "Save" on the Designate Instruments for My Events page - -Then I verify the Data Collection Instrument named "Data Types" is enabled for the Event named "Event 4" - -##VERIFY_LOG -When I click on the link labeled "Logging" - -Then I should see table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_user1 | Manage/Design | Perform instrument-event mappings | - -Given I logout - -#FUNCTIONAL REQUIREMENT -##ACTION - Admin Renames arms and events -Given I login to REDCap with the user "Test_Admin" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" -And I click on the link labeled "Arm 1" -Then I should see "Rename Arm 1" - -When I click on the link labeled "Rename Arm 1" -And I clear field and enter "Arm One" into the input field labeled "Arm name" -And I click on the button labeled "Save" -And I click on the Edit image for the event named "Event 4" -And I change the current Event Name from "Event 4" to "Event Four" -And I click on the button labeled "Save" on the Designate Instruments for My Events page - -Then I should see "Arm name: Arm One" -And I should see "Event Four" - -##VERIFY_LOG -When I click on the link labeled "Logging" - -Then I should see table header and rows containing the following values in the logging table: - | Username | Action | List of Data ChangesOR Fields Exported | - | test_admin | Manage/Design | Edit event | - | test_admin | Manage/Design | Event Four, Arm: Arm One | - | test_admin | Manage/Design | Edit arm name/number | - | test_admin | Manage/Design | Arm 1: Arm One | diff --git a/Feature Tests/A/Project Setup/A.6.4.700 - Blank Slate Projects.feature b/Feature Tests/A/Project Setup/A.6.4.700 - Blank Slate Projects.feature deleted file mode 100644 index 7f88c7ca..00000000 --- a/Feature Tests/A/Project Setup/A.6.4.700 - Blank Slate Projects.feature +++ /dev/null @@ -1,19 +0,0 @@ -Feature: A.6.4.700 Manage project creation, deletion, and settings. User Interface General: The system shall support the ability to create new projects from a blank slate. - -As a REDCap end user - I want to see that create project is functioning as expected - - Scenario: A.6.4.700.100 Create blank new project - Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "New Project" - And I enter "A.6.4.700.100" into the input field labeled "Project title" - And I select "Practice / Just for fun" on the dropdown field labeled "Project's purpose" - And I click on the radio labeled "Empty project (blank slate)" - And I click on the button labeled "Create Project" - # ############################################################################################################# - # ATS Note: Below steps do not appear unless custom message is configured in Control Center so leaving them out - # Then I should see "You are now creating a test project" - # And I click on the button labeled "I Agree" in the dialog box - # ############################################################################################################# - Then I should see "A.6.4.700.100" - And I should see "Project Home" diff --git a/Feature Tests/A/Project Setup_4/A.6.4.100 - User Create Projects.feature b/Feature Tests/A/Project Setup_4/A.6.4.100 - User Create Projects.feature new file mode 100644 index 00000000..038a7d2a --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.100 - User Create Projects.feature @@ -0,0 +1,60 @@ +Feature: A.6.4.100 Manage project creation, deletion, and settings. Control Center: The system shall support the option to limit the creation of new projects to administrators. + + As a REDCap end user + I want to see that manage project functions is functioning as expected + + Scenario: A.6.4.100.100 User's ability to create new projects + #SETUP_CONTROL_CENTER + 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 "User Settings" + Then I should see "System-level User Settings" + + #FUNCTIONAL REQUIREMENT + ##ACTION Admin only can make project + When I select "No, only Administrators can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + # Manual tester skips next step. + # BEGIN: STEPS FOR ATS + # - EMAIL ADDRESS SET FOR REDCAP ADMIN - without it, project request behavior does not work properly + # - CUSTOM MESSAGE SET - Makes the dialog box pop up when requesting a project + Given I click on the link labeled "General Configuration" + Then I should see "General Configuration" + + When I enter "redcap@test.instance" into the input field labeled "Email Address of REDCap Administrator" + And I enter "You are now creating a test project" into the textarea field labeled "Custom message when creating/copying project" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed" + # END: STEPS FOR ATS ### + + Given I logout + + ##VERIFY User can create new project with request to Admin + Given I login to REDCap with the user "Test_User1" + And I create a new project named "A.6.4.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 "Send Request" button + And I click on the button labeled "I Agree" in the dialog box + Then I should see "Request Sent!" + + Given I logout + + #FUNCTIONAL REQUIREMENT + ##ACTION Normal user can make new project + 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 "User Settings" + Then I should see "System-level User Settings" + + When I select "Yes, normal users can create new projects" on the dropdown field labeled "Allow normal users to create new projects?" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + Given I logout + + ##VERIFY User can create new project without request + Given I login to REDCap with the user "Test_User1" + And I create a new project named "A.6.4.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 "Your new REDCap project has been created" + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.1500 - Manage Survey User..feature b/Feature Tests/A/Project Setup_4/A.6.4.1500 - Manage Survey User..feature new file mode 100644 index 00000000..2919553b --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.1500 - Manage Survey User..feature @@ -0,0 +1,48 @@ +Feature: Control Center: The system shall allow the survey feature to be enabled or disabled. + + As a REDCap end user + I want to see that survey feature is functioning as expected + + Scenario: A.6.4.1500.100 Enable and disable survey feature + #SETUP_DEV + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.6.4.1500.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 + + #FUNCTIONAL REQUIREMENT + ##ACTION Disable survey feature in Control Center + When I click on the link labeled "Control Center" + And I click on the link labeled "Modules/Services Configuration" + And I select "Disabled" on the dropdown field labeled "Enable the use of surveys in projects?" + And I click on the button "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + #VERIFY Disable survey feature in project setup + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.1500.100" + And I click on the link labeled "Project Setup" + Then I should NOT see the button labeled "Enable" for the field labeled "Use surveys in this project?" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Enable survey mode in Control Center + Given I click on the link labeled "Control Center" + And I click on the link labeled "Modules/Services Configuration" + And I select "Enabled" on the dropdown field labeled " Enable the use of surveys in projects?" + And I click on the button "Save Changes" + Then I should see "Your system configuration values have now been changed! " + + #VERIFY Enable survey feature in project setup + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.1500.100" + And I click on the link labeled "Project Setup" + Then I should see the button labeled "Disable" for the field labeled "Use surveys in this project?" + + When I click on the button labeled "Disable" for the field labeled "Use surveys in this project?" + And I click on the button "Disable" in the dialog box + Then I should see the button labeled "Enable" for the field labeled "Use surveys in this project?" + + ##VERIFY_LOG + When I click the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Modify project settings | + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.1600 - Edit Survey Responses.feature b/Feature Tests/A/Project Setup_4/A.6.4.1600 - Edit Survey Responses.feature new file mode 100644 index 00000000..ae89a2f9 --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.1600 - Edit Survey Responses.feature @@ -0,0 +1,77 @@ +Feature: Control Center: The system shall allow users to edit survey responses to be enabled or disabled. + + As a REDCap end user + I want to see that allow edit survey response is functioning as expected + + Scenario: A.6.4.1600.100 + #PARENT to A.6.4.300.100 User's ability to edit survey responses + #SETUP_DEV + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.6.4.1600.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 + + #FUNCTIONAL REQUIREMENT + ##ACTION Admin Disable edit survey response function in control center + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + And I select the dropdown option labeled "Disabled" on the dropdown field labeled "Allow users to edit survey responses?" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + ##VERIFY: Admin Go to user rights and look for the edit survey checkbox (should be missing) + When I click on the link labeled "My Projects" And I click on the link labeled "A.6.4.1600.100" + And I click on the link labeled "User Rights" And I click on the link labeled "test_admin" + And I click on the button labeled "Edit user privileges" + Then I should NOT see the checkbox labeled "Edit user privileges" for the instrument labeled "Survey" + And I click on the button labeled "Cancel" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Admin Enable edit survey response function in control center + Given I click on the link labeled "Control Center" + When I click on the link labeled "User Settings" + And I select the dropdown option labeled "Enabled" on the dropdown field labeled "Allow users to edit survey responses?" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + ##VERIFY: Admin Go to user rights and look for the edit survey checkbox (should be there) + Given I click on the link labeled "My Projects" + When I click on the link labeled "A.6.4.1600.100" + And I click on the link labeled "User Rights" + And I click on the link labeled "test_admin" + And I click on the button labeled "Edit user privileges" + Then I should see the checkbox labeled "Edit user privileges" for the instrument labeled "Survey" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Enable editing survey responses for survey instrument + When I click on the checkbox labeled "Edit user privileges" for the instrument labeled "Survey" + And I click on the button labeled "Save Changes" + Then I should see "User "test_admin" was successfully edited" + + #SETUP + #A.6.4.300.100 User's ability to edit survey responses + Given I click the link labeled "Record Status Dashboard" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" for record "1" + And I click on the button labeled "Survey options" And I select the option labeled "Open survey" + And I enter "SURVEY RESPONSE" in the field labeled "Name" And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey" And I click on the button labeled "Close survey" + + ##VERIFY_RSD + Given I click on the button labeled "Leave without saving changes" + Then I should see the Completed Survey Response icon for the "Survey" longitudinal instrument on event "Event Three" for record "1" + + When I click the bubble for the "Survey" longitudinal instrument on event "Event Three" for record "1" + Then I should see "Survey response is editable" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Edit survey response + When I click on the button labeled "Edit response" + And I enter "EDITED SURVEY RESPONSE" in the field labeled "Name" + And I click on the button labeled "Save & Stay" from the dropdown field + Then I should see "EDITED SURVEY RESPONSE" in the field labeled "Name" + + ##VERIFY_LOG + When I click the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Update record 1 | name_survey = 'EDITED SURVEY RESPONSE ' | + | [survey respondent] | Update Response 1 | name_survey = 'SURVEY RESPONSE ' | + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.200 - Move to Production.feature b/Feature Tests/A/Project Setup_4/A.6.4.200 - Move to Production.feature new file mode 100644 index 00000000..8d05ead4 --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.200 - Move to Production.feature @@ -0,0 +1,99 @@ +Feature: A.6.4.200 Manage project creation, deletion, and settings + + As a REDCap end user + I want to see that project management features are functioning as expected + + Scenario: A.6.4.200.100 User requests admin move project to production + #SETUP_CONTROL_CENTER + 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 "User Settings" + Then I should see "System-level User Settings" + + When I select "No, only Administrators can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" + 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_DEV + Given I login to REDCap with the user "Test_User1" + And I create a new project named "A.6.4.200.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 + Then I should see "Project Setup" + + #FUNCTIONAL REQUIREMENT + ##ACTION User request move to production + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "Yes, Request Admin to Move to Production Status" in the dialog box to request a change in project status + ##VERIFY + Then I should see "Request pending" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Send request to move project to production status | + + Given I logout + + ##ACTION Admin moves project to production + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.200.100" + And I click on the link labeled "Control Center" + And I click on the link labeled "To-Do List" + Then I should see "Pending Requests" + And I should see the "Move to prod" request created for the project named "A.6.4.200.100" within the "Pending Requests" table + + When I click on the "process request" icon for the "Move to prod" request created for the project named "A.6.4.200.100" within the "Pending Requests" table + Then I should see "Move Project To Production Status" in the iframe + + When I click on the radio labeled "Keep ALL data saved so far." in the dialog box in the iframe + And I click on the button labeled "YES, Move to Production Status" in the dialog box in the iframe + And I close the iframe window + Then I should see the "Move to prod" request created for the project named "A.6.4.200.100" within the "Completed & Archived Requests" table + + ##VERIFY + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.200.100" + Then I should see Project status: "Production" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Move project to Production status | + + + Scenario: A.6.4.200.200 User moves project to production + #SETUP_CONTROL_CENTER + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + Then I should see "System-level User Settings" + + When I select "Yes, normal users can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" + 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_DEV + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.6.4.200.200" 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 + Then I should see "Project Setup" + + #FUNCTIONAL REQUIREMENT + ##ACTION User moves project into production + When I should see a button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far." in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status + ##VERIFY_PRODUCTION + Then I should see Project status: "Production" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Move project to Production status | + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.300 - REDUNDANT Edit Survey Responses.feature b/Feature Tests/A/Project Setup_4/A.6.4.300 - REDUNDANT Edit Survey Responses.feature new file mode 100644 index 00000000..8c06df50 --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.300 - REDUNDANT Edit Survey Responses.feature @@ -0,0 +1,9 @@ +Feature: A.6.4.300 Manage project creation, deletion, and settings + + Manage project creation, deletion, and settings + Control Center: The system shall support enabling users to edit survey responses. + + Scenario: A.6.4.300.100 User's ability to edit survey responses + +#REDUNDANT - Tested in A.6.4.1600.100 +#CHILD \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.400 - Draft Mode.feature b/Feature Tests/A/Project Setup_4/A.6.4.400 - Draft Mode.feature new file mode 100644 index 00000000..fc94e5d8 --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.400 - Draft Mode.feature @@ -0,0 +1,417 @@ +Feature: A.6.4.400 Manage project creation, deletion, and settings. Control Center: The system shall allow production Draft Mode changes to be approved automatically under certain conditions. + + As a REDCap end user + I want to see that manage project functions is functioning as expected + + Scenario: A.6.4.400.100 User's ability to approve draft changes without administrative approval + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.6.4.400.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 + + #SETUP_CONTROL_CENTER + # BEGIN: STEPS FOR ATS + # - EMAIL ADDRESS SET FOR REDCAP ADMIN - without it, project request behavior does not work properly + Given I click on the link labeled "Control Center" + And I click on the link labeled "General Configuration" + Then I should see "General Configuration" + + When I enter "redcap@test.instance" into the input field labeled "Email Address of REDCap Administrator" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed" + # END: STEPS FOR ATS ### + + #SETUP_USER + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + + And I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + When I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + #SETUP_PRODUCTION + Given I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status + Then I should see Project status: "Production" + + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Move project to Production status | + + #FUNCTIONAL REQUIREMENT + #SETUP_CONTROL_CENTER Never allow user to automatically approve changes + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + Then I should see "System-level User Settings" + When I select "Never (always require an admin to approve changes)" on the dropdown field labeled "Allow production Draft Mode changes to be approved automatically under certain conditions?" + 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 + #User submit change request + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Enter draft mode | + + When I click on the link labeled "Designer" + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Awaiting review of project changes" + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | + + Given I logout + + #FUNCTIONAL REQUIREMENT + #Admin rejects changes + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + Then I should see "REVIEW CHANGES?" + + When I click on the button labeled "Project Modification Module" + And I click on the button labeled "Reject Changes" + And I click on the button labeled "Reject Changes" in the dialog box + Then I should see "Project Changes Rejected / User Notified" + Given I logout + + #FUNCTIONAL REQUIREMENT + #User submit change request + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Reject production project modifications | + + And I click on the link labeled "Designer" + #THE PROJECT STAYS IN DRAFT MODE IF THE CHANGES ARE REJECTED SO DRAFT MODE BUTTON DOES NOT APPEAR + #And I click on the button labeled "Enter Draft Mode" + #Then I should see "The project is now in Draft Mode" + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Awaiting review of project changes" + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | + + Given I logout + + #FUNCTIONAL REQUIREMENT + #Admin commits changes + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + Then I should see "REVIEW CHANGES?" + + When I click on the button labeled "Project Modification Module" + And I click on the button labeled "COMMIT CHANGES" + And I click on the button labeled "COMMIT CHANGES" in the dialog box + Then I should see "Project Changes Committed / User Notified" + Given I logout + + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Approve production project modifications | + + And I click on the link labeled "Designer" + Then I should see "Enter Draft Mode" + + ##A.6.4.400.200 User's ability to approve draft changes without administrative approval if no existing fields were modified + ##SETUP_CONTROL_CENTER Allow user to approve changes automatically + 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 "User Settings" + Then I should see "System-level User Settings" + When I select "Yes, if no existing fields were modified" on the dropdown field labeled "Allow production Draft Mode changes to be approved automatically under certain conditions?" + 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 + #User Modifies field and submit changes - request sent to admin + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the link labeled "Data Types" + And I click on the Edit image for the field named "Radio" + And I enter Choices of "102, Choice102" into the open "Edit Field" dialog box + And I click on the button labeled "Save" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Awaiting review of project changes" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Request approval for production project modifications | + + Given I logout + + #FUNCTIONAL REQUIREMENT + #Admin remove changes + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + Then I should see "REVIEW CHANGES?" + + When I click on the button labeled "Project Modification Module" + And I click on the button labeled "Remove All Drafted Changes" + And I click on the button labeled "Remove All Drafted Changes" in the dialog box + Then I should see "Project Changes Removed / User Notified" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Remove production project modifications | + + Given I logout + + #FUNCTIONAL REQUIREMENT + #User modifies by adding field and submitting changes - changes automatically accepted + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the link labeled "Data Types" + And I add a new Text Box field labeled "Text Box 2" with variable name "textbox_2" and click on the "Save" button + Then I should see "Text Box 2" + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + And I click on the link labeled "Logging" + + ##VERIFY_LOG + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Approve production project modifications (automatic) | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Create project field | + + ## A.6.4.400.300 User's ability to approve draft changes without administrative approval if no critical issues exist + ##SETUP_CONTROL_CENTER Allow user to approve changes automatically if project has no records OR if has records and no critical issues exist + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + And I select "Yes, if project has no records OR if has records and no critical issues exist" on the dropdown field labeled "Allow production Draft Mode changes to be approved automatically under certain conditions?" + 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 + #User automatically submit changes with no change + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.400.100" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Approve production project modifications (automatic) | + + #FUNCTIONAL REQUIREMENT + #User creates critical modification to field and request change + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the link labeled "Data Types" + And I click on the Edit image for the field named "Radio Button Manual" + + #We are deleting the third option and renaming "100, Choice100" to "101, Choice100" in one step. This is a critical change + And I clear field and enter Choices of "9..9, Choice99{enter}101, Choice100" into the open "Edit Field" dialog box + + And I click on the button labeled "Save" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Awaiting review of project changes" + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | + + Given I logout + + #FUNCTIONAL REQUIREMENT + #Admin removes All Drafted Changes + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "Designer" + Then I should see "REVIEW CHANGES?" + + When I click on the button labeled "Project Modification Module" + Then I should see "Total potentially critical issues: 1" + And I click on the button labeled "Remove All Drafted Changes" + And I click on the button labeled "Remove All Drafted Changes" in the dialog box + Then I should see "Project Changes Removed / User Notified" + + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Remove production project modifications | + + Given I logout + + + #FUNCTIONAL REQUIREMENT + #User creates critical modification to field and request change + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the link labeled "Data Types" + And I click on the Edit image for the field named "Radio Button Manual" + + #We are deleting the third option and renaming "100, Choice100" to "101, Choice100" in one step + And I clear field and enter Choices of "9..9, Choice99{enter}101, Choice100" into the open "Edit Field" dialog box + And I click on the button labeled "Save" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Awaiting review of project changes" + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user1 | Manage/Design | Request approval for production project modifications | + + Given I logout + + #FUNCTIONAL REQUIREMENT + #Admin Commit Changes + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "Designer" + Then I should see "REVIEW CHANGES?" + + When I click on the button labeled "Project Modification Module" + Then I should see "Total potentially critical issues: 1" + And I click on the button labeled "COMMIT CHANGES" + And I click on the button labeled "COMMIT CHANGES" in the dialog box + Then I should see "Project Changes Committed / User Notified" + + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Approve production project modifications | + + ##VERIFY_CODEBOOK + And I click on the link labeled "Codebook" + Then I should see a table header and rows containing the following values in the logging table: + | # | Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | + | 14 | [radio_button_manual] | Radio Button Manual | radio 9..9 Choice99 101 Choice100 | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + + Given I see a table rows containing the following values in the reports table: + | A | All data (all records and fields) | + | B | Selected instruments and/or events | + + And I click on the button labeled "View Report" + + # The manual step: Then I should see "Choice100 (101)" + # IMPORTANT: The above is NOT what we would expect to see + # The data entered in this project was entered BEFORE we made these changes to the Radio Button Manual field + # Thus, because we have unmapped the original value (100) from the label of Choice100 ... + # We would expect to see ONLY the raw value (100) in the report data table + + Given I see a table header and rows containing the following values in the report data table: + | Record ID | Repeat Instrument | Event Name | Radio Button Manual | + | 1 | Data Types | Event 1 (Arm 1: Arm 1) | | + | 2 | Data Types | Event 1 (Arm 1: Arm 1) | (100) | + | 3 | Data Types | Event 1 (Arm 1: Arm 1) | (100) | + | 4 | Data Types | Event 1 (Arm 1: Arm 1) | (100) | + + When I click on the link labeled "Designer" + + Given I logout + + #FUNCTIONAL REQUIREMENT + #User creates non-critical modification to field and automatically committed + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the link labeled "Data Types" + And I click on the Edit image for the field named "Radio Button Manual" + + #We are adding the third option of "102, Choice102" + And I clear field and enter Choices of "9..9, Choice99{enter}101, Choice100{enter}102, Choice102" in the open "Edit Field" dialog box + And I click on the button labeled "Save" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_admin | Manage/Design | Approve production project modifications (automatic) | + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.500 - Repeatable Instruments.feature b/Feature Tests/A/Project Setup_4/A.6.4.500 - Repeatable Instruments.feature new file mode 100644 index 00000000..8a9b5fc3 --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.500 - Repeatable Instruments.feature @@ -0,0 +1,266 @@ +Feature: Control Center: The system shall support the option to limit adding or modifying repeatable instruments while in production to administrators + + As a REDCap end user + I want to see that repeatable function is functioning as expected + + Scenario: A.6.4.500.100 User's ability to add or modify repeatable instrument while in production mode + #SETUP_PROJECT + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.6.4.500.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 click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.500.100" + #SETUP_USER + And I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + #SETUP_PRODUCTION + Given I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status + + Then I should see Project status: "Production" + + #FUNCTIONAL REQUIREMENT - Only admins can modify repeating instance setup in production + #SETUP_CONTROL_CENTER + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + + Then I should see "System-level User Settings" + + When I select "No, only Administrators can modify the repeating instance setup in production" on the dropdown field labeled "Allow normal users to modify the 'Repeating Instruments & Events' settings for projects while in production status?" + 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 + #User unable to see repeatable instruments + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.500.100" + And I click on the link labeled "Project Setup" + + Then I should see a button labeled "Modify" on the field labeled "Repeating instruments and events" + #And I should see that I am unable to click on Modify + + Given I logout + + #FUNCTIONAL REQUIREMENT - normal users can modify the repeating instance setup in production + #SETUP_CONTROL_CENTER + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.500.100" + And I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + + Then I should see "System-level User Settings" + + When I select "Yes, normal users can modify the repeating instance setup in production" on the dropdown field labeled "Allow normal users to modify the 'Repeating Instruments & Events' settings for projects while in production status?" + 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 + #User modifies repeat instrument + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.500.100" + And I click on the link labeled "Project Setup" + + Then I should see "Repeating instruments and events" + + When I open the dialog box for the Repeatable Instruments and Events module + And I close the popup + And I select "-- not repeating --" on the dropdown field labeled "Event 1 (Arm 1: Arm 1)" + And I select "Repeat Instruments (repeat independently of each other)" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" + And I check the checkbox labeled "Survey" + And I click on the button labeled "Save" + + Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." + + Given I click on the button labeled "Close" in the dialog box + + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Username | Action | List of Data ChangesOR Fields Exported | + | test_user1 | Manage/Design | Set up repeating instruments/events | + + #Verify record home page + When I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + And I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" + And I enter "MyName" into the data entry form field labeled "Name" + And I select the submit option labeled "Save & Add New Instance" on the Data Collection Instrument + And I enter "MyOtherName" into the data entry form field labeled "Name" + And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument + + ##VERIFY_DE + Given I click on the link labeled "Data Exports, Reports, and Stats" + + Then I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + + Then I should see table rows containing the following values in the report data table: + | Record ID | Event Name | Repeat Instrument | Repeat Instance | name_survey | + | 1 | Event Three (Arm 1: Arm 1) | Survey | 1 | Name MyName | + | 1 | Event Three (Arm 1: Arm 1) | Survey | 2 | Name MyOtherName | + And I should NOT see "Data Types" + + #FUNCTIONAL REQUIREMENT + #User deletes repeatable instance + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + And I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" instance "2" + And I click on the button labeled "Delete data for THIS FORM only" + + Then I should see a dialog containing the following text: "Delete all data on this form" + + Given I click on the button labeled "Delete data for THIS FORM only" in the dialog box + + Then I should NOT see "(#2)" + + #FUNCTIONAL REQUIREMENT + #User modifies repeat instrument to capture orphaned data + Given I click on the link labeled "Project Setup" + + Then I should see "Repeating instruments and events" + + When I open the dialog box for the Repeatable Instruments and Events module + And I close the popup + And I select "Repeat Instruments (repeat independently of each other)" on the dropdown field labeled "Event 1 (Arm 1: Arm 1)" + And I check the checkbox labeled "Data Types" + And I select "-- not repeating --" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" + And I click on the button labeled "Save" + + Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." + + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Username | Action | List of Data ChangesOR Fields Exported | + | test_user1 | Manage/Design | Set up repeating instruments/events | + + #Verify record home page + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + And I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" + + Then I should NOT see "Current instance:" + + When I click on the button labeled "Cancel" + And I click on the button labeled "OK" in the dialog box + + Then I see "data entry cancelled - not saved" + + When I click the bubble to select a record for the "Data Types" longitudinal instrument on event "Event 1" + + Then I see "Current instance:" + + ##VERIFY_DE + Given I click on the link labeled "Data Exports, Reports, and Stats" + + Then I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + + Then I should see a table row containing the following values in the report data table: + | Event 2 (Arm 1: Arm 1) | | 1 | | | Name | email@test.edu | Unverified | + And I should NOT see "MyOtherName" + + #FUNCTIONAL REQUIREMENT + #User modifies repeat event + When I click on the link labeled "Project Setup" + And I open the dialog box for the Repeatable Instruments and Events module + And I close the popup + And I select "-- not repeating --" on the dropdown field labeled "Event 2 (Arm 1: Arm 1)" + And I select "Repeat Entire Event (repeat all instruments together)" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" + And I click on the button labeled "Save" + + Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." + + Given I click on the button labeled "Close" in the dialog box + + ##VERIFY_LOG + And I click on the link labeled "Logging" + + Then I should see a table header and rows containing the following values in the logging table: + | Username | Action | List of Data ChangesOR Fields Exported | + | test_user1 | Manage/Design | Set up repeating instruments/events | + + + #Verify record home page + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + + Then I should NOT see "(#2)" + + When I click on the button labeled "Add new" + And I click the bubble to add a record for the "Survey" longitudinal instrument on event "(#3)" + + Then I should see "Editing existing Record ID 1" + + When I clear field and enter "My repeat event name" into the data entry form field labeled "Name" + And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument + + Then I should see "(#2)" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + And I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + And I click on the button labeled "View Report" + Then I should see a table row containing the following values in the report data table: + | Event Three (Arm 1: Arm 1) | My repeat event name | + + #FUNCTIONAL REQUIREMENT + #User modifies repeat event to see orphaned event + When I click on the link labeled "Project Setup" + And I open the dialog box for the Repeatable Instruments and Events module + And I close the popup + And I select "Repeat Entire Event (repeat all instruments together)" on the dropdown field labeled "Event 2 (Arm 1: Arm 1)" + And I select "-- not repeating --" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" + And I click on the button labeled "Save" + + Then I should see a dialog containing the following text: "Your settings for repeating instruments and/or events have been successfully saved." + + Given I click on the button labeled "Close" in the dialog box + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + + Then I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + + Then I should see a "1" within the "Event 2 (Arm 1: Arm 1)" row of the column labeled "Repeat Instance" of the Reports table + And I should see "" within the "Event Three (Arm 1: Arm 1)" row of the column labeled "Repeat Instance" of the Reports table + And I should NOT see "My repeat event name" + + #FUNCTIONAL REQUIREMENT + #User deletes repeatable event + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + And I click the X to delete all data related to the event named "Event 2" + And I click on the button labeled "Delete this instance of this event" in the dialog box + + Then I should see "successfully deleted entire event of data" + And I should NOT see "(#2)" +#End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.600 - Events and Arms in Production.feature b/Feature Tests/A/Project Setup_4/A.6.4.600 - Events and Arms in Production.feature new file mode 100644 index 00000000..fbec9785 --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.600 - Events and Arms in Production.feature @@ -0,0 +1,292 @@ +Feature: A.6.4.600 Manage project creation, deletion, and settings. Control Center: The system shall support the option to limit adding or modifying events and arms while in production to administrators. Note: user can add instrument to event in production. + + As a REDCap end user + I want to see that manage project is functioning as expected + + Scenario: A.6.4.600.100 User's ability to add or modify events and arms while in production mode + #SETUP_CONTROL_CENTER + 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 "User Settings" + And I select "No, only Administrators can add/modify events in production" on the dropdown field labeled "Allow normal users to add or modify events and arms on the Define My Events page for longitudinal projects while in production status?" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + #SETUP_DEV + When I create a new project named "A.6.4.600.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 + + #SETUP_USER + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + When I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + Given I logout + + #FUNCTIONAL REQUIREMENT + ##ACTION - User Adds new arm in Development mode + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + + Then I should see a link labeled "Add New Arm" + + When I click on the link labeled "Add New Arm" + And I enter "Arm 3" into the input field labeled "Arm name:" + And I click on the button labeled "Save" + + Then I should see "Arm name: Arm 3" + + When I add an event named "Event 1" with offset of 0 days into the currently selected arm + + Then I should see "Event 1" in the define events table + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Create event (Event: Event 1, Arm: Arm 3, Days Offset: 0, Offset Range: -0/+0) | + | test_user1 | Manage/Design | Create arm (Arm 3: Arm 3) | + + #FUNCTIONAL REQUIREMENT + ##ACTION - User Rename Arm in Development mode + When I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + And I click on the link labeled "Arm Two" + And I click on the link labeled "Rename Arm 2" + And I clear field and enter "Arm 2" into the input field labeled "Arm name" + And I click on the button labeled "Save" + + Then I should see "Arm name: Arm 2" + + When I click on the Edit image for the event named "Event 1" + #And I change the current Event Name from "Event 1" to "Event One" + And I clear field and enter "Event One" into the input field labeled "1" + And I click on the button labeled "Save" + + Then I should see "Event One" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Edit event (Event: Event One, Arm: Arm 1, Days Offset: 1, Offset Range: -0/+0 | + | test_user1 | Manage/Design | Edit arm name/number (Arm 2: Arm 2) | + + #FUNCTIONAL REQUIREMENT + ##ACTION - User Adds event with days offset in development mode + Given I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + And I click on the link labeled "Arm 1" + And I add an event named "Event 4" with offset of 4 days into the currently selected arm + Then I should see "Event 4" in the define events table + + #VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "Arm 3: Arm 3" + And I should see "Arm 2: Arm 2" + + When I click on the link labeled "Arm 2" + Then I should see "Event One" + + When I click on the link labeled "Arm 1" + Then I should see "Event 4" + + #FUNCTIONAL REQUIREMENT + ##ACTION - User designates instruments in development mode + Given I click on the link labeled "Project Setup" + When I click on the button labeled "Designate Instruments for My Events" + And I click on the link labeled "Arm 1" + And I click on the button labeled "Begin Editing" + And I disable the Data Collection Instrument named "Data Types" for the Event named "Event 1" + And I enable the Data Collection Instrument named "Consent" for the Event named "Event 2" + And I enable the Data Collection Instrument named "Text Validation" for the Event named "Event 4" + And I click on the button labeled "Save" on the Designate Instruments for My Events page + + Then I verify the Data Collection Instrument named "Data Types" is disabled for the Event named "Event 1" + And I verify the Data Collection Instrument named "Consent" is enabled for the Event named "Event 1" + And I verify the Data Collection Instrument named "Text Validation" is enabled for the Event named "Event 4" + And I click on the button labeled "Save" on the Designate Instruments for My Events page + + When I click on the link labeled "Arm 3" + And I click on the button labeled "Begin Editing" + And I enable the Data Collection Instrument named "Consent" for the Event named "Event 1" + And I click on the button labeled "Save" on the Designate Instruments for My Events page + + Then I verify the Data Collection Instrument named "Consent" is enabled for the Event named "Event 1" + + #VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "Arm 1" + + Then I should see a Data Collection Instrument named "Consent" for the Event named "Event 1" + And I should see a Data Collection Instrument named "Text Validation" for the Event named "Event 1" + + When I click on the link labeled "Arm 3" + Then I should see a Data Collection Instrument named "Consent" for the Event named "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Perform instrument-event mappings | + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status + Then I should see Project status: "Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION - User verifies no ability to modify events + When I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + + Then I should see "Events cannot be modified in production" + And I should NOT see a button labeled "Add new arm" + And I should NOT see a button labeled "Add new event" + + When I click on the button labeled "Upload or download arms/events" + + Then I should see "Download arms (CSV)" + And I should see "Download events (CSV)" + And I should NOT see "Upload arms (CSV)" + And I should NOT see "Upload events (CSV)" + + When I click on the button labeled "Designate Instruments for My Events" + + Then I should see "Events cannot be modified in production" + And I should NOT see a button labeled "Begin Editing" + + When I click on the button labeled "Upload or download instrument mappings" + + Then I should see "Download instrument-event mappings (CSV)" + And I should NOT see "Upload instrument-event mappings (CSV)" + + Given I logout + + #SETUP_CONTROL_CENTER + 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 "User Settings" + And I select "Yes, normal users can add/modify events in production" on the dropdown field labeled "Allow normal users to add or modify events and arms on the Define My Events page for longitudinal projects while in production status?" + 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 - User verifies has the ability to modify events + + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.4.600.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + + Then I should see a link labeled "Add New Arm" + And I should see a link labeled "Add new event" + + When I click on the link labeled "Add New Arm" + And I enter "Arm 4" into the input field labeled "Arm name:" + And I click on the button labeled "Save" + And I add an event named "Event 1" with offset of 0 days into the currently selected arm + + Then I should see "Arm 4" + And I should see "Event 1" in the define events table + + ##ACTION - User renames arms and events + When I click on the link labeled "Arm 2" + And I click on the link labeled "Rename Arm 2" + + Then I should see "Sorry, but arms can only be renamed by REDCap administrators" + + When I click on the button labeled "Close" in the dialog box + + Then I should see "Arm 2" + + When I click on the link labeled "Arm 2" + hen I click on the Edit image for the event named "Event 1" + + Then I should see a dialog containing the following text: "Sorry, but events can only be renamed by REDCap administrators when a project is in production status" + + When I click on the button labeled "Close" in the dialog box + + #VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "Arm 1" + + Then I should see a link labeled "Arm 1" + And I should see a link labeled "Event 2" + And I should see a link labeled "Arm 2" + And I should see a link labeled "Arm 4" + + ##ACTION - User unable to undesignated events + When I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + And I click on the link labeled "Arm 1" + And I click on the button labeled "Begin Editing" + + Then I should see "only REDCap administrators are allowed to uncheck any instruments that are already designated" + + When I verify the Data Collection Instrument named "Data Types" is unmodifiable for the Event named "Event One" + + ##ACTION - User unable to Upload designated instruments + When I click on the button labeled "Upload or download instrument mappings" + And I click on the link labeled "Upload instrument-event mappings (CSV)" + And I upload a "csv" format file located at "import_files/instrument_designation.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + + Then I should see a dialog containing the following text: "ERROR" + And I click on the button labeled "Close" in the dialog box + + ##ACTION - User designates instruments in production mode + Given I click on the link labeled "Arm 1" + And I click on the button labeled "Begin Editing" + When I enable the Data Collection Instrument named "Data Types" for the Event named "Event 4" + And I click on the button labeled "Save" on the Designate Instruments for My Events page + + Then I verify the Data Collection Instrument named "Data Types" is enabled for the Event named "Event 4" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Perform instrument-event mappings | + + Given I logout + + #FUNCTIONAL REQUIREMENT + ##ACTION - Admin Renames arms and events + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + And I click on the link labeled "Arm 1" + Then I should see "Rename Arm 1" + + When I click on the link labeled "Rename Arm 1" + And I clear field and enter "Arm One" into the input field labeled "Arm name" + And I click on the button labeled "Save" + And I click on the Edit image for the event named "Event 4" + And I change the current Event Name from "Event 4" to "Event Four" + And I click on the button labeled "Save" on the Designate Instruments for My Events page + + Then I should see "Arm name: Arm One" + And I should see "Event Four" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + + Then I should see table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Edit event | + | test_admin | Manage/Design | Event Four, Arm: Arm One | + | test_admin | Manage/Design | Edit arm name/number | + | test_admin | Manage/Design | Arm 1: Arm One | + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Setup_4/A.6.4.700 - Blank Slate Projects.feature b/Feature Tests/A/Project Setup_4/A.6.4.700 - Blank Slate Projects.feature new file mode 100644 index 00000000..f74b2ece --- /dev/null +++ b/Feature Tests/A/Project Setup_4/A.6.4.700 - Blank Slate Projects.feature @@ -0,0 +1,20 @@ +Feature: A.6.4.700 Manage project creation, deletion, and settings. User Interface General: The system shall support the ability to create new projects from a blank slate. + + As a REDCap end user + I want to see that create project is functioning as expected + + Scenario: A.6.4.700.100 Create blank new project + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "New Project" + And I enter "A.6.4.700.100" into the input field labeled "Project title" + And I select "Practice / Just for fun" on the dropdown field labeled "Project's purpose" + And I click on the radio labeled "Empty project (blank slate)" + And I click on the button labeled "Create Project" + # ############################################################################################################# + # ATS Note: Below steps do not appear unless custom message is configured in Control Center so leaving them out + # Then I should see "You are now creating a test project" + # And I click on the button labeled "I Agree" in the dialog box + # ############################################################################################################# + Then I should see "A.6.4.700.100" + And I should see "Project Home" + #End \ No newline at end of file diff --git a/Feature Tests/A/Project Status/A.6.11.100 - Administrative Controls in Control Center.feature b/Feature Tests/A/Project Status/A.6.11.100 - Administrative Controls in Control Center.feature deleted file mode 100644 index f27374c1..00000000 --- a/Feature Tests/A/Project Status/A.6.11.100 - Administrative Controls in Control Center.feature +++ /dev/null @@ -1,85 +0,0 @@ -Feature: Control Center: The system shall support limiting the ability to move projects to production to administrators. - -As a REDCap end user -I want to see that My Project is functioning as expected - -Scenario: A.6.11.100.100 Production status setting in control center -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "A.6.11.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 - -##USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -#FUNCTIONAL REQUIREMENT -##ACTION: Setup in control center - admin only -When I click on the link labeled "Control Center" - And I click on the link labeled "User Settings" -Then I should see "System-level User Settings" - -When I select "No, only Administrators can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" - And I click on the button labeled "Save Changes" - ##VERIFY -Then I should see "Your system configuration values have now been changed!" -And I logout - #SETUP -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "A.6.11.100.100" -##ACTION: Test user requests move to production -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "Yes, Request Admin to Move to Production Status" in the dialog box -##VERIFY -Then I should see "Success! Your request to move the project to production status has been sent to a REDCap administrator. " - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: - | Username | Action | List of Data Changes OR Fields Exported | - | test_user1 | Manage/Design | Send request to move project to production status| - -##ACTION: cancel request -When I click on the link labeled "Project Setup" -And I click on the button labeled "Cancel request" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Project status: Development" -And I logout - -#SETUP -Given I login to REDCap with the user "Test_Admin" - When I click on the link labeled "Control Center" -And I click on the link labeled "User Settings" -Then I should see "System-level User Settings" -When I select "Yes, normal users can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "Your system configuration values have now been changed!" -And I logout - -#SETUP -Given I login to REDCap with the user "Test_User1" - When I click on the link labeled "My Projects" - And I click on the link labeled "A.6.11.100.100" - - ##ACTION: Test user move to production -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "Yes, Move to Production Status" in the dialog box - -##VERIFY -Then I should see "Project status: Production" - -##VERIFY_LOG -When I click on the button labeled "Logging" -And I should see a table header and rows containing the following values in the logging table: - | Username | Action | List of Data Changes OR Fields Exported | - | test_user1 | Manage/Design | Move project to Production status | - diff --git a/Feature Tests/A/Project Status_11/A.6.11.100 - Administrative Controls in Control Center.feature b/Feature Tests/A/Project Status_11/A.6.11.100 - Administrative Controls in Control Center.feature new file mode 100644 index 00000000..84adafc6 --- /dev/null +++ b/Feature Tests/A/Project Status_11/A.6.11.100 - Administrative Controls in Control Center.feature @@ -0,0 +1,85 @@ +Feature: Control Center: The system shall support limiting the ability to move projects to production to administrators. + + As a REDCap end user + I want to see that My Project is functioning as expected + + Scenario: A.6.11.100.100 Production status setting in control center + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "A.6.11.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 + + ##USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + #FUNCTIONAL REQUIREMENT + ##ACTION: Setup in control center - admin only + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + Then I should see "System-level User Settings" + + When I select "No, only Administrators can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your system configuration values have now been changed!" + And I logout + #SETUP + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.11.100.100" + ##ACTION: Test user requests move to production + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "Yes, Request Admin to Move to Production Status" in the dialog box + ##VERIFY + Then I should see "Success! Your request to move the project to production status has been sent to a REDCap administrator. " + + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Send request to move project to production status | + + ##ACTION: cancel request + When I click on the link labeled "Project Setup" + And I click on the button labeled "Cancel request" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Project status: Development" + And I logout + + #SETUP + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "Control Center" + And I click on the link labeled "User Settings" + Then I should see "System-level User Settings" + When I select "Yes, normal users can move projects to production" on the dropdown field labeled "Allow normal users to move projects to production?" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your system configuration values have now been changed!" + And I logout + + #SETUP + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "A.6.11.100.100" + + ##ACTION: Test user move to production + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "Yes, Move to Production Status" in the dialog box + + ##VERIFY + Then I should see "Project status: Production" + + ##VERIFY_LOG + When I click on the button labeled "Logging" + And I should see a table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Move project to Production status | + #End \ No newline at end of file diff --git a/Feature Tests/A/Security Settings/A.2.12.100 - System Status.feature b/Feature Tests/A/Security Settings/A.2.12.100 - System Status.feature deleted file mode 100644 index 08306074..00000000 --- a/Feature Tests/A/Security Settings/A.2.12.100 - System Status.feature +++ /dev/null @@ -1,46 +0,0 @@ -Feature: A.2.12.100 Security Settings- The system shall support changing the system status between online and offline. - -As a REDCap end user -I want to see that system status is functioning as expected - -Scenario: A.2.12.100.100 System Status Online/Offline -#SETUP_CONTROL_CENTER -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 "General Configuration" -Then I should see "Server configuration settings" - And I should see "System Status" - And I should see the dropdown field labeled "System Status" with the option "SYSTEM ONLINE" selected - -#FUNCTIONAL REQUIREMENT -##ACTION Move SYSTEM OFFLINE -Given I select "SYSTEM OFFLINE" on the dropdown field labeled "System Status" - And I enter "This is a test. The Vanderbilt REDCap System is offline and will be back online shortly." into the textarea field labeled "Custom message to display to users when system is offline" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - When I logout - -##VERIFY #Test REDCap offline for Standard User -Given I login to REDCap with the user "Test_User1" -Then I should see "This is a test. The Vanderbilt REDCap System is offline and will be back online shortly." - And I logout - -##VERIFY #Test REDCap offline for Admin User -Given I login to REDCap with the user "Test_Admin" -Then I should see "REDCap and all its projects are currently OFFLINE and are not accessible to normal users." - - When I click on the link labeled "Control Center" - And I click on the link labeled "General Configuration" -Then I should see "Server configuration settings" - And I should see "System Status" - -#FUNCTIONAL REQUIREMENT -##ACTION Move SYSTEM ONLINE -Given I select "SYSTEM ONLINE" on the dropdown field labeled "System Status" - And I click on the button labeled "Save Changes" -Then I should see "Your system configuration values have now been changed!" - -##VERIFY #Test REDCap online for "Test_User1" -Given I login to REDCap with the user "Test_User1" - Then I should see "My Projects" - diff --git a/Feature Tests/A/Security Settings_12/A.2.12.100 - System Status.feature b/Feature Tests/A/Security Settings_12/A.2.12.100 - System Status.feature new file mode 100644 index 00000000..f9e31b59 --- /dev/null +++ b/Feature Tests/A/Security Settings_12/A.2.12.100 - System Status.feature @@ -0,0 +1,46 @@ +Feature: A.2.12.100 Security Settings- The system shall support changing the system status between online and offline. + + As a REDCap end user + I want to see that system status is functioning as expected + + Scenario: A.2.12.100.100 System Status Online/Offline + #SETUP_CONTROL_CENTER + 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 "General Configuration" + Then I should see "Server configuration settings" + And I should see "System Status" + And I should see the dropdown field labeled "System Status" with the option "SYSTEM ONLINE" selected + + #FUNCTIONAL REQUIREMENT + ##ACTION Move SYSTEM OFFLINE + Given I select "SYSTEM OFFLINE" on the dropdown field labeled "System Status" + And I enter "This is a test. The Vanderbilt REDCap System is offline and will be back online shortly." into the textarea field labeled "Custom message to display to users when system is offline" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + When I logout + + ##VERIFY #Test REDCap offline for Standard User + Given I login to REDCap with the user "Test_User1" + Then I should see "This is a test. The Vanderbilt REDCap System is offline and will be back online shortly." + And I logout + + ##VERIFY #Test REDCap offline for Admin User + Given I login to REDCap with the user "Test_Admin" + Then I should see "REDCap and all its projects are currently OFFLINE and are not accessible to normal users." + + When I click on the link labeled "Control Center" + And I click on the link labeled "General Configuration" + Then I should see "Server configuration settings" + And I should see "System Status" + + #FUNCTIONAL REQUIREMENT + ##ACTION Move SYSTEM ONLINE + Given I select "SYSTEM ONLINE" on the dropdown field labeled "System Status" + And I click on the button labeled "Save Changes" + Then I should see "Your system configuration values have now been changed!" + + ##VERIFY #Test REDCap online for "Test_User1" + Given I login to REDCap with the user "Test_User1" + Then I should see "My Projects" +#End \ No newline at end of file diff --git a/Feature Tests/B/Assign User Rights/B.2.6.100 - Basic Privileges.feature b/Feature Tests/B/Assign User Rights/B.2.6.100 - Basic Privileges.feature deleted file mode 100644 index 57be1745..00000000 --- a/Feature Tests/B/Assign User Rights/B.2.6.100 - Basic Privileges.feature +++ /dev/null @@ -1,220 +0,0 @@ -Feature: Project Level: The system shall allow the ability to add, edit or delete user access to application tools for Basic Privileges and expiration date. - -As a REDCap end user -I want to see that project level user access is functioning as expected - -Scenario: B.2.6.100.100 Project level User Rights functions (Add, Edit, Expire, Remove) - -#SETUP - -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.6.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 link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Add User with Basic custom rights - -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the input field labeled "Add with custom rights" -And I click on the button labeled "Add with custom rights" -Then I should see a dialog containing the following text: "Adding new user" - -When I remove all Basic Privileges within the open User Rights dialog box -And I save changes within the context of User Rights -##VERIFY_LOG: Verify Update user rights -And I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Add User | test_user1 | - -##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by user name -When I select the "test_admin" on the dropdown field labeled "Filter by username" -##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by user name -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Add User | test_user1 | -And I logout - -##VERIFY: Verify User with Basic custom rights -Given I login to REDCap with the user "Test_User1" -Then I should see "Logged in as" - -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -Then I should see a link labeled "Project Home" -And I should NOT see a link labeled "Project Setup" -And I should NOT see a link labeled "Designer" -And I should NOT see a link labeled "Dictionary" -And I should see a link labeled "Codebook" -And I should NOT see a link labeled "Survey Distribution Tools" -And I should see a link labeled "Record Status Dashboard" -And I should see a link labeled "View / Edit Records" -And I should see "Applications" -And I should NOT see a link labeled "Project Dashboards" -And I should NOT see a link labeled "Alerts & Notifications" -And I should NOT see a link labeled "Multi-Language Management" -And I should NOT see a link labeled "Calendar" -And I should NOT see a link labeled "Data Import Tool" -And I should NOT see a link labeled "Logging and Email Logging" -And I should NOT see a link labeled "File Repository" -And I should NOT see a link labeled "Data Comparison Tool" -And I should NOT see a link labeled "User Rights and DAGs" -And I should NOT see a link labeled "Customize & Manage Locking/E-signatures" -And I should NOT see a link labeled "Data Quality" -And I should NOT see a link labeled "API and API Playground" -And I should NOT see a link labeled "REDCap Mobile App" -And I logout - -##ACTION: Edit User to full custom rights - -Given I login to REDCap with the user "Test_Admin" -And I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -And I click on the link labeled "User Rights" -And I click on the link labeled "Test User1" -And I click on the button labeled "Edit user privileges" on the tooltip -Then I should see a dialog containing the following text: "Editing existing user" - -When I check the User Right named "Project Setup & Design" -And I check the User Right named "User Rights" -And I check the User Right named "Data Access Groups" -And I check the User Right named "Survey Distribution Tools" -And I check the User Right named "Alerts & Notifications" -And I check the User Right named "Calendar & Scheduling" -And I check the User Right named "Add/Edit/Organize Reports" -And I check the User Right named "Stats & Charts" -And I check the User Right named "Data Import Tool" -And I check the User Right named "Data Comparison Tool" -And I check the User Right named "Logging" -And I check the User Right named "File Repository" -And I check the User Right named "Data Quality - Create & edit rules" -And I check the User Right named "Data Quality - Execute rules" -And I check the User Right named "API Export" -And I check the User Right named "API Import/Update" -And I check the User Right named "Create Records" -And I check the User Right named "Rename Records" -And I check the User Right named "Delete Records" -And I check the User Right named "Record Locking Customization" -And I select the User Right named "Lock/Unlock Records" and choose "Locking / Unlocking" -And I check the User Right named "Lock/Unlock *Entire* Records (record level) " -And I check the User Right named "REDCap Mobile App - Allow users to collect data offline in the mobile app" -Then I should see a dialog containing the following text: "Confirm Mobile App Privileges" -And I click on the button labeled "Yes, I understand" -And I check the User Right named "REDCap Mobile App - Allow user to download data for all records to the app?" -And I save changes within the context of User Rights - -##VERIFY_LOG: Verify Update user rights -And I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Update user | test_user1 | -And I logout - -##VERIFY: Verify User with full custom rights - -Given I login to REDCap with the user "Test_User1" -Then I should see "Logged in as" -And I should see a link labeled "Codebook" -And I should see a link labeled "Survey Distribution Tools" -And I should see a link labeled "Record Status Dashboard" -And I should see a link labeled "Add / Edit Records" -And I should see "Applications" -And I should see a link labeled "Project Dashboards" -And I should see a link labeled "Alerts & Notifications" -And I should see a link labeled "Multi-Language Management" -And I should see a link labeled "Calendar" -And I should see a link labeled "Data Import Tool" -And I should see a link labeled "Logging" -And I should see a link labeled "Email Logging" -And I should see a link labeled "File Repository" -And I should see a link labeled "Data Comparison Tool" -And I should see a link labeled "User Rights " -And I should see a link labeled "DAGs" -And I should see a link labeled "Customize & Manage Locking/E-signatures" -And I should see a link labeled "Data Quality" -And I should see a link labeled "API" -And I should see a link labeled " API Playground" -And I should see a link labeled "REDCap Mobile App" -And I logout - -##ACTION: Expire User -Given I login to REDCap with the user "Test_Admin" -And I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -And I click on the link labeled "User Rights" -And I assign an expired expiration date to user "Test User1" with username of "test_user1" -##VERIFY_LOG: Verify Expire User -And I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Updated User Expiration | test_user1 | -And I logout - -##VERIFY: Verify User access to project - -Given I login to REDCap with the user "Test_User1" -Then I should see "Logged in as" -And I click on the link labeled "My Projects" -And I click on a link labeled "B.2.6.100.100" -Then I should see "ACCESS DENIED!" -And I should see "Your access to this particular REDCap project has expired" -And I click on the link labeled "Return to My Projects page" -And I logout - -##ACTION: Remove expiration for User - -Given I login to REDCap with the user "Test_Admin" -And I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -And I click on the link labeled "User Rights" -And I remove the expiration date to user "Test User1" with username of "test_user1" -#The Expiration column shows 'never' for "Test_User1" -##VERIFY_LOG: Verify Update user Expiration -And I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Updated User Expiration | test_user1 | -And I logout - -##VERIFY: Verify User access to project - -Given I login to REDCap with the user "Test_User1" -Then I should see "Logged in as" -And I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -Then I should see a link labeled "Project Home" -And I logout - -##ACTION: Remove User from project - -Given I login to REDCap with the user "Test_Admin" -And I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.100.100" -And I click on the link labeled "User Rights" -And I click on the link labeled "Test User1" -And I click on the button labeled "Edit user privileges" on the tooltip -Then I should see a dialog containing the following text: "Editing existing user" - -When I click on a button labeled "Remove User" -Then I should see a dialog containing the following text: "Remove user?" -And I click on the button labeled "Remove user" in the dialog box - -##VERIFY_LOG: Verify Logging of Delete user -And I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Delete user | test_user1 | -| test_admin | Updated User Expiration| test_user1 | -And I logout - -##VERIFY: Verify User has no access to project - -Given I login to REDCap with the user "Test_User1" -Then I should see "My Projects" -And I should NOT see "B.2.6.100.100" diff --git a/Feature Tests/B/Assign User Rights/B.2.6.200 - Data Entry Form Access.feature b/Feature Tests/B/Assign User Rights/B.2.6.200 - Data Entry Form Access.feature deleted file mode 100644 index a2e0a35e..00000000 --- a/Feature Tests/B/Assign User Rights/B.2.6.200 - Data Entry Form Access.feature +++ /dev/null @@ -1,161 +0,0 @@ -Feature: Project Level: The system shall allow data entry form user access to be (No Access / Read Only / View & Edit / Edit survey responses) - -As a REDCap end user -I want to see that data entry rights is functioning as expected - -Scenario: B.2.6.200.100 Data Viewing Rights - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.6.200.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 click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -When I click on the link labeled "User Rights" -And I click on the button labeled "Upload or download users, roles, and assignments" -Then I should see "Upload users (CSV)" - -When I click on the button labeled "Upload users (CSV)" -Then I should see a dialog containing the following text: "Upload users (CSV)" - -Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file -Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" -And I should see a table header and rows containing the following values in the table: -| username | -| test_user1 | -| test_user2 | -| test_user3 | -| test_user4 | - -Given I click on the button labeled "Upload" -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup - -And I should see a table header and rows including the following values in the table: -|Role name | Username | -| | test_admin | -| | test_user1 | -| | test_user2 | -| | test_user3 | -| | test_user4 | -| 1_FullRights | | -| 2_Edit_RemoveID | | -| 3_ReadOnly_Deidentified | | -| 4_NoAccess_Noexport | | - -When I click on the link labeled "test_user1" -And I click on the button labeled "Edit user privileges" -Then I should see a dialog containing the following text: "Editing existing user" - -#FUNCTIONAL REQUIREMENT -##ACTION: Set user access to No Access - -When I set Data Viewing Rights to No Access for the instrument "Text Validation" -And I save changes within the context of User Rights -##VERIFY_LOG: Verify Update user rights -And I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Update user | user = 'test_user1' | -| test_admin | Add user | user = 'test_user1' | - -##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by user name -When I select the "test_admin" option from the Filter by username dropdown field -##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by user name -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Update user | user = 'test_user1' | -| test_admin | Add user | user = 'test_user1' | - -##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by user name -When I select the "test_user1" option from the Filter by username dropdown field -##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by user name -Then I should see "No logged events to display" - -And I logout - -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.200.100" -##VERIFY: No access to Instrument -And I click on the link labeled "Record Status Dashboard" -Then I should NOT see "Text Validation" - -Given I click on the link labeled "User Rights" -And I click on the link labeled "test_user1" -And I click on the button labeled "Edit user privileges" -Then I should see a dialog containing the following text: "Editing existing user" - -##ACTION: Set user access to Read Only - -When I set Data Viewing Rights to Read Only for the instrument "Text Validation" -And I save changes within the context of User Rights -Then I should see "successfully edited" - -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -Then I should see "Record Home Page" - -##VERIFY: Read Only for the instrument -When I click the bubble to select a record for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Text Validation" -And I should NOT see a button labeled "Save & Exit Form" - -Given I click on the link labeled "User Rights" -And I click on the link labeled "Test User1" -And I click on the button labeled "Edit user privileges" -Then I should see a dialog containing the following text: "Editing existing user" - -##ACTION: Set user access to View & Edit -When I set Data Viewing Rights to View & Edit for the instrument "Text Validation" -##ACTION: Set user access to Edit survey responses -When I select Data Viewing Rights to View & Edit for the instrument "Text Validation" -And I verify Data Viewing Rights to View & Edit with Edit survey responses is checked for the instrument "Survey" -And I save changes within the context of User Rights -Then I should see "successfully edited" - -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -Then I should see "Record Home Page" - -##VERIFY: View & Edit for the instrument -When I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Text Validation" -And I should see a button labeled "Save & Exit Form" - -When I click on the link labeled "Record ID" -Then I should see "Record Home Page" - -##VERIFY: Edit survey responses for the instrument -When I click the bubble for the "Survey" longitudinal instrument on event "Event 3" -And I select the dropdown option labeled "Open survey" -And I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a Completed Survey Response icon for the instrument labeled "Survey" for event "Event Three" - -When I click the bubble for the "Survey" longitudinal instrument on event "Event 3" -Then I should see "Survey response is editable" -When I click the button "Edit response" -Then I should see "now editing" - -Given I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Edit user privileges" -Then I should see a dialog containing the following text: "Editing existing user" - -##ACTION: Remove user access to Edit survey responses -When I remove Data Viewing Rights to edit survey responses for the instrument "Survey" -And I save changes within the context of User Rights -Then I should see " User "test_user1" was successfully edited" - -##VERIFY: Not able to edit survey responses for the instrument -Given I click on the link labeled "Add / Edit Records" -And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page -Then I should see "Record Home Page" -When I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event 1" -Then I should see "Survey response is read-only" diff --git a/Feature Tests/B/Assign User Rights/B.2.6.300 - Data Export Rights.feature b/Feature Tests/B/Assign User Rights/B.2.6.300 - Data Export Rights.feature deleted file mode 100644 index 9e1a3ae4..00000000 --- a/Feature Tests/B/Assign User Rights/B.2.6.300 - Data Export Rights.feature +++ /dev/null @@ -1,147 +0,0 @@ -Feature: Project Level: The system shall allow instrument level data export rights to be (No Access, De-Identified, Remove All Identifier Fields, Full Data Set) - -As a REDCap end user -I want to see that data export rights is functioning as expected - -Scenario: B.2.6.300.100 Data Export Rights -#SETUP_PRODUCTION -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.6.300.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 click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -##USER_RIGHTS -When I click on the link labeled "User Rights" -Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file -Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" -And I should see a table header and rows containing the following values in the table: -| username | -| test_user1 | -| test_user2 | -| test_user3 | -| test_user4 | - -Given I click on the button labeled "Upload" -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup - -And I should see a table header and rows including the following values in the table: -|Role name | Username | -| | test_admin | -| | test_user1 | -| | test_user2 | -| | test_user3 | -| | test_user4 | -| 1_FullRights | | | -| 2_Edit_RemoveID| | | -| 3_ReadOnly_Deidentified | | -| 4_NoAccess_Noexport | | - -And I logout - -Given I login to REDCap with the user "Test_User1" -Then I should see "Logged in as" -#FUNCTIONAL REQUIREMENT Export Full Data Set -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.300.100" -And I click on the link labeled "Data Exports, Reports, and Stats" -##ACTION: -And I click on the button labeled "Export Data" -Then I should see "All data (all records and fields)" - -When I click on the link labeled "CSV / Microsoft Excel (raw data) " -And I click on the button labeled "Export Data" -Then I should see "Data export was successful!" - -When I click on the button labeled "Excel CSV" -And I click the button labeled "Close" -##VERIFY_DE: -And I open the Excel CSV File -Then I should see "text_validation_complete" -And I should see "ptname" -And I should see "identifier" -And I should see "identifier2" -And I should see "data_types_complete" -#M: Close csv file - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Data export | Download exported data file (CSV raw) | - -And I logout - -#SETUP -Given I login to REDCap with the user "Test_User2" -Then I should see "Logged in as" - -#FUNCTIONAL REQUIREMENT Export remove all identifier fields -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.300.100" -And I click on the link labeled "Data Exports, Reports, and Stats" -##ACTION: -And I click on the button labeled "Export Data" -Then I should see "All data (all records and fields)" Test_User3 - -When I click on the link labeled "CSV / Microsoft Excel (raw data)" -And I click on the button labeled "Export Data" -Then I should see "Data export was successful!" - -When I click on the button labeled "Excel CSV" -And I click the button labeled "Close" -##VERIFY_DE: -And I open the Excel CSV File -Then I should see "text_validation_complete" -And I should see "ptname" -And I should NOT see "identifier" -And I should NOT see "identifier2" -And I should see "data_types_complete" -#M: Close csv file - -And I logout - -#SETUP -Given I login to REDCap with the user "Test_User3" -Then I should see "Logged in as" - -#FUNCTIONAL REQUIREMENT: Export Deidentified -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.300.100" -And I click on the link labeled "Data Exports, Reports, and Stats" -And I click on the button labeled "Export Data" -Then I should see "All data (all records and fields) " - -When I click on the link labeled "CSV / Microsoft Excel (raw data)" -##ACTION: -And I click on the button labeled "Export Data" -Then I should see "Data export was successful! " - -When I click on the button labeled "Excel CSV" -And I click the button labeled "Close" -##VERIFY_DE: -And I open the Excel CSV File -Then I should see "text_validation_complete" -And I should NOT see "ptname" -And I should NOT see "identifier" -And I should NOT see "identifier2" -And I should see "data_types_complete" -#M: Close csv file - -And I logout - -#SETUP -Given I login to REDCap with the user "Test_User4" -Then I should see "Logged in as" - -#FUNCTIONAL REQUIREMENT: Export No Access -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.6.300.100" -##ACTION: -And I click on the link labeled "Data Exports, Reports, and Stats" -##VERIFY -Then I should not see the button labeled "Export Data" diff --git a/Feature Tests/B/Assign User Rights/B.2.6.400 - Creating Copying Deleting Roles.feature b/Feature Tests/B/Assign User Rights/B.2.6.400 - Creating Copying Deleting Roles.feature deleted file mode 100644 index 17349312..00000000 --- a/Feature Tests/B/Assign User Rights/B.2.6.400 - Creating Copying Deleting Roles.feature +++ /dev/null @@ -1,41 +0,0 @@ -Feature: Project Level: The system shall allow for the creation, copying and deletion of user roles. - -As a REDCap end user -I want to see that assign user rights is functioning as expected - -Scenario: B.2.6.400.100 Create, Copy, & Delete User Roles -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.6.400.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 - -#FUNCTIONAL REQUIREMENT: -##ACTION: User Rights Create role -When I click on the link labeled "User Rights" -And I enter "TestRole2" into the rolename input field -And I click on the button labeled "Create role" -And I click on the button labeled "Create role" within User Rights -##VERIFY_UR -Then I should see "TestRole2" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Create user role | role = 'TestRole2'| - -When I click on the link labeled "User Rights" -And I click on the link labeled "TestRole2" -##ACTION: User Rights Copy role -And I click on the button labeled "Copy role" -And I enter "CopyRole" into the data entry form field labeled "New role name" -And I click on the button labeled "Copy role" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "CopyRole" - -When I click on the link labeled "TestRole2" -##ACTION: User Rights delete role -And I click on the button labeled "Delete role" -And I click on the button labeled "Delete role" in the dialog box -##VERIFY -Then I should NOT see "TestRole2" diff --git a/Feature Tests/B/Assign User Rights/B.2.6.500 - Adding and Removing Users from Roles.feature b/Feature Tests/B/Assign User Rights/B.2.6.500 - Adding and Removing Users from Roles.feature deleted file mode 100644 index ef86c676..00000000 --- a/Feature Tests/B/Assign User Rights/B.2.6.500 - Adding and Removing Users from Roles.feature +++ /dev/null @@ -1,68 +0,0 @@ -Feature: Project Level: The system shall support adding and removing users from user roles. - -As a REDCap end user -I want to see that assign user rights is functioning as expected - -Scenario: B.2.6.500.100 Cancel, Assign, Re-assign, & Remove User Roles -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.6.500.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 - -#SETUP_USER_RIGHTS -When I click on the link labeled "User Rights" -Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file -Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" -And I should see a table header and rows containing the following values in the table: -| username | -| test_user1 | -| test_user2 | -| test_user3 | -| test_user4 | - -Given I click on the button labeled "Upload" -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup - -And I should see a table header and rows including the following values in the table: -|Role name | Username | -| | test_admin | -| | test_user1 | -| | test_user2 | -| | test_user3 | -| | test_user4 | -| 1_FullRights | | | -| 2_Edit_RemoveID| | | -| 3_ReadOnly_Deidentified | | -| 4_NoAccess_Noexport | | - -#FUNCTIONAL REQUIREMENT -##ACTION: Cancel assign to role -When I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I should see the dropdown field labeled "Assign to role" with the option "TestRole" selected -And I click on the button labeled "Cancel" -##VERIFY -Then I should see "Test_User1" user assigned "-" role - -##ACTION: Assign to role -When I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I should see the dropdown field labeled "Select Role" with the option "TestRole" selected -And I click on the button labeled "Assign" -##VERIFY -Then I should see "Test_User1" user assigned "TestRole" role - -##ACTION: Re-assign to role -When I click on the link labeled "Test_User1" -And I click on the button labeled "Re-assign to role" -And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected -And I click on the button labeled "Assign" -##VERIFY -Then I should see "Test_User1" user assigned "1_FullRights" role - -##ACTION: Remove from role -When I click on the link labeled "Test_User1" -And I click on the button labeled "Remove from role" -##VERIFY -Then I should see "Test_User1" user assigned "-" role -And I click on the button labeled "Close in the dialog box" diff --git a/Feature Tests/B/Assign User Rights_6/B.2.6.100 - Basic Privileges.feature b/Feature Tests/B/Assign User Rights_6/B.2.6.100 - Basic Privileges.feature new file mode 100644 index 00000000..4f1a5869 --- /dev/null +++ b/Feature Tests/B/Assign User Rights_6/B.2.6.100 - Basic Privileges.feature @@ -0,0 +1,250 @@ +Feature: Project Level: The system shall allow the ability to add, edit or delete user access to application tools for Basic Privileges and expiration date. + + As a REDCap end user + I want to see that project level user access is functioning as expected + + Scenario: B.2.6.100.100 Project level User Rights functions (Add, Edit, Expire, Remove) + + #SETUP + + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.6.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 link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Add User with Basic custom rights + + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the input field labeled "Add with custom rights" + And I click on the button labeled "Add with custom rights" + Then I should see a dialog containing the following text: "Adding new user" + + When I uncheck the User Right named "Project Setup & Design" + And I uncheck the User Right named "User Rights" + And I uncheck the User Right named "Data Access Groups" + And I uncheck the User Right named "Survey Distribution Tools" + And I uncheck the User Right named "Alerts & Notifications" + And I uncheck the User Right named "Calendar & Scheduling" + And I uncheck the User Right named "Add/Edit/Organize Reports" + And I uncheck the User Right named "Stats & Charts" + And I uncheck the User Right named "Data Import Tool" + And I uncheck the User Right named "Data Comparison Tool" + And I uncheck the User Right named "Logging" + And I uncheck the User Right named "File Repository" + And I uncheck the User Right named "Data Quality - Create & edit rules" + And I uncheck the User Right named "Data Quality - Execute rules" + And I uncheck the User Right named "API Export" + And I uncheck the User Right named "API Import/Update" + And I uncheck the User Right named "Create Records" + And I uncheck the User Right named "Rename Records" + And I uncheck the User Right named "Delete Records" + And I uncheck the User Right named "Record Locking Customization" + And I select the User Right named "Lock/Unlock Records" and choose "Disabled" + And I uncheck the User Right named "Lock/Unlock *Entire* Records (record level) " + And I uncheck the User Right named "REDCap Mobile App - Allow users to collect data offline in the mobile app" + And I save changes within the context of User Rights + ##VERIFY_LOG: Verify Update user rights + And I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Add User | test_user1 | + + ##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by user name + When I select the "test_admin" on the dropdown field labeled "Filter by username" + ##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by user name + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Add User | test_user1 | + Given I logout + + ##VERIFY: Verify User with Basic custom rights + Given I login to REDCap with the user "Test_User1" + Then I should see "Logged in as test_user1" + + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + Then I should see a link labeled "Project Home" + And I should NOT see a link labeled "Project Setup" + And I should NOT see a link labeled "Designer" + And I should NOT see a link labeled "Dictionary" + And I should see a link labeled "Codebook" + And I should NOT see a link labeled "Survey Distribution Tools" + And I should see a link labeled "Record Status Dashboard" + And I should see a link labeled "View / Edit Records" + And I should see "Applications" + And I should NOT see a link labeled "Project Dashboards" + And I should NOT see a link labeled "Alerts & Notifications" + And I should NOT see a link labeled "Multi-Language Management" + And I should NOT see a link labeled "Calendar" + And I should NOT see a link labeled "Data Import Tool" + And I should NOT see a link labeled "Logging and Email Logging" + And I should NOT see a link labeled "File Repository" + And I should NOT see a link labeled "Data Comparison Tool" + And I should NOT see a link labeled "User Rights and DAGs" + And I should NOT see a link labeled "Customize & Manage Locking/E-signatures" + And I should NOT see a link labeled "Data Quality" + And I should NOT see a link labeled "API and API Playground" + And I should NOT see a link labeled "REDCap Mobile App" + Given I logout + + ##ACTION: Edit User to full custom rights + + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + And I click on the link labeled "User Rights" + And I click on the link labeled "Test User1" + And I click on the button labeled "Edit user privileges" on the tooltip + Then I should see a dialog containing the following text: "Editing existing user" + + When I check the User Right named "Project Setup & Design" + And I check the User Right named "User Rights" + And I check the User Right named "Data Access Groups" + And I check the User Right named "Survey Distribution Tools" + And I check the User Right named "Alerts & Notifications" + And I check the User Right named "Calendar & Scheduling" + And I check the User Right named "Add/Edit/Organize Reports" + And I check the User Right named "Stats & Charts" + And I check the User Right named "Data Import Tool" + And I check the User Right named "Data Comparison Tool" + And I check the User Right named "Logging" + And I check the User Right named "File Repository" + And I check the User Right named "Data Quality - Create & edit rules" + And I check the User Right named "Data Quality - Execute rules" + And I check the User Right named "API Export" + And I check the User Right named "API Import/Update" + And I check the User Right named "Create Records" + And I check the User Right named "Rename Records" + And I check the User Right named "Delete Records" + And I check the User Right named "Record Locking Customization" + And I select the User Right named "Lock/Unlock Records" and choose "Locking / Unlocking" + And I check the User Right named "Lock/Unlock *Entire* Records (record level) " + And I check the User Right named "REDCap Mobile App - Allow users to collect data offline in the mobile app" + Then I should see a dialog containing the following text: "Confirm Mobile App Privileges" + And I click on the button labeled "Yes, I understand" + And I check the User Right named "REDCap Mobile App - Allow user to download data for all records to the app?" + And I save changes within the context of User Rights + + ##VERIFY_LOG: Verify Update user rights + And I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Update user | test_user1 | + Given I logout + + ##VERIFY: Verify User with full custom rights + + Given I login to REDCap with the user "Test_User1" + Then I should see "Logged in as test_user1" + And I should see a link labeled "Project Setup" + And I should see a link labeled "Designer" + And I should see a link labeled "Dictionary" + And I should see a link labeled "Codebook" + And I should see a link labeled "Survey Distribution Tools" + And I should see a link labeled "Scheduling" + And I should see a link labeled "Record Status Dashboard" + And I should see a link labeled "Add / Edit Records" + And I should see "Applications" + And I should see a link labeled "Project Dashboards" + And I should see a link labeled "Alerts & Notifications" + And I should see a link labeled "Multi-Language Management" + And I should see a link labeled "Calendar" + And I should see a link labeled "Data Exports, Reports, and Stats" + And I should see a link labeled "Data Import Tool" + And I should see a link labeled "Logging" + And I should see a link labeled "Email Logging" + And I should see a link labeled "Field Comment Log" + And I should see a link labeled "File Repository" + And I should see a link labeled "Data Comparison Tool" + And I should see a link labeled "User Rights " + And I should see a link labeled "DAGs" + And I should see a link labeled "Customize & Manage Locking/E-signatures" + And I should see a link labeled "Data Quality" + And I should see a link labeled "API" + And I should see a link labeled " API Playground" + And I should see a link labeled "REDCap Mobile App" + And I logout + + ##ACTION: Expire User + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + And I click on the link labeled "User Rights" + And I assign an expired expiration date to user "Test User1" with username of "test_user1" + ##VERIFY_LOG: Verify Expire User + And I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Updated User Expiration | test_user1 | + Given I logout + + ##VERIFY: Verify User access to project + + Given I login to REDCap with the user "Test_User1" + Then I should see "Logged in as test_user1" + And I click on the link labeled "My Projects" + And I click on a link labeled "B.2.6.100.100" + Then I should see "ACCESS DENIED!" + And I should see "Your access to this particular REDCap project has expired" + When I click on the link labeled "Return to My Projects page" + And I logout + + ##ACTION: Remove expiration for User + + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + And I click on the link labeled "User Rights" + And I remove the expiration date to user "Test User1" with username of "test_user1" + #The Expiration column shows 'never' for "Test_User1" + ##VERIFY_LOG: Verify Update user Expiration + And I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Updated User Expiration | test_user1 | + Given I logout + + ##VERIFY: Verify User access to project + + Given I login to REDCap with the user "Test_User1" + Then I should see "Logged in as test_user1" + And I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + Then I should see a link labeled "Project Home" + Given I logout + + ##ACTION: Remove User from project + + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.100.100" + And I click on the link labeled "User Rights" + And I click on the link labeled "Test User1" + And I click on the button labeled "Edit user privileges" on the tooltip + Then I should see a dialog containing the following text: "Editing existing user" + + When I click on a button labeled "Remove User" + Then I should see a dialog containing the following text: "Remove user?" + And I click on the button labeled "Remove user" in the dialog box + + ##VERIFY_LOG: Verify Logging of Delete user + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Delete user | test_user1 | + | test_admin | Updated User Expiration | test_user1 | + Given I logout + + ##VERIFY: Verify User has no access to project + + Given I login to REDCap with the user "Test_User1" + Then I should see "My Projects" + And I should NOT see "B.2.6.100.100" +#End \ No newline at end of file diff --git a/Feature Tests/B/Assign User Rights_6/B.2.6.200 - Data Entry Form Access.feature b/Feature Tests/B/Assign User Rights_6/B.2.6.200 - Data Entry Form Access.feature new file mode 100644 index 00000000..b1adcfae --- /dev/null +++ b/Feature Tests/B/Assign User Rights_6/B.2.6.200 - Data Entry Form Access.feature @@ -0,0 +1,163 @@ +Feature: Project Level: The system shall allow data entry form user access to be (No Access / Read Only / View & Edit / Edit survey responses) + + As a REDCap end user + I want to see that data entry rights is functioning as expected + + Scenario: B.2.6.200.100 Data Viewing Rights + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.6.200.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 click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + When I click on the link labeled "User Rights" + And I click on the button labeled "Upload or download users, roles, and assignments" + Then I should see "Upload users (CSV)" + + When I click on the button labeled "Upload users (CSV)" + Then I should see a dialog containing the following text: "Upload users (CSV)" + + Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" + And I should see a table header and rows containing the following values in the table: + | username | + | test_user1 | + | test_user2 | + | test_user3 | + | test_user4 | + + Given I click on the button labeled "Upload" + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + + And I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + + When I click on the link labeled "test_user1" + And I click on the button labeled "Edit user privileges" + Then I should see a dialog containing the following text: "Editing existing user" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Set user access to No Access + + When I set Data Viewing Rights to No Access for the instrument "Text Validation" + And I save changes within the context of User Rights + ##VERIFY_LOG: Verify Update user rights + And I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Update user | user = 'test_user1' | + | test_admin | Add user | user = 'test_user1' | + + ##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by user name + When I select the "test_admin" option from the Filter by username dropdown field + ##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by user name + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Update user | user = 'test_user1' | + | test_admin | Add user | user = 'test_user1' | + + ##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by user name + When I select the "test_user1" option from the Filter by username dropdown field + ##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by user name + Then I should see "No logged events to display" + + And I logout + + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.200.100" + ##VERIFY: No access to Instrument + And I click on the link labeled "Record Status Dashboard" + Then I should NOT see "Text Validation" + + Given I click on the link labeled "User Rights" + And I click on the link labeled "test_user1" + And I click on the button labeled "Edit user privileges" + Then I should see a dialog containing the following text: "Editing existing user" + + ##ACTION: Set user access to Read Only + + When I set Data Viewing Rights to Read Only for the instrument "Text Validation" + And I save changes within the context of User Rights + Then I should see "successfully edited" + + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + Then I should see "Record Home Page" + + ##VERIFY: Read Only for the instrument + When I click the bubble to select a record for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Text Validation" + And I should NOT see a button labeled "Save & Exit Form" + + Given I click on the link labeled "User Rights" + And I click on the link labeled "Test User1" + And I click on the button labeled "Edit user privileges" + Then I should see a dialog containing the following text: "Editing existing user" + + ##ACTION: Set user access to View & Edit + When I set Data Viewing Rights to View & Edit for the instrument "Text Validation" + ##ACTION: Set user access to Edit survey responses + When I select Data Viewing Rights to View & Edit for the instrument "Text Validation" + And I verify Data Viewing Rights to View & Edit with Edit survey responses is checked for the instrument "Survey" + And I save changes within the context of User Rights + Then I should see "successfully edited" + + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + Then I should see "Record Home Page" + + ##VERIFY: View & Edit for the instrument + When I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Text Validation" + And I should see a button labeled "Save & Exit Form" + + When I click on the link labeled "Record ID" + Then I should see "Record Home Page" + + ##VERIFY: Edit survey responses for the instrument + When I click the bubble for the "Survey" longitudinal instrument on event "Event 3" + And I select the dropdown option labeled "Open survey" + And I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a Completed Survey Response icon for the instrument labeled "Survey" for event "Event Three" + + When I click the bubble for the "Survey" longitudinal instrument on event "Event 3" + Then I should see "Survey response is editable" + When I click the button "Edit response" + Then I should see "now editing" + + Given I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Edit user privileges" + Then I should see a dialog containing the following text: "Editing existing user" + + ##ACTION: Remove user access to Edit survey responses + When I remove Data Viewing Rights to edit survey responses for the instrument "Survey" + And I save changes within the context of User Rights + Then I should see " User "test_user1" was successfully edited" + + ##VERIFY: Not able to edit survey responses for the instrument + Given I click on the link labeled "Add / Edit Records" + And I select record ID "1" from arm name "Arm 1: Arm 1" on the Add / Edit record page + Then I should see "Record Home Page" + When I click the bubble to select a record for the "Survey" longitudinal instrument on event "Event Three" + Then I should see "Survey response is read-only" +#End \ No newline at end of file diff --git a/Feature Tests/B/Assign User Rights_6/B.2.6.300 - Data Export Rights.feature b/Feature Tests/B/Assign User Rights_6/B.2.6.300 - Data Export Rights.feature new file mode 100644 index 00000000..5aea5f23 --- /dev/null +++ b/Feature Tests/B/Assign User Rights_6/B.2.6.300 - Data Export Rights.feature @@ -0,0 +1,175 @@ +Feature: Project Level: The system shall allow instrument level data export rights to be (No Access, De-Identified, Remove All Identifier Fields, Full Data Set) + + As a REDCap end user + I want to see that data export rights is functioning as expected + + Scenario: B.2.6.300.100 Data Export Rights + #SETUP_PRODUCTION + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.6.300.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 click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##USER_RIGHTS + When I click on the link labeled "User Rights" + And I select "Upload users" on the dropdown field labeled "Upload or download users, roles, and assignments" + And I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" + And I should see a table header and rows containing the following values in the table: + | username | + | test_user1 | + | test_user2 | + | test_user3 | + | test_user4 | + + Given I click on the button labeled "Upload" + Then I should see a dialog containing the following text: "SUCCESS!" + When I close the popup + + Then I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + + #B.2.6.500.100 Assign User Roles + When I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected + And I click on the button labeled "Assign" + ##VERIFY + Then I should see "Test_User1" user assigned "T1_FullRights" role + + When I click on the link labeled "Test_User2" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "2_Edit_RemoveID" selected + And I click on the button labeled "Assign" + ##VERIFY + Then I should see "Test_User2" user assigned "2_Edit_RemoveID" role + + When I click on the link labeled "Test_User3" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "3_ReadOnly_Deidentified" selected + And I click on the button labeled "Assign" + ##VERIFY + Then I should see "Test_User3" user assigned "3_ReadOnly_Deidentified" role + + When I click on the link labeled "Test_User3" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "4_NoAccess_Noexport" selected + And I click on the button labeled "Assign" + ##VERIFY + Then I should see "Test_User3" user assigned "4_NoAccess_Noexport" role + And I logout + + Given I login to REDCap with the user "Test_User1" + Then I should see "Logged in as" + #FUNCTIONAL REQUIREMENT #B.5.21.300.100 Export Full Data Set + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.300.100" + And I click on the link labeled "Data Exports, Reports, and Stats" + ##ACTION + And I click on the button labeled "Export Data" + Then I should see "All data (all records and fields)" + + When I click on the link labeled "CSV / Microsoft Excel (raw data) " + And I click on the button labeled "Export Data" + Then I should see "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + + ##VERIFY_DE + Then I should have a "csv" file that contains the headings below + | record_id | redcap_event_name | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | + #Manual: Close the file + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Data export | Download exported data file (CSV raw) | + + And I logout + + #SETUP + Given I login to REDCap with the user "Test_User2" + Then I should see "Logged in as" + + #FUNCTIONAL REQUIREMENT Export remove all identifier fields + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.300.100" + And I click on the link labeled "Data Exports, Reports, and Stats" + ##ACTION + And I click on the button labeled "Export Data" + Then I should see "All data (all records and fields)" Test_User3 + + When I click on the link labeled "CSV / Microsoft Excel (raw data)" + And I click on the button labeled "Export Data" + Then I should see "Data export was successful!" + + When I click on the button labeled "Excel CSV" + And I click the button labeled "Close" + ##VERIFY_DE + And I open the Excel CSV File + + Then I should have a "csv" file that contains the headings below + | record_id | redcap_event_name | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | name | email | text_validation_complete | ptname | textbox | text2 | radio | notesbox | multiple_dropdown_manual | multiple_dropdown_auto | multiple_radio_auto | radio_button_manual | checkbox___1 | checkbox___2 | checkbox___3 | calc_test | calculated_field | signature | file_upload required | edit_field | date_ymd | date_mdy | date_dmy | time_hhmmss | time_hhmm | time_mmss | datetime_ymd_hmss | datetime_ymd_hm | datetime_mdy_hmss | datetime_dmy_hmss | integer | number | number_1_period | number_1_comma | letters | mrn_10_digits | mrn | ssn | phone_north_america | phone_australia | phone_uk | zipcode_us | postal_5 | postal_code_australia | postal_code_canada | data_types_complete survey_timestamp | name_survey | email_survey | survey_complete | consent_timestamp | name_consent | email_consent | dob | signature_consent | consent_complete | + # And I should NOT see "ptname" + # And I should NOT see "identifier" + # And I should NOT see "identifier2" + #M: Close csv file + + And I logout + + #SETUP + Given I login to REDCap with the user "Test_User3" + Then I should see "Logged in as" + + #FUNCTIONAL REQUIREMENT: Export Deidentified + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.300.100" + And I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the button labeled "Export Data" + Then I should see "All data (all records and fields) " + + When I click on the link labeled "CSV / Microsoft Excel (raw data)" + ##ACTION + And I click on the button labeled "Export Data" + Then I should see "Data export was successful! " + + When I click on the button labeled "Excel CSV" + And I click the button labeled "Close" + ##VERIFY_DE + + Then I should have a "csv" file that contains the headings below + | record_id | redcap_event_name | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | email | text_validation_complete | radio | multiple_dropdown_manual | multiple_dropdown_auto | multiple_radio_auto | radio_button_manual checkbox___1 | checkbox___2 | checkbox___3 | calc_test | calculated_field | signature | file_upload date_ymd | date_mdy | date_dmy | time_hhmmss | time_hhmm | time_mmss | datetime_ymd_hmss | datetime_ymd_hm | datetime_mdy_hmss | datetime_dmy_hmss | integer | number | number_1_period | number_1_comma letters | mrn_10_digits | mrn | ssn | phone_north_america | phone_australia phone_uk | zipcode_us | postal_5 | postal_code_australia | postal_code_canada | data_types_complete | survey_timestamp | email_survey | survey_complete consent_timestamp | email_consent | dob | signature_consent | consent_complete | + # And I should NOT see "ptname" + # And I should NOT see "identifier" + # And I should NOT see "identifier2" + #M: Close csv file + And I logout + + #SETUP + Given I login to REDCap with the user "Test_User4" + Then I should see "Logged in as" + + #FUNCTIONAL REQUIREMENT: Export No Access + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.6.300.100" + ##ACTION: + And I click on the link labeled "Data Exports, Reports, and Stats" + ##VERIFY + Then I should see the button labeled "View Report" + Then I should not see the button labeled "Export Data" +#End \ No newline at end of file diff --git a/Feature Tests/B/Assign User Rights_6/B.2.6.400 - Creating Copying Deleting Roles.feature b/Feature Tests/B/Assign User Rights_6/B.2.6.400 - Creating Copying Deleting Roles.feature new file mode 100644 index 00000000..6bcee637 --- /dev/null +++ b/Feature Tests/B/Assign User Rights_6/B.2.6.400 - Creating Copying Deleting Roles.feature @@ -0,0 +1,43 @@ +Feature: Project Level: The system shall allow for the creation, copying and deletion of user roles. + + As a REDCap end user + I want to see that assign user rights is functioning as expected + + Scenario: B.2.6.400.100 Create, Copy, & Delete User Roles + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.6.400.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 + + #FUNCTIONAL REQUIREMENT: + ##ACTION: User Rights Create role + When I click on the link labeled "User Rights" + And I enter "TestRole2" into the rolename input field + And I click on the button labeled "Create role" + And I click on the button labeled "Create role" within User Rights + ##VERIFY_UR + Then I should see "TestRole2" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Create user role | role = 'TestRole2' | + + When I click on the link labeled "User Rights" + And I click on the link labeled "TestRole2" + ##ACTION: User Rights Copy role + And I click on the button labeled "Copy role" + And I enter "CopyRole" into the data entry form field labeled "New role name" + And I click on the button labeled "Copy role" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "CopyRole" + + When I click on the link labeled "TestRole2" + ##ACTION: User Rights delete role + And I click on the button labeled "Delete role" + And I click on the button labeled "Delete role" in the dialog box + ##VERIFY + Then I should NOT see "TestRole2" +#End \ No newline at end of file diff --git a/Feature Tests/B/Assign User Rights_6/B.2.6.500 - Adding and Removing Users from Roles.feature b/Feature Tests/B/Assign User Rights_6/B.2.6.500 - Adding and Removing Users from Roles.feature new file mode 100644 index 00000000..88ccf6d2 --- /dev/null +++ b/Feature Tests/B/Assign User Rights_6/B.2.6.500 - Adding and Removing Users from Roles.feature @@ -0,0 +1,117 @@ +Feature: Project Level: The system shall support adding and removing users from user roles. + + As a REDCap end user + I want to see that assign user rights is functioning as expected + + Scenario: B.2.6.500.100 Cancel, Assign, Re-assign, & Remove User Roles + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.6.500.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 + + #SETUP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + ##VERIFY + Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" + And I should see a table header and rows containing the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + + Given I click on the button labeled "Upload" + Then I should see a dialog containing the following text: "SUCCESS!" + + When I close the popup + Then I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + | TestRole | | + + + #FUNCTIONAL REQUIREMENT + ##ACTION: Cancel assign to role + When I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Assign to role" with the option "TestRole" selected + And I click on the button labeled "Cancel" + ##VERIFY + Then I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + | TestRole | | + + ##ACTION: Assign to role + When I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "TestRole" selected + And I click on the button labeled "Assign" + ##VERIFY + Then I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + | TestRole | test_user1 | + + ##ACTION: Re-assign to role + When I click on the link labeled "Test_User1" + And I click on the button labeled "Re-assign to role" + And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected + And I click on the button labeled "Assign" + ##VERIFY + Then I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | test_user1 | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + | TestRole | | + + ##ACTION: Remove from role + When I click on the link labeled "Test_User1" + And I click on the button labeled "Remove from role" + And I click on the button labeled "Close in the dialog box" + + ##VERIFY + Then I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + | TestRole | | +#End \ No newline at end of file diff --git a/Feature Tests/B/Branching Logic/B.4.9.100 - Branching Logic.feature b/Feature Tests/B/Branching Logic/B.4.9.100 - Branching Logic.feature deleted file mode 100644 index 14e838ba..00000000 --- a/Feature Tests/B/Branching Logic/B.4.9.100 - Branching Logic.feature +++ /dev/null @@ -1,130 +0,0 @@ -Feature: User Interface: The system shall support branching logic for data entry forms. - -As a REDCap end user -I want to see that Branching Logic is functioning as expected - -Scenario: B.4.9.100.100 Branching Logic - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.4.9.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_4.9.xml", and clicking the "Create Project" button - -##VERIFY: Branching logic -When I click on the link labeled "Designer" -And I click on the instrument labeled "Data Types" -Then I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Name" -And I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Text box" -And I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Text2" -And I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Notes Box" - -#FUNCTIONAL_REQUIREMENT: survey mode -When I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Open public survey" -Then I should NOT see the field labeled "Name" -And I should NOT see the field labeled "Text2" -And I should NOT see the field labeled "Text box" -And I should NOT see the field labeled "Notes box" -And I should see the field labeled "Calculated Field" -And I should see the field labeled "Multiple Choice dropdown Auto" -And I should see the field labeled "Multiple Choice dropdown Manual" -#Manual: Close the survey page - -#FUNCTIONAL_REQUIREMENT: data entry mode -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble for the instrument labeled "Data Types" for event "Event 1" -And I click the button labeled "OK" in the pop-up box -And I click the button labeled "OK" in the pop-up box -And I click the button labeled "OK" in the pop-up box -And I click the button labeled "OK" in the pop-up box -Then I should NOT see the field labeled "Name" -And I should NOT see the field labeled "Text2" -And I should NOT see the field labeled "Text box" -And I should NOT see the field labeled "Notes box" -And I should see the field labeled "Calculated Field" -And I should see the field labeled "Multiple Choice dropdown Auto" -And I should see the field labeled "Multiple Choice dropdown Manual" - -##ACTION: change branching logic for one -When I click on the link labeled "Designer" -And I click on the button labeled "Leave without saving changes" in the dialog box -And I click on the instrument labeled "Data Types" -And I click on the Branching Logic icon for the field labeled "Name" -And I enter "[record_id] <> '999'" in the field labeled "Advanced Branching Logic Syntax" -And I click on the button labeled "Update & Close Editor" -And I click on the button labeled "Save" -And I click on the button labeled "No" in the dialog box -Then I should see "Branching logic: [record_id] <> '999'" on the field labeled "Name" - -##ACTION: change branching logic for all -When I click on the Branching Logic icon for the field labeled "Text2" -And I enter " [record_id] <> '999'" in the field labeled "Advanced Branching Logic Syntax" -And I click on the button labeled "Update & Close Editor" -And I click on the button labeled "Save" -And I click on the button labeled "Yes" in the dialog box -Then I should see "Branching logic: [record_id] <> '999'" on the field labeled "Text2" - -#FUNCTIONAL_REQUIREMENT: survey mode -When I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Open Public Survey" -Then I should see the field labeled "Name" -And I should see the field labeled "Text2" -And I should see the field labeled "Text box" -And I should see the field labeled "Notes box" -And I should see the field labeled "Calculated Field" -And I should see the field labeled "Multiple Choice dropdown Auto" -And I should see the field labeled "Multiple Choice dropdown Manual" -#Manual: Close tab - -#FUNCTIONAL_REQUIREMENT: data entry mode -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble for the instrument labeled "Data Types" for event "Event 1" -Then I should see the field labeled "Name" -And I should see the field labeled "Text2" -And I should see the field labeled "Text box" -And I should see the field labeled "Notes box" -And I should see the field labeled "Calculated Field" -And I should see the field labeled "Multiple Choice dropdown Auto" -And I should see the field labeled "Multiple Choice dropdown Manual" - -##ACTION -#FUNCTIONAL_REQUIREMENT: Radio logic -When I click on the link labeled "Designer" -And I click on the button labeled "Leave without saving changes" in the dialog box -And I click on the instrument labeled "Data Types" -And I click on the Branching Logic icon for the field labeled "Descriptive Text with File" -And I click on the radio labeled "Drag-N-Drop Logic Builder" -And I drag the field choice labeled "radio_button_manual = Choice101 (101)" to the box labeled "Show the field only if" -And I click on the button labeled "Save" -Then I should see "Branching logic: [radio_button_manual] = '101'" on the field labeled "Descriptive Text with File" - -#FUNCTIONAL_REQUIREMENT: Checkbox logic -When I click on the Branching Logic icon for the field labeled "Required" -And I click on the radio labeled "Drag-N-Drop Logic Builder" -And I drag the field choice labeled "checkbox = Checkbox (3)" to the box labeled "Show the field only if" -And I click on the button labeled "Save" -Then I should see "Branching logic: [checkbox(3)] = '1'" on the field labeled "Required" - -#FUNCTIONAL_REQUIREMENT: survey mode -When I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Open public survey" -And I select the radio option labeled "Choice101" on the field labeled "Radio Button Manual" -Then I should see the field labeled "Descriptive Test with File" - -When I select the radio option labeled "Choice99" on the field labeled " Radio Button Manual " -Then I should NOT see the field labeled "Descriptive Test with File" - -When I select the multi-select option labeled "Checkbox3" on the field labeled "Checkbox" -Then I should see the field labeled "Required" - -When I deselect the multi-select option labeled "Checkbox3" on the field labeled "Checkbox" -Then I should NOT see the field labeled "Required" -#Manual: Close the survey page - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Add/edit branching logic | - diff --git a/Feature Tests/B/Branching Logic_9/B.4.9.100 - Branching Logic.feature b/Feature Tests/B/Branching Logic_9/B.4.9.100 - Branching Logic.feature new file mode 100644 index 00000000..10197b76 --- /dev/null +++ b/Feature Tests/B/Branching Logic_9/B.4.9.100 - Branching Logic.feature @@ -0,0 +1,143 @@ +Feature: User Interface: The system shall support branching logic for data entry forms. + + As a REDCap end user + I want to see that Branching Logic is functioning as expected + + Scenario: B.4.9.100.100 Branching Logic + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.9.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_4.9.xml", and clicking the "Create Project" button + + ##VERIFY: Branching logic + When I click on the link labeled "Designer" + And I click on the instrument labeled "Data Types" + Then I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Name" + And I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Text box" + And I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Text2" + And I verify I see "Branching logic: [record_id] = '999'" on the field labeled "Notes box" + + #FUNCTIONAL_REQUIREMENT: survey mode + When I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Open public survey" + Then I should NOT see the field labeled "Name" + And I should NOT see the field labeled "Text2" + And I should NOT see the field labeled "Text box" + And I should NOT see the field labeled "Notes box" + And I should see the field labeled "Calculated Field" + And I should see the field labeled "Multiple Choice dropdown Auto" + And I should see the field labeled "Multiple Choice dropdown Manual" + #Manual: Close the survey page + + #FUNCTIONAL_REQUIREMENT: data entry mode + When I click the link labeled "Add/Edit Records" + And I click the button labeled "Add new record for the arm selected above" + And I click the bubble for the instrument labeled "Data Types" for event "Event 1" + And I click the button labeled "OK" in the pop-up box + And I click the button labeled "OK" in the pop-up box + And I click the button labeled "OK" in the pop-up box + And I click the button labeled "OK" in the pop-up box + Then I should NOT see the field labeled "Name" + And I should NOT see the field labeled "Text2" + And I should NOT see the field labeled "Text box" + And I should NOT see the field labeled "Notes box" + And I should see the field labeled "Calculated Field" + And I should see the field labeled "Multiple Choice dropdown Auto" + And I should see the field labeled "Multiple Choice dropdown Manual" + + ##ACTION: change branching logic for one + When I click on the link labeled "Designer" + And I click on the button labeled "Leave without saving changes" in the dialog box + And I click on the instrument labeled "Data Types" + And I click on the Branching Logic icon for the field labeled "Name" + And I enter "[record_id] <> '999'" in the field labeled "Advanced Branching Logic Syntax" + And I click on the button labeled "Update & Close Editor" + And I click on the button labeled "Save" + And I click on the button labeled "No" in the dialog box + Then I should see "Branching logic: [record_id] <> '999'" on the field labeled "Name" + + ##ACTION: change branching logic for all + When I click on the Branching Logic icon for the field labeled "Text2" + And I enter " [record_id] <> '999'" in the field labeled "Advanced Branching Logic Syntax" + And I click on the button labeled "Update & Close Editor" + And I click on the button labeled "Save" + And I click on the button labeled "Yes" in the dialog box + Then I should see "Branching logic: [record_id] <> '999'" on the field labeled "Text2" + And I should see "Branching logic: [record_id] <> '999'" on the field labeled "Text box" + And I should see "Branching logic: [record_id] <> '999'" on the field labeled "Notes box" + + ##ACTION: change branching logic for all + When I click on the Branching Logic icon for the field labeled "Text2" + And I enter " [record_id] <> '999'" in the field labeled "Advanced Branching Logic Syntax" + And I click on the button labeled "Update & Close Editor" + And I click on the button labeled "Save" + And I click on the button labeled "Yes" in the dialog box + Then I should see "Branching logic: [record_id] <> '999'" on the field labeled "Text2" + And I should see "Branching logic: [record_id] <> '999'" on the field labeled "Text box" + And I should see "Branching logic: [record_id] <> '999'" on the field labeled "Notes box" + + #FUNCTIONAL_REQUIREMENT: survey mode + When I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Open Public Survey" + Then I should see the field labeled "Name" + And I should see the field labeled "Text2" + And I should see the field labeled "Text box" + And I should see the field labeled "Notes box" + And I should see the field labeled "Calculated Field" + And I should see the field labeled "Multiple Choice dropdown Auto" + And I should see the field labeled "Multiple Choice dropdown Manual" + #Manual: Close tab + + #FUNCTIONAL_REQUIREMENT: data entry mode + When I click the link labeled "Add/Edit Records" + And I click the button labeled "Add new record for the arm selected above" + And I click the bubble for the instrument labeled "Data Types" for event "Event 1" + Then I should see the field labeled "Name" + And I should see the field labeled "Text2" + And I should see the field labeled "Text box" + And I should see the field labeled "Notes box" + And I should see the field labeled "Calculated Field" + And I should see the field labeled "Multiple Choice dropdown Auto" + And I should see the field labeled "Multiple Choice dropdown Manual" + + ##ACTION + #FUNCTIONAL_REQUIREMENT: Radio logic + When I click on the link labeled "Designer" + And I click on the button labeled "Leave without saving changes" in the dialog box + And I click on the instrument labeled "Data Types" + And I click on the Branching Logic icon for the field labeled "Descriptive Text with File" + And I click on the radio labeled "Drag-N-Drop Logic Builder" + And I drag the field choice labeled "radio_button_manual = Choice101 (101)" to the box labeled "Show the field only if" + And I click on the button labeled "Save" + Then I should see "Branching logic: [radio_button_manual] = '101'" on the field labeled "Descriptive Text with File" + + #FUNCTIONAL_REQUIREMENT: Checkbox logic + When I click on the Branching Logic icon for the field labeled "Required" + And I click on the radio labeled "Drag-N-Drop Logic Builder" + And I drag the field choice labeled "checkbox = Checkbox (3)" to the box labeled "Show the field only if" + And I click on the button labeled "Save" + Then I should see "Branching logic: [checkbox(3)] = '1'" on the field labeled "Required" + + #FUNCTIONAL_REQUIREMENT: survey mode + When I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Open public survey" + And I select the radio option labeled "Choice101" on the field labeled "Radio Button Manual" + Then I should see the field labeled "Descriptive Test with File" + + When I select the radio option labeled "Choice99" on the field labeled " Radio Button Manual " + Then I should NOT see the field labeled "Descriptive Test with File" + + When I select the multi-select option labeled "Checkbox3" on the field labeled "Checkbox" + Then I should see the field labeled "Required" + + When I deselect the multi-select option labeled "Checkbox3" on the field labeled "Checkbox" + Then I should NOT see the field labeled "Required" + #Manual: Close the survey page + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table row including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Add/edit branching logic | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Access Groups/B.2.10.100 - Create Edit Delete.feature b/Feature Tests/B/Data Access Groups/B.2.10.100 - Create Edit Delete.feature deleted file mode 100644 index 206deb19..00000000 --- a/Feature Tests/B/Data Access Groups/B.2.10.100 - Create Edit Delete.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: User Interface: The system shall allow for the creation of DAGs and the deletion of DAGs if no users or records are assigned to it. - -As a REDCap end user -I want to see that Data Access Groups is functioning as expected - -Scenario: B.2.10.100.100 Create, Edit & Delete DAGs -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.10.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 click on the link labeled "DAGs" -Then I should see "Assign user to a group" -#FUNCTIONAL REQUIREMENT -##ACTION: Create DAG -When I enter "TestGroup3" into the "Enter new group name" input field -And I click on the button labeled "Add Group" -##VERIFY -Then I should see "TestGroup3" - -##ACTION: Edit DAG -When I click on the link labeled "TestGroup3" -And I enter "RenameGroup3" into "Group name" the input field -##VERIFY -Then I should see "RenameGroup3" - -##ACTION: Delete DAG -When I click delete icon for the DAG labeled "RenameGroup3" -And I click on the button labeled "Delete" in the dialog box -##VERIFY -Then I should see "Data Access Group "TestGroup3" has been deleted!" -And I should NOT see "RenameGroup3" - diff --git a/Feature Tests/B/Data Access Groups/B.2.10.200 - Add Remove Users.feature b/Feature Tests/B/Data Access Groups/B.2.10.200 - Add Remove Users.feature deleted file mode 100644 index 97451e44..00000000 --- a/Feature Tests/B/Data Access Groups/B.2.10.200 - Add Remove Users.feature +++ /dev/null @@ -1,103 +0,0 @@ -Feature: User Interface: The system shall support adding and removing users from DAGs. - -As a REDCap end user -I want to see that Data Access Groups is functioning as expected - -Scenario: B.2.10.200.100 Assign & Remove User to DAG -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.10.200.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 - -#SETUP_RECORD_DAG_ASSIGN -When I click on "Record Status Dashboard" -And I click on the link labeled "3" -And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown field labeled "Choose action for record" -And I select the dropdown option labeled "TestGroup1" from the dropdown field with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 3 was successfully assigned to a Data Access Group!" - -#SETUP_USER_RIGHTS -When I click on the link labeled "User Rights" -Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file -Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" -And I should see a table header and rows containing the following values in the table: -| username | -| test_user1 | -| test_user2 | -| test_user3 | -| test_user4 | - -Given I click on the button labeled "Upload" -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup -And I should see a table header and rows including the following values in the table: -|Role name | Username | -| | test_admin | -| | test_user1 | -| | test_user2 | -| | test_user3 | -| | test_user4 | -| 1_FullRights | | | -| 2_Edit_RemoveID| | | -| 3_ReadOnly_Deidentified | | -| 4_NoAccess_Noexport | | - -#FUNCTIONAL REQUIREMENT -##ACTION: Assign User to DAG -When I click on the link labeled "DAGs" -And I select "Test_User1" from "Assign User" dropdown -And I select "TestGroup1" from "DAG" dropdown -And I click on the button labeled "Assign" -##VERIFY: DAG assignment -Then I should see "TestGroup1" assigned to "Test_User1" user - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Assign user to data access group user = 'test_user1' -And I logout - -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.200.100" -##VERIFY: Access to DAG Module restricted -And I click on the link labeled "DAGs" -Then I should see "RESTRICTED:" - -##VERIFY_UR: DAG assignment -When I click on the link labeled "User Rights" -Then I should see "TestGroup1" assigned to "Test_User1"user -##VERIFY_RSD: -When I click on "Record Status Dashboard" -Then I should see record "3" -And I should NOT see record "1" -And I logout - -#SETUP -Given I login to REDCap with the user "Test_Admin" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.200.100" -And I click on the link labeled "DAGs" -Then I should see "Assign user to a group" -##ACTION: Remove DAG -When I select "Test_User1" from "Assign User" dropdown -And I select "[No Assignment]" from "DAG" dropdown -And I click on the link labeled "Assign" -##VERIFY -Then I should see "[Not assigned to a group]" assigned to "Test_User1" user -And I logout - -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.200.100" -##VERIFY: Access to DAG Module -And I click on the link labeled "Data Access Group" -Then I should see "Assign user to a group" -##VERIFY_UR -When I click on the link labeled "User Rights" -Then I should see "-" assigned to "Test_User1"user -##VERIFY_RSD: -When I click on "Record Status Dashboard" -Then I should see record "3" -And I should see record "1" diff --git a/Feature Tests/B/Data Access Groups/B.2.10.300 - Multiple DAGs.feature b/Feature Tests/B/Data Access Groups/B.2.10.300 - Multiple DAGs.feature deleted file mode 100644 index f1f98540..00000000 --- a/Feature Tests/B/Data Access Groups/B.2.10.300 - Multiple DAGs.feature +++ /dev/null @@ -1,79 +0,0 @@ -Feature: User Interface: The system shall allow a user to be added to more than one DAG. - -As a REDCap end user -I want to see that Data Access Groups is functioning as expected - -Scenario: B.2.10.300.100 Assign user multiple DAGs and DAG Switcher -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.10.300.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 - -#SETUP_RECORD_DAG_ASSIGN -When I click on "Record Status Dashboard" -And I click on the link labeled "3" -And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown field labeled "Choose action for record" -And I select the dropdown option labeled "TestGroup1" from the dropdown field with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 3 was successfully assigned to a Data Access Group!" - -When I click on "Record Status Dashboard" -And I click on the link labeled "4" -And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown field labeled "Choose action for record" -And I select the dropdown option labeled "TestGroup2" from the dropdown field with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 4 was successfully assigned to a Data Access Group!" - -#SETUP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -When I click on the link labeled "DAGs" -Then I should see "Assign user to a group" - -#FUNCTIONAL REQUIREMENT -##ACTION: Assign DAG -When I select "Test_User1" from "Assign User" dropdown -And I select "TestGroup1" from "DAG" dropdown -And I click on the link labeled "Assign" -##VERIFY -Then I should see "TestGroup1" assigned to "Test_User1" user -##ACTION: Assign DAG -When I select "Test_User1" from "Assign User" dropdown -And I select "TestGroup2" from "DAG" dropdown -And I click on the link labeled "Assign" -##VERIFY -Then I should see "TestGroup2" assigned to "Test_User1" user -##ACTION: Assign DAG Switcher -When I select "TestGroup1" for user "Test_User1" in the DAG Switcher -And I select "TestGroup2" for user "Test_User1" in the DAG Switcher -Then I should see a checkbox labeled "TestGroup1" that is checked for user "Test_User1" -And I should see a checkbox labeled "TestGroup2" that is checked for user "Test_User1" -And I logout - -Given I login to REDCap with the use "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.300.100" -##VERIFY -Then I should see "Current Data Access Group" - -##ACTION: Switch DAG -When I click on the button labeled "Switch" -And I select "TestGroup1" from the Switch dropdown of the open "Switch Data Access Group " in the dialog box -And I click on the button labeled "Switch" in the dialog box -##VERIFY -Then I should see "TestGroup1" -##VERIFY_RSD: -When I click the link labeled "Record Status Dashboard" -Then I should see record "3" -##VERIFY -When I click on the button labeled "Switch" -And I select "TestGroup2" from the Switch dropdown of the open "Switch Data Access Group" in the dialog box -And I click on the button labeled "Switch" in the dialog box -Then I should see "TestGroup2" -##VERIFY_RSD: -When I click the link labeled "Record Status Dashboard" -Then I should see record "4" diff --git a/Feature Tests/B/Data Access Groups/B.2.10.400 - User and Record Restrictions.feature b/Feature Tests/B/Data Access Groups/B.2.10.400 - User and Record Restrictions.feature deleted file mode 100644 index 497ee3d8..00000000 --- a/Feature Tests/B/Data Access Groups/B.2.10.400 - User and Record Restrictions.feature +++ /dev/null @@ -1,299 +0,0 @@ -Feature: User Interface: The system shall provide the ability to restrict a user who has been assigned to a DAG to: (data they entered | data entered by any member of the same DAG | files uploaded in the File Repository) - -As a REDCap end user -I want to see that Data Access Groups is functioning as expected - -Scenario: B.2.10.400.100 User restriction for records in DAGs - -#SETUP_NOTE: Will reference unique Group ID numbers located on DAG page. These numbers are specific to the PID - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.10.400.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 click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.400.100" -And I click on the link labeled "User Rights" -And I click on the button labeled "Upload or download users, roles, and assignments" -Then I should see "Upload users (CSV)" - -When I click on the link labeled "Upload users (CSV)" -Then I should see a dialog containing the following text: "Upload users (CSV)" - -Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file -Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" -And I should see a table header and rows containing the following values in a table: -| username | -| test_user1 | -| test_user2 | -| test_user3 | -| test_user4 | - -Given I click on the button labeled "Upload" -Then I should see a dialog containing the following text: "SUCCESS!" - -When I close the popup -Then I should see a table header and rows containing the following values in a table: -|Role name | Username | -| - | test_admin | -| - | test_user1 | -| - | test_user2 | -| - | test_user3 | -| - | test_user4 | -| 1_FullRights | [No users assigned] | -| 2_Edit_RemoveID | [No users assigned] | -| 3_ReadOnly_Deidentified | [No users assigned] | -| 4_NoAccess_Noexport | [No users assigned] | -| TestRole | [No users assigned] | - - -#This will give Test_User3 elevated privileges for this test -And I click on the link labeled "Test User3" -And I click on the button labeled "Edit user privileges" -Then I should see a dialog containing the following text: "Editing existing user" - -##ACTION: Set user access to View & Edit + Edit survey responses -When I set Data Viewing Rights to View & Edit for the instrument "Text Validation" -And I set Data Viewing Rights to View & Edit with Edit survey responses checked for the instrument "Consent" -And I save changes within the context of User Rights - -#This will give Test_User4 elevated privileges for this test -And I click on the link labeled "Test User4" -And I click on the button labeled "Edit user privileges" -Then I should see a dialog containing the following text: "Editing existing user" - -##ACTION: Set user access to View & Edit + Edit survey responses -When I set Data Viewing Rights to View & Edit for the instrument "Text Validation" -And I set Data Viewing Rights to View & Edit with Edit survey responses checked for the instrument "Consent" -And I save changes within the context of User Rights - -#ASSIGN RECORDS TO SPECIFIC DAGs -# -- Record ID 3 - TestGroup1 -- -Given I click on the link labeled "Add / Edit Records" -And I select "3" on the dropdown field labeled "Choose an existing Record ID" -Then I should see "Record ID 3" - -Given I click on the span element labeled "Choose action for record" -And I click on the link labeled "Assign to Data Access Group" -Then I should see a dialog containing the following text: "Assign record to a Data Access Group?" - -When I select "TestGroup1" on the dropdown field labeled "Assign record" on the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 3 was successfully assigned to a Data Access Group" - -# -- Record ID 4 - TestGroup2 -- -Given I click on the link labeled "Add / Edit Records" -And I select "4" on the dropdown field labeled "Choose an existing Record ID" -Then I should see "Record ID 4" - -Given I click on the span element labeled "Choose action for record" -And I click on the link labeled "Assign to Data Access Group" -Then I should see a dialog containing the following text: "Assign record to a Data Access Group?" - -When I select "TestGroup2" on the dropdown field labeled "Assign record" on the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 4 was successfully assigned to a Data Access Group" - -When I click on the link labeled "DAGs" -Then I should see "Assign user to a group" - -#FUNCTIONAL REQUIREMENT -##ACTION: Assign User to DAG -When I select "test_user3 (Test User3)" on the dropdown field labeled "Assign user" -When I select "TestGroup1" on the dropdown field labeled "to" -And I click on the button labeled "Assign" - -##VERIFY -Then I should see a table header and rows containing the following values in data access groups table: -| Data Access Groups | Users in group | -| TestGroup1 | test_user3 | - -When I select "test_user1 (Test User1)" on the dropdown field labeled "Assign user" -When I select "TestGroup1" on the dropdown field labeled "to" -And I click on the button labeled "Assign" - -##VERIFY -Then I should see a table header and rows containing the following values in data access groups table: -| Data Access Groups | Users in group | -| TestGroup1 | test_user3 | -| TestGroup1 | test_user1 | - -When I select "test_user4 (Test User4)" on the dropdown field labeled "Assign user" -When I select "TestGroup2" on the dropdown field labeled "to" -And I click on the button labeled "Assign" - -##VERIFY -Then I should see a table header and rows containing the following values in data access groups table: -| Data Access Groups | Users in group | -| TestGroup1 | test_user3 | -| TestGroup1 | test_user1 | -| TestGroup2 | test_user4 | - -When I select "test_user2 (Test User2)" on the dropdown field labeled "Assign user" -When I select "TestGroup2" on the dropdown field labeled "to" -And I click on the button labeled "Assign" - -Then I should see a table header and rows containing the following values in data access groups table: -| Data Access Groups | Users in group | -| TestGroup1 | test_user3 | -| TestGroup1 | test_user1 | -| TestGroup2 | test_user4 | -| TestGroup2 | test_user2 | - -And I logout - -##VERIFY -Given I login to REDCap with the user "Test_User3" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.400.100" -And I click on the link labeled "Record Status Dashboard" - -##VERIFY_RSD: -Then I should see a table header and rows containing the following values in the record status dashboard table: -| Record ID | -| 3 TestGroup1 | - -##VERIFY -When I click on the link labeled "Add / Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -Then I should see "Record Home Page" - -##ACTION: Add record while in a DAG -Given I click the bubble to select a record for the "Text Validation" longitudinal instrument on event "Event 1" -And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument -And I click the bubble to select a record for the "Consent" longitudinal instrument on event "Event Three" - -#This opens the survey -When I click on the button labeled "Survey options" -And I click on the survey option label containing "Open survey" label - -#On the survey -Then I should see "Consent" -And I should see "Please complete the survey below." - -Given I click on the button labeled "Next Page" -Then I should see "Displayed below is a read-only copy of your survey responses." -And I check the checkbox labeled "I certify" -When I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -Then I should see "You may now close this tab/window" - -Given I am still logged in to REDCap with the user "Test_User3" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.400.100" - -##VERIFY_LOG: -And I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Time / Date | Username | Action | List of Data ChangesOR Fields Exported | -| mm/dd/yyyy hh:mm | test_user3 | Create record | record_id = '1-1' | - -##VERIFY_RSD: -When I click on the link labeled "Record Status Dashboard" -Then I should see a table header and rows containing the following values in the record status dashboard table: -| Record ID | -| 3 | -| 1-1 | - -##VERIFY_FR: -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows containing the following values in a table: -| Record | Survey | Survey Completion Time | -| 1-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | - -And I logout - -##ACTION: Another user from same DAG has access to same DAG records -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.400.100" - -##VERIFY_RSD: -When I click on the link labeled "Record Status Dashboard" -Then I should see a table header and rows containing the following values in the record status dashboard table: -| Record ID | -| 1-1 TestGroup1 | -| 3 TestGroup1 | - -##VERIFY_FR: -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows containing the following values in a table: -| Record | Survey | Survey Completion Time | -| 1-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | -And I logout - -##ACTION: Separate User DAG -Given I login to REDCap with the user "Test_User4" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.400.100" - -##VERIFY -When I click on the link labeled "Add / Edit Records" -And I select "4" on the dropdown field labeled "Choose an existing Record ID" -Then I should see "Record Home Page" - -##ACTION: Add record while in a DAG -When I click on the link labeled "Add / Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -Then I should see "Record Home Page" - -##ACTION: Add record while in a DAG -Given I click the bubble to select a record for the "Text Validation" longitudinal instrument on event "Event 1" -And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument -And I click the bubble to select a record for the "Consent" longitudinal instrument on event "Event Three" - -#This opens the survey -When I click on the button labeled "Survey options" -And I click on the survey option label containing "Open survey" label - -#On the survey -Then I should see "Consent" -And I should see "Please complete the survey below." - -Given I click on the button labeled "Next Page" -Then I should see "Displayed below is a read-only copy of your survey responses." -And I check the checkbox labeled "I certify" -When I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -Then I should see "You may now close this tab/window" - -##VERIFY_RSD: -When I click on the link labeled "Record Status Dashboard" -Then I should see a table header and rows containing the following values in the record status dashboard table: -| Record ID | -| 2-1 TestGroup2 | -| 4 TestGroup2 | - -##VERIFY_FR: -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows containing the following values in a table: -| Record | Survey | Survey Completion Time | -| 2-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | -And I logout - -##ACTION: Another user from same DAG has access to same DAG records -Given I login to REDCap with the user "Test_User2" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.2.10.400.100" - -##VERIFY_RSD: -When I click on the link labeled "Record Status Dashboard" -Then I should see a table header and rows containing the following values in the record status dashboard table: -| Record ID | -| 2-1 TestGroup2 | -| 4 TestGroup2 | - -##VERIFY_FR: -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows containing the following values in a table: -| Record | Survey | Survey Completion Time | -| 2-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | -And I logout diff --git a/Feature Tests/B/Data Access Groups/B.2.10.600 - B.2.10.600 - Unique DAGs.feature b/Feature Tests/B/Data Access Groups/B.2.10.600 - B.2.10.600 - Unique DAGs.feature deleted file mode 100644 index ac87dc69..00000000 --- a/Feature Tests/B/Data Access Groups/B.2.10.600 - B.2.10.600 - Unique DAGs.feature +++ /dev/null @@ -1,50 +0,0 @@ -Feature: User Interface: The system shall provide the DAG unique group names in the data export raw CSV file and the label in the CSV labels data file. - -As a REDCap end user -I want to see that Data Access Groups is functioning as expected - -Scenario: B.2.10.600.100 Unique DAGs - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.10.600.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 click on the link labeled "Record Status Dashboard" -And I click on the link labeled "3" -Then I should see the "Record Home Page" - -#FUNCTIONAL REQUIREMENT -##ACTION: Assign Record DAG_testgroup1 -##REDUNDANT #B.2.10.500 Assign Records to a DAG -When I select the dropdown option labeled "Assign to Data Access Group" from the dropdown "Choose action for record" -And I select the dropdown option labeled "TestGroup1" from the dropdown with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box - -##VERIFY -Then I should see "Record ID 3 was successfully assigned to a Data Access Group!" -And I should see "Arm 1: Arm 1 - TestGroup1" - -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "4" -Then I should see the "Record Home Page" - -#FUNCTIONAL REQUIREMENT -##ACTION: Assign Record DAG_testgroup2 -When I select the dropdown option labeled "Assign to Data Access Group" from the dropdown "Choose action for record" -And I select the dropdown option labeled "TestGroup2" from the dropdown with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box - -##VERIFY -Then I should see "Record ID 4 was successfully assigned to a Data Access Group!" -And I should see "Arm 1: Arm 1 - TestGroup2" - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| Data Access Group | -| 3 | TestGroup1 | -| 4 | TestGroup2 | diff --git a/Feature Tests/B/Data Access Groups_10/B.2.10.100 - Create Edit Delete.feature b/Feature Tests/B/Data Access Groups_10/B.2.10.100 - Create Edit Delete.feature new file mode 100644 index 00000000..95ab4d1c --- /dev/null +++ b/Feature Tests/B/Data Access Groups_10/B.2.10.100 - Create Edit Delete.feature @@ -0,0 +1,33 @@ +Feature: User Interface: The system shall allow for the creation of DAGs and the deletion of DAGs if no users or records are assigned to it. + + As a REDCap end user + I want to see that Data Access Groups is functioning as expected + + Scenario: B.2.10.100.100 Create, Edit & Delete DAGs + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.10.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 click on the link labeled "DAGs" + Then I should see "Assign user to a group" + #FUNCTIONAL REQUIREMENT + ##ACTION: Create DAG + When I enter "TestGroup3" into the "Enter new group name" input field + And I click on the button labeled "Add Group" + ##VERIFY + Then I should see "TestGroup3" + + ##ACTION: Edit DAG + When I click on the link labeled "TestGroup3" + And I enter "RenameGroup3" into "Group name" the input field + ##VERIFY + Then I should see "RenameGroup3" + + ##ACTION: Delete DAG + When I click delete icon for the DAG labeled "RenameGroup3" + And I click on the button labeled "Delete" in the dialog box + ##VERIFY + Then I should see "Data Access Group 'RenameGroup3' has been deleted!" + And I should NOT see "RenameGroup3" +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Access Groups_10/B.2.10.200 - Add Remove Users.feature b/Feature Tests/B/Data Access Groups_10/B.2.10.200 - Add Remove Users.feature new file mode 100644 index 00000000..2b4b70c9 --- /dev/null +++ b/Feature Tests/B/Data Access Groups_10/B.2.10.200 - Add Remove Users.feature @@ -0,0 +1,106 @@ +Feature: User Interface: The system shall support adding and removing users from DAGs. + + As a REDCap end user + I want to see that Data Access Groups is functioning as expected + + Scenario: B.2.10.200.100 Assign & Remove User to DAG + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.10.200.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 + + #SETUP_RECORD_DAG_ASSIGN + When I click on "Record Status Dashboard" + And I click on the link labeled "3" + And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown field labeled "Choose action for record" + And I select the dropdown option labeled "TestGroup1" from the dropdown field with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 3 was successfully assigned to a Data Access Group!" + + #SETUP_USER_RIGHTS + When I click on the link labeled "User Rights" + #Click on the dropdown labeled "uplooad or download users, roles, and assignements" and select "Upload users (CSV)" + And I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" + And I should see a table header and rows containing the following values in the table: + | username | + | test_user1 | + | test_user2 | + | test_user3 | + | test_user4 | + + Given I click on the button labeled "Upload" + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + And I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | | + | 2_Edit_RemoveID | | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + + #FUNCTIONAL REQUIREMENT + ##ACTION: Assign User to DAG + When I click on the link labeled "DAGs" + And I select "Test_User1" from "Assign User" dropdown + And I select "TestGroup1" from "DAG" dropdown + And I click on the button labeled "Assign" + ##VERIFY: DAG assignment + Then I should see "TestGroup1" assigned to "Test_User1" user + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Assign user to data access group user = 'test_user1' | + And I logout + + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.200.100" + ##VERIFY: Access to DAG Module restricted + And I click on the link labeled "DAGs" + Then I should see "RESTRICTED:" + + ##VERIFY_UR: DAG assignment + When I click on the link labeled "User Rights" + Then I should see "TestGroup1" assigned to "Test_User1" user + ##VERIFY_RSD: + When I click on "Record Status Dashboard" + Then I should see record "3" + And I should NOT see record "1" + And I logout + + #SETUP + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.200.100" + And I click on the link labeled "DAGs" + Then I should see "Assign user to a group" + ##ACTION: Remove DAG + When I select "Test_User1" from "Assign User" dropdown + And I select "[No Assignment]" from "DAG" dropdown + And I click on the link labeled "Assign" + ##VERIFY + Then I should see "[Not assigned to a group]" assigned to "Test_User1" user + And I logout + + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.200.100" + ##VERIFY: Access to DAG Module + And I click on the link labeled "Data Access Groups" + Then I should see "Assign user to a group" + ##VERIFY_UR + When I click on the link labeled "User Rights" + Then I should see "-" assigned to "Test_User1"user + ##VERIFY_RSD: + When I click on "Record Status Dashboard" + Then I should see record "3" + And I should see record "1" +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Access Groups_10/B.2.10.300 - Multiple DAGs.feature b/Feature Tests/B/Data Access Groups_10/B.2.10.300 - Multiple DAGs.feature new file mode 100644 index 00000000..d4ba3f33 --- /dev/null +++ b/Feature Tests/B/Data Access Groups_10/B.2.10.300 - Multiple DAGs.feature @@ -0,0 +1,81 @@ +Feature: User Interface: The system shall allow a user to be added to more than one DAG. + + As a REDCap end user + I want to see that Data Access Groups is functioning as expected + + Scenario: B.2.10.300.100 Assign user multiple DAGs and DAG Switcher + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.10.300.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 + + #SETUP_RECORD_DAG_ASSIGN + When I click on "Record Status Dashboard" + And I click on the link labeled "3" + And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown field labeled "Choose action for record" + And I select the dropdown option labeled "TestGroup1" from the dropdown field with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 3 was successfully assigned to a Data Access Group!" + + When I click on "Record Status Dashboard" + And I click on the link labeled "4" + And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown field labeled "Choose action for record" + And I select the dropdown option labeled "TestGroup2" from the dropdown field with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 4 was successfully assigned to a Data Access Group!" + + #SETUP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + When I click on the link labeled "DAGs" + Then I should see "Assign user to a group" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Assign DAG + When I select "Test_User1" from "Assign User" dropdown + And I select "TestGroup1" from "DAG" dropdown + And I click on the link labeled "Assign" + ##VERIFY + Then I should see "TestGroup1" assigned to "Test_User1" user + ##ACTION: Assign DAG + When I select "Test_User1" from "Assign User" dropdown + And I select "TestGroup2" from "DAG" dropdown + And I click on the link labeled "Assign" + ##VERIFY + Then I should see "TestGroup2" assigned to "Test_User1" user + ##ACTION: Assign DAG Switcher + When I select "TestGroup1" for user "Test_User1" in the DAG Switcher + And I select "TestGroup2" for user "Test_User1" in the DAG Switcher + Then I should see a checkbox labeled "TestGroup1" that is checked for user "Test_User1" + And I should see a checkbox labeled "TestGroup2" that is checked for user "Test_User1" + And I logout + + Given I login to REDCap with the use "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.300.100" + ##VERIFY + Then I should see "Current Data Access Group" + + ##ACTION: Switch DAG + When I click on the button labeled "Switch" + And I select "TestGroup1" from the Switch dropdown of the open "Switch Data Access Group " in the dialog box + And I click on the button labeled "Switch" in the dialog box + ##VERIFY + Then I should see "TestGroup1" + ##VERIFY_RSD: + When I click the link labeled "Record Status Dashboard" + Then I should see record "3" + ##VERIFY + When I click on the button labeled "Switch" + And I select "TestGroup2" from the Switch dropdown of the open "Switch Data Access Group" in the dialog box + And I click on the button labeled "Switch" in the dialog box + Then I should see "TestGroup2" + ##VERIFY_RSD: + When I click the link labeled "Record Status Dashboard" + Then I should see record "4" +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Access Groups_10/B.2.10.400 - User and Record Restrictions.feature b/Feature Tests/B/Data Access Groups_10/B.2.10.400 - User and Record Restrictions.feature new file mode 100644 index 00000000..7c2153d6 --- /dev/null +++ b/Feature Tests/B/Data Access Groups_10/B.2.10.400 - User and Record Restrictions.feature @@ -0,0 +1,308 @@ +Feature: User Interface: The system shall provide the ability to restrict a user who has been assigned to a DAG to: (data they entered | data entered by any member of the same DAG | files uploaded in the File Repository) + + As a REDCap end user + I want to see that Data Access Groups is functioning as expected + + Scenario: B.2.10.400.100 User restriction for records in DAGs + + #SETUP_NOTE: Will reference unique Group ID numbers located on DAG page. These numbers are specific to the PID + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.10.400.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 click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.400.100" + And I click on the link labeled "User Rights" + And I click on the button labeled "Upload or download users, roles, and assignments" + Then I should see "Upload users (CSV)" + + When I click on the link labeled "Upload users (CSV)" + Then I should see a dialog containing the following text: "Upload users (CSV)" + + Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" + And I should see a table header and rows containing the following values in a table: + | username | + | test_user1 | + | test_user2 | + | test_user3 | + | test_user4 | + + Given I click on the button labeled "Upload" + Then I should see a dialog containing the following text: "SUCCESS!" + + When I close the popup + Then I should see a table header and rows containing the following values in a table: + | Role name | Username | + | - | test_admin | + | - | test_user1 | + | - | test_user2 | + | - | test_user3 | + | - | test_user4 | + | 1_FullRights | [No users assigned] | + | 2_Edit_RemoveID | [No users assigned] | + | 3_ReadOnly_Deidentified | [No users assigned] | + | 4_NoAccess_Noexport | [No users assigned] | + | TestRole | [No users assigned] | + + + #This will give Test_User3 elevated privileges for this test + And I click on the link labeled "Test User3" + And I click on the button labeled "Edit user privileges" + Then I should see a dialog containing the following text: "Editing existing user" + + ##ACTION: Set user access to View & Edit + Edit survey responses + When I set Data Viewing Rights to View & Edit for the instrument "Text Validation" + And I set Data Viewing Rights to View & Edit with Edit survey responses checked for the instrument "Consent" + And I save changes within the context of User Rights + + #This will give Test_User4 elevated privileges for this test + And I click on the link labeled "Test User4" + And I click on the button labeled "Edit user privileges" + Then I should see a dialog containing the following text: "Editing existing user" + + ##ACTION: Set user access to View & Edit + Edit survey responses + When I set Data Viewing Rights to View & Edit for the instrument "Text Validation" + And I set Data Viewing Rights to View & Edit with Edit survey responses checked for the instrument "Consent" + And I save changes within the context of User Rights + + #ASSIGN RECORDS TO SPECIFIC DAGs + # -- Record ID 3 - TestGroup1 -- + Given I click on the link labeled "Add / Edit Records" + And I select "3" on the dropdown field labeled "Choose an existing Record ID" + Then I should see "Record ID 3" + + Given I click on the span element labeled "Choose action for record" + And I click on the link labeled "Assign to Data Access Group" + Then I should see a dialog containing the following text: "Assign record to a Data Access Group?" + + When I select "TestGroup1" on the dropdown field labeled "Assign record" on the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 3 was successfully assigned to a Data Access Group" + + # -- Record ID 4 - TestGroup2 -- + Given I click on the link labeled "Add / Edit Records" + And I select "4" on the dropdown field labeled "Choose an existing Record ID" + Then I should see "Record ID 4" + + Given I click on the span element labeled "Choose action for record" + And I click on the link labeled "Assign to Data Access Group" + Then I should see a dialog containing the following text: "Assign record to a Data Access Group?" + + When I select "TestGroup2" on the dropdown field labeled "Assign record" on the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 4 was successfully assigned to a Data Access Group" + + When I click on the link labeled "DAGs" + Then I should see "Assign user to a group" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Assign User to DAG + When I select "test_user3 (Test User3)" on the dropdown field labeled "Assign user" + When I select "TestGroup1" on the dropdown field labeled "to" + And I click on the button labeled "Assign" + + ##VERIFY + Then I should see a table header and rows containing the following values in data access groups table: + | Data Access Groups | Users in group | + | TestGroup1 | test_user3 | + + When I select "test_user1 (Test User1)" on the dropdown field labeled "Assign user" + When I select "TestGroup1" on the dropdown field labeled "to" + And I click on the button labeled "Assign" + + ##VERIFY + Then I should see a table header and rows containing the following values in data access groups table: + | Data Access Groups | Users in group | + | TestGroup1 | test_user3 | + | TestGroup1 | test_user1 | + + When I select "test_user4 (Test User4)" on the dropdown field labeled "Assign user" + When I select "TestGroup2" on the dropdown field labeled "to" + And I click on the button labeled "Assign" + + ##VERIFY + Then I should see a table header and rows containing the following values in data access groups table: + | Data Access Groups | Users in group | + | TestGroup1 | test_user3 | + | TestGroup1 | test_user1 | + | TestGroup2 | test_user4 | + + When I select "test_user2 (Test User2)" on the dropdown field labeled "Assign user" + When I select "TestGroup2" on the dropdown field labeled "to" + And I click on the button labeled "Assign" + + Then I should see a table header and rows containing the following values in data access groups table: + | Data Access Groups | Users in group | + | TestGroup1 | test_user3 | + | TestGroup1 | test_user1 | + | TestGroup2 | test_user4 | + | TestGroup2 | test_user2 | + + And I logout + + ##VERIFY + Given I login to REDCap with the user "Test_User3" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.400.100" + And I click on the link labeled "Record Status Dashboard" + + ##VERIFY_RSD: + Then I should see a table header and rows containing the following values in the record status dashboard table: + | Record ID | + | 3 TestGroup1 | + + ##VERIFY + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + Then I should see "Record Home Page" + + ##ACTION: Add record while in a DAG + Given I click the bubble to select a record for the "Text Validation" longitudinal instrument on event "Event 1" + And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument + And I click the bubble to select a record for the "Consent" longitudinal instrument on event "Event Three" + + #This opens the survey + When I click on the button labeled "Survey options" + And I click on the survey option label containing "Open survey" label + + #On the survey + Then I should see "Consent" + And I should see "Please complete the survey below." + + Given I click on the button labeled "Next Page" + Then I should see "Displayed below is a read-only copy of your survey responses." + And I check the checkbox labeled "I certify" + When I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + Then I should see "You may now close this tab/window" + + Given I click on the button labeled "Leave without saving changes" + And I logout + + Given I am still logged in to REDCap with the user "Test_User3" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.400.100" + +#Manual: DAG numbers will be different than what is listed below. It will be based on your specific Group ID number located in the Data Access Groups Page + ##VERIFY_LOG: + And I click on the link labeled "Logging" + Then I should see a table header and rows containing the following values in the logging table: + | Time / Date | Username | Action | List of Data ChangesOR Fields Exported | + | mm/dd/yyyy hh:mm | test_user3 | Create record | record_id = '1-1' | + + ##VERIFY_RSD: + When I click on the link labeled "Record Status Dashboard" + Then I should see a table header and rows containing the following values in the record status dashboard table: + | Record ID | + | 3 | + | 1-1 | + + ##VERIFY_FR: + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows containing the following values in a table: + | Record | Survey | Survey Completion Time | + | 1-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | + + And I logout + + ##ACTION: Another user from same DAG has access to same DAG records + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.400.100" + + ##VERIFY_RSD: + When I click on the link labeled "Record Status Dashboard" + Then I should see a table header and rows containing the following values in the record status dashboard table: + | Record ID | + | 1-1 TestGroup1 | + | 3 TestGroup1 | + + ##VERIFY_FR: + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows containing the following values in a table: + | Record | Survey | Survey Completion Time | + | 1-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | + And I logout + + ##ACTION: Separate User DAG + Given I login to REDCap with the user "Test_User4" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.400.100" + + ##VERIFY + When I click on the link labeled "Add / Edit Records" + And I select "4" on the dropdown field labeled "Choose an existing Record ID" + Then I should see "Record Home Page" + + ##ACTION: Add record while in a DAG + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + Then I should see "Record Home Page" + + ##ACTION: Add record while in a DAG + Given I click the bubble to select a record for the "Text Validation" longitudinal instrument on event "Event 1" + And I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument + And I click the bubble to select a record for the "Consent" longitudinal instrument on event "Event Three" + + #This opens the survey + When I click on the button labeled "Survey options" + And I click on the survey option label containing "Open survey" label + + #On the survey + Then I should see "Consent" + And I should see "Please complete the survey below." + + Given I click on the button labeled "Next Page" + Then I should see "Displayed below is a read-only copy of your survey responses." + And I check the checkbox labeled "I certify" + When I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + Then I should see "You may now close this tab/window" + + Given I click on the button labeled "Leave without saving changes" + + + ##VERIFY_RSD: + When I click on the link labeled "Record Status Dashboard" + Then I should see a table header and rows containing the following values in the record status dashboard table: + | Record ID | + | 2-1 TestGroup2 | + | 4 TestGroup2 | + + ##VERIFY_FR: + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows containing the following values in a table: + | Record | Survey | Survey Completion Time | + | 2-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | + And I logout + + ##ACTION: Another user from same DAG has access to same DAG records + Given I login to REDCap with the user "Test_User2" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.2.10.400.100" + + ##VERIFY_RSD: + When I click on the link labeled "Record Status Dashboard" + Then I should see a table header and rows containing the following values in the record status dashboard table: + | Record ID | + | 2-1 TestGroup2 | + | 4 TestGroup2 | + + ##VERIFY_FR: + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows containing the following values in a table: + | Record | Survey | Survey Completion Time | + | 2-1 | Consent (Event Three (Arm 1: Arm 1)) | mm/dd/yyyy hh:mm | + And I logout +#End diff --git a/Feature Tests/B/Data Access Groups/B.2.10.500 - REDUNDANT.Assign Records to DAG.feature b/Feature Tests/B/Data Access Groups_10/B.2.10.500 - REDUNDANT.Assign Records to DAG.feature similarity index 50% rename from Feature Tests/B/Data Access Groups/B.2.10.500 - REDUNDANT.Assign Records to DAG.feature rename to Feature Tests/B/Data Access Groups_10/B.2.10.500 - REDUNDANT.Assign Records to DAG.feature index e4b29a96..90c84626 100644 --- a/Feature Tests/B/Data Access Groups/B.2.10.500 - REDUNDANT.Assign Records to DAG.feature +++ b/Feature Tests/B/Data Access Groups_10/B.2.10.500 - REDUNDANT.Assign Records to DAG.feature @@ -1,3 +1,3 @@ Feature: User Interface: The system shall provide the ability to assign records to a DAG from the Record Home page -Scenario: B.2.10.500.100 Assign DAG to record -This feature test is REDUNDANT and can be viewed in B.2.10.600. + Scenario: B.2.10.500.100 Assign DAG to record +#This feature test is REDUNDANT and can be viewed in B.2.10.600. \ No newline at end of file diff --git a/Feature Tests/B/Data Access Groups_10/B.2.10.600 - B.2.10.600 - Unique DAGs.feature b/Feature Tests/B/Data Access Groups_10/B.2.10.600 - B.2.10.600 - Unique DAGs.feature new file mode 100644 index 00000000..991e0484 --- /dev/null +++ b/Feature Tests/B/Data Access Groups_10/B.2.10.600 - B.2.10.600 - Unique DAGs.feature @@ -0,0 +1,52 @@ +Feature: User Interface: The system shall provide the DAG unique group names in the data export raw CSV file and the label in the CSV labels data file. + + As a REDCap end user + I want to see that Data Access Groups is functioning as expected + + Scenario: B.2.10.600.100 Unique DAGs + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.10.600.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 click on the link labeled "Record Status Dashboard" + And I click on the link labeled "3" + Then I should see the "Record Home Page" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Assign Record DAG_testgroup1 + ##REDUNDANT #B.2.10.500 Assign Records to a DAG + When I select the dropdown option labeled "Assign to Data Access Group" from the dropdown "Choose action for record" + And I select the dropdown option labeled "TestGroup1" from the dropdown with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + + ##VERIFY + Then I should see "Record ID 3 was successfully assigned to a Data Access Group!" + And I should see "Arm 1: Arm 1 - TestGroup1" + + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "4" + Then I should see the "Record Home Page" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Assign Record DAG_testgroup2 + When I select the dropdown option labeled "Assign to Data Access Group" from the dropdown "Choose action for record" + And I select the dropdown option labeled "TestGroup2" from the dropdown with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + + ##VERIFY + Then I should see "Record ID 4 was successfully assigned to a Data Access Group!" + And I should see "Arm 1: Arm 1 - TestGroup2" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Data Access Group | + | 3 | TestGroup1 | + | 4 | TestGroup2 | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import/B.3.16.100 - Import Templates - Columns & Rows.feature b/Feature Tests/B/Data Import/B.3.16.100 - Import Templates - Columns & Rows.feature deleted file mode 100644 index ec10da35..00000000 --- a/Feature Tests/B/Data Import/B.3.16.100 - Import Templates - Columns & Rows.feature +++ /dev/null @@ -1,42 +0,0 @@ -Feature: User Interface: The system shall support the ability to download two versions of a data import template formatted as a CSV file, one to accommodate records in rows and one to accommodate records in columns. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.100.100 data import template -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Data Import Template (with records in rows) -When I click on the link labeled "Data Import Tool" -Then I should see "Download your Data Import Template (with records in rows)" - -When I click on the link labeled "Download your Data Import Template (with records in rows)" -Then I should receive a download to a csv file labeled "B316100100_ImportTemplate_yyyy_mm_dd" - -##VERIFY -When I open the csv file labeled "B316100100_ImportTemplate_[timestamp]" -Then I should see "record_id" in the column labeled "A" -And I should see "name" in the column labeled "B" -#M: close csv file - -#FUNCTIONAL REQUIREMENT -##ACTION Data Import Template (with records in columns) -Given I click on link labeled "Data Import Tool" -Then I should see "Download your Data Import Template (with records in columns)" - -When I click on the link labeled "Download your Data Import Template (with records in columns)" -Then I should receive a download to a csv file labeled "B316100100_ ImportTemplate_ yyyy_mm_dd" -#M: close csv file - -##VERIFY -When I open the csv file labeled "B316100100_ImportTemplate_ yyyy_mm_dd " -Then I should see "record_id" in the row labeled "2" -And I should see "name" in the row labeled "3" diff --git a/Feature Tests/B/Data Import/B.3.16.1000 - Access Restrictions.feature b/Feature Tests/B/Data Import/B.3.16.1000 - Access Restrictions.feature deleted file mode 100644 index 05b5aa47..00000000 --- a/Feature Tests/B/Data Import/B.3.16.1000 - Access Restrictions.feature +++ /dev/null @@ -1,70 +0,0 @@ -Feature: User Interface: The system shall not allow a new record to be imported if user does not have Create Records access. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.1000.100 Data import of new record limited by user rights - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.1000.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User3" into the field with the placeholder text of "Add with custom rights" -And I click on the button labeled "Add with custom rights" -And I click on the checkbox for the field labeled "Data Import Tool" in the dialog box -And I deselect the checkbox for the field labeled "Create Records" in the dialog box -And I click on the button labeled "Add user" in the dialog box -Then I should see "Test_User3 was successfully added" -And I log out - -#FUNCTIONAL_REQUIREMENT -Given I login to REDCap with the user "Test_User3" -When I click on the link labeled "Data Import Tool" -And I click on the button labeled "Choose File" -And I select the file labeled "B.3.16.1000_New Record.csv" -And I click on the button labeled "Upload File" -Then I should see "Error" -And I should see "Your user privileges do NOT allow you to create new records." -And I log out - -Given I login to REDCap with the user "Test_Admin" -When I click on the link labeled "Data Import Tool" -And I click on the button labeled "Choose File" -And I select the file labeled "B.3.16.1000_New Record.csv" -And I click on the button labeled "Upload File" -And I click on the button labeled "Upload File" -Then I should see a table header and rows containing the following values in in the Data Display Table: -|record_id | email | -|5 (new record)| email@test.edu| - -When I click on the button labeled "Import Data" -Then I should see "Import Successful!" - -##VERIFY_RSD: -When I click the link labeled "Record Status Dashboard" -Then I should see record "5" - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| Email | -| 5 | email@test.edu| - -#VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Create record (import) | Create record (import) diff --git a/Feature Tests/B/Data Import/B.3.16.1200 - Overwrite Existing Data.feature b/Feature Tests/B/Data Import/B.3.16.1200 - Overwrite Existing Data.feature deleted file mode 100644 index 46c25665..00000000 --- a/Feature Tests/B/Data Import/B.3.16.1200 - Overwrite Existing Data.feature +++ /dev/null @@ -1,78 +0,0 @@ -Feature: User Interface: The system shall provide the option to allow blank values to overwrite existing saved values. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.1200.100 Data import overwrite existing values with blank - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.1200.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 - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -And I click on the button labeled "Ok" in the pop-up box -Then I should see "Project Status: Production" - -##Verify Data present -Given I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | - When I click on the button labeled "View Report" - - Then I should see a table header and rows containing the following values in the report data table: - | Record ID | Event Name | Repeat Instrument | Repeat Instance | Data Access Group | Survey Identifier | Name | Email | - | 1 | Event 1 (Arm 1: Arm 1) | | | | | | email@test.edu | - -#FUNCTIONAL REQUIREMENT -##ACTION: Import new data, ignoring blank values -When I click on the link labeled "Data Import Tool" -And I click on the tab labeled "CVS import" -Then I should see the button labeled "Choose File" - -When I click on the button labeled "Choose File" -And I select the file labeled "B3161200100_ACCURATE" -And I click on the button labeled "Upload File" - -##VERIFY -Then I should see "Your document was uploaded successfully" - -When I click on the button labeled "Import Data" -Then I should see "Import Successful!" - -##Verify Data present -Given I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | - When I click on the button labeled "View Report" - - Then I should see a table header and rows containing the following values in the report data table: - | Record ID | Event Name | Repeat Instrument | Repeat Instance | Data Access Group | Survey Identifier | Name | Email | - | 1 | Event 1 (Arm 1: Arm 1) | | | | | | email@test.edu | - -#FUNCTIONAL REQUIREMENT -##ACTION: Import new data, overwrite blank values -When I click on the link labeled "Data Import Tool" -And I click on the tab labeled "CVS import" -Then I should see the button labeled "Choose File" - -When I click on the button labeled "Choose File" -And I select "Yes, blank values in the file will overwrite existing values" on the dropdown field labeled "Allow blank values to overwrite existing saved values?" -Given I click on the button labeled "Yes, I understand" in the dialog box -And I select the file labeled "B3161200100_ACCURATE" -And I click on the button labeled "Upload File" - -##VERIFY -Then I should see "Your document was uploaded successfully" - -When I click on the button labeled "Import Data" -Then I should see "Import Successful!" - -##Verify Data was overwritten with a blank -Given I see a table row containing the following values in the reports table: - | A | All data (all records and fields) | - When I click on the button labeled "View Report" - - Then I should see a table header and rows containing the following values in the report data table: - | Record ID | Event Name | Repeat Instrument | Repeat Instance | Data Access Group | Survey Identifier | Name | Email | - | 1 | Event 1 (Arm 1: Arm 1) | | | | | | | diff --git a/Feature Tests/B/Data Import/B.3.16.1300 - Data Import - DAGs.feature b/Feature Tests/B/Data Import/B.3.16.1300 - Data Import - DAGs.feature deleted file mode 100644 index 1a352a49..00000000 --- a/Feature Tests/B/Data Import/B.3.16.1300 - Data Import - DAGs.feature +++ /dev/null @@ -1,71 +0,0 @@ -Feature: User Interface: The system shall provide the ability to assign data instruments to a data access group with the Data Import Tool. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.1300.100 Data import assigns DAG -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.1300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button - -When I click on the link labeled "DAGs" -And I enter "Test_Group1" into the field with the placeholder text "Enter new group name" -And I click on the button labeled "Add Group" -Then I should see "Data Access Group "Test_Group1" has been created!" - -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Add new user" -And I click on the button labeled "Add with custom rights" -And I click on the checkbox labeled "Data Import Tool" -And I select the dropdown option labeled "Test_Group1" on the dropdown field with the placeholder text "[No Assignment]" -And I click on the button labeled "Add user" -Then I should see a table header and rows containing the following values in the table: -| Username or users assigned to a role| Data Access Group | -| test_user 1 | Test_Group1 | - -#SETUP_PRODUCTION -Given I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -Given I click on the link labeled "Data Import Tool" -When I click on the button labeled "Choose File" -And I upload the file labeled "B.3.16.1300_DataImport_Rows.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and is ready for review" - -When I click on the button labeled "Import Data" -Then I should see "Import Successful!" -And I logout - -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "Data Import Tool" -And I click on the button labeled "Choose File" -And I upload the file labeled "B.3.16.1300_DataImport_Dag.csv" -And I click on the button labeled "Upload File" -Then I should see "ERROR: Illegal use of 'redcap_data_access_group' field!" -And I log out - -Given I login to REDCap with the user "Test_Admin" -And I click the link labeled "Data Import Tool" -And I click on the button labeled "Choose File" -And I upload the file labeled "B.3.16.1300_DataImport_Dag.csv" -And I click on the button labeled "Upload File" -Then I should see a header and rows containing the following values in the ERROR DISPLAY table: -| record_id | redcap_data_access_group | name | -| 100 | test_group1 | Rob | -| 200 | test_group1 | Brenda | -| 300 | test_group1 | Paul | -And I click the button labeled "Import Data" -Then I should see "Import Successful!" - -#VERIFY_DE -When I click the link labeled "Data Exports, Reports and Stats" -And I click the button labeled "View Report" -Then I should see a table row including the following values in in the logging table: -|record_id|redcap_data_access_group|name| -|100| test_group1|Rob| -|200| test_group1|Brenda| -|300| test_group1|Paul| diff --git a/Feature Tests/B/Data Import/B.3.16.200 - Create & Modify Records.feature b/Feature Tests/B/Data Import/B.3.16.200 - Create & Modify Records.feature deleted file mode 100644 index c3755d99..00000000 --- a/Feature Tests/B/Data Import/B.3.16.200 - Create & Modify Records.feature +++ /dev/null @@ -1,84 +0,0 @@ -Feature: User Interface: The system shall allow data to be uploaded with the csv template to create and modify records. - -Scenario: B.3.16.200.100 Upload csv with new/modified records -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "No records exist yet" - -When I click on the link labeled "Data Import Tool" -Then I should see "Download your Data Import Template (with records in rows)" - -#FUNCTIONAL REQUIREMENT -##ACTION - Cancel import -#B.3.16.100 CROSSFUNCTIONAL -When I click on the link labeled "Download your Data Import Template (with records in rows)" -Then I should receive a download to a csv file labeled "B316200100_ImportTemplate_ yyyy_mm_dd" - -Given I add a record to the csv file labeled "B316200100_ImportTemplate" -When I click on the button labeled "Choose File" -And I upload the file labeled "B316200100_ImportTemplate_ImportRecord" -Then I should see "Your document was uploaded successfully and is ready for review" -And I click on the link labeled "Cancel" - -#VERIFY_RSD: no records imported -When I click on the link labeled "Record Status Dashboard" -Then I should see "No records exist yet" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should NOT see "Create record (import) 1" in the logging table - -#FUNCTIONAL REQUIREMENT -##ACTION - Import (with records in rows) -Given I click on the link labeled "Data Import Tool" -When I click on the button labeled "Choose File" -And I upload the file labeled "B316200100_ImportTemplate_ImportRecord" -Then I should see "Your document was uploaded successfully and is ready for review" - -When I click on the button labeled "Import Data" -Then I should see "Import Successful!" - -#VERIFY_RSD: 1 record -When I click on the link labeled "Record Status Dashboard" -Then I should see 1 record exists - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username |Action | -| test_admin |Create record (import) 1 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Import (with records in columns) -When I click on the link labeled "Data Import Tool" -And I click on the link labeled "Download your Data Import Template (with records in columns)" -Then I should receive a download to a csv file labeled "B316200100_ImportTemplate_ yyyy_mm_dd " - -Given I add 2 records to the csv file labeled "B316200100_ImportTemplate_ImportRecord_Column" -And I click on the dropdown option labeled "Columns" on the field labeled "Record format:" -And I click on the button labeled "Choose File" -And I upload the file labeled "B316200100_ImportTemplate_ImportRecord_Column" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and is ready for review" -And I click on the button labeled "Import Data" -Then I should see "Import Successful!" - -#VERIFY_RSD: 2 records -When I click on the link labeled "Record Status Dashboard" -Then I should see 2 records exist - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username |Action | -| test_admin |Create record (import) 2 | diff --git a/Feature Tests/B/Data Import/B.3.16.400 - Field Validation.feature b/Feature Tests/B/Data Import/B.3.16.400 - Field Validation.feature deleted file mode 100644 index 47075e99..00000000 --- a/Feature Tests/B/Data Import/B.3.16.400 - Field Validation.feature +++ /dev/null @@ -1,84 +0,0 @@ -Feature: User Interface: The system shall import only valid formats for text fields with validation. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.400.100 Import valid formats for text fields - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#VERIFY_RSD: no records exist -When I click on the link labeled "Record Status Dashboard"  -Then I should see "No records exist yet" - -#FUNCTIONAL_REQUIREMENT -##ACTION -Given I click on the link labeled "Data Import Tool"  -When I click on the button labeled "Choose File"  -And I upload the file labeled "B.3.16.400_DataImport_Rows.csv"  -And I click on the button labeled "Upload File"  -Then I should see "Your document was uploaded successfully and is ready for review"  -And I click on the button labeled "Import Data"  -Then I should see "Import Successful!"  - -#VERIFY_RSD: 3 records -When I click on the link labeled "Record Status Dashboard"  -Then I should see record "100" in the table -And I should see record "200" in the table -And I should see record "300" in the table - -#VERIFY_LOG  -When I click on the link labeled "Logging"  -Then I should see a table header and including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Create record (import) 100| record_id = '100' | -| test_admin| Create record (import) 200| record_id = '200' | -| test_admin| Create record (import) 300| record_id = '300' | - - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I click on the link labeled "Data Import Tool"  -And I select the dropdown option labeled "Yes, blank values in the file will overwrite existing" in the dropdown field labeled "Allow blank values to overwrite existing saved values?" -And I click the button labeled "Yes, I understand" in the dialogue box -And I click the button labeled "Choose file" -And I upload the file labeled "B.3.16.400_DataImport_rows Bad.csv"  -And I click the button labeled "Upload File" -Then I should see "Errors were detected in the import file that prevented it from being uploaded" -And I should see a table header and rows containing the following values in the report data table: -| Record | Field Name | Value | -| 300 | email | ringo@noreply| -| 300 | bdate | 0007-40-07| -| 300 | multiple_radio_auto | 99 | - - - -#FUNCTIONAL_REQUIREMENT -##ACTION: Corrected format - -When I click the button labeled "Choose file" -And I upload the file labeled "B.3.16.400_DataImport_rows Corrected.csv"  -And I click the button labeled "Upload File" -Then I should see a table header and rows containing the following values in the report data table: -| record_id | email | bdate | multiple_radio_auto | -| 300 | ringo@noreply.edu|1940-07-07| 2 | - -When I click the button labeled "Import Data" -Then I should "Import Successful! 3 records were created or modified during the import." - -##VERIFY_LOG - When I click on the link labeled "Logging"  -Then I should see a table header and including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Create record (import) 300 | email = 'ringo@noreply.edu' | -| test_admin| Create record (import) 300 |bdate = '1940-07-07' | -| test_admin| Create record (import) 300 |multiple_radio_auto = '2' | - diff --git a/Feature Tests/B/Data Import/B.3.16.500 - Choices for Radios, Dropdowns, Checkboxes.feature b/Feature Tests/B/Data Import/B.3.16.500 - Choices for Radios, Dropdowns, Checkboxes.feature deleted file mode 100644 index 591f69dd..00000000 --- a/Feature Tests/B/Data Import/B.3.16.500 - Choices for Radios, Dropdowns, Checkboxes.feature +++ /dev/null @@ -1,63 +0,0 @@ -Feature: User Interface: The system shall import only valid choice codes for radio buttons, dropdowns, and checkboxes. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.500.100 Import valid choice codes fields - -#SETUP  -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION  -When I click on the button labeled "Move project to production"   -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box  -And I click on the button labeled "YES, Move to Production Status" in the dialog box  -Then I see " Project status:  Production"  - -When I click on the link labeled "Data Import Tool"  -And I click on the button labeled "Choose File"  -And I upload the file labeled "B.3.16.500_DataImport_Rows.csv"  -Then I should see "Your document was uploaded successfully and is ready for review"  - -When I click on the button labeled "Import Data"  -Then I should see "Import Successful!" - -#FUNCTIONAL_REQUIREMENT -##ACTION: incorrect format -When I click the button labeled "Choose file"  -And I upload the csv file labeled "B.3.16.500_DataImport_rows Bad.csv"  -And I click the button labeled " Upload File"  -Then I should see " Errors were detected in the import file that prevented it from being loaded"  - -And I should see a table header and rows including the following values in the error display table: -| Record | Field Name | Value | -| 300 | multiple_dropdown_auto | 99 | -| 300 | multiple_dropdown_manual | 99 | -| 300 | multiple_radio_auto | 99 | -| 300 | radio_button_manual | 222 | -| 300 | checkbox__1 | 99 | - - -#FUNCTIONAL_REQUIREMENT -##ACTION: corrected format -When I click the button labeled "Choose file" -And I upload the csv file labeled "B.3.16.500_DataImport_rows Corrected.csv"  -And I click the button labeled "Upload File" -Then I should see a table header and rows containing the following values in the Display Data table: -| Record |multiple_dropdown_auto |multiple_dropdown_manual | multiple_radio_auto |radio_button_manual | checkbox__1 | -| 300 | 3 | 5 | 2 | 101 | 0 | - -When I click the button labeled "Import Data" -Then I should see "Import Successful! 3 records were created or modified during the import." - -#VERIFY_LOG  -When I click on the link labeled "Logging"  -Then I should see table rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Update record (import) 300| multiple_dropdown_auto = '3' | -| test_admin| Update record (import) 300| multiple_dropdown_manual = '5' | -| test_admin| Update record (import) 300| multiple_radio_auto = '101' | -| test_admin| Update record (import) 300| radio_button_manual = '101' | -| test_admin| Update record (import) 300| checkbox(1) = unchecked | - diff --git a/Feature Tests/B/Data Import/B.3.16.600 - Survey Data Import.feature b/Feature Tests/B/Data Import/B.3.16.600 - Survey Data Import.feature deleted file mode 100644 index 54cf2dfa..00000000 --- a/Feature Tests/B/Data Import/B.3.16.600 - Survey Data Import.feature +++ /dev/null @@ -1,34 +0,0 @@ -Feature: User Interface: The system shall ignore survey identifier and timestamp fields on all data import spreadsheets and allow all other data to be imported. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.600.100 Import ignores survey identifier and timestamp fields - -#SETUP   -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "B.3.16.600Project.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION  -When I click on the button labeled "Move project to production"   -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box  -And I click on the button labeled "YES, Move to Production Status" in the dialog box  -Then I should see "Project status:  Production"  - -When I click on the link labeled "Data Import Tool"  -And I click on the button labeled "Choose File"  -And I upload the csv file labeled "B.3.16.600_DataImport.csv"  -And I click on the button labeled "Upload File"  -And I click on the button labeled "Import Data"  -Then I should see "Import Successful!" - -When I click the link labeled " Data Exports, Reports and Stats"  -And I click the button labeled " View Report"  -##VERIFY_DE  -Then I should see a table header and rows including the following values in the report data table: -|record_id| Survey Identifier | Survey Timestamp |ptname | -| 4 | | | My Name| -| 5 | | | Your Name| -| 6 | | | That Name| - -#Manual: new records were imported and survey timestamp fields and identifier fields are ignored diff --git a/Feature Tests/B/Data Import/B.3.16.700 - Longitudinal Data Import.feature b/Feature Tests/B/Data Import/B.3.16.700 - Longitudinal Data Import.feature deleted file mode 100644 index 3b2350e5..00000000 --- a/Feature Tests/B/Data Import/B.3.16.700 - Longitudinal Data Import.feature +++ /dev/null @@ -1,36 +0,0 @@ -Feature: User Interface: The system shall require the event name in the csv file when importing data to a longitudinal study. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.700.100 Import requires the event name - -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.700.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION -When I click on the link labeled "Data Import Tool" -And I click on the tab labeled "CVS import" -Then I should see the button labeled "Choose File" - -When I click on the button labeled "Choose File" -And I upload the csv file labeled "B316700100_INACCURATE" -And I click on the button labeled "Upload File" -Then I should see "ERROR:" -And I click on the link labeled "RETURN TO PREVIOUS PAGE" - -When I click on the button labeled "Choose File" -And I upload the csv file labeled "B3.16700100_ACCURATE" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and is ready for review"  - -When I click on the button labeled "Import Data"  -Then I should see "Import Successful!" diff --git a/Feature Tests/B/Data Import/B.3.16.800 - Repeat Instrument Import.feature b/Feature Tests/B/Data Import/B.3.16.800 - Repeat Instrument Import.feature deleted file mode 100644 index cb98fab0..00000000 --- a/Feature Tests/B/Data Import/B.3.16.800 - Repeat Instrument Import.feature +++ /dev/null @@ -1,72 +0,0 @@ -Feature: User Interface: The system shall require the repeating instrument and instance number in the csv file when importing data to a repeating event project. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.800.100 Import requires the repeating instrument and instance number -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.800.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 - -#SETUP_PROJECTSETUP -When I click on the link labeled "Project Setup" -And I click on the button labeled "Modify" for the field labeled " Repeating instruments and events" -And I select "not repeating" on the dropdown field labeled "Event 1 (Arm 1: Arm 1)" in the dialog box -And I select "not repeating" on the dropdown field labeled "Event 2 (Arm 1: Arm 1)" in the dialog box -And I click on the button labeled "Save" -Then I should see "Successfully saved!" - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Delete ALL data in the project" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -And I click on the button labeled "Ok" in the pop-up box -Then I should see "Project Status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Error during import -When I click on the link labeled "Data Import Tool" -And I click on the tab labeled "CVS import" -Then I should see the button labeled "Choose File" - -When I click on the button labeled "Choose File" -And I select the file labeled " B316800100_W_REPEATS" -And I click on the button labeled "Upload File" -##VERIFY -Then I should see "ERROR:" -And I click on the link labeled "RETURN TO PREVIOUS PAGE" - -#SETUP_PROJECTSETUP -When I click on the link labeled "Project Setup" -And I click on the button labeled "Enable" for the field labeled "Repeating instruments and events" -And I select "Repeat instruments (repeat independently of each other" on the dropdown field for event "Event 1 (Arm 1: Arm 1)" -And I select the instrument labeled "Text Validation" for event "Event 1 (Arm 1: Arm 1)" -And I select the instrument labeled "Data Types" for event "Event 1 (Arm 1: Arm 1)" -And I click on the button labeled "Save" -Then I should see "Successfully saved!" - -#FUNCTIONAL REQUIREMENT -##ACTION: import without repeat instrument -When I click on the link labeled "Data Import Tool" -And I click on the tab labeled "CVS import" -Then I should see the button labeled "Choose File" - -When I click on the button labeled "Choose File" -And I select the file labeled "B316800100 _WOUT_REPEATS" -And I click on the button labeled "Upload File" -##VERIFY -Then I should see "ERROR:" - -#FUNCTIONAL REQUIREMENT -##ACTION: import with repeat instrument -When I click on the button labeled "Choose File" -And I select the file labeled "B316800100 _W_REPEATS" -And I click on the button labeled "Upload File" - - -##VERIFY -Then I should see "Your document was uploaded successfully" - -When I click on the button labeled "Import Data" -Then I should see "Import Successful!" - diff --git a/Feature Tests/B/Data Import/B.3.16.900 - Import Restrictions.feature b/Feature Tests/B/Data Import/B.3.16.900 - Import Restrictions.feature deleted file mode 100644 index 318c7047..00000000 --- a/Feature Tests/B/Data Import/B.3.16.900 - Import Restrictions.feature +++ /dev/null @@ -1,53 +0,0 @@ -Feature: User Interface: The system shall not allow data to be changed on locked data entry forms. - -As a REDCap end user -I want to see that Data import is functioning as expected - -Scenario: B.3.16.900.100 Limit import to unlocked record forms - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.16.900.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -##ACTION: Import data -When I click on the link labeled "Data Import Tool" -And I click on the button labeled "Choose File" -And I select the file labeled "B.3.16.900.100_ImportChangedUnlocked" -And I click on the button labeled "Upload File" -Then I should see a table header and rows containing the following values in in the Data Display Table: -|record_id | name | -| 1 | Name| - -When I click the button labeled "Import Data" -Then I should see "Import Successful!" - -#FUNCTIONAL_REQUIREMENT -##ACTION: lock record 1 -When I click on the link labeled "Record Status Dashboard" -And I click the link labeled "1" -And I select the dropdown option labeled "Lock entire record" for the dropdown field labeled "Choose action for record" -And I click on the button labeled "Lock entire record" on the dialog box -Then I should see "Record "1" is now LOCKED" - -#VERIFY_DI -When I click on the link labeled "Data Import Tool" -And I click on the button labeled "Choose File" -And I select the file labeled "B.3.16.900.100_ImportChangedLocked" -And I click on the button labeled "Upload File" -Then I should see a table header and rows containing the following values in in the Error Display Table: -|Record | Error message | -| 1 | This record has been locked at the record level. No value within this record can be modified.| - -#VERIFY_LOG -When I click the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -#M: should not see anything was imported after record was locked -| Username |Action | List of Data Changes | -| test_admin |Lock/Unlock Record 1| Action Lock entire record | diff --git a/Feature Tests/B/Data Import_16/B.3.16.100 - Import Templates - Columns & Rows.feature b/Feature Tests/B/Data Import_16/B.3.16.100 - Import Templates - Columns & Rows.feature new file mode 100644 index 00000000..4443995e --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.100 - Import Templates - Columns & Rows.feature @@ -0,0 +1,57 @@ +Feature: User Interface: The system shall support the ability to download two versions of a data import template formatted as a CSV file, one to accommodate records in rows and one to accommodate records in columns. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.100.100 data import template rows + #ATS requires two scenarios for assessing the row and column file + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.3.16.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Data Import Template (with records in rows) + When I click on the link labeled "Data Import Tool" + Then I should see "Download your Data Import Template" + + When I click on the link labeled "Download your Data Import Template (with records in rows)" + Then I should receive a download to a csv file labeled "B316100100_ImportTemplate_yyyy_mm_dd" + + ##VERIFY + When I open the csv file labeled "B316100100_ImportTemplate_[timestamp]" + Then I should see "record_id" in the column labeled "A" + And I should see "name" in the column labeled "B" + #M: close csv file + #END + + Scenario: B.3.16.100.200 data import template column + #ATS requires two scenarios for assessing the row and column file + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.3.16.100.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Data Import Template (with records in columns) + Given I click on link labeled "Data Import Tool" + Then I should see "download the template with records in column format" + + When I click on the link labeled "column format" + Then I should receive a download to a csv file labeled "B316100200_ ImportTemplate_ yyyy_mm_dd" + #M: close csv file + + ##VERIFY + When I open the csv file labeled "B316100200_ImportTemplate_ yyyy_mm_dd " + Then I should see "record_id" in the row labeled "2" + And I should see "name" in the row labeled "3" +#END \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.1000 - Access Restrictions.feature b/Feature Tests/B/Data Import_16/B.3.16.1000 - Access Restrictions.feature new file mode 100644 index 00000000..0e8d12bb --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.1000 - Access Restrictions.feature @@ -0,0 +1,72 @@ +Feature: User Interface: The system shall not allow a new record to be imported if user does not have Create Records access. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.1000.100 Data import of new record limited by user rights + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.1000.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User3" into the field with the placeholder text of "Add with custom rights" + And I click on the button labeled "Add with custom rights" + And I click on the checkbox for the field labeled "Data Import Tool" in the dialog box + And I deselect the checkbox for the field labeled "Create Records" in the dialog box + And I click on the button labeled "Add user" in the dialog box + Then I should see "Test_User3 was successfully added" + And I log out + + #FUNCTIONAL_REQUIREMENT + Given I login to REDCap with the user "Test_User3" + When I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I select the file labeled "B.3.16.1000_New Record.csv" + And I click on the button labeled "Upload File" + Then I should see "Error" + And I should see "Your user privileges do NOT allow you to create new records." + And I log out + + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I select the file labeled "B.3.16.1000_New Record.csv" + And I click on the button labeled "Upload File" + And I click on the button labeled "Upload File" + Then I should see a table header and rows containing the following values in in the Data Display Table: + | record_id | email | + | 5 (new record) | email@test.edu | + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + ##VERIFY_RSD: + When I click the link labeled "Record Status Dashboard" + Then I should see record "5" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Email | + | 5 | email@test.edu | + + #VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Create record (import) | Create record (import) | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.1200 - Overwrite Existing Data.feature b/Feature Tests/B/Data Import_16/B.3.16.1200 - Overwrite Existing Data.feature new file mode 100644 index 00000000..dfb6e413 --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.1200 - Overwrite Existing Data.feature @@ -0,0 +1,80 @@ +Feature: User Interface: The system shall provide the option to allow blank values to overwrite existing saved values. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.1200.100 Data import overwrite existing values with blank + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.1200.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 + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + And I click on the button labeled "Ok" in the pop-up box + Then I should see "Project Status: Production" + + ##Verify Data present + Given I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + When I click on the button labeled "View Report" + + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Event Name | Repeat Instrument | Repeat Instance | Data Access Group | Survey Identifier | Name | Email | + | 1 | Event 1 (Arm 1: Arm 1) | | | | | | email@test.edu | + + #FUNCTIONAL REQUIREMENT + ##ACTION: Import new data, ignoring blank values + When I click on the link labeled "Data Import Tool" + And I click on the tab labeled "CVS import" + Then I should see the button labeled "Choose File" + + When I click on the button labeled "Choose File" + And I select the file labeled "B3161200100_ACCURATE" + And I click on the button labeled "Upload File" + + ##VERIFY + Then I should see "Your document was uploaded successfully" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + ##Verify Data present + Given I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + When I click on the button labeled "View Report" + + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Event Name | Repeat Instrument | Repeat Instance | Data Access Group | Survey Identifier | Name | Email | + | 1 | Event 1 (Arm 1: Arm 1) | | | | | | email@test.edu | + + #FUNCTIONAL REQUIREMENT + ##ACTION: Import new data, overwrite blank values + When I click on the link labeled "Data Import Tool" + And I click on the tab labeled "CVS import" + Then I should see the button labeled "Choose File" + + When I click on the button labeled "Choose File" + And I select "Yes, blank values in the file will overwrite existing values" on the dropdown field labeled "Allow blank values to overwrite existing saved values?" + Given I click on the button labeled "Yes, I understand" in the dialog box + And I select the file labeled "B3161200100_ACCURATE" + And I click on the button labeled "Upload File" + + ##VERIFY + Then I should see "Your document was uploaded successfully" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + ##Verify Data was overwritten with a blank + Given I see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + When I click on the button labeled "View Report" + + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Event Name | Repeat Instrument | Repeat Instance | Data Access Group | Survey Identifier | Name | Email | + | 1 | Event 1 (Arm 1: Arm 1) | | | | | | | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.1300 - Data Import - DAGs.feature b/Feature Tests/B/Data Import_16/B.3.16.1300 - Data Import - DAGs.feature new file mode 100644 index 00000000..2f5c939e --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.1300 - Data Import - DAGs.feature @@ -0,0 +1,73 @@ +Feature: User Interface: The system shall provide the ability to assign data instruments to a data access group with the Data Import Tool. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.1300.100 Data import assigns DAG + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.1300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + When I click on the link labeled "DAGs" + And I enter "Test_Group1" into the field with the placeholder text "Enter new group name" + And I click on the button labeled "Add Group" + Then I should see "Data Access Group "Test_Group1" has been created!" + + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Add new user" + And I click on the button labeled "Add with custom rights" + And I click on the checkbox labeled "Data Import Tool" + And I select the dropdown option labeled "Test_Group1" on the dropdown field with the placeholder text "[No Assignment]" + And I click on the button labeled "Add user" + Then I should see a table header and rows containing the following values in the table: + | Username or users assigned to a role | Data Access Group | + | test_user 1 | Test_Group1 | + + #SETUP_PRODUCTION + Given I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + Given I click on the link labeled "Data Import Tool" + When I click on the button labeled "Choose File" + And I upload the file labeled "B.3.16.1300_DataImport_Rows.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and is ready for review" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" + And I logout + + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I upload the file labeled "B.3.16.1300_DataImport_Dag.csv" + And I click on the button labeled "Upload File" + Then I should see "ERROR: Illegal use of 'redcap_data_access_group' field!" + And I log out + + Given I login to REDCap with the user "Test_Admin" + And I click the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I upload the file labeled "B.3.16.1300_DataImport_Dag.csv" + And I click on the button labeled "Upload File" + Then I should see a header and rows containing the following values in the ERROR DISPLAY table: + | record_id | redcap_data_access_group | name | + | 100 | test_group1 | Rob | + | 200 | test_group1 | Brenda | + | 300 | test_group1 | Paul | + And I click the button labeled "Import Data" + Then I should see "Import Successful!" + + #VERIFY_DE + When I click the link labeled "Data Exports, Reports and Stats" + And I click the button labeled "View Report" + Then I should see a table row including the following values in in the logging table: + | record_id | redcap_data_access_group | name | + | 100 | test_group1 | Rob | + | 200 | test_group1 | Brenda | + | 300 | test_group1 | Paul | +#END \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.200 - Create & Modify Records.feature b/Feature Tests/B/Data Import_16/B.3.16.200 - Create & Modify Records.feature new file mode 100644 index 00000000..9e7592f5 --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.200 - Create & Modify Records.feature @@ -0,0 +1,86 @@ +Feature: User Interface: The system shall allow data to be uploaded with the csv template to create and modify records. + + Scenario: B.3.16.200.100 Upload csv with new/modified records + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "No records exist yet" + + When I click on the link labeled "Data Import Tool" + Then I should see "Download your Data Import Template (with records in rows)" + + #FUNCTIONAL REQUIREMENT + ##ACTION - Cancel import + #B.3.16.100 CROSSFUNCTIONAL + When I click on the link labeled "Download your Data Import Template (with records in rows)" + Then I should receive a download to a csv file labeled "B316200100_ImportTemplate_ yyyy_mm_dd" + + Given I add a record to the csv file labeled "B316200100_ImportTemplate" + When I click on the button labeled "Choose File" + And I upload the file labeled "B316200100_ImportTemplate_ImportRecord" + Then I should see "Your document was uploaded successfully and is ready for review" + And I click on the link labeled "Cancel" + + #VERIFY_RSD: no records imported + When I click on the link labeled "Record Status Dashboard" + Then I should see "No records exist yet" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should NOT see "Create record (import) 1" in the logging table + + #FUNCTIONAL REQUIREMENT + ##ACTION - Import (with records in rows) + Given I click on the link labeled "Data Import Tool" + When I click on the button labeled "Choose File" + And I upload the file labeled "B316200100_ImportTemplate_ImportRecord" + Then I should see "Your document was uploaded successfully and is ready for review" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + #VERIFY_RSD: 1 record + When I click on the link labeled "Record Status Dashboard" + Then I should see 1 record exists + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | + | test_admin | Create record (import) 1 | + + #FUNCTIONAL REQUIREMENT + ##ACTION - Import (with records in columns) + When I click on the link labeled "Data Import Tool" + And I click on the link labeled "Download your Data Import Template (with records in columns)" + Then I should receive a download to a csv file labeled "B316200100_ImportTemplate_ yyyy_mm_dd " + + Given I add 2 records to the csv file labeled "B316200100_ImportTemplate_ImportRecord_Column" + And I click on the dropdown option labeled "Columns" on the field labeled "Record format:" + And I click on the button labeled "Choose File" + And I upload the file labeled "B316200100_ImportTemplate_ImportRecord_Column" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and is ready for review" + And I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + #VERIFY_RSD: 2 records + When I click on the link labeled "Record Status Dashboard" + Then I should see 2 records exist + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | + | test_admin | Create record (import) 2 | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import/B.3.16.300 - REDUNDANT.feature b/Feature Tests/B/Data Import_16/B.3.16.300 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Data Import/B.3.16.300 - REDUNDANT.feature rename to Feature Tests/B/Data Import_16/B.3.16.300 - REDUNDANT.feature diff --git a/Feature Tests/B/Data Import_16/B.3.16.400 - Field Validation.feature b/Feature Tests/B/Data Import_16/B.3.16.400 - Field Validation.feature new file mode 100644 index 00000000..a011cdaf --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.400 - Field Validation.feature @@ -0,0 +1,86 @@ +Feature: User Interface: The system shall import only valid formats for text fields with validation. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.400.100 Import valid formats for text fields + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #VERIFY_RSD: no records exist + When I click on the link labeled "Record Status Dashboard" + Then I should see "No records exist yet" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + Given I click on the link labeled "Data Import Tool" + When I click on the button labeled "Choose File" + And I upload the file labeled "B.3.16.400_DataImport_Rows.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and is ready for review" + And I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + #VERIFY_RSD: 3 records + When I click on the link labeled "Record Status Dashboard" + Then I should see record "100" in the table + And I should see record "200" in the table + And I should see record "300" in the table + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Create record (import) | record_id = '100' | + | test_admin | Create record (import) | record_id = '200' | + | test_admin | Create record (import) | record_id = '300' | + + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I click on the link labeled "Data Import Tool" + And I select the dropdown option labeled "Yes, blank values in the file will overwrite existing" in the dropdown field labeled "Allow blank values to overwrite existing saved values?" + And I click the button labeled "Yes, I understand" in the dialogue box + And I click the button labeled "Choose file" + And I upload the file labeled "B.3.16.400_DataImport_rows Bad.csv" + And I click the button labeled "Upload File" + Then I should see "Errors were detected in the import file that prevented it from being uploaded" + And I should see a table header and rows containing the following values in the report data table: + | Record | Field Name | Value | + | 300 | email | ringo@noreply | + | 300 | bdate | 0007-40-07 | + | 300 | multiple_radio_auto | 99 | + + + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Corrected format + + When I click the button labeled "Choose file" + And I upload the file labeled "B.3.16.400_DataImport_rows Corrected.csv" + And I click the button labeled "Upload File" + Then I should see a table header and rows containing the following values in the report data table: + | record_id | email | bdate | multiple_radio_auto | + | 300 | ringo@noreply.edu | 1940-07-07 | 2 | + + When I click the button labeled "Import Data" + Then I should "Import Successful! 3 records were created or modified during the import." + + ##VERIFY_LOG + #verify import log + When I click on the link labeled "Logging" + Then I should see a table header and including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | 300 | email = 'ringo@noreply.edu' | + | test_admin | 300 | bdate = '1940-07-07' | + | test_admin | 300 | multiple_radio_auto = '2' | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.500 - Choices for Radios, Dropdowns, Checkboxes.feature b/Feature Tests/B/Data Import_16/B.3.16.500 - Choices for Radios, Dropdowns, Checkboxes.feature new file mode 100644 index 00000000..3879b474 --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.500 - Choices for Radios, Dropdowns, Checkboxes.feature @@ -0,0 +1,64 @@ +Feature: User Interface: The system shall import only valid choice codes for radio buttons, dropdowns, and checkboxes. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.500.100 Import valid choice codes fields + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see " Project status:  Production" + + When I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I upload the file labeled "B.3.16.500_DataImport_Rows.csv" + Then I should see "Your document was uploaded successfully and is ready for review" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: incorrect format + When I click the button labeled "Choose file" + And I upload the csv file labeled "B.3.16.500_DataImport_rows Bad.csv" + And I click the button labeled " Upload File" + Then I should see " Errors were detected in the import file that prevented it from being loaded" + + And I should see a table header and rows including the following values in the error display table: + | Record | Field Name | Value | + | 300 | multiple_dropdown_auto | 99 | + | 300 | multiple_dropdown_manual | 99 | + | 300 | multiple_radio_auto | 99 | + | 300 | radio_button_manual | 222 | + | 300 | checkbox__1 | 99 | + + + #FUNCTIONAL_REQUIREMENT + ##ACTION: corrected format + When I click the button labeled "Choose file" + And I upload the csv file labeled "B.3.16.500_DataImport_rows Corrected.csv" + And I click the button labeled "Upload File" + Then I should see a table header and rows containing the following values in the Display Data table: + | Record | multiple_dropdown_auto | multiple_dropdown_manual | multiple_radio_auto | radio_button_manual | checkbox__1 | + | 300 | 3 | 5 | 2 | 101 | 0 | + + When I click the button labeled "Import Data" + Then I should see "Import Successful! 3 records were created or modified during the import." + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Update record (import) 300 | multiple_dropdown_auto = '3' | + | test_admin | Update record (import) 300 | multiple_dropdown_manual = '5' | + | test_admin | Update record (import) 300 | multiple_radio_auto = '2' | + | test_admin | Update record (import) 300 | radio_button_manual = '101' | + | test_admin | Update record (import) 300 | checkbox(1) = unchecked | +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.600 - Survey Data Import.feature b/Feature Tests/B/Data Import_16/B.3.16.600 - Survey Data Import.feature new file mode 100644 index 00000000..43c4d070 --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.600 - Survey Data Import.feature @@ -0,0 +1,36 @@ +Feature: User Interface: The system shall ignore survey identifier and timestamp fields on all data import spreadsheets and allow all other data to be imported. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.600.100 Import ignores survey identifier and timestamp fields + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "B.3.16.600Project.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status:  Production" + + When I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I upload the csv file labeled "B.3.16.600_DataImport.csv" + And I click on the button labeled "Upload File" + And I click on the button labeled "Import Data" + Then I should see "Import Successful!" + + When I click the link labeled " Data Exports, Reports and Stats" + And I click the button labeled " View Report" + ##VERIFY_DE + Then I should see a table header and rows including the following values in the report data table: + | record_id | Survey Identifier | Survey Timestamp | ptname | + | 4 | | | My Name | + | 5 | | | Your Name | + | 6 | | | That Name | + +#Manual: new records were imported and survey timestamp fields and identifier fields are ignored +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.700 - Longitudinal Data Import.feature b/Feature Tests/B/Data Import_16/B.3.16.700 - Longitudinal Data Import.feature new file mode 100644 index 00000000..3f57eac4 --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.700 - Longitudinal Data Import.feature @@ -0,0 +1,38 @@ +Feature: User Interface: The system shall require the event name in the csv file when importing data to a longitudinal study. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.700.100 Import requires the event name + + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.700.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION + When I click on the link labeled "Data Import Tool" + And I click on the tab labeled "CVS import" + Then I should see the button labeled "Choose File" + + When I click on the button labeled "Choose File" + And I upload the csv file labeled "B316700100_INACCURATE" + And I click on the button labeled "Upload File" + Then I should see "ERROR:" + And I click on the link labeled "RETURN TO PREVIOUS PAGE" + + When I click on the button labeled "Choose File" + And I upload the csv file labeled "B3.16700100_ACCURATE" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and is ready for review" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.800 - Repeat Instrument Import.feature b/Feature Tests/B/Data Import_16/B.3.16.800 - Repeat Instrument Import.feature new file mode 100644 index 00000000..f627a17a --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.800 - Repeat Instrument Import.feature @@ -0,0 +1,73 @@ +Feature: User Interface: The system shall require the repeating instrument and instance number in the csv file when importing data to a repeating event project. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.800.100 Import requires the repeating instrument and instance number + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.800.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 + + #SETUP_PROJECTSETUP + When I click on the link labeled "Project Setup" + And I click on the button labeled "Modify" for the field labeled " Repeating instruments and events" + And I select "not repeating" on the dropdown field labeled "Event 1 (Arm 1: Arm 1)" in the dialog box + And I select "not repeating" on the dropdown field labeled "Event 2 (Arm 1: Arm 1)" in the dialog box + And I click on the button labeled "Save" + Then I should see "Successfully saved!" + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Delete ALL data in the project" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + And I click on the button labeled "Ok" in the pop-up box + Then I should see "Project Status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Error during import + When I click on the link labeled "Data Import Tool" + And I click on the tab labeled "CVS import" + Then I should see the button labeled "Choose File" + + When I click on the button labeled "Choose File" + And I select the file labeled " B316800100_W_REPEATS" + And I click on the button labeled "Upload File" + ##VERIFY + Then I should see "ERROR:" + And I click on the link labeled "RETURN TO PREVIOUS PAGE" + + #SETUP_PROJECTSETUP + When I click on the link labeled "Project Setup" + And I click on the button labeled "Enable" for the field labeled "Repeating instruments and events" + And I select "Repeat instruments (repeat independently of each other" on the dropdown field for event "Event 1 (Arm 1: Arm 1)" + And I select the instrument labeled "Text Validation" for event "Event 1 (Arm 1: Arm 1)" + And I select the instrument labeled "Data Types" for event "Event 1 (Arm 1: Arm 1)" + And I click on the button labeled "Save" + Then I should see "Successfully saved!" + + #FUNCTIONAL REQUIREMENT + ##ACTION: import without repeat instrument + When I click on the link labeled "Data Import Tool" + And I click on the tab labeled "CVS import" + Then I should see the button labeled "Choose File" + + When I click on the button labeled "Choose File" + And I select the file labeled "B316800100 _WOUT_REPEATS" + And I click on the button labeled "Upload File" + ##VERIFY + Then I should see "ERROR:" + + #FUNCTIONAL REQUIREMENT + ##ACTION: import with repeat instrument + When I click on the button labeled "Choose File" + And I select the file labeled "B316800100 _W_REPEATS" + And I click on the button labeled "Upload File" + + + ##VERIFY + Then I should see "Your document was uploaded successfully" + + When I click on the button labeled "Import Data" + Then I should see "Import Successful!" +#End \ No newline at end of file diff --git a/Feature Tests/B/Data Import_16/B.3.16.900 - Import Restrictions.feature b/Feature Tests/B/Data Import_16/B.3.16.900 - Import Restrictions.feature new file mode 100644 index 00000000..68741585 --- /dev/null +++ b/Feature Tests/B/Data Import_16/B.3.16.900 - Import Restrictions.feature @@ -0,0 +1,55 @@ +Feature: User Interface: The system shall not allow data to be changed on locked data entry forms. + + As a REDCap end user + I want to see that Data import is functioning as expected + + Scenario: B.3.16.900.100 Limit import to unlocked record forms + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.16.900.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.16.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + ##ACTION: Import data + When I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I select the file labeled "B.3.16.900.100_ImportChangedUnlocked" + And I click on the button labeled "Upload File" + Then I should see a table header and rows containing the following values in in the Data Display Table: + | record_id | name | + | 1 | Name | + + When I click the button labeled "Import Data" + Then I should see "Import Successful!" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: lock record 1 + When I click on the link labeled "Record Status Dashboard" + And I click the link labeled "1" + And I select the dropdown option labeled "Lock entire record" for the dropdown field labeled "Choose action for record" + And I click on the button labeled "Lock entire record" on the dialog box + Then I should see "Record "1" is now LOCKED" + + #VERIFY_DI + When I click on the link labeled "Data Import Tool" + And I click on the button labeled "Choose File" + And I select the file labeled "B.3.16.900.100_ImportChangedLocked" + And I click on the button labeled "Upload File" + Then I should see a table header and rows containing the following values in in the Error Display Table: + | Record | Error message | + | 1 | This record has been locked at the record level. No value within this record can be modified. | + + #VERIFY_LOG + When I click the link labeled "Logging" + Then I should see a table header and rows containing the following values in the logging table: + #M: should not see anything was imported after record was locked + | Username | Action | List of Data Changes | + | test_admin | Lock/Unlock Record 1 | Action Lock entire record | +#End \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.100 - Create Record.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.100 - Create Record.feature deleted file mode 100644 index dc18bb96..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.100 - Create Record.feature +++ /dev/null @@ -1,78 +0,0 @@ -Feature: Creating a Record and Entering Data: The system shall support the ability to create a record - -As a REDCap end user -I want to see that record creation is functioning as expected - -Scenario: B.3.14.100.100 Create new record -#SETUP_PRODUCTION -Given I login to REDCap with the user "Test_Admin" -And I create a new project named " B.3.14.100.100 " by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -##SETUP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Add new user" -And I click on the button labeled "+ Add with custom rights" -And I uncheck the User Right named "Create Records" -And I check the User Right named "Logging" -And I click on the button labeled "Add user" -Then I should see "Test User1" - -#FUNCTIONAL REQUIREMENT -##ACTION: create record -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Text Validation" for event "Event 1" -And I click the button labeled "Save and Exit Form" -##VERIFY -Then I should see "Record ID 7 successfully added" - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | -| test_admin | Create record 7 | - -##VERIFY_RSD: -When I click the link labeled "Record Status Dashboard" -And I click the record labeled "7" -Then I should see "Record ID 7" - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| -| 7 | - -And I logout - -##ACTION: login as user without create record access - but can edit record -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.3.14.100.100" -And click on the link labeled "View / Edit Records" -##VERIFY: Cannot add record -Then I should NOT see the button labeled "Add new record for the arm selected above" - -##VERIFY Can edit existing record -When I click on the dropdown field with the placeholder text of "select record" -And I select the dropdown option labeled "1" -And I click the bubble labeled "Text Validation" for event "Event 1" -And I enter "EDIT" on the field labeled "Name" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 1 successfully edited" - -##VERIFY_LOG: Existing record updated -And I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Update record 1| name = 'EDIT' | diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1000 - Delete Form Data.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1000 - Delete Form Data.feature deleted file mode 100644 index ddb47ed3..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1000 - Delete Form Data.feature +++ /dev/null @@ -1,55 +0,0 @@ -Feature: Deleting Data: The system shall allow users to delete all data on the current form of a given record. - -As a REDCap end user -I want to see that delete record is functioning as expected - -Scenario: B.3.14.1000.100 Delete all data in a form for a record form - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.000.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SET UP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -##ACTION -When I click the link labeled "Record Status Dashboard" -And I click the bubble for the "Survey" instrument on event "Event Three" for record "1" -Then I should see "Name" in the field labeled "Name" -And I should see a button labeled "Delete data for THIS FORM only" - -#FUNCTIONAL_REQUIREMENT -When I click on the button labeled "Delete data for THIS FORM only" -And I click on the button labeled "Delete data for THIS FORM only" in the dialog box -Then I should see "Record ID 1 successfully edited." -And I should see an Incomplete (no data saved) status icon for the "Survey" instrument on event "Event Three" for record "1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported| -| test_user1 | Update record 1 | "email_survey = '' | -| test_user1 | Update record 1 | name_survey = '' | -| test_user1 | Update record 1 | survey_complete = '' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| email_survey | name_survey | survey_complete | -| 1 | | | Incomplete (0) | diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1100 - Delete Record Data.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1100 - Delete Record Data.feature deleted file mode 100644 index ca9c72f6..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1100 - Delete Record Data.feature +++ /dev/null @@ -1,59 +0,0 @@ -Feature: Deleting Data: The system shall allow users to delete all data in an event for a given record. - -As a REDCap end user -I want to see that delete all data is functioning as expected - -Scenario: B.3.14.1100.100 Delete all data in an event for a given record - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.1100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SET UP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -#FUNCTIONAL_REQUIREMENT -When I click on the link labeled "Record Status Dashboard" -And I click on record "1" -##ACTION delete this event -And I click on the "delete this event" icon on the field labeled "Delete all data on event:" for event "Event 1" -And I click on the button labeled "Delete this event" in the dialog box -#VERIFY -Then I should see the "Incomplete (no data saved)" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "1" -And I should see the "Incomplete (no data saved)" status icon for the "Data Types" longitudinal instrument on event "Event 1" for record "1" -And I should see the "Incomplete (no data saved)" status icon for the "Consent" longitudinal instrument on event "Event 1" for record "1" - -#VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported| -| test_user1 | Update record 1 | calc_test = ''| -| test_user1 | Update record 1 |consent_complete = '' | -| test_user1 | Update record 1 |data_types_complete = '' | -| test_user1 | Update record 1 |dob = '' | -| test_user1 | Update record 1 |email = '' | -| test_user1 | Update record 1 |email_consent = '' | -| test_user1 | Update record 1 |name_consent = '' | -| test_user1 | Update record 1 |text_validation_complete = '' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should NOT see a table row including the following values in in the logging table: -| record_id | redcap_event_name | name | -| 1 | Event 1 (Arm 1: Arm 1) | Name | diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1200 - Delete Record.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1200 - Delete Record.feature deleted file mode 100644 index 9e4c2e1a..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.1200 - Delete Record.feature +++ /dev/null @@ -1,53 +0,0 @@ -Feature: Deleting Data: The system shall allow users to delete a record - -As a REDCap end user -I want to see that user rights to delete data is functioning as expected - -Scenario: B.3.14.1200.100 Delete record - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.1200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SET UP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -##ACTION -When I click the link labeled "Record Status Dashboard" -And I click on the link labeled "1" -Then I should see "Record Home Page" -And I should see "Record ID 1" - -#FUNCTIONAL_REQUIREMENT -##ACTION Delete record -When I select the dropdown option labeled "Delete record (all forms)" on the dropdown field labeled "Choose action for record" -And I click on the button labeled "DELETE RECORD" in the dialog box -##VERIFY -Then I should see "Record deleted!" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_LOG -When I click the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported| -| test_user1 | Delete record 1 | record_id = '1'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should NOT see record "1" diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.200 - Field Type Data Entry.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.200 - Field Type Data Entry.feature deleted file mode 100644 index 8b504c9c..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.200 - Field Type Data Entry.feature +++ /dev/null @@ -1,72 +0,0 @@ -Feature: Creating a Record and Entering Data: The system shall support data entry for the defined core field types. - -As a REDCap end user -I want to see that data entry for field type is functioning as expected - -Scenario: B.3.14.200.100 Appropriate data entry by field type - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.3.14.200.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 7" - -#FUNCTIONAL REQUIREMENT -##ACTION: Data entry various field types -When I select the radio option labeled "Choice99" for the field labeled "radio" -And I select the dropdown option labeled "DDChoice6" on the dropdown field labeled "Multiple Choice Dropdown Manual" -And I enter "Notes box" for the field labeled "Notes box 2" -And I select the option labeled "Checkbox2" for the multiselect field labeled "Checkbox" -And I enter "TESTER" on the signature field in the pop-up box -And I click on the button labeled "Save signature" in the pop-up box -And I click on the link labeled "Upload file" for the field labeled "File Upload" -And I upload the file labeled "File_Upload.docx" -And I click on the button labeled "Upload file" in the dialog box -And I select the option "True" on the field labeled "True/False" -And I select the option "No" on the field labeled "Yes/No" -And I set the value to "65" by using the slider for the field labeled "Slider" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 7 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see table rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Update record 7 | radio = '9..9' | -| test_user1 | Update record 7 | multiple_dropdown_manual_2 = '6' -| test_user1 | Update record 7 | notesbox2 = 'Notes box'| -| test_user1 | Update record 7 | checkbox(1) = checked| -| test_user1 | Update record 7 | checkbox(2) = checked | -| test_user1 | Update record 7 | signature = '(unique signature hash)' | -| test_user1 | Update record 7 | file upload = '(unique file hash)' | -| test_user1 | Update record 7 | tf= '1' | -| test_user1 | Update record 7 | yn = '0' | -| test_user1 | Update record 7 | slider = '65' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| radio | Multiple Choice Dropdown Manual | Notes box 2 | Checkbox1 | Checkbox2 | -| 7 | Choice99 (9..9) | DDChoice6 (6) | Notes box | Checked (1) | Checked (1) | - -And I should see a table header and rows including the following values in the report data table: -| Record ID | Signature | File Upload | True/False | Yes/No| Slider | -| 7 | signature.png link | file upload link | True (1) | No (0) | 65 | diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.300 - Radio button behavior.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.300 - Radio button behavior.feature deleted file mode 100644 index e97d5286..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.300 - Radio button behavior.feature +++ /dev/null @@ -1,49 +0,0 @@ -Feature: Creating a Record and Entering Data: The system shall support the ability to reset a multiple choice-radio button selection. - -As a REDCap end user -I want to see that field reset is functioning as expected - -Scenario: B.3.14.300.100 Reset multiple choice-radio button selection - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -##ACTION -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Data Types" longitudinal instrument for event "Event 1" -Then I should see "Adding new Record ID 7." - -When I select the radio option "Choice99" for the field labeled "radio" -And I click on the button labeled "Save & Stay" -Then I should see "Record 7 successfully edited" - -When I click on the link labeled "reset" for the field labeled "radio" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 7 successfully edited." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | - -| test_user1 | Update record 7 | radio = '' | -| test_user1 | Create record 7 | radio = '9..9' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| radio | -| 7 | | diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.400 - Datetime Fields.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.400 - Datetime Fields.feature deleted file mode 100644 index 3d1f922b..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.400 - Datetime Fields.feature +++ /dev/null @@ -1,50 +0,0 @@ -Feature: Creating a Record and Entering Data: The system shall support the ability to use the following on date/time fields: (Date picker widget | Now button | Today button) - -As a REDCap end user -I want to see that date/time widget is functioning as expected - -Scenario: B.3.14.400.100 Data entry for Date/time validated fields - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Data Types" longitudinal instrument for event "Event 1" -Then I should see "Adding new Record ID 7." - -#FUNCTIONAL REQUIREMENT -##ACTION: Date/time widget icon -When I click on the date picker widget icon for the field labeled "datetime YMD HMSS" -And I select the date "08/01/2023 00:00:00" in the pop up calendar -##VERIFY -Then I should see the date "2023-08-01 00:00:00" in the field labeled "datetime YMD HMSS" - -##ACTION: Now button -When I click on the button labeled "Now" for the field labeled "time HH:MM:SS" -##VERIFY -Then I should see the exact time in the field labeled "time HH:MM:SS" - -##ACTION: Today button -When I click on the button labeled "Today" for the field labeled "date YMD" -##VERIFY -Then I should see today's date in the field labeled "date YMD" - -When I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument -Then I should see "Adding new Record ID 7." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Create record 7 | date_ymd = '2023-12-27',| -| test_admin | Create record 7 | time_hhmmss = '15:33:55',| -| test_admin | Create record 7 | datetime_ymd_hmss = '2023-08-01 00:00:00',| diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.500 - Leave without Save.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.500 - Leave without Save.feature deleted file mode 100644 index bda59c0d..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.500 - Leave without Save.feature +++ /dev/null @@ -1,65 +0,0 @@ -Feature: Saving Data: The system shall support the prompt to save when a user attempts to navigate away from a data entry page without saving: (Save changes and leave | Leave without saving changes | Stay on page) - -As a REDCap end user -I want to see that leave without saving data entry page navigation is functioning as expected - -Scenario: B.3.14.500.100 Navigate away from a data entry page options -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL_REQUIREMENT -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" -##ACTION Navigate away from the record -And I click on the link labeled "Project Setup" - -##VERIFY -Then I should see the button labeled "Save changes and leave" within the dialog box -And I should see the button labeled "Leave without saving changes" within the dialog box -And I should see the button labeled "Stay on page" within the dialog box - -##ACTION Leave without saving changes -When I click on the button labeled "Leave without saving changes" -##VERIFY -Then I should see "Main project settings" - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should NOT see table rows including the following values in the logging table: -| Username | Action | -| test_user1 | Create record 7 | - -#FUNCTIONAL_REQUIREMENT -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" -And I click on the link labeled "Project Setup" -##ACTION Save changes and leave -When I click on the button labeled "Save changes and leave" -##VERIFY -Then I should see "Main project settings" - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | -| test_user1 | Create record 7 | - -#FUNCTIONAL_REQUIREMENT -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" -And I click on the link labeled "Project Setup" -##ACTION Stay on page -When I click on the button labeled "Stay on page" -##VERIFY -Then I should see "Adding new Record ID 8." diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.600 - Save Options.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.600 - Save Options.feature deleted file mode 100644 index 41b12465..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.600 - Save Options.feature +++ /dev/null @@ -1,131 +0,0 @@ -Feature: Saving Data: The system shall support the ability to: (Save and stay | Save and exit | Cancel the data entered and leave the record without saving) - -As a REDCap end user -I want to see that saving data is functioning as expected - -Scenario: B.3.14.600.100 Save data options from data entry page - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP create record -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 7." - -#FUNCTIONAL_REQUIREMENT: -##ACTION: cancel data -Given I enter "CANCEL" in the field labeled "Name" -And I click on the button labeled "Cancel" -And I click on the button labeled "OK" in the pop-up box -##VERIFY -Then I should see "Record ID 7" data entry cancelled - not saved." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should NOT see table rows including the following values in the logging table: -| Username | Action | List of Data Changes -OR Fields Exported | -| test_user1 | Manage/Design | Move project to Production status | - -Then I should NOT see table rows including the following values in the logging table: -| Username | Action | -| test_user1 | Create record 7 | - -#FUNCTIONAL_REQUIREMENT: -##ACTION: SAVE & STAY -Given I click the link labeled "Add/Edit Records" -When I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 7." - -And I enter "SAVE & STAY" in the field labeled "Name" -And I click on the button labeled "Save & Stay" -##VERIFY -Then I should see "Record ID 7 successfully edited." - -#SETUP create record -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 8." - -#FUNCTIONAL_REQUIREMENT: -##ACTION SAVE & Go To Next Form -When I enter "SAVE & GO TO NEXT FORM" in the field labeled "Name" -And I select the dropdown option labeled "Save & Go To Next Form" on the dropdown field labeled "Save & Stay" -##VERIFY -Then I should see "Data Types" - -#SETUP create record -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Leave without saving changes" in the dialog box -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 9." - -#FUNCTIONAL_REQUIREMENT: -##ACTION Save & Exit Record -Given I enter "SAVE & EXIT RECORD" in the field labeled "Name" -And I select the dropdown option labeled "Save & Exit Record" on the dropdown field labeled "Save & Go To Next Form" -##VERIFY -Then I should see "Add / Edit Records" - -#SETUP create record -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 10." - -#FUNCTIONAL_REQUIREMENT: -##ACTION Save & Go To Next Record -Given I enter "SAVE & GO TO NEXT RECORD" in the field labeled "Name" -And I click the link labeled "Add/Edit Records" -And I click on the button labeled "Leave without saving changes" in the dialog box -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -Then I should see "Adding new Record ID 11." - -When I enter "NEXT RECORD" in the field labeled "Name" -And I click on the button labeled "Save & Stay" -##VERIFY -Then I should see "Record ID 11 successfully edited." - -Given I click the link labeled "Record Status Dashboard" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "10" -And I verify I see "SAVE & GO TO NEXT RECORD" in the field labeled "Name" -And I select the dropdown option labeled "Save & Go To Next Record" on the dropdown field labeled "Save & Exit Record" -Then I should see "Now displaying the next record: Record ID 11" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Update record 11 | name = 'NEXT RECORD '| -| test_user1 | Update record 10 | name = 'SAVE & GO TO NEXT RECORD '| -| test_user1 | Create record 9 | name = 'SAVE & EXIT RECORD' | -| test_user1 | Create record 8 | name = 'SAVE & GO TO NEXT FORM' | -| test_user1 | Create record 7 | name = 'SAVE & STAY' | - -##VERIFY_DE: -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| Event Name | Name | -| 7 | Event 1 (Arm 1: Arm 1) | SAVE & STAY| -| 8 | Event 1 (Arm 1: Arm 1) | SAVE & GO TO NEXT FORM| -| 9 | Event 1 (Arm 1: Arm 1) | SAVE AND EXIT RECORD| -| 10 | Event 1 (Arm 1: Arm 1) | SAVE & GO TO NEXT RECORD| -| 11 | Event 1 (Arm 1: Arm 1) | NEXT RECORD| diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.700 - Form status options.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.700 - Form status options.feature deleted file mode 100644 index 2ba0cd8e..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.700 - Form status options.feature +++ /dev/null @@ -1,72 +0,0 @@ -Feature: Saving Data: The system shall support the following statuses for data instruments: (Incomplete (no data saved) | Incomplete | Unverified | Complete) - -As a REDCap end user -I want to see that statuses for data instruments is functioning as expected - -Scenario: B.3.14.700.100 Statuses for data instruments - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.700.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL_REQUIREMENT -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" -##ACTION Set record status to Incomplete (No data) -And I verify the dropdown option labeled "Incomplete" is selected on the dropdown l field labeled "Complete?" -And I select the button labeled "Cancel" -Then I should see "Record ID 7 data entry cancelled - not saved." - -#VERIFY_RECORD_HOMEPAGE: Incomplete - save and stay (No data) -And I should see an "Incomplete (no data saved)" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" - -#FUNCTIONAL_REQUIREMENT -Given I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" -##ACTION Set record status to Incomplete (W/ data) -And I enter "Incomplete with data" in the field labeled "Name" -And I select the button labeled "Save & Exit Form" -Then I should see "Record ID 7 successfully added." - -#VERIFY_RECORD_HOMEPAGE: Incomplete - save and stay (W/ data) -And I should see an "Incomplete" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" - -#FUNCTIONAL_REQUIREMENT -Given I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" -##ACTION Set record status to Unverified -And I select the dropdown option labeled "Unverified" on the dropdown l field labeled "Complete?" -And I select the button labeled "Save & Exit Form" -Then I should see "Record ID 7 successfully edited." - -#VERIFY_RECORD_HOMEPAGE: Unverified -AND I should see an "Unverified" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" - -#FUNCTIONAL_REQUIREMENT -Given I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" -##ACTION Set record status to Complete -And I select the dropdown option labeled "Complete" on the dropdown l field labeled "Complete?" -And I select the button labeled "Save & Exit Form" -Then I should see "Record ID 7 successfully edited." - -#VERIFY_RECORD_HOMEPAGE: Complete -And I should see a "Complete" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| Event Name | Complete? text_validation_complete | -|7 | Event 1 (Arm 1: Arm 1) | Complete (2) | -|1 | Event 2 (Arm 1: Arm 1) | Unverified (1)| -|1 | Event 1 (Arm 1: Arm 1) | Incomplete (0) | -|3 | Event 1 (Arm 1: Arm 1) | Incomplete (0)| diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.800 - Record Status Dashboard.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.800 - Record Status Dashboard.feature deleted file mode 100644 index c0840336..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.800 - Record Status Dashboard.feature +++ /dev/null @@ -1,23 +0,0 @@ -Feature: Saving Data: The system shall support a Record Status Dashboard to display a listing of all existing records and data collection instrument form statuses. - -As a REDCap end user -I want to see that record status dashboard is functioning as expected - -Scenario: B.3.14.800.100 record status dashboard display - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.800.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button -And I click on the link labeled "My Projects" -And I click on the link labeled "B.3.14.800.100" - -#FUNCTIONAL REQUIREMENT -##ACTION - View Record Status Dashboard -When I click on the link labeled "Record Status Dashboard" - -##VERIFY -Then I should see "Default dashboard" -And I should see the link labeled "1" -And I should see the bubble "Text Validation" for the event "Event 1" for record "1" -And I should see the link labeled "Arm 2: Arm Two" - diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.900 - Rename Record.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.900 - Rename Record.feature deleted file mode 100644 index 72687a4a..00000000 --- a/Feature Tests/B/Direct Data Entry - Data Collection Instrument/B.3.14.900 - Rename Record.feature +++ /dev/null @@ -1,55 +0,0 @@ -Feature: Renaming a Record: The system shall allow users to rename a record. - -As a REDCap end user -I want to see that rename record is functioning as expected - -Scenario: B.3.14.900.100 Rename record -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.14.900.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SET UP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -#FUNCTIONAL REQUIREMENT -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "1" -##ACTION Rename record -And I click on the dropdown option labeled "Rename record" on the dropdown button labeled "Choose action for record" -And I enter "1.A" into the field labeled "Rename record "1" to the following record name:" -And I click on the button labeled "Rename record" in the dialog box -Then I should see "Record ID 1.A was successfully renamed!" - -#VERIFY_RSD: Record 1 is now 1.A -When I click on the link labeled "Record Status Dashboard" -Then I should see the linked labeled "1.A" -AND I should NOT see the linked labeled "1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see table rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported| -| test_user1 | Update record 1.A | record_id = '1.A' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -|Record ID | -| 1.A | - diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.100 - Create Record.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.100 - Create Record.feature new file mode 100644 index 00000000..89276390 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.100 - Create Record.feature @@ -0,0 +1,80 @@ +Feature: Creating a Record and Entering Data: The system shall support the ability to create a record + + As a REDCap end user + I want to see that record creation is functioning as expected + + Scenario: B.3.14.100.100 Create new record + #SETUP_PRODUCTION + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + ##SETUP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Add new user" + And I click on the button labeled "+ Add with custom rights" + And I uncheck the User Right named "Create Records" + And I check the User Right named "Logging" + And I click on the button labeled "Add user" + Then I should see "Test_User1" + + #FUNCTIONAL REQUIREMENT + ##ACTION: create record + When I click the link labeled "Add/Edit Records" + And I click the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Text Validation" for event "Event 1" + And I click the button labeled "Save and Exit Form" + ##VERIFY + Then I should see "Record ID 7 successfully added" + + ##VERIFY_LOG: + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | + | test_admin | Create record 7 | + + ##VERIFY_RSD: + When I click the link labeled "Record Status Dashboard" + And I click the record labeled "7" + Then I should see "Record ID 7" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | + | 7 | + + And I logout + + ##ACTION: login as user without create record access - but can edit record + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.3.14.100.100" + And click on the link labeled "View / Edit Records" + ##VERIFY: Cannot add record + Then I should NOT see the button labeled "Add new record for the arm selected above" + + ##VERIFY Can edit existing record + When I click on the dropdown field with the placeholder text of "select record" + And I select the dropdown option labeled "1" + And I click the bubble labeled "Text Validation" for event "Event 1" + And I enter "EDIT" on the field labeled "Name" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 1 successfully edited" + + ##VERIFY_LOG: Existing record updated + And I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 1 | name = 'EDIT' | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1000 - Delete Form Data.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1000 - Delete Form Data.feature new file mode 100644 index 00000000..7269768a --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1000 - Delete Form Data.feature @@ -0,0 +1,57 @@ +Feature: Deleting Data: The system shall allow users to delete all data on the current form of a given record. + + As a REDCap end user + I want to see that delete record is functioning as expected + + Scenario: B.3.14.1000.100 Delete all data in a form for a record form + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.000.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SET UP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + ##ACTION + When I click the link labeled "Record Status Dashboard" + And I click the bubble for the "Survey" instrument on event "Event Three" for record "1" + Then I should see "Name" in the field labeled "Name" + And I should see a button labeled "Delete data for THIS FORM only" + + #FUNCTIONAL_REQUIREMENT + When I click on the button labeled "Delete data for THIS FORM only" + And I click on the button labeled "Delete data for THIS FORM only" in the dialog box + Then I should see "Record ID 1 successfully edited." + And I should see an Incomplete (no data saved) status icon for the "Survey" instrument on event "Event Three" for record "1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 1 | "email_survey = '' | + | test_user1 | Update record 1 | name_survey = '' | + | test_user1 | Update record 1 | survey_complete = '' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | email_survey | name_survey | survey_complete | + | 1 | | | Incomplete (0) | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1100 - Delete Record Data.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1100 - Delete Record Data.feature new file mode 100644 index 00000000..752179be --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1100 - Delete Record Data.feature @@ -0,0 +1,61 @@ +Feature: Deleting Data: The system shall allow users to delete all data in an event for a given record. + + As a REDCap end user + I want to see that delete all data is functioning as expected + + Scenario: B.3.14.1100.100 Delete all data in an event for a given record + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.1100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SET UP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + #FUNCTIONAL_REQUIREMENT + When I click on the link labeled "Record Status Dashboard" + And I click on record "1" + ##ACTION delete this event + And I click on the "delete this event" icon on the field labeled "Delete all data on event:" for event "Event 1" + And I click on the button labeled "Delete this event" in the dialog box + #VERIFY + Then I should see the "Incomplete (no data saved)" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "1" + And I should see the "Incomplete (no data saved)" status icon for the "Data Types" longitudinal instrument on event "Event 1" for record "1" + And I should see the "Incomplete (no data saved)" status icon for the "Consent" longitudinal instrument on event "Event 1" for record "1" + + #VERIFY_LOG: + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 1 | calc_test = '' | + | test_user1 | Update record 1 | consent_complete = '' | + | test_user1 | Update record 1 | data_types_complete = '' | + | test_user1 | Update record 1 | dob = '' | + | test_user1 | Update record 1 | email = '' | + | test_user1 | Update record 1 | email_consent = '' | + | test_user1 | Update record 1 | name_consent = '' | + | test_user1 | Update record 1 | text_validation_complete = '' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should NOT see a table row including the following values in in the logging table: + | record_id | redcap_event_name | name | + | 1 | Event 1 (Arm 1: Arm 1) | Name | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1200 - Delete Record.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1200 - Delete Record.feature new file mode 100644 index 00000000..35eb222f --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.1200 - Delete Record.feature @@ -0,0 +1,55 @@ +Feature: Deleting Data: The system shall allow users to delete a record + + As a REDCap end user + I want to see that user rights to delete data is functioning as expected + + Scenario: B.3.14.1200.100 Delete record + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.1200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SET UP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + ##ACTION + When I click the link labeled "Record Status Dashboard" + And I click on the link labeled "1" + Then I should see "Record Home Page" + And I should see "Record ID 1" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Delete record + When I select the dropdown option labeled "Delete record (all forms)" on the dropdown field labeled "Choose action for record" + And I click on the button labeled "DELETE RECORD" in the dialog box + ##VERIFY + Then I should see "Record deleted!" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_LOG + When I click the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Delete record 1 | record_id = '1' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should NOT see record "1" +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.200 - Field Type Data Entry.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.200 - Field Type Data Entry.feature new file mode 100644 index 00000000..fc0ee0a2 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.200 - Field Type Data Entry.feature @@ -0,0 +1,75 @@ +Feature: Creating a Record and Entering Data: The system shall support data entry for the defined core field types. + + As a REDCap end user + I want to see that data entry for field type is functioning as expected + + Scenario: B.3.14.200.100 Appropriate data entry by field type + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.3.14.200.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 7" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Data entry various field types + When I select the radio option labeled "Choice99" for the field labeled "radio" + And I select the dropdown option labeled "DDChoice6" on the dropdown field labeled "Multiple Choice Dropdown Manual" + And I enter "Notes box" for the field labeled "Notes box 2" + And I select the option labeled "Checkbox2" for the multiselect field labeled "Checkbox" + And I click the link "Add signature" for the singature field labeled "Signature" + And I enter "TESTER" on the signature field in the pop-up box + And I click on the button labeled "Save signature" in the pop-up box + And I click on the link labeled "Upload file" for the field labeled "File Upload" + And I upload the file labeled "File_Upload.png" + And I click on the button labeled "Upload file" in the dialog box + And I select the option "True" on the field labeled "True/False" + And I select the option "No" on the field labeled "Yes/No" + And I set the value to "65" by using the slider for the field labeled "Slider" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 7 successfully added." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Create record 7 | radio = '9..9' | + | test_user1 | Create record 7 | multiple_dropdown_manual_2 = '6' | + | test_user1 | Create record 7 | notesbox2 = 'Notes box' | + | test_user1 | Create record 7 | checkbox(1) = checked | + | test_user1 | Create record 7 | checkbox(2) = checked | + | test_user1 | Create record 7 | signature = '(unique signature hash)' | + | test_user1 | Create record 7 | file upload = '(unique file hash)' | + | test_user1 | Create record 7 | tf= '1' | + | test_user1 | Create record 7 | yn = '0' | + | test_user1 | Create record 7 | slider = '65' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | radio | Multiple Choice Dropdown Manual | Notes box 2 | Checkbox1 | Checkbox2 | + | 7 | Choice99 (9..9) | DDChoice6 (6) | Notes box | Checked (1) | Checked (1) | + + And I should see a table header and rows including the following values in the report data table: + | Record ID | Signature | File Upload | True/False | Yes/No | Slider | + | 7 | signature.png link | file upload link | True (1) | No (0) | 65 | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.300 - Radio button behavior.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.300 - Radio button behavior.feature new file mode 100644 index 00000000..9ab5d113 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.300 - Radio button behavior.feature @@ -0,0 +1,51 @@ +Feature: Creating a Record and Entering Data: The system shall support the ability to reset a multiple choice-radio button selection. + + As a REDCap end user + I want to see that field reset is functioning as expected + + Scenario: B.3.14.300.100 Reset multiple choice-radio button selection + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##ACTION + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Data Types" longitudinal instrument for event "Event 1" + Then I should see "Adding new Record ID 7." + + When I select the radio option "Choice99" for the field labeled "radio" + And I click on the button labeled "Save & Stay" + Then I should see "Record 7 successfully edited" + + When I click on the link labeled "reset" for the field labeled "radio" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 7 successfully edited." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + + | test_user1 | Update record 7 | radio = '' | + | test_user1 | Create record 7 | radio = '9..9' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | radio | + | 7 | | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.400 - Datetime Fields.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.400 - Datetime Fields.feature new file mode 100644 index 00000000..2cc1bf7b --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.400 - Datetime Fields.feature @@ -0,0 +1,53 @@ +Feature: Creating a Record and Entering Data: The system shall support the ability to use the following on date/time fields: (Date picker widget | Now button | Today button) + + As a REDCap end user + I want to see that date/time widget is functioning as expected + + Scenario: B.3.14.400.100 Data entry for Date/time validated fields + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Data Types" longitudinal instrument for event "Event 1" + Then I should see "Adding new Record ID 7." + + #FUNCTIONAL REQUIREMENT + ##ACTION: Date/time widget icon + When I click on the date picker widget icon for the field labeled "datetime YMD HMSS" + And I select the date "08/01/2023 00:00:00" in the pop up calendar + ##VERIFY + Then I should see the date "2023-08-01 00:00:00" in the field labeled "datetime YMD HMSS" + + ##ACTION: Now button + When I click on the button labeled "Now" for the field labeled "time HH:MM:SS" + ##VERIFY + Then I should see the exact time in the field labeled "time HH:MM:SS" + + ##ACTION: Today button + When I click on the button labeled "Today" for the field labeled "date YMD" + ##VERIFY + Then I should see today's date in the field labeled "date YMD" + + When I select the submit option labeled "Save & Exit Form" on the Data Collection Instrument + Then I should see "Record ID 7 successfully added" + + ##VERIFY_LOG + #Manual: Actual dates and times will be based on the date and time of data entry + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Create record 7 | date_ymd = '2024-03-11', | + | test_admin | Create record 7 | time_hhmmss = '11:24:56', | + | test_admin | Create record 7 | datetime_ymd_hmss = '2023-08-01 00:00:00', | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.500 - Leave without Save.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.500 - Leave without Save.feature new file mode 100644 index 00000000..9aa275ef --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.500 - Leave without Save.feature @@ -0,0 +1,67 @@ +Feature: Saving Data: The system shall support the prompt to save when a user attempts to navigate away from a data entry page without saving: (Save changes and leave | Leave without saving changes | Stay on page) + + As a REDCap end user + I want to see that leave without saving data entry page navigation is functioning as expected + + Scenario: B.3.14.500.100 Navigate away from a data entry page options + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL_REQUIREMENT + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" + ##ACTION Navigate away from the record + And I click on the link labeled "Project Setup" + + ##VERIFY + Then I should see the button labeled "Save changes and leave" within the dialog box + And I should see the button labeled "Leave without saving changes" within the dialog box + And I should see the button labeled "Stay on page" within the dialog box + + ##ACTION Leave without saving changes + When I click on the button labeled "Leave without saving changes" + ##VERIFY + Then I should see "Main project settings" + + ##VERIFY_LOG: + When I click on the link labeled "Logging" + Then I should NOT see table rows including the following values in the logging table: + | Username | Action | + | test_user1 | Create record 7 | + + #FUNCTIONAL_REQUIREMENT + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" + And I click on the link labeled "Project Setup" + ##ACTION Save changes and leave + When I click on the button labeled "Save changes and leave" + ##VERIFY + Then I should see "Main project settings" + + ##VERIFY_LOG: + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | + | test_user1 | Create record 7 | + + #FUNCTIONAL_REQUIREMENT + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Data Types" longitudinal instrument on event "Event 1" + And I click on the link labeled "Project Setup" + ##ACTION Stay on page + When I click on the button labeled "Stay on page" + ##VERIFY + Then I should see "Adding new Record ID 8." +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.600 - Save Options.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.600 - Save Options.feature new file mode 100644 index 00000000..9abd3bec --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.600 - Save Options.feature @@ -0,0 +1,146 @@ +Feature: Saving Data: The system shall support the ability to: (Save and stay | Save and exit | Cancel the data entered and leave the record without saving) + + As a REDCap end user + I want to see that saving data is functioning as expected + + Scenario: B.3.14.600.100 Save data options from data entry page + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + #Manual: And I click "I Agree" to create the project. + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP create record + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 7." + + #FUNCTIONAL_REQUIREMENT: + ##ACTION: cancel data + Given I enter "CANCEL" in the field labeled "Name" + And I click on the button labeled "Cancel" + And I click on the button labeled "OK" in the pop-up box + ##VERIFY + Then I should see "Record ID 7" data entry cancelled - not saved." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | OR Fields Exported | + | test_user1 | Manage/Design | Move project to Production status | + And I should NOT see table rows including the following values in the logging table: + | Username | Action | + | test_user1 | Create record 7 | + + #FUNCTIONAL_REQUIREMENT: + ##ACTION: SAVE & STAY + Given I click the link labeled "Add/Edit Records" + When I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 7." + + And I enter "SAVE & STAY" in the field labeled "Name" + And I click on the button labeled "Save & Stay" + ##VERIFY + Then I should see "Record ID 7 successfully edited." + + #SETUP create record + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 8." + + #FUNCTIONAL_REQUIREMENT: + ##ACTION SAVE & Go To Next Form + When I enter "SAVE & GO TO NEXT FORM" in the field labeled "Name" + And I select the dropdown option labeled "Save & Go To Next Form" on the dropdown field labeled "Save & Stay" + ##VERIFY + Then I should see "Data Types" + + #SETUP create record + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Leave without saving changes" in the dialog box + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 9." + + #FUNCTIONAL_REQUIREMENT: + ##ACTION Save & Exit Record + Given I enter "SAVE & EXIT RECORD" in the field labeled "Name" + And I select the dropdown option labeled "Save & Exit Record" on the dropdown field labeled "Save & Go To Next Form" + ##VERIFY + Then I should see "choose an existing record ID" + + #SETUP create record + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 10." + + #FUNCTIONAL_REQUIREMENT: + ##ACTION Save & Go To Next Record (lands on add/edit records when there is no other record.) + Given I enter "SAVE & GO TO NEXT RECORD" in the field labeled "Name" + And I click the link labeled "Add/Edit Records" + And I click on the button labeled "Save changes and leave" in the dialog box + ##VERIFY + Then I should see "choose an existing record ID" + And I should see "Total records: 10" + + Given I click on the dropdown labeled "--select record--" + And I select the record number "10" from the dropdown + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + And I select the dropdown option labeled "Save & Go to Next Record" on the dropdown field labeled "Save & Exit Record" + ##VERIFY + Then I should see "Although you clicked 'Go To Next Record', there is no record listed that follows the one you just saved." + + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + Then I should see "Adding new Record ID 11." + + #FUNCTIONAL_REQUIREMENT: + ##ACTION Save & Go To Next Record + When I enter "NEXT RECORD" in the field labeled "Name" + And I select the dropdown option labeled "Save & Stay" on the dropdown field labeled "Save & Go to Next Record" + ##VERIFY + Then I should see "Record ID 11 successfully edited." + + Given I click the link labeled "Record Status Dashboard" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "10" + And I verify I see "SAVE & GO TO NEXT RECORD" in the field labeled "Name" + And I select the dropdown option labeled "Save & Go To Next Record" on the dropdown field labeled "Save & Exit Record" + Then I should see "Now displaying the next record: Record ID 11" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 10 | + | test_user1 | Create record 11 | name = 'NEXT RECORD '| + | test_user1 | Create record 10 | name = 'SAVE & GO TO NEXT RECORD '| + | test_user1 | Create record 9 | name = 'SAVE & EXIT RECORD' | + | test_user1 | Create record 8 | name = 'SAVE & GO TO NEXT FORM' | + | test_user1 | Create record 7 | name = 'SAVE & STAY' | + + ##VERIFY_DE: + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID| Event Name | Name | + | 7 | Event 1 (Arm 1: Arm 1) | SAVE & STAY| + | 8 | Event 1 (Arm 1: Arm 1) | SAVE & GO TO NEXT FORM| + | 9 | Event 1 (Arm 1: Arm 1) | SAVE & EXIT RECORD| + | 10 | Event 1 (Arm 1: Arm 1) | SAVE & GO TO NEXT RECORD| + | 11 | Event 1 (Arm 1: Arm 1) | NEXT RECORD| +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.700 - Form status options.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.700 - Form status options.feature new file mode 100644 index 00000000..f5c4b631 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.700 - Form status options.feature @@ -0,0 +1,74 @@ +Feature: Saving Data: The system shall support the following statuses for data instruments: (Incomplete (no data saved) | Incomplete | Unverified | Complete) + + As a REDCap end user + I want to see that statuses for data instruments is functioning as expected + + Scenario: B.3.14.700.100 Statuses for data instruments + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.700.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL_REQUIREMENT + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" + ##ACTION Set record status to Incomplete (No data) + And I verify the dropdown option labeled "Incomplete" is selected on the dropdown field labeled "Complete?" + And I select the button labeled "Cancel" + Then I should see "Record ID 7 data entry cancelled - not saved." + + #VERIFY_RECORD_HOMEPAGE: Incomplete - save and stay (No data) + And I should see an "Incomplete (no data saved)" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + + #FUNCTIONAL_REQUIREMENT + Given I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + ##ACTION Set record status to Incomplete (W/ data) + And I enter "Incomplete with data" in the field labeled "Name" + And I select the button labeled "Save & Exit Form" + Then I should see "Record ID 7 successfully added." + + #VERIFY_RECORD_HOMEPAGE: Incomplete - save and stay (W/ data) + And I should see an "Incomplete" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + + #FUNCTIONAL_REQUIREMENT + Given I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + ##ACTION Set record status to Unverified + And I select the dropdown option labeled "Unverified" on the dropdown field labeled "Complete?" + And I select the button labeled "Save & Exit Form" + Then I should see "Record ID 7 successfully edited." + + #VERIFY_RECORD_HOMEPAGE: Unverified + AND I should see an "Unverified" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + + #FUNCTIONAL_REQUIREMENT + Given I click the bubble for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + ##ACTION Set record status to Complete + And I select the dropdown option labeled "Complete" on the dropdown field labeled "Complete?" + And I select the button labeled "Save & Exit Form" + Then I should see "Record ID 7 successfully edited." + + #VERIFY_RECORD_HOMEPAGE: Complete + And I should see a "Complete" status icon for the "Text Validation" longitudinal instrument on event "Event 1" for record "7" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Event Name | Complete? text_validation_complete | + | 7 | Event 1 (Arm 1: Arm 1) | Complete (2) | + | 1 | Event 2 (Arm 1: Arm 1) | Unverified (1) | + | 1 | Event 1 (Arm 1: Arm 1) | Incomplete (0) | + | 3 | Event 1 (Arm 1: Arm 1) | Incomplete (0) | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.800 - Record Status Dashboard.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.800 - Record Status Dashboard.feature new file mode 100644 index 00000000..ea81c228 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.800 - Record Status Dashboard.feature @@ -0,0 +1,24 @@ +Feature: Saving Data: The system shall support a Record Status Dashboard to display a listing of all existing records and data collection instrument form statuses. + + As a REDCap end user + I want to see that record status dashboard is functioning as expected + + Scenario: B.3.14.800.100 record status dashboard display + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.800.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + And I click on the link labeled "My Projects" + And I click on the link labeled "B.3.14.800.100" + + #FUNCTIONAL REQUIREMENT + ##ACTION - View Record Status Dashboard + When I click on the link labeled "Record Status Dashboard" + + ##VERIFY + Then I should see "Default dashboard" + And I should see the link labeled "1" + And I should see the bubble "Text Validation" for the event "Event 1" for record "1" + And I should see the link labeled "Arm 2: Arm Two" +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.900 - Rename Record.feature b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.900 - Rename Record.feature new file mode 100644 index 00000000..1c96b7a3 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Data Collection Instrument_14/B.3.14.900 - Rename Record.feature @@ -0,0 +1,56 @@ +Feature: Renaming a Record: The system shall allow users to rename a record. + + As a REDCap end user + I want to see that rename record is functioning as expected + + Scenario: B.3.14.900.100 Rename record + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.14.900.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_3.14.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SET UP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + #FUNCTIONAL REQUIREMENT + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "1" + ##ACTION Rename record + And I click on the dropdown option labeled "Rename record" on the dropdown button labeled "Choose action for record" + And I enter "1.A" into the field labeled "Rename record" + And I click on the button labeled "Rename record" in the dialog box + Then I should see "Record ID 1.A was successfully renamed!" + + #VERIFY_RSD: Record 1 is now 1.A + When I click on the link labeled "Record Status Dashboard" + Then I should see the linked labeled "1.A" + And I should NOT see the linked labeled "1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see table rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 1.A | record_id = '1.A' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | + | 1.A | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.100 - Enable Instrument as Survey.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.100 - Enable Instrument as Survey.feature deleted file mode 100644 index 57f87dd4..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.100 - Enable Instrument as Survey.feature +++ /dev/null @@ -1,85 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall support enabling and disabling each data collection instrument in a project as a survey. - -As a REDCap end user -I want to see that Manage project user access is functioning as expected - -Scenario: B.3.15.100.100 Enable/Disable survey in Online Designer -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.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 click on the link labeled "Project Setup" -#PARENT #B.6.4.1300.100 -Then I should see a button labeled "Disable" on the field labeled "Use surveys in this project?" - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Enable survey in Online Designer #B.3.15.100.100 -Given I click on the link labeled "Designer" -And I enable surveys for the data instrument named "Text Validation" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "Your survey settings were successfully saved!" - -##ACTION Verify survey function in record -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" -And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" -And I enter "Name_B.3.15.100.100" into the field labeled "Name" -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| Name | -| 1 | Name_B.3.15.100.100| - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -|[ survey_respondent]| Update Response 1 | name = 'Name_B.3.15.100.100' | - -#FUNCTIONAL REQUIREMENT -##ACTION Survey Offline -#B.3.15.200.100 -Given I click on the link labeled "Designer" -And I click on the link labeled "Survey settings" for the instrument labeled "Text Validation" -And I select the dropdown option labeled "Survey Offline" on the dropdown field labeled "Survey Status" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "Your survey settings were successfully saved!" -And I should see " Survey settings" - -##ACTION Verify no survey function in record -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" -#VERIFY -Then I should NOT see "Survey options" - -#VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| test_admin| Manage/design | Modify survey info - -#FUNCTIONAL REQUIREMENT -##ACTION Disable survey in Online Designer -Given I click on the link labeled "Online Designer" -And I click on the link labeled "Survey settings" for the data instrument named "Text Validation" -And I click on the button labeled "Delete Survey Settings" -And I click on the button labeled "Delete Survey Settings " -And I click on the button "Close" -##VERIFY -Then I should see "Enable" for the data instrument named "Text Validation" diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1000 - Survey Participant List.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1000 - Survey Participant List.feature deleted file mode 100644 index 769bc14e..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1000 - Survey Participant List.feature +++ /dev/null @@ -1,34 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall support a participant list for each survey in the project. A dropdown menu will list each survey or if a longitudinal project, each survey/event pairing from which to select the survey of interest. - -As a REDCap end user -I want to see that Participant List is functioning as expected - -Scenario: B.3.15.1000.100 Distribution tools for longitudinal project -#SETUP -Given I login to REDCap with the user "Test Admin" -And I create a new project named "B.3.15.1000.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Change survey distribution to form not in position 1 -When I click on the link labeled "Survey Distribution Tools" -Then I should see "Participant List belonging to "Consent "- Event 1 (Arm1: Arm 1)" -#VERIFY: YOU SEE RECORD 1 -And I should see a table header and rows containing the following values in the participant list table" -| Email | Record | -| 1) email@test.edu | 1 | - -##ACTION: Change survey distribution to form not in position 1 -When I select the dropdown option "Survey "- Event Three (Arm1: Arm 1)" from the dropdown field labeled "Participant List belonging to" -Then I should see "Participant List belonging to " Survey "- Event Three (Arm1: Arm 1)" -#VERIFY: YOU SEE RECORD 1 -And I should see a table header and rows containing the following values in the participant list table -| Email | Record | -| 1) email@test.edu | 1 | - diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1100 - Survey Response Tracking.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1100 - Survey Response Tracking.feature deleted file mode 100644 index 18749cf7..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1100 - Survey Response Tracking.feature +++ /dev/null @@ -1,40 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall support tracking responders and non-responders to surveys when using the participant list. - -As a REDCap end user -I want to see that Survey Feature is functioning as expected - -Scenario: B.3.15.1100.100 Tracking survey responders - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.1100.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -##VERIFY_SDT -Given I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Participant List" -Then I should see "Participant List" - -Given I select "Survey" from the dropdown labeled "Participant List belonging to" -Then I should see a grey bubble for the column labeled "Responded?" for record "1" -And I should see a grey bubble for the column labeled "Responded?" for record "2" - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I click the link icon for record "1" -Then I should see "Survey" -And I should see "Name" - -When I click on the button labeled "Submit" -Then I should see "Close survey" - -When I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Participant List" -And I select "Survey" from the dropdown labeled "Participant List belonging to" -Then green checkmark for the column labeled "Responded?" for record "1" diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1200 - Disabled Survey Behavior.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1200 - Disabled Survey Behavior.feature deleted file mode 100644 index a9357fa6..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1200 - Disabled Survey Behavior.feature +++ /dev/null @@ -1,82 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall delete all survey-related information and functions including survey link, return codes and date/time stamp when disabling survey functionality. Saved data will remain unaffected. - -As a REDCap end user -I want to see that Survey Feature is functioning as expected - -Scenario: B.3.15.1200.100 Deletion of meta data includes deletion of survey information and function - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.1200.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP: DESIGNER -Given I click on the link labeled "Designer" -And I click on the button labeled "Enable" for the instrument labeled "Text Validation" -And I click on the button labeled "Save Changes" -Then I should see the enabled icon for the instrument labeled "Text Validation" - -Given I click on the button labeled "Survey Settings" for the instrument labeled "Text Validation" -When I select the dropdown option labeled "Yes" for the field labeled "Allow 'Save & Return Later' option for respondents?" - And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved" - -##VERIFY_SDT: verifying survey link and return codes are available -Given I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Participant List" -Then I should see "Text Validation" on the dropdown labeled "Participant List belonging to" -And I should see a link icon for record "1" -And I should see a survey access code icon for record "1" - - -##ACTION -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" -And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" -And I enter "B.3.15.1200.100" for the field labeled "Name" -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey" - -Given I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Name | Survey Timestamp | -| 1 | B.3.15.1200.100 | mm/dd/yyyy HH:MM | - -#FUNCTIONAL REQUIREMENT -##ACTION -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Text Validation" -And I click on the button labeled "Delete Survey Settings" -And I click on the button labeled "Delete Survey Settings" in the dialog box -Then I should see "Survey successfully deleted!" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_DE: confirm -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Name | -| 1 | B.3.15.1200.100 | - -And I should NOT see "Survey Timestamp" - -##VERIFY_SDT: verifying survey link and return codes are NOT available -Given I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Participant List" -Then I should NOT see "Text Validation" on the dropdown labeled "Participant List belonging to" diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1300 - Public Survey Link.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1300 - Public Survey Link.feature deleted file mode 100644 index 35a23709..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.1300 - Public Survey Link.feature +++ /dev/null @@ -1,38 +0,0 @@ -Feature: User Interface: Survey distribution: The system shall allow creation of a public survey link when the survey is in the first instrument position. - -As a REDCap end user -I want to see that Manage project user access is functioning as expected - -Scenario: B.3.15.1300.100 Public survey link -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.1300.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 - -#FUNCTIONAL REQUIREMENT -##ACTION - 1st instrument is not set-up as survey -When I click on the link labeled "Survey Distribution Tools" -Then I should see "Survey Response Status" -When I click on "Public survey link" -#VERIFY -Then I should see "Public Survey not set up yet" - -#SETUP - enable first instrument survey -When I click on the button labeled "Enable public survey" -Then I should see "Set up my survey for data collection instrument" -When I click on the button "Save Changes" -Then I should see "Data Collection Instruments" - -#FUNCTIONAL REQUIREMENT -##ACTION - public survey link -When I click on the link labeled "Survey Distribution Tools" -#VERIFY -Then I should see "Public Survey URL:" -When I click on the button labeled "Open public survey" -And I click on the button labeled "Submit" -And I click on the button labeled "Close Survey" - -#VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| [survey respondent]| Create Response - diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.200 - Survey Status.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.200 - Survey Status.feature deleted file mode 100644 index a1028c4a..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.200 - Survey Status.feature +++ /dev/null @@ -1,80 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall support survey status as active or offline. - -As a REDCap end user -I want to see that Manage project user access is functioning as expected - -Scenario: B.3.15.200.100 Survey Online/Offline Status -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.200.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 - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see " Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Enable survey in Online Designer -Given I click on the link labeled "Designer" -And I enable surveys for the data instrument named "Text Validation" -And I verify "Survey Active" is selected on the dropdown field labeled "Survey Status" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "Your survey settings were successfully saved!" - -##ACTION Verify survey function in record -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" -And I click on the dropdown option labeled "Open survey" on the dropdown button labeled "Survey options" -And I enter "Name_survey" into the field labeled "Name" -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see "Record Home Page" - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID| Survey Timestamp | Name| -| 1 | MM:DD:YYY HH:MM| Name_survey| - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey_respondent] | Update Response 1 | name = 'Name_survey' | -| test_user1 | Manage/Design | Set up survey | - -#FUNCTIONAL REQUIREMENT -##ACTION Survey Offline -Given I click on the link labeled "Designer" -And I click on the link labeled "Survey settings" for the data instrument named "Text Validation" -And I select the dropdown option labeled "Survey Offline" on the dropdown field labeled "Survey Status" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "Your survey settings were successfully saved!" -And I should see " Survey settings" - -##ACTION Verify no survey function in record -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Text Validation" for event "Event 2" for record "2" -#VERIFY -And I click on the button labeled "Save & Stay" -And I click on the dropdown option labeled "Open survey" on the dropdown button labeled "Survey options" -Then I should see "Thank you for your interest, but this survey is not currently active." -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" -Then I should see "Record Home Page" - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Manage/Design | Modify survey info | - diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.300 - Survey Distribution Participant List.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.300 - Survey Distribution Participant List.feature deleted file mode 100644 index 3efc802d..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.300 - Survey Distribution Participant List.feature +++ /dev/null @@ -1,35 +0,0 @@ -Feature: The system shall allow creation of a participant list automatically using a designated email field when a survey is in any instrument position. - -As a REDCap end user -I want to see that Participant List is functioning as expected - -Scenario: B.3.15.300.100 Participant list linked to designated email field -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.300.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -##VERIFY_SETUP -Given I click on the link labeled "Project Setup" -Then I should see a button labeled "Disable" for the field labeled "Designate an email field" -And I should see "Field currently designated: email" - -#SETUP_SURVEY enable survey in first position -When I click on the link labeled "Designer" -And I click on the button labeled "Enable" for the instrument labeled "Text Validation" -And I click on the button labeled "Save Changes" -Then I should see an enabled icon for the instrument labeled "Text Validation" - -#FUNCTIONAL_REQUIREMENT -##ACTION Verify Survey Distribution Tool -When I click on the link labeled "Survey Distribution Tools" -And I click on the button labeled "Participant List" -Then I should see the option labeled "[Initial survey] "Text Validation"" selected on the field labeled "Participant List belonging to" -And I should see the email "email@test.edu" for the record labeled "1" -And I logout - diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.400 - Open Survey from Form.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.400 - Open Survey from Form.feature deleted file mode 100644 index c4d58318..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.400 - Open Survey from Form.feature +++ /dev/null @@ -1,55 +0,0 @@ -Feature: User Interface: Survey Distribution: The system shall provide a survey to be generated from within a participant record using these survey options: (Log out + Open survey | Open Survey link) - -As a REDCap end user -I want to see that Survey Distribution is functioning as expected - -Scenario: B.3.15.400.100 Open survey mode -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.400.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION - Open survey -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Open survey" -Then I should see "Please complete the survey below" - -When I click on the button labeled "Submit" -Then I should see "Thank you for taking this survey" -And I click on the button labeled "Close survey" - -Given I click on the button labeled "Leave without saving changes" -#FUNCTIONAL REQUIREMENT -##ACTION - Log out + Open survey -When I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Log out + Open survey" -Then I should see "Please complete the survey below" - -When I click on the button labeled "Submit" -Then I should see "Thank you for taking this survey" -And I click on the button labeled "Close survey" - -##VERIFY_LOG: -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.3.15.400.100" -And I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent] | Update Response 6 | survey_complete= '2' | -| [survey respondent] | Update Response 5 | survey_complete= '2' | diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.500 - Survey Alerts and Prompts.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.500 - Survey Alerts and Prompts.feature deleted file mode 100644 index 4d92454a..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.500 - Survey Alerts and Prompts.feature +++ /dev/null @@ -1,67 +0,0 @@ -Feature: User Interface: Survey Distribution: The system shall prompt the user to leave the survey to avoid overwriting survey responses when opening surveys from a data entry form when using Open Survey link. - -As a REDCap end user -I want to see that Survey Feature is functioning as expected - -Scenario: B.3.15.500.100 Data form overwrite function post survey entry -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.3.15.500.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP_RECORD -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Open survey" -Then I should see "Please complete the survey below" - -#FUNCTIONAL REQUIREMENT -##ACTION Verify Leave this page while survey is in session - -When I click on the button labeled "Submit" -Then I should see "Thank you for taking this survey" -And I click on the button labeled "Close survey" -Then I should see "Recommended: Leave this page while survey is in session" -And I click on the button labeled "Leave without saving changes" - -##VERIFY_LOG: -Given I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent] | Update Response 5 | survey_complete= '2' | - -#FUNCTIONAL REQUIREMENT -##ACTION Verify Leave this page while survey is in session -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Open survey" -Then I should see "Please complete the survey below" - -#FUNCTIONAL REQUIREMENT -##ACTION Verify stay on page and edit survey -When I click on the button labeled "Submit" -Then I should see "Thank you for taking this survey" - -When I click on the button labeled "Close survey" -And I click on the button labeled "Stay on this page" -And I enter "Overwrite Name" in the field labeled "Name" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 6 successfully edited." - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see a table row including the following values in in the logging table: -| test_admin | Update record 6 | name_survey = 'Overwrite Name' | -| [survey respondent] | Update Response 6 | survey_complete= '2' | diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.800 - Edit Survey Responses.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.800 - Edit Survey Responses.feature deleted file mode 100644 index 828b33f5..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.800 - Edit Survey Responses.feature +++ /dev/null @@ -1,83 +0,0 @@ -Feature: User Interface: The system shall allow submitted survey responses to be changed by a user who has edit survey responses rights. - -As a REDCap end user -I want to see that Survey Feature is functioning as expected - -Scenario: B.3.15.800.100 Edit survey response -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.800.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -##USER_RIGHTS - 1_FullRights -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -#SETUP_RECORD -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Open survey" -Then I should see "Please complete the survey below" - -When I click on the button labeled "Submit" -Then I should see "Thank you for taking this survey" - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" -Then I should see a Completed Survey Response icon for the data collection instrument labeled "Survey" on event "Event Three" - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in in the logging table: -| [survey respondent] | Update Response 5 | survey_complete= '2' | - -#FUNCTIONAL_REQUIREMENT -##ACTION Edit survey response -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "Arm 1" -And I click the bubble for the data collection Instrument named "Survey" for record "5" for event "Event Three" -Then I should see the button labeled "Edit response" - -When I click on button labeled "Edit response" -And I enter "Name_EDITRESPONSE" in the field labeled "Name" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 5 successfully edited" - -##VERIFY_LOG: -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in in the logging table: -| test_user1 | Update record 5 | name_survey = 'Name_EDITRESPONSE' | - -#VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "Arm 1" -And I click the bubble for the data collection Instrument named "Survey" for record "5" for event "Event Three" -Then I should see the "Name_EDITRESPONSE" in the field labeled "Name" - -##USER_RIGHTS - 3_ReadOnly_Deidentified -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Re-assign to role" -And I select "3_ReadOnly_Deidentified" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "3_ReadOnly_Deidentified" row of the column labeled "Username" of the User Rights table - -#FUNCTIONAL_REQUIREMENT -##ACTION Unable to edit survey response -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "Arm 1" -And I click the bubble for the data collection Instrument named "Survey" for record "5" for event "Event Three" -Then I should NOT see the button labeled "Edit response" diff --git a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.900 - Survey Response Status.feature b/Feature Tests/B/Direct Data Entry - Survey/B.3.15.900 - Survey Response Status.feature deleted file mode 100644 index b4da46b4..00000000 --- a/Feature Tests/B/Direct Data Entry - Survey/B.3.15.900 - Survey Response Status.feature +++ /dev/null @@ -1,65 +0,0 @@ -Feature: User Interface: The system shall support the following statuses for surveys: (Incomplete (no data saved) | Partial Survey Response | Completed Survey Response) - -As a REDCap end user -I want to see that Survey Feature is functioning as expected - -Scenario: B.3.15.900.100 Survey completion statuses - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.3.15.900.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 - -#SETUP_PRODUCTION -When I cclick on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP_DESIGNER -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Survey" -And I select "Yes" on the dropdown field labeled "Allow 'Save & Return Later ' option for respondents?" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully changed!" - -#FUNCTIONAL REQUIREMENT -##ACTION Survey mode Incomplete (no data saved) -When I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -##VERIFY_incomplete (no data) icon on record homepage -Then I should see an Incomplete (no data saved) status icon the "Survey" longitudinal instrument on event "Event Three" - -#FUNCTIONAL REQUIREMENT -##ACTION Survey mode Partial Survey Response -When I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Open survey" -Then I should see "Please complete the survey below" - -##VERIFY_RSD -When I click on the button labeled "Save & Return Later" -And I click on the button labeled "Close" in the dialog box -#M: Close browser tab -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see "Record Home Page" -And I should see a Partial Survey Response icon for the "Survey" longitudinal instrument on event "Event Three" for record "5" - -#FUNCTIONAL REQUIREMENT -##ACTION Survey mode Completed Survey Response -Given I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Survey options" -And I select the option labeled "Open survey" -Then I should see "Please complete the survey below" - -When I click on the button labeled "Submit" -Then I should see "Thank you taking this survey" -And I click on the button labeled "Close survey" - -##VERIFY_RSD -When I click on the button labeled "Leave without saving changes" -Then I should see a Completed Survey Response icon for the "Survey" longitudinal instrument on event "Event Three" for record "6" diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.100 - Enable Instrument as Survey.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.100 - Enable Instrument as Survey.feature new file mode 100644 index 00000000..a3d19cd3 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.100 - Enable Instrument as Survey.feature @@ -0,0 +1,97 @@ +Feature: User Interface: Survey Project Settings: The system shall support enabling and disabling each data collection instrument in a project as a survey. + + As a REDCap end user + I want to see that Manage project user access is functioning as expected + + Scenario: B.3.15.100.100 Enable/Disable survey in Online Designer + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.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 click on the link labeled "Project Setup" + #PARENT #B.6.4.1300.100 + Then I should see a button labeled "Disable" on the field labeled "Use surveys in this project?" + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Enable survey in Online Designer #B.3.15.100.100 + Given I click on the link labeled "Designer" + And I enable surveys for the data instrument named "Text Validation" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your survey settings were successfully saved!" + + ##ACTION Verify survey function in record + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" + And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" + And I enter "Name_B.3.15.100.100" into the field labeled "Name" + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey" + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Name | + | 1 | Name_B.3.15.100.100 | + + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [ survey_respondent] | Update Response 1 | name = 'Name_B.3.15.100.100' | + + #FUNCTIONAL REQUIREMENT + ##ACTION Survey Offline + #B.3.15.200.100 + Given I click on the link labeled "Designer" + And I click on the link labeled "Survey settings" for the instrument labeled "Text Validation" + And I select the dropdown option labeled "Survey Offline" on the dropdown field labeled "Survey Status" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your survey settings were successfully saved!" + And I should see " Survey settings" + + ##ACTION Verify no survey function in record + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" + #VERIFY + Then I should NOT see "Survey options" + + ##ACTION Verify no survey function in record + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "2" + And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" + #VERIFY + Then I should see "survey is not currently active" + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + + #FUNCTIONAL REQUIREMENT + ##ACTION Disable survey in Online Designer + Given I click on the link labeled "Online Designer" + And I click on the link labeled "Survey settings" for the data instrument named "Text Validation" + And I click on the button labeled "Delete Survey Settings" + And I click on the button "Close" + ##VERIFY + Then I should see "Enable" for the data instrument named "Text Validation" + + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" + ##VERIFY + Then I should NOT see "Survey options" +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1000 - Survey Participant List.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1000 - Survey Participant List.feature new file mode 100644 index 00000000..c3e02d9f --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1000 - Survey Participant List.feature @@ -0,0 +1,35 @@ +Feature: User Interface: Survey Project Settings: The system shall support a participant list for each survey in the project. A dropdown menu will list each survey or if a longitudinal project, each survey/event pairing from which to select the survey of interest. + + As a REDCap end user + I want to see that Participant List is functioning as expected + + Scenario: B.3.15.1000.100 Distribution tools for longitudinal project + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.1000.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Change survey distribution to form not in position 1 + When I click on the link labeled "Survey Distribution Tools" + Then I should see "Participant List belonging to 'Consent'- Event 1 (Arm1: Arm 1)" + #VERIFY: YOU SEE RECORD 1 + And I should see a table header and rows containing the following values in the participant list table" + | Email | Record | + | 1) email@test.edu | 1 | + + ##ACTION: Change survey distribution to form not in position 1 + When I select the dropdown option 'Survey'- Event Three (Arm1: Arm 1)" from the dropdown field labeled "Participant List belonging to" + Then I should see "Participant List belonging to 'Survey'- Event Three (Arm1: Arm 1)" + #VERIFY: YOU SEE RECORD 1 + And I should see a table header and rows containing the following values in the participant list table + | Email | Record | + | 1) email@test.edu | 1 | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1100 - Survey Response Tracking.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1100 - Survey Response Tracking.feature new file mode 100644 index 00000000..ada111d5 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1100 - Survey Response Tracking.feature @@ -0,0 +1,42 @@ +Feature: User Interface: Survey Project Settings: The system shall support tracking responders and non-responders to surveys when using the participant list. + + As a REDCap end user + I want to see that Survey Feature is functioning as expected + + Scenario: B.3.15.1100.100 Tracking survey responders + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.1100.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##VERIFY_SDT + Given I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Participant List" + Then I should see "Participant List" + + Given I select "Survey" from the dropdown labeled "Participant List belonging to" + Then I should see a grey bubble for the column labeled "Responded?" for record "1" + And I should see a grey bubble for the column labeled "Responded?" for record "2" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I click the link icon for record "1" + Then I should see "Survey" + And I should see "Name" + + When I click on the button labeled "Submit" + Then I should see "Close survey" + + When I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Participant List" + And I select "Survey" from the dropdown labeled "Participant List belonging to" + Then green checkmark for the column labeled "Responded?" for record "1" +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1200 - Disabled Survey Behavior.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1200 - Disabled Survey Behavior.feature new file mode 100644 index 00000000..a56f2a2c --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1200 - Disabled Survey Behavior.feature @@ -0,0 +1,83 @@ +Feature: User Interface: Survey Project Settings: The system shall delete all survey-related information and functions including survey link, return codes and date/time stamp when disabling survey functionality. Saved data will remain unaffected. + + As a REDCap end user + I want to see that Survey Feature is functioning as expected + + Scenario: B.3.15.1200.100 Deletion of meta data includes deletion of survey information and function + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.1200.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP: DESIGNER + Given I click on the link labeled "Designer" + And I click on the button labeled "Enable" for the instrument labeled "Text Validation" + And I click on the button labeled "Save Changes" + Then I should see the enabled icon for the instrument labeled "Text Validation" + + Given I click on the button labeled "Survey Settings" for the instrument labeled "Text Validation" + When I select the dropdown option labeled "Yes" for the field labeled "Allow 'Save & Return Later' option for respondents?" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved" + + ##VERIFY_SDT: verifying survey link and return codes are available + Given I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Participant List" + Then I should see "Text Validation" on the dropdown labeled "Participant List belonging to" + And I should see a link icon for record "1" + And I should see a survey access code icon for record "1" + + + ##ACTION + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" + And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" + And I enter "B.3.15.1200.100" for the field labeled "Name" + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey" + + Given I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Name | Survey Timestamp | + | 1 | B.3.15.1200.100 | mm/dd/yyyy HH:MM | + + #FUNCTIONAL REQUIREMENT + ##ACTION + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Text Validation" + And I click on the button labeled "Delete Survey Settings" + And I click on the button labeled "Delete Survey Settings" in the dialog box + Then I should see "Survey successfully deleted!" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_DE: confirm + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Name | + | 1 | B.3.15.1200.100 | + And I should NOT see "text_validation_timestamp" + + ##VERIFY_SDT: verifying survey link and return codes are NOT available + Given I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Participant List" + Then I should NOT see "Text Validation" on the dropdown labeled "Participant List belonging to" +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1300 - Public Survey Link.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1300 - Public Survey Link.feature new file mode 100644 index 00000000..87282fff --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.1300 - Public Survey Link.feature @@ -0,0 +1,40 @@ +Feature: User Interface: Survey distribution: The system shall allow creation of a public survey link when the survey is in the first instrument position. + + As a REDCap end user + I want to see that Manage project user access is functioning as expected + + Scenario: B.3.15.1300.100 Public survey link + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.1300.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 + + #FUNCTIONAL REQUIREMENT + ##ACTION - 1st instrument is not set-up as survey + When I click on the link labeled "Survey Distribution Tools" + Then I should see "Survey Response Status" + When I click on "Public survey link" + #VERIFY + Then I should see "Public Survey not set up yet" + + #SETUP - enable first instrument survey + When I click on the button labeled "Enable public survey" + Then I should see "Set up my survey for data collection instrument" + When I click on the button "Save Changes" + Then I should see "Data Collection Instruments" + + #FUNCTIONAL REQUIREMENT + ##ACTION - public survey link + When I click on the link labeled "Survey Distribution Tools" + #VERIFY + Then I should see "Public Survey URL" + When I click on the button labeled "Open public survey" + And I click on the button labeled "Submit" + And I click on the button labeled "Close Survey" + + #VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table row containing the following values in the logging table: + | Username | Action | + | [survey respondent] | Create Response 5 | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.200 - Survey Status.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.200 - Survey Status.feature new file mode 100644 index 00000000..4bb0135d --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.200 - Survey Status.feature @@ -0,0 +1,81 @@ +Feature: User Interface: Survey Project Settings: The system shall support survey status as active or offline. + + As a REDCap end user + I want to see that Manage project user access is functioning as expected + + Scenario: B.3.15.200.100 Survey Online/Offline Status + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.200.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 + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see " Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Enable survey in Online Designer + Given I click on the link labeled "Designer" + And I enable surveys for the data instrument named "Text Validation" + And I verify "Survey Active" is selected on the dropdown field labeled "Survey Status" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your survey settings were successfully saved!" + + ##ACTION Verify survey function in record + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for event "Event 1" for record "1" + And I click on the dropdown option labeled "Open survey" on the dropdown button labeled "Survey options" + And I enter "Name_survey" into the field labeled "Name" + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey" + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see "Record Home Page" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Survey Timestamp | Name | + | 1 | MM:DD:YYY HH:MM | Name_survey | + + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey_respondent] | Update Response 1 | name = 'Name_survey' | + | test_user1 | Manage/Design | Set up survey | + + #FUNCTIONAL REQUIREMENT + ##ACTION Survey Offline + Given I click on the link labeled "Designer" + And I click on the link labeled "Survey settings" for the data instrument named "Text Validation" + And I select the dropdown option labeled "Survey Offline" on the dropdown field labeled "Survey Status" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your survey settings were successfully saved!" + And I should see " Survey settings" + + ##ACTION Verify no survey function in record + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Text Validation" for event "Event 2" for record "2" + #VERIFY + And I click on the dropdown option labeled "Open survey" on the dropdown button labeled "Survey options" + Then I should see "Thank you for your interest, but this survey is not currently active." + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" + Then I should see "Record Home Page" + + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Modify survey info | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.300 - Survey Distribution Participant List.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.300 - Survey Distribution Participant List.feature new file mode 100644 index 00000000..fa322b21 --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.300 - Survey Distribution Participant List.feature @@ -0,0 +1,42 @@ +Feature: The system shall allow creation of a participant list automatically using a designated email field when a survey is in any instrument position. + + As a REDCap end user + I want to see that Participant List is functioning as expected + + Scenario: B.3.15.300.100 Participant list linked to designated email field + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.300.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##VERIFY_SETUP + Given I click on the link labeled "Project Setup" + Then I should see a button labeled "Disable" for the field labeled "Designate an email field" + And I should see "Field currently designated: email" + + #SETUP_SURVEY enable survey in first position + When I click on the link labeled "Designer" + And I click on the button labeled "Enable" for the instrument labeled "Text Validation" + And I click on the button labeled "Save Changes" + Then I should see an enabled icon for the instrument labeled "Text Validation" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Verify Survey Distribution Tool + When I click on the link labeled "Survey Distribution Tools" + And I click on the button labeled "Participant List" + Then I should see the option labeled "[Initial survey]" selected on the field labeled "Participant List" + And I should see the email "email@test.edu" for the record labeled "1" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Email | + | 1 | email@test.edu | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.400 - Open Survey from Form.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.400 - Open Survey from Form.feature new file mode 100644 index 00000000..e32f57ae --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.400 - Open Survey from Form.feature @@ -0,0 +1,57 @@ +Feature: User Interface: Survey Distribution: The system shall provide a survey to be generated from within a participant record using these survey options: (Log out + Open survey | Open Survey link) + + As a REDCap end user + I want to see that Survey Distribution is functioning as expected + + Scenario: B.3.15.400.100 Open survey mode + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.400.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION - Open survey + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Open survey" + Then I should see "Please complete the survey below" + + When I click on the button labeled "Submit" + Then I should see "Thank you for taking this survey" + And I click on the button labeled "Close survey" + + Given I click on the button labeled "Leave without saving changes" + #FUNCTIONAL REQUIREMENT + ##ACTION - Log out + Open survey + When I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Log out + Open survey" + Then I should see "Please complete the survey below" + + When I click on the button labeled "Submit" + Then I should see "Thank you for taking this survey" + And I click on the button labeled "Close survey" + + ##VERIFY_LOG: + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.3.15.400.100" + And I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 6 | survey_complete= '2' | + | [survey respondent] | Update Response 5 | survey_complete= '2' | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.500 - Survey Alerts and Prompts.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.500 - Survey Alerts and Prompts.feature new file mode 100644 index 00000000..4a256d1e --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.500 - Survey Alerts and Prompts.feature @@ -0,0 +1,83 @@ +Feature: User Interface: Survey Distribution: The system shall prohibit the user from overwriting partially or fully completed survey response from a data entry form when using Open Survey link. + + + As a REDCap end user + I want to see that Survey Feature is functioning as expected + + Scenario: B.3.15.500.100 Data form overwrite function post survey entry + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.500.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP_RECORD + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Open survey" + Then I should see "Please complete the survey below" + + #FUNCTIONAL REQUIREMENT + ##ACTION Verify Leave this page while survey is in session + + When I enter "Survey Name1" in the field labeled "Name" + And I click on the button labeled "Submit" + Then I should see "Thank you for taking this survey" + + When I click on the button labeled "Close survey" + Then I should see "Recommended: Leave this page while survey is in session" + + When I click on the button labeled "Leave without saving changes" + Then I should see "Record Home Page" + + ##VERIFY_LOG: + Given I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 5 | name_survey = 'Survey Name1' | + | test_user1 | Create record 5 | name_survey = 'Name' | + + #FUNCTIONAL REQUIREMENT + ##ACTION Verify Stay on page does not allow user to overwrite + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Open survey" + Then I should see "Please complete the survey below" + + When I enter "Survey Name2" in the field labeled "Name" + And I click on the button labeled "Submit" + Then I should see "Thank you for taking this survey" + + When I click on the button labeled "Close survey" + And I click on the button labeled "Stay on this page" + Then I should see "Name" in the field labeled "Name" + + When I enter "Overwrite Name" in the field labeled "Name" + And I click on the button labeled "Save & Exit Form" + Then I should see "ERROR" + And I should see "page has already been saved as a partially or fully completed survey response" + And I should see "you may not modify the data on this data entry form" + + ##VERIFY_LOG: + When I click on the link labeled "Logging" + Then I should see a table row including the following values in in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 6 | name_survey = 'Survey Name2' | + | test_user1 | Create record 6 | name_survey = 'Name' | + + Then I should NOT see a table row including the following values in in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | Test_User1 | Update record 6 | name_survey = 'Overwrite Name' | +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.800 - Edit Survey Responses.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.800 - Edit Survey Responses.feature new file mode 100644 index 00000000..cd529e5e --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.800 - Edit Survey Responses.feature @@ -0,0 +1,80 @@ +Feature: User Interface: The system shall allow submitted survey responses to be changed by a user who has edit survey responses rights. + + As a REDCap end user + I want to see that Survey Feature is functioning as expected + + Scenario: B.3.15.800.100 Edit survey response + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.800.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##USER_RIGHTS - 1_FullRights + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + #SETUP_RECORD + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Open survey" + Then I should see "Please complete the survey below" + + When I click on the button labeled "Submit" + Then I should see "Thank you for taking this survey" + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" + Then I should see a Completed Survey Response icon for the data collection instrument labeled "Survey" on event "Event Three" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Edit survey response + When I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + Then I should see the button labeled "Edit response" + + When I click on button labeled "Edit response" + And I enter "Name_EDITRESPONSE" in the field labeled "Name" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 5 successfully edited" + + ##VERIFY_LOG: + When I click on the link labeled "Logging" + Then I should see a table row containing the following values in in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 5 | name_survey = 'Name_EDITRESPONSE' | + | [survey respondent] | Update Response 5 | survey_complete= '2' | + + #VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "Arm 1" + And I click the bubble for the data collection Instrument named "Survey" for record "5" for event "Event Three" + Then I should see the "Name_EDITRESPONSE" in the field labeled "Name name_survey" + + ##USER_RIGHTS - User Rights have No edit survey rights + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Re-assign to role" + And I select "3_ReadOnly_Deidentified" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "3_ReadOnly_Deidentified" row of the column labeled "Username" of the User Rights table + + #FUNCTIONAL_REQUIREMENT + ##ACTION Unable to edit survey response + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "Arm 1" + And I click the bubble for the data collection Instrument named "Survey" for record "5" for event "Event Three" + Then I should see "Survey response is read-only" +#END \ No newline at end of file diff --git a/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.900 - Survey Response Status.feature b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.900 - Survey Response Status.feature new file mode 100644 index 00000000..9ff20c2f --- /dev/null +++ b/Feature Tests/B/Direct Data Entry - Survey_15/B.3.15.900 - Survey Response Status.feature @@ -0,0 +1,72 @@ +Feature: User Interface: The system shall support the following statuses for surveys: (Incomplete (no data saved) | Partial Survey Response | Completed Survey Response) + + As a REDCap end user + I want to see that Survey Feature is functioning as expected + + Scenario: B.3.15.900.100 Survey completion statuses + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.3.15.900.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 + + #SETUP_PRODUCTION + When I cclick on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP_DESIGNER + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Survey" + And I select "Yes" on the dropdown field labeled "Allow 'Save & Return Later ' option for respondents?" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully changed!" + + #FUNCTIONAL REQUIREMENT + ##ACTION Survey mode Incomplete (no data saved) + When I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + ##VERIFY_incomplete (no data) icon on record homepage + Then I should see an Incomplete (no data saved) status icon the "Survey" longitudinal instrument on event "Event Three" + + #FUNCTIONAL REQUIREMENT + ##ACTION Survey mode Partial Survey Response + When I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Open survey" + Then I should see "Please complete the survey below" + + ##VERIFY_RSD + When I click on the button labeled "Save & Return Later" + Then I should see "Return Code" + And I should see "Copy or write down the Return Code" + + When I click on the button labeled "Close" in the dialog box + Then I should see "Your survey responses were saved!" + #Manual: Close browser tab + + When I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see "Record Home Page" + And I should see a Partial Survey Response icon for the "Survey" longitudinal instrument on event "Event Three" for record "5" + + #FUNCTIONAL REQUIREMENT + ##ACTION Survey mode Completed Survey Response + Given I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble for the "Survey" longitudinal instrument on event "Event Three" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Survey options" + And I select the option labeled "Open survey" + Then I should see "Please complete the survey below" + + When I click on the button labeled "Submit" + Then I should see "Thank you taking this survey" + And I click on the button labeled "Close survey" + + ##VERIFY_RSD + When I click on the button labeled "Leave without saving changes" + Then I should see a Completed Survey Response icon for the "Survey" longitudinal instrument on event "Event Three" for record "6" +#END \ No newline at end of file diff --git a/Feature Tests/B/Draft Mode/B.4.20.300 - Instrument Behavior.feature b/Feature Tests/B/Draft Mode/B.4.20.300 - Instrument Behavior.feature deleted file mode 100644 index 435a3a8c..00000000 --- a/Feature Tests/B/Draft Mode/B.4.20.300 - Instrument Behavior.feature +++ /dev/null @@ -1,45 +0,0 @@ -Feature: User Interface: The system shall require changes made to data collection instruments in production status projects to be made only by entering draft mode. Changes in draft mode are implemented upon acceptance of submission, not real time. - -As a REDCap end user -I want to see that Draft Mode is functioning as expected - -Scenario: B.4.20.300.100 Changes occur in draft mode non-real-time - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.4.20.300.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see Project Status: "Production" - - -#FUNCTIONAL_REQUIREMENT -##ACTION: Draft Mode -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -##VERIFY: (look at a table that shows summary of changes) -When I click on the instrument labeled "Data Types" -And I click on the Edit image for the field labeled "Radio Button Manual" -And I enter "102, Choice102" on the fourth row of the input field labeled "Choices (one choice per line)" -And I click on the button labeled "Save" -And I click on the button labeled "View detailed summary of all drafted changes" -Then I should see "102, Choice102" in a yellow cell for the variable labeled "radio_button manual" - -##ACTION -Given I click on the button labeled "RETURN TO PREVIOUS PAGE" -And I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1| Manage/Design | Approve production project modifications (automatic) | diff --git a/Feature Tests/B/Draft Mode/B.4.20.400 - Draft Mode Summary.feature b/Feature Tests/B/Draft Mode/B.4.20.400 - Draft Mode Summary.feature deleted file mode 100644 index 38d18d3c..00000000 --- a/Feature Tests/B/Draft Mode/B.4.20.400 - Draft Mode Summary.feature +++ /dev/null @@ -1,47 +0,0 @@ -Feature: User Interface: The system shall provide detailed summary of all drafted changes. - -As a REDCap end user -I want to see that Draft Mode is functioning as expected - -Scenario: B.4.20.400.100 Detailed summary of drafted changes - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.4.20.400.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see Project Status: "Production" - -##ACTION: Draft Mode -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -When I click on the instrument labeled "Data Types" -And I click on the Edit image for the field labeled "Radio Button Manual" -And I enter "102, Choice102" on the fourth row of the input field labeled "Choices (one choice per line)" -And I click on the button labeled "Save" -And I click on the button labeled "Add Field" at the bottom of the instrument -Then I should see a dropdown field labeled "Select a Type of Field" - -When I click on the dropdown field labeled "Select a Type of Field" -Given And I add a new Notes box field labeled "Notes Box" with the variable name "notesbox4" -And I click on the button labeled "Save" -Then I should see the field labeled "Notes Box" - -#FUNCTIONAL_REQUIREMENT -When I click on the button labeled "View detailed summary of all drafted changes" -Then I should see "Review Drafted Changes" -And I should see "102, Choice102" in a yellow cell for the variable labeled "radio_button manual" -And I should see "Notes Box" in a green cell for the variable labeled "notesbox4" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Create project field | -| test_user1 | Manage/Design | Edit project field | diff --git a/Feature Tests/B/Draft Mode/B.4.20.800 - Draft warning.feature b/Feature Tests/B/Draft Mode/B.4.20.800 - Draft warning.feature deleted file mode 100644 index 9ae7b943..00000000 --- a/Feature Tests/B/Draft Mode/B.4.20.800 - Draft warning.feature +++ /dev/null @@ -1,57 +0,0 @@ -Feature: User Interface: The system shall flag any changes that may negatively impact data with the following critical warnings: Possible label mismatch | Possible data loss | Data WILL be lost - -As a REDCap end user -I want to see that Draft mode is functioning as expected - -Scenario: B.4.20.800.100 Flag critical warnings - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.4.20.800.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see Project Status: "Production" - -##ACTION: Draft Mode -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Enter Draft Mode | - -##ACTION -When I click on the link labeled "Designer" -And I click on the instrument labeled "Data Types" -And I click on the Edit image for the field labeled "Radio Button Manual" -#DATA WILL BE LOST -And I delete the third option "101, Choice101" on the third row of the input field labeled "Choices (one choice per line)" -#DATA MISMATCH -And I edit the second option from "100, Choice100" to "101, Choice100" on the second row of the input field labeled "Choices (one choice per line)" -And I click on the button labeled "Save" -Then I should see the radio option labeled "Choice99" -And I should see the radio option labeled "Choice100" - -##FUNCTIONAL_REQUIREMENT -When I click on the link labeled "View detailed summary of all drafted changes" -Then I should see "Will these changes be automatically approved? No, an admin will have to review these changes." -And I should see a table header and rows containing the following values in the summary data table: -| Variable Name | Choices or Calculations | -| radio_button_manual | * Possible label mismatch because of label changes. Check if okay. | - *Data MIGHT be lost due to deleted choice(s) - -When I click on the button labeled "Compare" -Then I should see a table header and rows containing the following values in the Choice Change Summary data table: -| Existing Value| Status | Number of records having this value| -| 100 | Removed| 8| -| 101 | Altered | 0 | - -And I click on the button labeled "Close" in the dialog box - diff --git a/Feature Tests/B/Draft Mode/B.4.20.900 - Draft version control.feature b/Feature Tests/B/Draft Mode/B.4.20.900 - Draft version control.feature deleted file mode 100644 index edafcc66..00000000 --- a/Feature Tests/B/Draft Mode/B.4.20.900 - Draft version control.feature +++ /dev/null @@ -1,47 +0,0 @@ -Feature: User Interface: The system shall record all versions of the data dictionary post-production with date time stamp, requestor, and approver. - -As a REDCap end user -I want to see that Draft Mode is functioning as expected - -Scenario: B.4.20.900.100 Data dictionary version history - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.4.20.900.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see Project Status: "Production" - -##ACTION: Draft Mode -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -##ACTION -Given I click on the instrument labeled "Data Types" -And I click on the button labeled "Add Field" at the bottom of the instrument -And I click on the dropdown field labeled "Select a Type of Field" -And I add a new Notes Box (Paragraph Text) labeled "DD History" with the variable name "dd_history" -And I click on the button labeled "Save" -Then I should see the field labeled "DD History" - -##ACTION: Commit Changes -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "SUCCESS!!" -And I click on the button labeled "Close" in the dialog box - -##ACTION -When I click on the button labeled "Project Home" -And I click on the link labeled "Project Revision History" -Then I should see "Project Revision History" - -#FUNCTIONAL_REQUIREMENT -Then I should see a row containing the following values in the Project Review History table: -| Created project | mm/dd/yyyy hh:mm | | Created by Test_User1 (User1 Test) | -|Move to production| mm/dd/yyyy hh:mm | Download data dictionary | Moved to production by Test_User1 (User1 Test) | -|Production revision # 1|dd/mm/yyyy hh:mm | Download data dictionary | Requested by Test_User1 (User1 Test) automatically| diff --git a/Feature Tests/B/Draft Mode/B.4.20.100 - REDUNDANT.feature b/Feature Tests/B/Draft Mode_20/B.4.20.100 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Draft Mode/B.4.20.100 - REDUNDANT.feature rename to Feature Tests/B/Draft Mode_20/B.4.20.100 - REDUNDANT.feature diff --git a/Feature Tests/B/Draft Mode_20/B.4.20.300 - Instrument Behavior.feature b/Feature Tests/B/Draft Mode_20/B.4.20.300 - Instrument Behavior.feature new file mode 100644 index 00000000..192e3c80 --- /dev/null +++ b/Feature Tests/B/Draft Mode_20/B.4.20.300 - Instrument Behavior.feature @@ -0,0 +1,47 @@ +Feature: User Interface: The system shall require changes made to data collection instruments in production status projects to be made only by entering draft mode. Changes in draft mode are implemented upon acceptance of submission, not real time. + + As a REDCap end user + I want to see that Draft Mode is functioning as expected + + Scenario: B.4.20.300.100 Changes occur in draft mode non-real-time + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.20.300.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see Project Status: "Production" + + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Draft Mode + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + ##VERIFY: (look at a table that shows summary of changes) + When I click on the instrument labeled "Data Types" + And I click on the Edit image for the field labeled "Radio Button Manual" + And I enter "102, Choice102" on the fourth row of the input field labeled "Choices (one choice per line)" + And I click on the button labeled "Save" + And I click on the button labeled "View detailed summary of all drafted changes" + Then I should see "102, Choice102" in a yellow cell for the variable labeled "radio_button manual" + + ##ACTION + Given I click on the button labeled "RETURN TO PREVIOUS PAGE" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table row containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Approve production project modifications (automatic) | +#END \ No newline at end of file diff --git a/Feature Tests/B/Draft Mode_20/B.4.20.400 - Draft Mode Summary.feature b/Feature Tests/B/Draft Mode_20/B.4.20.400 - Draft Mode Summary.feature new file mode 100644 index 00000000..b86c220a --- /dev/null +++ b/Feature Tests/B/Draft Mode_20/B.4.20.400 - Draft Mode Summary.feature @@ -0,0 +1,49 @@ +Feature: User Interface: The system shall provide detailed summary of all drafted changes. + + As a REDCap end user + I want to see that Draft Mode is functioning as expected + + Scenario: B.4.20.400.100 Detailed summary of drafted changes + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.20.400.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see Project Status: "Production" + + ##ACTION: Draft Mode + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + When I click on the instrument labeled "Data Types" + And I click on the Edit image for the field labeled "Radio Button Manual" + And I enter "102, Choice102" on the fourth row of the input field labeled "Choices (one choice per line)" + And I click on the button labeled "Save" + And I click on the button labeled "Add Field" at the bottom of the instrument + Then I should see a dropdown field labeled "Select a Type of Field" + + When I click on the dropdown field labeled "Select a Type of Field" + Given And I add a new Notes box field labeled "Notes Box" with the variable name "notesbox4" + And I click on the button labeled "Save" + Then I should see the field labeled "Notes Box" + + #FUNCTIONAL_REQUIREMENT + When I click on the button labeled "View detailed summary of all drafted changes" + Then I should see "Review Drafted Changes" + And I should see "102, Choice102" in a yellow cell for the variable labeled "radio_button manual" + And I should see "Notes Box" in a green cell for the variable labeled "notesbox4" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table row containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Create project field | + | test_user1 | Manage/Design | Edit project field | +#END \ No newline at end of file diff --git a/Feature Tests/B/Draft Mode/B.4.20.500 - REDUNDANT.feature b/Feature Tests/B/Draft Mode_20/B.4.20.500 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Draft Mode/B.4.20.500 - REDUNDANT.feature rename to Feature Tests/B/Draft Mode_20/B.4.20.500 - REDUNDANT.feature diff --git a/Feature Tests/B/Draft Mode/B.4.20.600 - REDUNDANT.feature b/Feature Tests/B/Draft Mode_20/B.4.20.600 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Draft Mode/B.4.20.600 - REDUNDANT.feature rename to Feature Tests/B/Draft Mode_20/B.4.20.600 - REDUNDANT.feature diff --git a/Feature Tests/B/Draft Mode/B.4.20.700 - REDUNDANT.feature b/Feature Tests/B/Draft Mode_20/B.4.20.700 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Draft Mode/B.4.20.700 - REDUNDANT.feature rename to Feature Tests/B/Draft Mode_20/B.4.20.700 - REDUNDANT.feature diff --git a/Feature Tests/B/Draft Mode_20/B.4.20.800 - Draft warning.feature b/Feature Tests/B/Draft Mode_20/B.4.20.800 - Draft warning.feature new file mode 100644 index 00000000..1e63c55a --- /dev/null +++ b/Feature Tests/B/Draft Mode_20/B.4.20.800 - Draft warning.feature @@ -0,0 +1,58 @@ +Feature: User Interface: The system shall flag any changes that may negatively impact data with the following critical warnings: Possible label mismatch | Possible data loss | Data WILL be lost + + As a REDCap end user + I want to see that Draft mode is functioning as expected + + Scenario: B.4.20.800.100 Flag critical warnings + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.20.800.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see Project Status: "Production" + + ##ACTION: Draft Mode + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table row containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Enter Draft Mode | + + ##ACTION + When I click on the link labeled "Designer" + And I click on the instrument labeled "Data Types" + And I click on the Edit image for the field labeled "Radio Button Manual" + #DATA WILL BE LOST + And I delete the third option "101, Choice101" on the third row of the input field labeled "Choices (one choice per line)" + #DATA MISMATCH + And I edit the second option from "100, Choice100" to "101, Choice100" on the second row of the input field labeled "Choices (one choice per line)" + And I click on the button labeled "Save" + Then I should see the radio option labeled "Choice99" + And I should see the radio option labeled "Choice100" + + ##FUNCTIONAL_REQUIREMENT + When I click on the link labeled "View detailed summary of all drafted changes" + Then I should see "Will these changes be automatically approved? No, an admin will have to review these changes." + And I should see a table header and rows containing the following values in the summary data table: + | Variable Name | Choices or Calculations | + | radio_button_manual | * Possible label mismatch because of label changes. Check if okay. | + *Data MIGHT be lost due to deleted choice(s) + + When I click on the button labeled "Compare" + Then I should see a table header and rows containing the following values in the Choice Change Summary data table: + | Existing Value | Status | Number of records having this value | + | 100 | Removed | 8 | + | 101 | Altered | 0 | + + And I click on the button labeled "Close" in the dialog box +#END \ No newline at end of file diff --git a/Feature Tests/B/Draft Mode_20/B.4.20.900 - Draft version control.feature b/Feature Tests/B/Draft Mode_20/B.4.20.900 - Draft version control.feature new file mode 100644 index 00000000..0a6f0160 --- /dev/null +++ b/Feature Tests/B/Draft Mode_20/B.4.20.900 - Draft version control.feature @@ -0,0 +1,49 @@ +Feature: User Interface: The system shall record all versions of the data dictionary post-production with date time stamp, requestor, and approver. + + As a REDCap end user + I want to see that Draft Mode is functioning as expected + + Scenario: B.4.20.900.100 Data dictionary version history + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.20.900.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see Project Status: "Production" + + ##ACTION: Draft Mode + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + ##ACTION + Given I click on the instrument labeled "Data Types" + And I click on the button labeled "Add Field" at the bottom of the instrument + And I click on the dropdown field labeled "Select a Type of Field" + And I add a new Notes Box (Paragraph Text) labeled "DD History" with the variable name "dd_history" + And I click on the button labeled "Save" + Then I should see the field labeled "DD History" + + ##ACTION: Commit Changes + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "SUCCESS!!" + And I click on the button labeled "Close" in the dialog box + + ##ACTION + When I click on the button labeled "Project Home" + And I click on the link labeled "Project Revision History" + Then I should see "Project Revision History" + + #FUNCTIONAL_REQUIREMENT + Then I should see a row containing the following values in the Project Review History table: + | Created project | mm/dd/yyyy hh:mm | | Created by Test_User1 (User1 Test) | + | Move to production | mm/dd/yyyy hh:mm | Download data dictionary | Moved to production by Test_User1 (User1 Test) | + | Production revision # 1 | dd/mm/yyyy hh:mm | Download data dictionary | Requested by Test_User1 (User1 Test) automatically | +#END \ No newline at end of file diff --git a/Feature Tests/B/Export Data/B.5.21.100 - Export PHI.feature b/Feature Tests/B/Export Data/B.5.21.100 - Export PHI.feature deleted file mode 100644 index 3361e5c4..00000000 --- a/Feature Tests/B/Export Data/B.5.21.100 - Export PHI.feature +++ /dev/null @@ -1,185 +0,0 @@ -Feature: User Interface: The system shall support the ability to identify data as containing a protected health information identifier. - -As a REDCap end user -I want to see that export data is functioning as expected - -Scenario: B.5.21.100.100 Limit identified data export -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.5.21.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_5.21.xml", and clicking the "Create Project" button - -#SETUP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "4_NoAccess_Noexport" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see a table header and rows including the following values in the logging table: -| Role name | Username | -| 4_NoAccess_Noexport | test_user1 | - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table header and rows containing the following values in the codebook table: -| Variable/Field Name | Field Label| Field Attributes (Field/Type, Validation, Choices, Calculations, etc. | -| [identifier] | Identifier |text, Identifier | -| [identifier_2] | Identifier 2 |text, Identifier | -| [ptname] | Name |text | -| [radio ] | radio | radio, Identifier | - -##ACTION: change identifier status -When I click on the link labeled "Project Setup" -And I click on the link labeled "Check for identifiers" -Then I should see a table header and rows containing the following values in the codebook table: -| Variable Name | Field Label| Identifier?| -| identifier | Identifier | select checkbox | -| identifier_2 | Identifier 2|select checkbox | -| ptname | Name | deselect checkbox | -| radio | radio | select checkbox| - -When I deselect the checkbox labeled "Identifier?" for the variable labeled "identifier_2" -And I select the checkbox labeled "Identifier?" for the variable labeled "ptname" -And I click on the button labeled "Update Identifiers" -Then I should see a table header and rows containing the following values in the codebook table: -| Variable Name | Field Label| Identifier?| -| identifier | Identifier | select checkbox | -| identifier_2 | Identifier 2| deselect checkbox | -| ptname | Name | select checkbox | -| radio | radio | select checkbox| - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table header and rows containing the following values in the codebook table: -| Variable/Field Name | Field Label| Field Attributes (Field/Type, Validation, Choices, Calculations, etc. | -| [identifier] | Identifier |text, Identifier | -| [identifier_2] | Identifier 2 |text | -| [ptname] | Name | text, Identifier | -| [radio ] | radio | radio, Identifier | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -##ACTION: export all -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box - -##VERIFY: User can see all variables, including identifier, identifier_2 and name, survey_timestamp, radio button -Then I should have a "csv" file that contains the headings below -| record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | -#Manual: Close the report - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: remove identifiers from export -When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the checkbox button labeled "Remove All Identifier Fields (tagged in Data Dictionary)" -And I click on the checkbox button labeled "Hash the Record ID field (converts record name to an unrecognizable value)" -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box - -##VERIFY: User can see all variables except for [identifier], [ptname], [radio], [redcap_survey_identifer] and check record id #ed -Then I should have a "csv" file that contains the headings below -| record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | data_types_timestamp | textbox | notesbox | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | - -#Manual: Close the report & refresh page - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: add identifiers back and remove unvalidated texts fields and notesbox fields -When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I deselect the checkbox button labeled "Remove All Identifier Fields (tagged in Data Dictionary)" -And I deselect the checkbox button labeled "Hash the Record ID field (converts record name to an unrecognizable value)" -And I click on the checkbox button labeled "Remove unvalidated Text fields (i.e. Text fields other than dates, numbers, etc.)" -And I click on the checkbox button labeled "Remove Notes/Essay box fields" -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -##VERIFY: User can see all variables except for unvalidated fields and notes fields -Then I should have a "csv" file that contains the headings below -| record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | radio | date_ymd | datetime_ymd_hmss | date_types_complete | - -#Manual: Close the report & refresh page - -And I click on the button labeled "Close" in the dialog box - -FUNCTIONAL_REQUIREMENT -##ACTION: remove date, datetime fields -When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the checkbox button labeled "Remove all date and datetime fields" -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -##VERIFY: User can see all variables except for date and datetime fields -Then I should have a "csv" file that contains the headings below -| record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_types_complete | - -#Manual: Close the report & refresh page - -And I click on the button labeled "Close" in the dialog box - -##ACTION: create record and enter dates in survey mode -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record " -Then I should see "Adding new Record ID 5" - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" on the dropdown button labeled "Survey Options" -Then I should see "Please complete the survey below" -And I should see "2023-08-22" for the field labeled "date YMD" -And I should see "2023-08-22 10:50:40" for the field labeled "datetime YMD HMSS" - -When I click on the button labeled "Submit" -And I click on the button labeled "Close Survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see "Record Home Page" -And I should see a Completed Survey Response Icon for the field the instrument labeled "Data Types" - -FUNCTIONAL_REQUIREMENT -##ACTION: shift all dates -Given I click on the link labeled "Data Exports, Reports, and Stats" -When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the checkbox button labeled "Shift all dates by value between 0 and 364 days" -And I click on the checkbox button labeled "Also shift all survey completion timestamps by value between 0 and 364 days" -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" -And I should see "All dates within your data have been DATE SHIFTED to an unknown value between 0 and 364 days." - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -##VERIFY: -#Manual User can see all variables with dates shifted ([date_ymd]=! 2023-08-22) AND ([date_ymd_hmss]=! 2023-08-23 11:48:01) - -Then I should have a "csv" file -And I verify that the timestamp in the column labeled "data_types_timestamp" for record 5 has shifted -And I verify that the date in the column labeled "date_ymd" for record 5 has shifted -And I verify that the datetime in the column labeled "date_ymd_hmss" for record 5 has shifted - -#Manual: Close the report & refresh page - -And I click on the button labeled "Close" in the dialog box -And I logout -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "B.5.21.100.100" -When I click on the link labeled "Data Exports, Reports, and Stats" -#FUNCTIONAL_REQUIREMENT -##ACTION: limited access -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -And I should NOT see a button labeled "Export Data" for "All data (all records and fields)" report in the My Reports & Exports table - diff --git a/Feature Tests/B/Export Data/B.5.21.200 - Export Data to External Format.feature b/Feature Tests/B/Export Data/B.5.21.200 - Export Data to External Format.feature deleted file mode 100644 index fd60db18..00000000 --- a/Feature Tests/B/Export Data/B.5.21.200 - Export Data to External Format.feature +++ /dev/null @@ -1,106 +0,0 @@ -Feature: User Interface: The system shall allow data to be exported in the following formats: CSV, SPSS, SAS, R, STATA, and CDISC ODM (XML). - -As a REDCap end user -I want to see that export data is functioning as expected - -Scenario: B.5.21.200.100 Export data format - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.5.21.200.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 - -#FUNCTIONAL_REQUIREMENT -##ACTION: export CSV raw -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -Then I should have a csv file with the extension .csv within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: export CSV (labels) -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CSV / Microsoft Excel (labels)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (labels)" format in the dialog box -Then I should have a csv file with the extension .csv within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: export SPSS -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "SPSS Statistical Software" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "SPSS Statistical Software" format in the dialog box -Then I should have a sps file with the extension .sps within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: export SAS -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "SAS Statistical Software" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "SAS Statistical Software" format in the dialog box -Then I should have a sas file with the extension .sas within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: export R -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "R Statistical Software" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "R Statistical Software" format in the dialog box -Then I should have an r file with the extension .r within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: export STATA -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "Stata Statistical Software" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "Stata Statistical Software" format in the dialog box -Then I should have a STATA file with the extension .do within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - -#FUNCTIONAL_REQUIREMENT -##ACTION: export XML -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CDISC ODM (XML)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CDISC ODM" format in the dialog box -Then I should have a CDISX ODM file with the extension .xml within the downloads folder -#Manual Close file - -And I click on the button labeled "Close" in the dialog box - diff --git a/Feature Tests/B/Export Data/B.5.21.300 - Export All Fields.feature b/Feature Tests/B/Export Data/B.5.21.300 - Export All Fields.feature deleted file mode 100644 index d66b43df..00000000 --- a/Feature Tests/B/Export Data/B.5.21.300 - Export All Fields.feature +++ /dev/null @@ -1,29 +0,0 @@ -Feature: User Interface: The system shall allow for exporting every field in a database. - -As a REDCap end user -I want to see that export data is functioning as expected - -Scenario: B.5.21.300.100 Export all fields -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.5.21.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_5.21.xml", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: export CSV and confirm column -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box - -##VERIFY: -Then I should have a "csv" file that contains the headings below -| record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | -#M: Close the report - -And I click on the button labeled "Close" in the dialog box diff --git a/Feature Tests/B/Export Data/B.5.21.400 - Export Specific Forms.feature b/Feature Tests/B/Export Data/B.5.21.400 - Export Specific Forms.feature deleted file mode 100644 index c9717289..00000000 --- a/Feature Tests/B/Export Data/B.5.21.400 - Export Specific Forms.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: User Interface: The system shall support the ability to select specific forms to export. - -As a REDCap end user -I want to see that export data is functioning as expected - -Scenario: B.5.21.400.100 Export select forms - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.5.21.400.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 - -#FUNCTIONAL_REQUIREMENT -##ACTION: export CSV and confirm column -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -Given I click on the "Make custom selections" button for "Selected instruments and/or events (all records)" report in the My Reports & Exports table -When I select the dropdown option labeled "Text Validation" from the dropdown labeled "Instruments" -And I select the dropdown option labeled "Event (Arm 1: Arm 1)" from the dropdown labeled "Events" -And I click on the button labeled "Export Data" -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -Then I should have a "csv" file that contains the headings below -| record_id | redcap_event_name | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | name | email | text_validation_complete | - -And I click on the button labeled "Close" in the dialog box - diff --git a/Feature Tests/B/Export Data/B.5.21.600 - User Access Restrictions.feature b/Feature Tests/B/Export Data/B.5.21.600 - User Access Restrictions.feature deleted file mode 100644 index 480b484d..00000000 --- a/Feature Tests/B/Export Data/B.5.21.600 - User Access Restrictions.feature +++ /dev/null @@ -1,43 +0,0 @@ -Feature: User Interface: The system shall support the ability to restrict users from exporting data. - -As a REDCap end user -I want to see that export data is functioning as expected - -Scenario: B.5.21.600.100 Restrict users from exporting data - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.5.21.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_5.21.xml", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: export CSV and confirm can export -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -#VERIFY: can export -Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -Then I should have a "csv" file that contains the headings below -| record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | ptname | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | - -#USER_RIGHTS -And I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I select "4_NoAccess_Noexport" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "4_NoAccess_Noexport" row of the column labeled "Username" of the User Rights table - -#FUNCTIONAL_REQUIREMENT -##ACTION: export CSV and confirm can export -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -#VERIFY: cannot see export -And I should NOT see a button labeled "Export data" diff --git a/Feature Tests/B/Export Data_21/B.5.21.100 - Export PHI.feature b/Feature Tests/B/Export Data_21/B.5.21.100 - Export PHI.feature new file mode 100644 index 00000000..210e0e77 --- /dev/null +++ b/Feature Tests/B/Export Data_21/B.5.21.100 - Export PHI.feature @@ -0,0 +1,186 @@ +Feature: User Interface: The system shall support the ability to identify data as containing a protected health information identifier. + + As a REDCap end user + I want to see that export data is functioning as expected + + Scenario: B.5.21.100.100 Limit identified data export + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.5.21.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_5.21.xml", and clicking the "Create Project" button + + #SETUP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "4_NoAccess_Noexport" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see a table header and rows including the following values in the logging table: + | Role name | Username | + | 4_NoAccess_Noexport | test_user1 | + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table header and rows containing the following values in the codebook table: + | Variable/Field Name | Field Label | Field Attributes (Field/Type, Validation, Choices, Calculations, etc. | + | [identifier] | Identifier | text, Identifier | + | [identifier_2] | Identifier 2 | text, Identifier | + | [ptname] | Name | text | + | [radio ] | radio | radio, Identifier | + + ##ACTION: change identifier status + When I click on the link labeled "Project Setup" + And I click on the link labeled "Check for identifiers" + Then I should see a table header and rows containing the following values in the codebook table: + | Variable Name | Field Label | Identifier? | + | identifier | Identifier | select checkbox | + | identifier_2 | Identifier 2 | select checkbox | + | ptname | Name | deselect checkbox | + | radio | radio | select checkbox | + + When I deselect the checkbox labeled "Identifier?" for the variable labeled "identifier_2" + And I select the checkbox labeled "Identifier?" for the variable labeled "ptname" + And I click on the button labeled "Update Identifiers" + Then I should see a table header and rows containing the following values in the codebook table: + | Variable Name | Field Label | Identifier? | + | identifier | Identifier | select checkbox | + | identifier_2 | Identifier 2 | deselect checkbox | + | ptname | Name | select checkbox | + | radio | radio | select checkbox | + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table header and rows containing the following values in the codebook table: + | Variable/Field Name | Field Label | Field Attributes (Field/Type, Validation, Choices, Calculations, etc. | + | [identifier] | Identifier | text, Identifier | + | [identifier_2] | Identifier 2 | text | + | [ptname] | Name | text, Identifier | + | [radio ] | radio | radio, Identifier | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + ##ACTION: export all + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + + ##VERIFY: User can see all variables, including identifier, identifier_2 and name, survey_timestamp, radio button + Then I should have a "csv" file that contains the headings below + | record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | + #Manual: Close the report + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: remove identifiers from export + When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the checkbox button labeled "Remove All Identifier Fields (tagged in Data Dictionary)" + And I click on the checkbox button labeled "Hash the Record ID field (converts record name to an unrecognizable value)" + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + + ##VERIFY: User can see all variables except for [identifier], [ptname], [radio], [redcap_survey_identifer] and check record id #ed + Then I should have a "csv" file that contains the headings below + | record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | data_types_timestamp | textbox | notesbox | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | + + #Manual: Close the report & refresh page + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: add identifiers back and remove unvalidated texts fields and notesbox fields + When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I deselect the checkbox button labeled "Remove All Identifier Fields (tagged in Data Dictionary)" + And I deselect the checkbox button labeled "Hash the Record ID field (converts record name to an unrecognizable value)" + And I click on the checkbox button labeled "Remove unvalidated Text fields (i.e. Text fields other than dates, numbers, etc.)" + And I click on the checkbox button labeled "Remove Notes/Essay box fields" + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + ##VERIFY: User can see all variables except for unvalidated fields and notes fields + Then I should have a "csv" file that contains the headings below + | record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | radio | date_ymd | datetime_ymd_hmss | date_types_complete | + + #Manual: Close the report & refresh page + + And I click on the button labeled "Close" in the dialog box + + FUNCTIONAL_REQUIREMENT + ##ACTION: remove date, datetime fields + When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the checkbox button labeled "Remove all date and datetime fields" + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + ##VERIFY: User can see all variables except for date and datetime fields + Then I should have a "csv" file that contains the headings below + | record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_types_complete | + + #Manual: Close the report & refresh page + + And I click on the button labeled "Close" in the dialog box + + ##ACTION: create record and enter dates in survey mode + When I click the link labeled "Add/Edit Records" + And I click the button labeled "Add new record " + Then I should see "Adding new Record ID 5" + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" on the dropdown button labeled "Survey Options" + Then I should see "Please complete the survey below" + And I should see "2023-08-22" for the field labeled "date YMD" + And I should see "2023-08-22 10:50:40" for the field labeled "datetime YMD HMSS" + + When I click on the button labeled "Submit" + And I click on the button labeled "Close Survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see "Record Home Page" + And I should see a Completed Survey Response Icon for the field the instrument labeled "Data Types" + + FUNCTIONAL_REQUIREMENT + ##ACTION: shift all dates + Given I click on the link labeled "Data Exports, Reports, and Stats" + When I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the checkbox button labeled "Shift all dates by value between 0 and 364 days" + And I click on the checkbox button labeled "Also shift all survey completion timestamps by value between 0 and 364 days" + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + And I should see "All dates within your data have been DATE SHIFTED to an unknown value between 0 and 364 days." + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + ##VERIFY: + #Manual User can see all variables with dates shifted ([date_ymd]=! 2023-08-22) AND ([date_ymd_hmss]=! 2023-08-23 11:48:01) + + Then I should have a "csv" file + And I verify that the timestamp in the column labeled "data_types_timestamp" for record 5 has shifted + And I verify that the date in the column labeled "date_ymd" for record 5 has shifted + And I verify that the datetime in the column labeled "date_ymd_hmss" for record 5 has shifted + + #Manual: Close the report & refresh page + + And I click on the button labeled "Close" in the dialog box + And I logout + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "B.5.21.100.100" + When I click on the link labeled "Data Exports, Reports, and Stats" + #FUNCTIONAL_REQUIREMENT + ##ACTION: limited access + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + And I should NOT see a button labeled "Export Data" for "All data (all records and fields)" report in the My Reports & Exports table +#END \ No newline at end of file diff --git a/Feature Tests/B/Export Data_21/B.5.21.200 - Export Data to External Format.feature b/Feature Tests/B/Export Data_21/B.5.21.200 - Export Data to External Format.feature new file mode 100644 index 00000000..f9a10c95 --- /dev/null +++ b/Feature Tests/B/Export Data_21/B.5.21.200 - Export Data to External Format.feature @@ -0,0 +1,107 @@ +Feature: User Interface: The system shall allow data to be exported in the following formats: CSV, SPSS, SAS, R, STATA, and CDISC ODM (XML). + + As a REDCap end user + I want to see that export data is functioning as expected + + Scenario: B.5.21.200.100 Export data format + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.5.21.200.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 + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export CSV raw + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + Then I should have a csv file with the extension .csv within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export CSV (labels) + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "CSV / Microsoft Excel (labels)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (labels)" format in the dialog box + Then I should have a csv file with the extension .csv within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export SPSS + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "SPSS Statistical Software" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "SPSS Statistical Software" format in the dialog box + Then I should have a sps file with the extension .sps within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export SAS + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "SAS Statistical Software" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "SAS Statistical Software" format in the dialog box + Then I should have a sas file with the extension .sas within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export R + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "R Statistical Software" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "R Statistical Software" format in the dialog box + Then I should have an r file with the extension .r within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export STATA + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "Stata Statistical Software" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "Stata Statistical Software" format in the dialog box + Then I should have a STATA file with the extension .do within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export XML + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "CDISC ODM (XML)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CDISC ODM" format in the dialog box + Then I should have a CDISX ODM file with the extension .xml within the downloads folder + #Manual Close file + + And I click on the button labeled "Close" in the dialog box +#END \ No newline at end of file diff --git a/Feature Tests/B/Export Data_21/B.5.21.300 - REDUNDANT.feature b/Feature Tests/B/Export Data_21/B.5.21.300 - REDUNDANT.feature new file mode 100644 index 00000000..e8ab17c4 --- /dev/null +++ b/Feature Tests/B/Export Data_21/B.5.21.300 - REDUNDANT.feature @@ -0,0 +1,34 @@ +Feature: User Interface: The system shall allow for exporting every field in a database. + + As a REDCap end user + I want to see that export data is functioning as expected + + Scenario: B.5.21.300.100 Export all fields +# #REDUNDANT +# #Tested in #B.2.6.300.100 Assign User Rights - Data Export Rights + +# #SETUP +# Given I login to REDCap with the user "Test_Admin" +#Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") +# And I create a new project named "B.5.21.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_5.21.xml", and clicking the "Create Project" button + +# #FUNCTIONAL_REQUIREMENT +# ##ACTION: export CSV and confirm column +# When I click on the link labeled "Data Exports, Reports, and Stats" +# Then I should see a table row containing the following values in the reports table: +# | A | All data (all records and fields) | + +# Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table +# And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box +# And I click on the button labeled "Export Data" in the dialog box +# Then I should see a dialog containing the following text: "Data export was successful!" + +# Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + +# ##VERIFY: +# Then I should have a "csv" file that contains the headings below +# | record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | pt_name | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | +# #M: Close the report + +# And I click on the button labeled "Close" in the dialog box +# #END diff --git a/Feature Tests/B/Export Data_21/B.5.21.400 - Export Specific Forms.feature b/Feature Tests/B/Export Data_21/B.5.21.400 - Export Specific Forms.feature new file mode 100644 index 00000000..a8afce10 --- /dev/null +++ b/Feature Tests/B/Export Data_21/B.5.21.400 - Export Specific Forms.feature @@ -0,0 +1,33 @@ +Feature: User Interface: The system shall support the ability to select specific forms to export. + + As a REDCap end user + I want to see that export data is functioning as expected + + Scenario: B.5.21.400.100 Export select forms + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.5.21.400.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 + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export CSV and confirm column + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + Given I click on the "Make custom selections" button for "Selected instruments and/or events (all records)" report in the My Reports & Exports table + When I select the dropdown option labeled "Text Validation" from the dropdown labeled "Instruments" + And I select the dropdown option labeled "Event (Arm 1: Arm 1)" from the dropdown labeled "Events" + And I click on the button labeled "Export Data" + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + Then I should have a "csv" file that contains the headings below + | record_id | redcap_event_name | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | name | email | text_validation_complete | + + And I click on the button labeled "Close" in the dialog box +#END \ No newline at end of file diff --git a/Feature Tests/B/Export Data/B.5.21.500 - REDUNDANT.feature b/Feature Tests/B/Export Data_21/B.5.21.500 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Export Data/B.5.21.500 - REDUNDANT.feature rename to Feature Tests/B/Export Data_21/B.5.21.500 - REDUNDANT.feature diff --git a/Feature Tests/B/Export Data_21/B.5.21.600 - User Access Restrictions.feature b/Feature Tests/B/Export Data_21/B.5.21.600 - User Access Restrictions.feature new file mode 100644 index 00000000..6c733ed2 --- /dev/null +++ b/Feature Tests/B/Export Data_21/B.5.21.600 - User Access Restrictions.feature @@ -0,0 +1,45 @@ +Feature: User Interface: The system shall support the ability to restrict users from exporting data. + + As a REDCap end user + I want to see that export data is functioning as expected + + Scenario: B.5.21.600.100 Restrict users from exporting data + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.5.21.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_5.21.xml", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export CSV and confirm can export + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + #VERIFY: can export + Given I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + Then I should have a "csv" file that contains the headings below + | record_id | redcap_repeat_instrument | redcap_repeat_instance | redcap_data_access_group | redcap_survey_identifier | data_types_timestamp | ptname | textbox | radio | notesbox | identifier | identifier_2 | date_ymd | datetime_ymd_hmss | date_types_complete | + + #USER_RIGHTS + And I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I select "4_NoAccess_Noexport" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "4_NoAccess_Noexport" row of the column labeled "Username" of the User Rights table + + #FUNCTIONAL_REQUIREMENT + ##ACTION: export CSV and confirm can export + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + #VERIFY: cannot see export + And I should NOT see a button labeled "Export data" +#END \ No newline at end of file diff --git a/Feature Tests/B/Field Validation/B.4.8.200 - Text Validation.feature b/Feature Tests/B/Field Validation/B.4.8.200 - Text Validation.feature deleted file mode 100644 index 32fd024c..00000000 --- a/Feature Tests/B/Field Validation/B.4.8.200 - Text Validation.feature +++ /dev/null @@ -1,292 +0,0 @@ -Feature: User Interface: The system shall support text validation for text field types: Date (Y-M-D) | Datetime (Y-M-D H:M) | Datetime w/seconds (Y-M-D H:M:S) | Email | Integer | Numbers | Number (1 decimal place - comma as decimal) | Time (HH:MM) | Time (MM:SS) | Time (HH:MM:SS) - -As a REDCap end user -I want to see that Field validation is functioning as expected - -Scenario: B.4.8.200.100 Field validation type - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.4.8.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_4.8.xml", and clicking the "Create Project" button -When I click on the link labeled "My Projects" -And I click on the link labeled "B.4.8.200.100" - -#SETUP _PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box to request a change in project status -Then I should see "Project status: Production" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table header and rows containing the following values in the Data Dictionary Codebook data table: -| Variable / Field Name| Field Label | Field Attributes | -| [date_ymd] | date YMD | text (date_ymd, Min: 2023-08-01, Max: 2023-08-31) | -| [datetime_ymd_hm] | Datetime | text (datetime_ymd, Min: 2023-09-01 01:01, Max: 2023-09-30 01:59)| -| [datetime_ymd_hmss ] | Datetime YMD HMSS| text (datetime_seconds_ymd, Min: 2023-09-01 11:01:01, Max: 2023-09-30 11:01:01)| -| [email] | Email | text (email)| -| [integer] | Integer| text (integer, Min: 1, Max: 100) | -| [number] | Number | text (number, Min: 1, Max: 5)| -| [number_dec] | Number Decimal | text (number_1dp, Min: 1.0, Max: 5.0)| -| [num_comma] | Number Comma | text (number_1dp_comma_decimal, Min: 1,0, Max: 2,0) | -| [time_hhmm] | Time HH:MM | text (time, Min: 08:05, Max: 23:00)| -| [time_mm_ss] | Time MM:SS | text (time_mm_ss, Min: 02:01, Max: 59:00)| -| [time_hhmmss] | Time HH:MM:SS | text (time_hh_mm_ss, Min: 8:01:01, Max: 23:00:00)| - -##ACTION: -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Date Types" for event "Event 1" -Then I should see "Adding new Record ID 5." - -#FUNCTIONAL REQUIREMENT: field validation with accurate selection -When I enter "2023-08-02" for the field labeled "date YMD" -And I enter "2023-09-02 01:03" for the field labeled "Datetime" -And I enter "2023-09-02 01:03:01" for the field labeled "Datetime YMD HMSS" -And I enter "99" for the field labeled "Integer" -And I enter "4" for the field labeled "Number" -And I enter "1.5" for the field labeled "Number Decimal" -And I enter "1,5" for the field labeled "Number Comma" -And I enter "08:10" for the field labeled "Time HH:MM" -And I enter "02:05" for the field labeled "Time MM:SS" -And I enter "08:59:59" for the field labeled "Time HH:MM:SS" -And I click on the button labeled "Save & Stay" -Then I should see "Record ID 5 successfully edited." - -When I click the link labeled "Text Validation" -Then I should see "Editing existing Record ID 5" - -When I enter "email@test.edu" for the field labeled "Email" -And I click on the button labeled "Save & Stay" -Then I should see "Record ID 5 successfully edited." - -##VERIFY_LOG -When I click on the link labeled "Logging" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Update record 5 | email = 'email@test.edu'| -| test_admin | Create record 5 | date_ymd = '2023-08-02'| -| test_admin | Create record 5 | datetime_ymd_hm = '2023-09-02 01:03'| -| test_admin | Create record 5 | datetime_ymd_hmss = '2023-09-02 01:03:01'| -| test_admin | Create record 5 | integer = '99'| -| test_admin | Create record 5 | number = '4'| -| test_admin | Create record 5 | number_dec = '1.5'| -| test_admin | Create record 5 | num_comma = '1,5'| -| test_admin | Create record 5 | time_hhmm = '08:10'| -| test_admin | Create record 5 | time_mm_ss = '02:05'| -| test_admin | Create record 5 | time_hhmmss = '08:59:59'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows including the following values in the report data table: -| Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number| -| 5 | Date Types | 2023-08-02|2023-09-02 01:03| 2023-09-02 01:03:01 | 99 | 4 | - -Then I should see a table header and rows containing the following values in the report data table: -|Record ID| Repeat Instrument| Number Decimal| Number Comma| Time HH:MM | Time MM:SS |Time HH:MM:SS| -| 5 | Data Types | 1.5 | 1,5 | 08:10 | 02:05 | 08:59:59| - -Then I should see a table header and rows containing the following values in the report data table: -|Record ID | Email| -| 5 | email@test.edu | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation with out of range values (works) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Date Types" for event "Event 1" -Then I should see "Adding new Record ID 6" - -When I enter "2023-09-01" for the field labeled "date YMD" -And I click on the field labeled "Datetime" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (2023-08-01 - 2023-08-31). This value is admissible, but you may wish to double check it." in the dialog box -And I click the button labeled "Close" in the dialog box - -When I enter "2023-08-02 01:03" for the field labeled "Datetime" -And I click on the field labeled "Datetime YMD HMSS" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (2023-09-01 01:01 - 2023-09-30 01:59). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "2023-10-02 01:03:01" for the field labeled "Datetime YMD HMSS" -And I click on the field labeled "Integer" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (2023-09-01 11:01:01 - 2023-09-30 11:01:01). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "101" for the field labeled "Integer" -And I click on the field labeled "Number" -Then I should see "Alert" in the dialog box -And I should see " The value you provided is outside the suggested range (1 - 100). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "6" for the field labeled "Number" -And I click on the field labeled "Number Decimal" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (1 - 5). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "5.1" for the field labeled "Number Decimal" -And I click on the field labeled "Number Comma" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (1.0 - 5.0). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "5,1" for the field labeled "Number Comma" -And I click on the field labeled "Time HH:MM" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (1,0 - 2,0). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "07:05" for the field labeled "Time HH:MM" -And I click on the field labeled "Time MM:SS" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (08:05 - 23:00). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "01:59" for the field labeled "Time MM:SS" -And I click on the field labeled "Time HH:MM:SS" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (02:01 - 59:00). This value is admissible, but you may wish to double check it." -And I click the button labeled "Close" in the dialog box - -When I enter "07:59:59" for the field labeled "Time HH:MM:SS" -And I click on the field labeled " MM:SS" -Then I should see "Alert" in the dialog box -And I should see "The value you provided is outside the suggested range (08:01:01 - 23:00:00). This value is admissible, but you may wish to double check it." - -When I click the button labeled "Close" in the dialog box -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 6 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -And I click on the button labeled "Save changes and leave" in the dialog box -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 6 | date_ymd = '2023-09-01'| -| Test_admin | Create record 6 | datetime_ymd_hm = '2023-08-02 01:03'| -| Test_admin | Create record 6 | datetime_ymd_hmss = '2023-10-02 01:03:01'| -| Test_admin | Create record 6 | integer = '101'| -| Test_admin | Create record 6 | number = '6'| -| Test_admin | Create record 6 | number_dec = '5.1'| -| Test_admin | Create record 6 | num_comma = '5,1'| -| Test_admin | Create record 6 | time_hhmm = '07:05'| -| Test_admin | Create record 6 | time_mm_ss = '01:59'| -| Test_admin | Create record 6 | time_hhmmss = '07:59:59'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number| -| 6 | Date Types | 2023-09-01|2023-08-02 01:03| 2023-10-02 01:03:01 | 101 | 6 | - -And I should see a table header and rows containing the following values in the report data table: -|Record ID| Repeat Instrument| Number Decimal| Number Comma| Time HH:MM | Time MM:SS |Time HH:MM:SS| -| 6 | Data Types | 5.1 | 5,1 | 07:05 | 01:59 | 07:59:59| - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation with characters (will not work) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Date Types" for event "Event 1" -Then I should see "Adding new Record ID 7." - -When I enter "TEST" for the field labeled "date YMD" -And I click on the field labeled "Datetime" -Then I should see "Alert" in the dialog box -And I should see " The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Date (Y-M-D)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "date YMD" -And I enter "TEST" for the field labeled "Datetime" -Then I should see "Alert" in the dialog box -And I should see " The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Date (Y-M-D H:M)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Datetime" -And I enter "TEST" for the field labeled "Datetime YMD HMSS" -Then I should see "Alert" in the dialog box -And I should see " The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Date (Y-M-D H:M:S)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Datetime YMD HMSS" -And I enter "TEST" for the field labeled "Integer" -Then I should see "Alert" in the dialog box -And I should see "This value you provided is not an integer. Please try again." in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Integer" -And I enter "TEST" for the field labeled "Number" -Then I should see "Alert" in the dialog box -And I should see "This value you provided is not a number. Please try again." in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Number" -And I enter "TEST" for the field labeled "Number Decimal" -Then I should see "Alert" in the dialog box -And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Number (1 decimal place)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Number Decimal" -And I enter "TEST" for the field labeled "Number Comma" -Then I should see "Alert" in the dialog box -And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Number (1 decimal place - comma as decimal)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Number Comma" -And I enter "TEST" for the field labeled "Time HH:MM" -Then I should see "Alert" in the dialog box -And I should see "The value entered must be a time value in the following format HH:MM within the range 00:00-23:59 (e.g., 04:32 or 23:19)." in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Time HH:MM" -And I enter "TEST" for the field labeled "Time MM:SS" -Then I should see "Alert" in the dialog box -And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Time (MM:SS)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Time MM:SS" -And I enter "TEST" for the field labeled "Time HH:MM:SS" -Then I should see "Alert" in the dialog box -And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Time (HH:MM:SS)" in the dialog box -And I click the button labeled "Close" in the dialog box - -When I delete "TEST" for the field labeled "Time HH:MM:SS" -And I click on the link labeled "Text Validation" -And I click on the button labeled "Save changes and leave" in the dialog box -And I enter "TEST" for the field labeled "Email" -Then I should see "Alert" in the dialog box -And I should see "This field must be a valid email address (like joe@user.com). Please re-enter it now." in the dialog box -And I click the button labeled "Close" in the dialog box - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -And I click on the button labeled "Save changes and leave" in the dialog box -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number| -| 7 | Date Types | | | | | | - -Then I should see a table header and rows containing the following values in the report data table: -|Record ID| Repeat Instrument| Number Decimal| Number Comma| Time HH:MM | Time MM:SS |Time HH:MM:SS| -| 7 | Data Types | | | | | | - -Then I should see a table header and rows containing the following values in the report data table: -|Record ID| Name | Email| -| 7 | Name | | - diff --git a/Feature Tests/B/Field Validation/B.4.8.300 - Field Ranges.feature b/Feature Tests/B/Field Validation/B.4.8.300 - Field Ranges.feature deleted file mode 100644 index 9b898e74..00000000 --- a/Feature Tests/B/Field Validation/B.4.8.300 - Field Ranges.feature +++ /dev/null @@ -1,718 +0,0 @@ -Feature: User Interface: The system shall support ranges for the following data types: Date (Y-M-D) | Datetime (Y-M-D H:M) | Datetime w/seconds (Y-M-D H:M:S) | Integer | Number | Number (1 Decimal Place, comma as decimal) | Time (HH:MM) | Time (MM:SS) | Time (HH:MM:SS) - -As a REDCap end user -I want to see that Field validation is functioning as expected - -Scenario: B.4.8.300.100 Field range validation - - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.4.8.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_4.8.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - - -#SETUP_DRAFT MODE -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -## ACTION:M date YMD validation -When I click on the instrument labeled "Data Types" -And I click on the edit image for the field labeled "date YMD" -Then I should see the dropdown option "Date (Y-M-D)" is selected for the field labeled "Validation? (optional)" -And I should see "2023-08-01" in the field labeled "Minimum:" -And I should see "2023-08-31" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Datetime validation -When I click on the edit image for the field labeled "Datetime" -Then I should see the dropdown option "Datetime (Y-M-D H:M)" is selected for the field labeled "Validation? (optional)" -And I should see "2023-09-01 01:01" in the field labeled "Minimum:" -And I should see "2023-09-30 01:59" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Datetime YMD HMSS validation -When I click on the edit image for the field labeled "Datetime YMD HMSS" -Then I should see the dropdown option "Datetime (Y-M-D H:M:S)" is selected for the field labeled "Validation? (optional)" -And I should see "2023-09-01 11:01:01" in the field labeled "Minimum:" -And I should see "2023-09-30 11:01:01" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Time HH:MM validation -When I click on the edit image for the field labeled "Time HH:MM" -Then I should see the dropdown option "Time (HH:MM)" is selected for the field labeled "Validation? (optional)" -And I should see "08:05" in the field labeled "Minimum:" -And I should see "23:00" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Time HH:MM:SS validation -When I click on the edit image for the field labeled "Time HH:MM:SS" -Then I should see the dropdown option "Time (HH:MM:SS)" is selected for the field labeled "Validation? (optional)" -And I should see "08:01:01" in the field labeled "Minimum:" -And I should see "23:00:00" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Time MM:SS validation -When I click on the link labeled "Designer" -And I click on the instrument labeled "Data Types" -And I click on the edit image for the field labeled "Time MM:SS" -Then I should see the dropdown option "Time (MM:SS)" is selected for the field labeled "Validation? (optional)" -And I should see "02:01" in the field labeled "Minimum:" -And I should see "59:00" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Integer validation -When I click on the edit image for the field labeled "Integer" -Then I should see the dropdown option "Integer" is selected for the field labeled "Validation? (optional)" -And I should see "1" in the field labeled "Minimum:" -And I should see "100" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Number validation -When I I click on the edit image for the field labeled "Number" -Then I should see the dropdown option "Number" is selected for the field labeled "Validation? (optional)" -And I should see "1" in the field labeled "Minimum:" -And I should see "5" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Number 1 Decimal validation -When I click on the edit image for the field labeled "Number Decimal" -Then I should see the dropdown option "Number Comma" is selected for the field labeled "Validation? (optional)" -And I should see "1.0" in the field labeled "Minimum:" -And I should see "5.0" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -## ACTION:M Number Comma validation -When I click on the edit image for the field labeled "Number Comma" -Then I should see the dropdown option "Number (1 decimal place - comma as decimal)" is selected for the field labeled "Validation? (optional)" -And I should see "1,0" in the field labeled "Minimum:" -And I should see "2,0" in the field labeled "Maximum:" -And I click on the button labeled "Save" in the dialog box - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation within range text -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -Then I should see "Adding new Record ID 5. (Instance #1) " - -When I enter "2023-08-02" in the field labeled "date YMD" -And I enter "2023-09-02 12:12" in the field labeled "Datetime" -And I enter "2023-09-02 12:12:12" in the field labeled "Datetime YMD HMSS" -And I enter "11:11" in the field labeled "Time HH:MM" -And I enter "11:11:11" in the field labeled "Time HH:MM:SS" -And I enter "11:11" in the field labeled "Time MM:SS" -And I enter "3" in the field labeled "Integer" -And I enter "3" in the field labeled "Number" -And I enter "1.5" in the field labeled "Number Decimal" -And I enter "1,5" in the field labeled "Number Comma" -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 5 successfully added." - -##VERIFY_LOG -When I click on the link labeled " Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 5 | date_ymd = '2023-08-02'| -| Test_admin | Create record 5 | datetime_ymd_hm = '2023-09-02 12:12'| -| Test_admin | Create record 5 | datetime_ymd_hmss = '2023-09-02 12:12:12'| -| Test_admin | Create record 5 | integer = '3'| -| Test_admin | Create record 5 | number = '3'| -| Test_admin | Create record 5 | number_dec = '1.5'| -| Test_admin | Create record 5 | num_comma = '1,5'| -| Test_admin | Create record 5 | time_hhmm = '11:11'| -| Test_admin | Create record 5 | time_mm_ss = '11:11'| -| Test_admin | Create record 5 | time_hhmmss = '11:11:11'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number| -| 5 | Data Types | 2023-08-02 | 2023-09-02 12:12 | 2023-09-02 12:12:12 | 3 | 3 | - -And I should see a table header and rows containing the following values in the report data table: -|Record ID| Repeat Instrument| Number Decimal| Number Comma| Time HH:MM | Time MM:SS |Time HH:MM:SS| -| 5 | Data Types | 1.5 | 1,5 | 11:11 | 11:11 | 11:11:11 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (date YMD) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2022-08-02" in the field labeled "date YMD" -Then I should see "The value you provided is outside the suggested range (2023-08-01 - 2023-08-31). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 6 successfully added" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record6 (Event 1 (Arm 1: Arm 1)) | date_ymd = '2022-08-02'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | date YMD | -| 6 | Data Types | 2022-08-02 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Datetime) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2022-08-02 12:12" in the field labeled "Datetime" -Then I should see "The value you provided is outside the suggested range (2023-09-01 01:01 - 2023-09-30 01:59). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 7 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 7 (Event 1 (Arm 1: Arm 1)) | datetime_ymd_hm = '2022-08-02 12:12'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Datetime | -| 7 | Data Types | 2022-08-02 12:12| - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Datetime YMD HMSS) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2022-08-02 12:12:12" in the field labeled "Datetime YMD HMSS" -Then I should see "The value you provided is outside the suggested range (2023-09-01 11:01:01 - 2023-09-30 11:01:01). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 8 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 8 (Event 1 (Arm 1: Arm 1)) | datetime_ymd_hmss = '2022-08-02 12:12:12'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Datetime YMD HMSS| -| 8 | Data Types | 2022-08-02 12:12:12 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Time HH:MM) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "07:07" in the field labeled "Time HH:MM" -Then I should see "The value you provided is outside the suggested range (08:05 - 23:00). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 9 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table row containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 9 (Event 1 (Arm 1: Arm 1)) | time_hhmm = '07:07'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Time HH:MM | -| 9 | Data Types | 07:07 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Time HH:MM:SS) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "07:07:07" in the field labeled " Time HH:MM:SS" -Then I should see "The value you provided is outside the suggested range (08:01:01 - 23:00:00). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 10 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 10 (Event 1 (Arm 1: Arm 1)) | time_hhmmss = '07:07:07'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Time HH:MM:SS | -| 10 | Date Types | 07:07:07 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Time MM:SS) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "01:00" in the field labeled "Time MM:SS" -Then I should see "The value you provided is outside the suggested range (02:01 - 59:00). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 11 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 11 (Event 1 (Arm 1: Arm 1)) | time_mm_ss = '01:00'| - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | MM:SS | -| 11 | Data Types | 01:00 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Integer) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "0" in the field labeled "Integer" -Then I should see "The value you provided is outside the suggested range (1 - 100). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 12 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 12 (Event 1 (Arm 1: Arm 1)) | integer = '0' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Integer| -| 12 | Data Types | 0 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Number) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "0" in the field labeled "Number" -Then I should see "The value you provided is outside the suggested range (1 - 5). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 13 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 13 (Event 1 (Arm 1: Arm 1)) | number = '0' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Number| -| 13 | Data Types | 0 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Number Decimal) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "0.0" in the field labeled "Number Decimal" -Then I should see "The value you provided is outside the suggested range (1.0 - 5.0). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 14 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 14 (Event 1 (Arm 1: Arm 1)) | number_dec = '0.0' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Number Decimal| -| 14 | Data Types | 0.0 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside lower bound (Number Comma) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "0,0" in the field labeled "Number Comma" -Then I should see "The value you provided is outside the suggested range (1,0 - 2,0). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 15 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 15 (Event 1 (Arm 1: Arm 1)) | num_comma = '0,0' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Number Comma| -| 15 | Data Types | 0,0 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (date YMD) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2024-08-02" in the field labeled "date YMD" -Then I should see "The value you provided is outside the suggested range (2023-08-01 - 2023-08-31). This value is admissible, but you may wish to double check it." in the dialog box -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 16 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 16 (Event 1 (Arm 1: Arm 1)) | date_ymd = '2024-08-02' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | date YMD | -| 16 | Data Types | 2024-08-02 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Datetime) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2024-08-02 12:12" in the field labeled "Datetime" -Then I should see "The value you provided is outside the suggested range (2023-09-01 01:01 - 2023-09-30 01:59). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 17 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 17 (Event 1 (Arm 1: Arm 1)) | datetime_ymd_hm = '2024-08-02 12:12' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Datetime | -| 17 | Data Types | 2024-08-02 12:12| - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Datetime YMD HMSS) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2024-08-02 12:12:12" in the field labeled "Datetime YMD HMSS" -Then I should see "The value you provided is outside the suggested range (2023-09-01 11:01:01 - 2023-09-30 11:01:01). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 18 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 18 (Event 1 (Arm 1: Arm 1)) |datetime_ymd_hmss = '2024-08-02 12:12:12' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Datetime YMD HMSS | -| 18 | Date Types | 2024-08-02 12:12:12| - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Time HH:MM) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "23:07" in the field labeled "Time HH:MM" -Then I should see "The value you provided is outside the suggested range (08:05 - 23:00). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 19 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 19 (Event 1 (Arm 1: Arm 1)) | time_hhmm = '23:07' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Time HH:MM | -| 19 | Data Types | 23:07 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Time HH:MM:SS) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "23:07:07" in the field labeled " Time HH:MM:SS" -Then I should see "The value you provided is outside the suggested range (08:01:01 - 23:00:00). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 20 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 20 (Event 1 (Arm 1: Arm 1)) | time_hhmmss = '23:07:07' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Time HH:MM:SS | -| 20 | Data Types | 23:07:07 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Time MM:SS) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "59:01" in the field labeled "Time MM:SS" -Then I should see "The value you provided is outside the suggested range (02:01 - 59:00). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 21 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 21 (Event 1 (Arm 1: Arm 1)) | time_mm_ss = '59:01' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Time MM:SS | -| 21 | Data Types | 59:01 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Integer) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "200" in the field labeled "Integer" -Then I should see "The value you provided is outside the suggested range (1 - 100). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 22 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 22 (Event 1 (Arm 1: Arm 1)) | integer = '200' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Integer | -| 22 | Data Types | 200 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Number) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "10" in the field labeled "Number" -Then I should see "The value you provided is outside the suggested range (1 - 5). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 23 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 23 (Event 1 (Arm 1: Arm 1)) | number = '10' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Number | -| 23 | Data Types | 10 | - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Number Decimal) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "6.0" in the field labeled "Number Decimal" -Then I should see "The value you provided is outside the suggested range (1.0 - 5.0). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 24 successfully added" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 24 (Event 1 (Arm 1: Arm 1)) | number_dec = '6.0' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Number Decimal | -| 24 | Data Types | 6.0 | - - -#FUNCTIONAL REQUIREMENT -##ACTION - Verify field validation outside upper bound (Number Comma) -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "3,0" in the field labeled "Number Comma" -Then I should see "The value you provided is outside the suggested range (1,0 - 2,0). This value is admissible, but you may wish to double check it." in the dialog box - -When I click the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "Record ID 25 successfully added." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows containing the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| Test_admin | Create record 25 (Event 1 (Arm 1: Arm 1)) | num_comma = '3,0' | - -##VERIFY_DE -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| A | All data (all records and fields) | - -When I click on the button labeled "View Report" -Then I should see a table header and rows containing the following values in the report data table: -| Record ID | Repeat Instrument | Number Comma | -| 25 | Data Types | 3,0 | diff --git a/Feature Tests/B/Field Validation_8/B.4.8.200 - Text Validation.feature b/Feature Tests/B/Field Validation_8/B.4.8.200 - Text Validation.feature new file mode 100644 index 00000000..81ff0907 --- /dev/null +++ b/Feature Tests/B/Field Validation_8/B.4.8.200 - Text Validation.feature @@ -0,0 +1,295 @@ +Feature: User Interface: The system shall support text validation for text field types: Date (Y-M-D) | Datetime (Y-M-D H:M) | Datetime w/seconds (Y-M-D H:M:S) | Email | Integer | Numbers | Number (1 decimal place - comma as decimal) | Time (HH:MM) | Time (MM:SS) | Time (HH:MM:SS) + + As a REDCap end user + I want to see that Field validation is functioning as expected + + Scenario: B.4.8.200.100 Field validation type + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.8.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_4.8.xml", and clicking the "Create Project" button + When I click on the link labeled "My Projects" + And I click on the link labeled "B.4.8.200.100" + + #SETUP _PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "Move to Production Status" in the dialog box to request a change in project status + Then I should see Project status: "Production" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table header and rows containing the following values in the codebook table: + | Variable / Field Name | Field Label | Field Attributes | + | [date_ymd] | date YMD | text (date_ymd, Min: 2023-08-01, Max: 2023-08-31) | + | [datetime_ymd_hm] | Datetime | text (datetime_ymd, Min: 2023-09-01 01:01, Max: 2023-09-30 01:59) | + | [datetime_ymd_hmss ] | Datetime YMD HMSS | text (datetime_seconds_ymd, Min: 2023-09-01 11:01:01, Max: 2023-09-30 11:01:01) | + | [email] | Email | text (email) | + | [integer] | Integer | text (integer, Min: 1, Max: 100) | + | [number] | Number | text (number, Min: 1, Max: 5) | + | [number_dec] | Number Decimal | text (number_1dp, Min: 1.0, Max: 5.0) | + | [num_comma] | Number Comma | text (number_1dp_comma_decimal, Min: 1,0, Max: 2,0) | + | [time_hhmm] | Time HH:MM | text (time, Min: 08:05, Max: 23:00) | + | [time_mm_ss] | Time MM:SS | text (time_mm_ss, Min: 02:01, Max: 59:00) | + | [time_hhmmss] | Time HH:MM:SS | text (time_hh_mm_ss, Min: 8:01:01, Max: 23:00:00) | + + ##ACTION: + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Date Types" for event "Event 1" + Then I should see "Adding new Record ID 5." + + #FUNCTIONAL REQUIREMENT: field validation with accurate selection + When I enter "2023-08-02" for the field labeled "date YMD" + And I enter "2023-09-02 01:03" for the field labeled "Datetime" + And I enter "2023-09-02 01:03:01" for the field labeled "Datetime YMD HMSS" + And I enter "99" for the field labeled "Integer" + And I enter "4" for the field labeled "Number" + And I enter "1.5" for the field labeled "Number Decimal" + And I enter "1,5" for the field labeled "Number Comma" + And I enter "08:10" for the field labeled "Time HH:MM" + And I enter "02:05" for the field labeled "Time MM:SS" + And I enter "08:59:59" for the field labeled "Time HH:MM:SS" + And I click on the button labeled "Save & Stay" + Then I should see "Record ID 5 successfully edited." + + When I click on the link labeled "Text Validation" + Then I should see "Editing existing Record ID 5" + + When I enter "email@test.edu" for the field labeled "Email" + And I click on the button labeled "Save & Stay" + Then I should see "Record ID 5 successfully edited." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 5 | email = 'email@test.edu' | + | test_user1 | Create record 5 | date_ymd = '2023-08-02' | + | test_user1 | Create record 5 | datetime_ymd_hm = '2023-09-02 01:03' | + | test_user1 | Create record 5 | datetime_ymd_hmss = '2023-09-02 01:03:01' | + | test_user1 | Create record 5 | integer = '99' | + | test_user1 | Create record 5 | number = '4' | + | test_user1 | Create record 5 | number_dec = '1.5' | + | test_user1 | Create record 5 | num_comma = '1,5' | + | test_user1 | Create record 5 | time_hhmm = '08:10' | + | test_user1 | Create record 5 | time_mm_ss = '02:05' | + | test_user1 | Create record 5 | time_hhmmss = '08:59:59' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows including the following values in the report data table: + | Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number | + | 5 | Date Types | 2023-08-02 | 2023-09-02 01:03 | 2023-09-02 01:03:01 | 99 | 4 | + + And I should see a table header and rows containing the following values in the report data table: + | Record ID | Repeat Instrument | Number Decimal | Number Comma | Time HH:MM | Time MM:SS | Time HH:MM:SS | + | 5 | Data Types | 1.5 | 1,5 | 08:10 | 02:05 | 08:59:59 | + + And I should see a table header and rows containing the following values in the report data table: + | Record ID | Email | + | 5 | email@test.edu | + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation with out of range values (works) + Given I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Date Types" for event "Event 1" + Then I should see "Adding new Record ID 6" + + When I enter "2023-09-01" for the field labeled "date YMD" + And I click on the field labeled "Datetime" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (2023-08-01 - 2023-08-31). This value is admissible, but you may wish to double check it." in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I enter "2023-08-02 01:03" for the field labeled "Datetime" + And I click on the field labeled "Datetime YMD HMSS" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (2023-09-01 01:01 - 2023-09-30 01:59). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "2023-10-02 01:03:01" for the field labeled "Datetime YMD HMSS" + And I click on the field labeled "Integer" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (2023-09-01 11:01:01 - 2023-09-30 11:01:01). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "101" for the field labeled "Integer" + And I click on the field labeled "Number" + Then I should see "Alert" in the dialog box + And I should see " The value you provided is outside the suggested range (1 - 100). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "6" for the field labeled "Number" + And I click on the field labeled "Number Decimal" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (1 - 5). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "5.1" for the field labeled "Number Decimal" + And I click on the field labeled "Number Comma" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (1.0 - 5.0). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "5,1" for the field labeled "Number Comma" + And I click on the field labeled "Time HH:MM" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (1,0 - 2,0). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "07:05" for the field labeled "Time HH:MM" + And I click on the field labeled "Time MM:SS" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (08:05 - 23:00). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "01:59" for the field labeled "Time MM:SS" + And I click on the field labeled "Time HH:MM:SS" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (02:01 - 59:00). This value is admissible, but you may wish to double check it." + And I click on the button labeled "Close" in the dialog box + + When I enter "07:59:59" for the field labeled "Time HH:MM:SS" + And I click on the field labeled " MM:SS" + Then I should see "Alert" in the dialog box + And I should see "The value you provided is outside the suggested range (08:01:01 - 23:00:00). This value is admissible, but you may wish to double check it." + + When I click on the button labeled "Close" in the dialog box + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 6 successfully added." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + And I click on the button labeled "Save changes and leave" in the dialog box + Then I should see a table header and rows containing the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Create record 6 | date_ymd = '2023-09-01' | + | test_user1 | Create record 6 | datetime_ymd_hm = '2023-08-02 01:03' | + | test_user1 | Create record 6 | datetime_ymd_hmss = '2023-10-02 01:03:01' | + | test_user1 | Create record 6 | integer = '101' | + | test_user1 | Create record 6 | number = '6' | + | test_user1 | Create record 6 | number_dec = '5.1' | + | test_user1 | Create record 6 | num_comma = '5,1' | + | test_user1 | Create record 6 | time_hhmm = '07:05' | + | test_user1 | Create record 6 | time_mm_ss = '01:59' | + | test_user1 | Create record 6 | time_hhmmss = '07:59:59' | + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number | + | 6 | Date Types | 2023-09-01 | 2023-08-02 01:03 | 2023-10-02 01:03:01 | 101 | 6 | + + And I should see a table header and rows containing the following values in the report data table: + | Record ID | Repeat Instrument | Number Decimal | Number Comma | Time HH:MM | Time MM:SS | Time HH:MM:SS | + | 6 | Data Types | 5.1 | 5,1 | 07:05 | 01:59 | 07:59:59 | + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation with characters (will not work) + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Date Types" for event "Event 1" + Then I should see "Adding new Record ID 7." + + When I enter "TEST" for the field labeled "date YMD" + And I click on the field labeled "Datetime" + Then I should see "Alert" in the dialog box + And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Date (Y-M-D)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "date YMD" + And I enter "TEST" for the field labeled "Datetime" + Then I should see "Alert" in the dialog box + And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Date (Y-M-D H:M)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Datetime" + And I enter "TEST" for the field labeled "Datetime YMD HMSS" + Then I should see "Alert" in the dialog box + And I should see " The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Date (Y-M-D H:M:S)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Datetime YMD HMSS" + And I enter "TEST" for the field labeled "Integer" + Then I should see "Alert" in the dialog box + And I should see "This value you provided is not an integer. Please try again." in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Integer" + And I enter "TEST" for the field labeled "Number" + Then I should see "Alert" in the dialog box + And I should see "This value you provided is not a number. Please try again." in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Number" + And I enter "TEST" for the field labeled "Number Decimal" + Then I should see "Alert" in the dialog box + And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Number (1 decimal place)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Number Decimal" + And I enter "TEST" for the field labeled "Number Comma" + Then I should see "Alert" in the dialog box + And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Number (1 decimal place - comma as decimal)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Number Comma" + And I enter "TEST" for the field labeled "Time HH:MM" + Then I should see "Alert" in the dialog box + And I should see "The value entered must be a time value in the following format HH:MM within the range 00:00-23:59 (e.g., 04:32 or 23:19)." in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Time HH:MM" + And I enter "TEST" for the field labeled "Time MM:SS" + Then I should see "Alert" in the dialog box + And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Time (MM:SS)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Time MM:SS" + And I enter "TEST" for the field labeled "Time HH:MM:SS" + Then I should see "Alert" in the dialog box + And I should see "The value you provided could not be validated because it does not follow the expected format. Please try again. Required format: Time (HH:MM:SS)" in the dialog box + And I click on the button labeled "Close" in the dialog box + + When I delete "TEST" for the field labeled "Time HH:MM:SS" + And I click on the button labeled "Save & Exit Form" + And I click the bubble labeled "Text Validation" for event "Event 1" + And I enter "TEST" for the field labeled "Email" + Then I should see "Alert" in the dialog box + And I should see "This field must be a valid email address (like joe@user.com). Please re-enter it now." in the dialog box + And I click on the button labeled "Close" in the dialog box + And I click on the button labeled "Save & Exit Form" + + ##VERIFY_DE + When I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the button labeled "Save changes and leave" in the dialog box + Then I should see a table row containing the following values in the reports table: + | A | All data (all records and fields) | + + When I click on the button labeled "View Report" + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Repeat Instrument | date YMD | Datetime | Datetime YMD HMSS | Integer | Number | + | 7 | Date Types | | | | | | + + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Repeat Instrument | Number Decimal | Number Comma | Time HH:MM | Time MM:SS | Time HH:MM:SS | + | 7 | Data Types | | | | | | + + Then I should see a table header and rows containing the following values in the report data table: + | Record ID | Name | Email | + | 7 | Name | | +#END \ No newline at end of file diff --git a/Feature Tests/B/Field Validation_8/B.4.8.300 - Field Ranges.feature b/Feature Tests/B/Field Validation_8/B.4.8.300 - Field Ranges.feature new file mode 100644 index 00000000..2d52434d --- /dev/null +++ b/Feature Tests/B/Field Validation_8/B.4.8.300 - Field Ranges.feature @@ -0,0 +1,188 @@ +Feature: User Interface: The system shall support ranges for the following data types: Date (Y-M-D) | Datetime (Y-M-D H:M) | Datetime w/seconds (Y-M-D H:M:S) | Integer | Number | Number (1 Decimal Place, comma as decimal) | Time (HH:MM) | Time (MM:SS) | Time (HH:MM:SS) + + As a REDCap end user + I want to see that Field validation is functioning as expected + + Scenario: B.4.8.300.100 Field range validation + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.8.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_4.8.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see Project status: "Production" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table header and rows containing the following values in the codebook table: + | Variable / Field Name | Field Label | Field Attributes | + | [date_ymd] | date YMD | text (date_ymd, Min: 2023-08-01, Max: 2023-08-31) | + | [datetime_ymd_hm] | Datetime | text (datetime_ymd, Min: 2023-09-01 01:01, Max: 2023-09-30 01:59) | + | [datetime_ymd_hmss ] | Datetime YMD HMSS | text (datetime_seconds_ymd, Min: 2023-09-01 11:01:01, Max: 2023-09-30 11:01:01) | + | [email] | Email | text (email) | + | [integer] | Integer | text (integer, Min: 1, Max: 100) | + | [number] | Number | text (number, Min: 1, Max: 5) | + | [number_dec] | Number Decimal | text (number_1dp, Min: 1.0, Max: 5.0) | + | [num_comma] | Number Comma | text (number_1dp_comma_decimal, Min: 1,0, Max: 2,0) | + | [time_hhmm] | Time HH:MM | text (time, Min: 08:05, Max: 23:00) | + | [time_mm_ss] | Time MM:SS | text (time_mm_ss, Min: 02:01, Max: 59:00) | + | [time_hhmmss] | Time HH:MM:SS | text (time_hh_mm_ss, Min: 8:01:01, Max: 23:00:00) | + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation within range text + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Date Types" for event "Event 1" + Then I should see "Adding new Record ID 5." + + When I enter "2023-08-02" in the field labeled "date YMD" + And I enter "2023-09-02 12:12" in the field labeled "Datetime" + And I enter "2023-09-02 12:12:12" in the field labeled "Datetime YMD HMSS" + And I enter "3" in the field labeled "Integer" + And I enter "3" in the field labeled "Number" + And I enter "1.5" in the field labeled "Number Decimal" + And I enter "1,5" in the field labeled "Number Comma" + And I enter "11:11" in the field labeled "Time HH:MM" + And I enter "11:11:11" in the field labeled "Time HH:MM:SS" + And I enter "11:11" in the field labeled "Time MM:SS" + And I click the button labeled "Save and Exit Form" + Then I should see "Record ID 5 successfully added." + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation outside lower bound + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Date Types" for event "Event 1" + And I enter "2022-08-02" in the field labeled "date YMD" + Then I should see "The value you provided is outside the suggested range (2023-08-01 - 2023-08-31). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "2022-08-02 12:12" in the field labeled "Datetime" + Then I should see "The value you provided is outside the suggested range (2023-09-01 01:01 - 2023-09-30 01:59). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "2022-08-02 12:12:12" in the field labeled "Datetime YMD HMSS" + Then I should see "The value you provided is outside the suggested range (2023-09-01 11:01:01 - 2023-09-30 11:01:01). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "0" in the field labeled "Integer" + Then I should see "The value you provided is outside the suggested range (1 - 100). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "0" in the field labeled "Number" + Then I should see "The value you provided is outside the suggested range (1 - 5). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "0.0" in the field labeled "Number Decimal" + Then I should see "The value you provided is outside the suggested range (1.0 - 5.0). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "0,0" in the field labeled "Number Comma" + Then I should see "The value you provided is outside the suggested range (1,0 - 2,0). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "07:07" in the field labeled "Time HH:MM" + Then I should see "The value you provided is outside the suggested range (08:05 - 23:00). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "01:00" in the field labeled "Time MM:SS" + Then I should see "The value you provided is outside the suggested range (02:01 - 59:00). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "07:07:07" in the field labeled " Time HH:MM:SS" + Then I should see "The value you provided is outside the suggested range (08:01:01 - 23:00:00). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I click the button labeled "Save and Exit Form" + Then I should see "Record ID 6 successfully added." + + + #FUNCTIONAL REQUIREMENT + ##ACTION - Verify field validation outside upper bound + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Date Types" for event "Event 1" + And I enter "2024-08-02" in the field labeled "date YMD" + Then I should see "The value you provided is outside the suggested range (2023-08-01 - 2023-08-31). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "2024-08-02 12:12" in the field labeled "Datetime" + Then I should see "The value you provided is outside the suggested range (2023-09-01 01:01 - 2023-09-30 01:59). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "2024-08-02 12:12:12" in the field labeled "Datetime YMD HMSS" + Then I should see "The value you provided is outside the suggested range (2023-09-01 11:01:01 - 2023-09-30 11:01:01). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "200" in the field labeled "Integer" + Then I should see "The value you provided is outside the suggested range (1 - 100). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "10" in the field labeled "Number" + Then I should see "The value you provided is outside the suggested range (1 - 5). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "6.0" in the field labeled "Number Decimal" + Then I should see "The value you provided is outside the suggested range (1.0 - 5.0). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "3,0" in the field labeled "Number Comma" + Then I should see "The value you provided is outside the suggested range (1,0 - 2,0). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "23:07" in the field labeled "Time HH:MM" + Then I should see "The value you provided is outside the suggested range (08:05 - 23:00). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "59:01" in the field labeled "Time MM:SS" + Then I should see "The value you provided is outside the suggested range (02:01 - 59:00). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I enter "23:07:07" in the field labeled " Time HH:MM:SS" + Then I should see "The value you provided is outside the suggested range (08:01:01 - 23:00:00). This value is admissible, but you may wish to double check it." in the dialog box + + When I click the button labeled "Close" in the dialog box + And I click the button labeled "Save and Exit Form" + Then I should see "Record ID 7 successfully added." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table row containing the following values in the logging table: + |Username |Action| List of Data Changes| + |test_user1| Update record 7| time_hhmm = '23:07'| + |test_user1| Update record 7| time_mm_ss = '59:01'| + |test_user1| Update record 7| time_hhmmss = '23:07:07'| + |test_user1| Update record 7| date_ymd = '2024-08-02'| + |test_user1| Update record 7| datetime_ymd_hm = '2024-08-02 12:12'| + |test_user1| Update record 7| datetime_ymd_hmss = '2024-08-02 12:12:12'| + |test_user1| Update record 7| integer = '200'| + |test_user1| Update record 7| number = '10'| + |test_user1| Update record 7| number_dec = '6.0'| + |test_user1| Update record 7| num_comma = '30'| + |test_user1| Update record 6| date_ymd = '2022-08-02'| + |test_user1| Update record 6| datetime_ymd_hm = '2022-08-02 12:12'| + |test_user1| Update record 6| datetime_ymd_hmss = '2022-08-02 12:12:12'| + |test_user1| Update record 6| integer = '0'| + |test_user1| Update record 6| number = '0'| + |test_user1| Update record 6| number_dec = '0.0'| + |test_user1| Update record 6| num_comma = '00'| + |test_user1| Update record 6| time_hhmm = '01:00'| + |test_user1| Update record 6| time_mm_ss = '00:07'| + |test_user1| Update record 6| time_hhmmss = '07:07:07'| + |test_user1| Update record 5| date_ymd = '2023-08-02'| + |test_user1| Update record 5| datetime_ymd_hm = '2023-09-02 12:12'| + |test_user1| Update record 5| datetime_ymd_hmss = '2023-09-02 12:12:12'| + |test_user1| Update record 5| integer = '3'| + |test_user1| Update record 5| number = '3'| + |test_user1| Update record 5| number_dec = '1.5'| + |test_user1| Update record 5| num_comma = '15'| + |test_user1| Update record 5| time_hhmm = '11:11'| + |test_user1| Update record 5| time_mm_ss = '11:11'| + |test_user1| Update record 5 time_hhmmss = '11:11:11'| +#END \ No newline at end of file diff --git a/Feature Tests/B/Logging Module/B.2.23.100 - Record Changes.feature b/Feature Tests/B/Logging Module/B.2.23.100 - Record Changes.feature deleted file mode 100644 index 608dc923..00000000 --- a/Feature Tests/B/Logging Module/B.2.23.100 - Record Changes.feature +++ /dev/null @@ -1,23 +0,0 @@ -Feature: User Interface: The logging module shall record all changes with username, timestamp, actions, and list of data changes/fields exported. - -As a REDCap end user -I want to see that Logging Module is functioning as expected - -Scenario: B.2.23.100.100 Logging module records changes -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.23.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Logging Module -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Move project to Production status| diff --git a/Feature Tests/B/Logging Module/B.2.23.200 - Export Audit Trail.feature b/Feature Tests/B/Logging Module/B.2.23.200 - Export Audit Trail.feature deleted file mode 100644 index 3e04ea61..00000000 --- a/Feature Tests/B/Logging Module/B.2.23.200 - Export Audit Trail.feature +++ /dev/null @@ -1,26 +0,0 @@ -Feature: User Interface: The logging module shall provide the ability to export audit trail. - -As a REDCap end user -I want to see that Logging Module is functioning as expected - -Scenario: B.2.23.200.100 Logging module export -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.23.200.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 click on the link labeled "My Projects" -And I click on the link labeled "B.2.23.200.100" - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Logging Module -When I click on the link labeled "Logging" -And I click on the button labeled "All logging" -##VERIFY -Then I should have a "csv" file that contains the headings below -| Time/Date | Username | Action | List of Data Changes OR Fields Exported| Record | diff --git a/Feature Tests/B/Logging Module/B.2.23.300 - Filtering Ability.feature b/Feature Tests/B/Logging Module/B.2.23.300 - Filtering Ability.feature deleted file mode 100644 index 648002c9..00000000 --- a/Feature Tests/B/Logging Module/B.2.23.300 - Filtering Ability.feature +++ /dev/null @@ -1,29 +0,0 @@ -Feature: User Interface: The logging module shall provide the ability to filter by the following: (Event | Username | Record | DAG | Time Range) - -As a REDCap end user -I want to see that Logging Module is functioning as expected - -Scenario: B.2.23.300.100 Logging module filter function -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.23.300.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 click on the link labeled "My Projects" -And I click on the link labeled "B.2.23.300.100" - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Logging Module -When I click on the link labeled "Logging" -##VERIFY -Then I should see "Filter by event" -And I should see "Filter by user name" -And I should see "Filter by record" -And I should see "Filter by records in a DAG" -And I should see "Filter by time range from" -And I should see "Displaying events" diff --git a/Feature Tests/B/Logging Module/B.2.23.400 - Module Security.feature b/Feature Tests/B/Logging Module/B.2.23.400 - Module Security.feature deleted file mode 100644 index db5cc20e..00000000 --- a/Feature Tests/B/Logging Module/B.2.23.400 - Module Security.feature +++ /dev/null @@ -1,41 +0,0 @@ -Feature: User Interface: The logging module shall be secure, tamper-proof, and not susceptible to unauthorized modifications. - -As a REDCap end user -I want to see that Logging Module is functioning as expected - -Scenario: B.2.23.400.100 Logging module security -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.2.23.400.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 click on the link labeled "My Projects" -And I click on the link labeled "B.2.23.400.100" - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see "Project status: Production" - -#USER_RIGHTS -And I click on the link labeled "User Rights" -And I enter "Test_User1" in field labeled "Add with custom rights" -And I verify the User Right named "Logging" is unchecked -And I click on the button labeled "Add user" -Then I should see "User "test_user1" was successfully added" - -#FUNCTIONAL REQUIREMENT -##ACTION: Logging Module - Admin unable to edit -When I click on the link labeled "Logging" -##VERIFY -Then I should not see Edit/Modify/Upload -And I logout - -#FUNCTIONAL REQUIREMENT -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -##ACTION: Logging Module - Restricted access to module -And I click on the link labeled "B.2.23.400.100" -##VERIFY -Then I should NOT see the link labeled "Logging" - diff --git a/Feature Tests/B/Logging Module_23/B.2.23.100 - Record Changes.feature b/Feature Tests/B/Logging Module_23/B.2.23.100 - Record Changes.feature new file mode 100644 index 00000000..4b970688 --- /dev/null +++ b/Feature Tests/B/Logging Module_23/B.2.23.100 - Record Changes.feature @@ -0,0 +1,25 @@ +Feature: User Interface: The logging module shall record all changes with username, timestamp, actions, and list of data changes/fields exported. + + As a REDCap end user + I want to see that Logging Module is functioning as expected + + Scenario: B.2.23.100.100 Logging module records changes + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.23.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Logging Module + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Move project to Production status | +#END \ No newline at end of file diff --git a/Feature Tests/B/Logging Module_23/B.2.23.200 - Export Audit Trail.feature b/Feature Tests/B/Logging Module_23/B.2.23.200 - Export Audit Trail.feature new file mode 100644 index 00000000..f814bf57 --- /dev/null +++ b/Feature Tests/B/Logging Module_23/B.2.23.200 - Export Audit Trail.feature @@ -0,0 +1,28 @@ +Feature: User Interface: The logging module shall provide the ability to export audit trail. + + As a REDCap end user + I want to see that Logging Module is functioning as expected + + Scenario: B.2.23.200.100 Logging module export + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.23.200.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 click on the link labeled "My Projects" + And I click on the link labeled "B.2.23.200.100" + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Logging Module + When I click on the link labeled "Logging" + And I click on the button labeled "All logging" + ##VERIFY + Then I should have a "csv" file that contains the headings below + | Time/Date | Username | Action | List of Data Changes OR Fields Exported | Record | +#END \ No newline at end of file diff --git a/Feature Tests/B/Logging Module_23/B.2.23.300 - Filtering Ability.feature b/Feature Tests/B/Logging Module_23/B.2.23.300 - Filtering Ability.feature new file mode 100644 index 00000000..0e6076e2 --- /dev/null +++ b/Feature Tests/B/Logging Module_23/B.2.23.300 - Filtering Ability.feature @@ -0,0 +1,31 @@ +Feature: User Interface: The logging module shall provide the ability to filter by the following: (Event | Username | Record | DAG | Time Range) + + As a REDCap end user + I want to see that Logging Module is functioning as expected + + Scenario: B.2.23.300.100 Logging module filter function + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.23.300.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 click on the link labeled "My Projects" + And I click on the link labeled "B.2.23.300.100" + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Logging Module + When I click on the link labeled "Logging" + ##VERIFY + Then I should see "Filter by event" + And I should see "Filter by user name" + And I should see "Filter by record" + And I should see "Filter by records in a DAG" + And I should see "Filter by time range from" + And I should see "Displaying events" +#END \ No newline at end of file diff --git a/Feature Tests/B/Logging Module_23/B.2.23.400 - Module Security.feature b/Feature Tests/B/Logging Module_23/B.2.23.400 - Module Security.feature new file mode 100644 index 00000000..8b7edf92 --- /dev/null +++ b/Feature Tests/B/Logging Module_23/B.2.23.400 - Module Security.feature @@ -0,0 +1,42 @@ +Feature: User Interface: The logging module shall be secure, tamper-proof, and not susceptible to unauthorized modifications. + + As a REDCap end user + I want to see that Logging Module is functioning as expected + + Scenario: B.2.23.400.100 Logging module security + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.2.23.400.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 click on the link labeled "My Projects" + And I click on the link labeled "B.2.23.400.100" + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see "Project status: Production" + + #USER_RIGHTS + And I click on the link labeled "User Rights" + And I enter "Test_User1" in field labeled "Add with custom rights" + And I verify the User Right named "Logging" is unchecked + And I click on the button labeled "Add user" + Then I should see "User "test_user1" was successfully added" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Logging Module - Admin unable to edit + When I click on the link labeled "Logging" + ##VERIFY + Then I should not see Edit/Modify/Upload + And I logout + + #FUNCTIONAL REQUIREMENT + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + ##ACTION: Logging Module - Restricted access to module + And I click on the link labeled "B.2.23.400.100" + ##VERIFY + Then I should NOT see the link labeled "Logging" +#END \ No newline at end of file diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.300 - Enable & Disable Longitudinal Data Collection.feature b/Feature Tests/B/Longitudinal Project Setup/B.4.27.300 - Enable & Disable Longitudinal Data Collection.feature deleted file mode 100644 index bf1d2943..00000000 --- a/Feature Tests/B/Longitudinal Project Setup/B.4.27.300 - Enable & Disable Longitudinal Data Collection.feature +++ /dev/null @@ -1,82 +0,0 @@ -Feature: User Interface: Longitudinal Project Settings: The system shall support enabling and disabling longitudinal data collection. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.4.27.300.100 Change project longitudinal status -##SETUP_DEV -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.4.27.300.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 - -##ACTION Verify event exist ##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "Event 2" in arm labeled "Arm 1: Arm 1" - -#FUNCTIONAL REQUIREMENT -##ACTION Disable longitudinal -When I click on the link labeled "Project Setup" -And I click on the button labeled "Disable" on the field labeled "Use longitudinal data collection with defined events?" -And I click on the button labeled "Disable" in the dialog box -Then I should see the button labeled "Enable" on the field labeled "Use longitudinal data collection with defined events?" - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "Text Validation" -I should NOT see event "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Modify project settings | - -#FUNCTIONAL REQUIREMENT -##ACTION Enable longitudinal -When I click on the link labeled "Project Setup" -And I click on the button labeled "Enable" on the field labeled "Use longitudinal data collection with defined events?" -Then I should see "Saved!" - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "Event 1" in arm labeled "Arm 1: Arm 1" -And I should see "Event 2" in arm labeled "Arm 1: Arm 1" -And I should see "Event 3" in arm labeled "Arm 1: Arm 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Modify project settings | - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Verify longitudinal button is disabled in production mode for user -When I click on the link labeled "Project Setup" -##VERIFY -Then I verify the button labeled "Disable" for the field labeled "Use longitudinal data collection with defined events?" is disabled -And I logout - -Given I login to REDCap with the user "Test_Admin" -##ACTION Admin disable longitudinal while in production -When I click on the button labeled "Disable" for the field labeled "Use longitudinal data collection with defined events?" -And I click on the button labeled "Disable" in the dialog box -Then I should see "Saved!" -And I should see the button labeled "Enable" on the field labeled "Use longitudinal data collection with defined events?" - - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "Text Validation" -I should NOT see "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Modify project settings | diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.400 - Event Designation.feature b/Feature Tests/B/Longitudinal Project Setup/B.4.27.400 - Event Designation.feature deleted file mode 100644 index 2811e641..00000000 --- a/Feature Tests/B/Longitudinal Project Setup/B.4.27.400 - Event Designation.feature +++ /dev/null @@ -1,67 +0,0 @@ -Feature: User Interface: Longitudinal Project Settings: The system shall support the ability to designate data collection instruments for defined events in each arm. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.4.27.400.100 Ability to designate data collection instruments for defined events in each arm -##SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.4.27.400.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 - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -##SETUP -When I click on the link labeled "Project Setup" -And I click on the button labeled "Define My Events" -And I click on the link labeled "Arm 1" -Then I should see the button labeled "Add new event" - - -#FUNCTIONAL REQUIREMENT -##ACTION Add new events - -When I enter "Event 4" into the input field labeled "Event Label" -And I enter "4" in the input field labeled "Days Offset" -And I click on the button labeled "Add new event" -Then I should see "Event 4" - -When I click on the link labeled "Arm 2" -And I enter "Event 2" into the input field labeled "Event Label" -And I enter "2" in the input field labeled "Days Offset" -And I click on the button labeled "Add new event" -Then I should see "Event 2" - -##ACTION Designate Instruments -When I click on the button labeled "Designate Instruments for My Events" -And I click on the link labeled "Arm 1" -And I click on the button labeled "Begin Editing" -And I enable the Data Collection Instrument named "Data Types" for the Event named "Event 4" -And I click on the button labeled "Save" -Then I should see Data Collection Instrument named "Data Types" enabled for the Event named "Event 4" - -When I click on the link labeled "Arm 2" -And I click on the button labeled "Begin Editing" -And I enable the Data Collection Instrument named "Survey" for the Event named "Event 2" -And I click on the button labeled "Save" -Then I should see Data Collection Instrument named "Survey" enabled for the Event named "Event 2" - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create event (Event: Event 2, Arm: Arm Two, Days Offset: 2, Offset Range: -0/+0) | -| test_admin | Manage/Design | Create event (Event: Event 4, Arm: Arm 1, Days Offset: 4, Offset Range: -0/+0) | - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "Arm 1" -Then I should see Data Collection Instrument named "Data Types" enabled for the Event named "Event 4" - -When I click on the link labeled "Arm 2" -Then I should see Data Collection Instrument named "Survey" enabled for the Event named "Event 2" - diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.100 - REDUNDANT.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.100 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Longitudinal Project Setup/B.4.27.100 - REDUNDANT.feature rename to Feature Tests/B/Longitudinal Project Setup_27/B.4.27.100 - REDUNDANT.feature diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.200 - REDUNDANT.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.200 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Longitudinal Project Setup/B.4.27.200 - REDUNDANT.feature rename to Feature Tests/B/Longitudinal Project Setup_27/B.4.27.200 - REDUNDANT.feature diff --git a/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.300 - Enable & Disable Longitudinal Data Collection.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.300 - Enable & Disable Longitudinal Data Collection.feature new file mode 100644 index 00000000..c4f49a23 --- /dev/null +++ b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.300 - Enable & Disable Longitudinal Data Collection.feature @@ -0,0 +1,84 @@ +Feature: User Interface: Longitudinal Project Settings: The system shall support enabling and disabling longitudinal data collection. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.4.27.300.100 Change project longitudinal status + ##SETUP_DEV + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.27.300.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 + + ##ACTION Verify event exist ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "Event 2" in arm labeled "Arm 1: Arm 1" + + #FUNCTIONAL REQUIREMENT + ##ACTION Disable longitudinal + When I click on the link labeled "Project Setup" + And I click on the button labeled "Disable" on the field labeled "Use longitudinal data collection with defined events?" + And I click on the button labeled "Disable" in the dialog box + Then I should see the button labeled "Enable" on the field labeled "Use longitudinal data collection with defined events?" + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "Text Validation" + I should NOT see event "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Modify project settings | + + #FUNCTIONAL REQUIREMENT + ##ACTION Enable longitudinal + When I click on the link labeled "Project Setup" + And I click on the button labeled "Enable" on the field labeled "Use longitudinal data collection with defined events?" + Then I should see "Saved!" + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "Event 1" in arm labeled "Arm 1: Arm 1" + And I should see "Event 2" in arm labeled "Arm 1: Arm 1" + And I should see "Event 3" in arm labeled "Arm 1: Arm 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Modify project settings | + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Verify longitudinal button is disabled in production mode for user + When I click on the link labeled "Project Setup" + ##VERIFY + Then I verify the button labeled "Disable" for the field labeled "Use longitudinal data collection with defined events?" is disabled + And I logout + + Given I login to REDCap with the user "Test_Admin" + ##ACTION Admin disable longitudinal while in production + When I click on the button labeled "Disable" for the field labeled "Use longitudinal data collection with defined events?" + And I click on the button labeled "Disable" in the dialog box + Then I should see "Saved!" + And I should see the button labeled "Enable" on the field labeled "Use longitudinal data collection with defined events?" + + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "Text Validation" + I should NOT see "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Modify project settings | +#END \ No newline at end of file diff --git a/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.400 - Event Designation.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.400 - Event Designation.feature new file mode 100644 index 00000000..15fbe4ae --- /dev/null +++ b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.400 - Event Designation.feature @@ -0,0 +1,70 @@ +Feature: User Interface: Longitudinal Project Settings: The system shall support the ability to designate data collection instruments for defined events in each arm. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.4.27.400.100 Ability to designate data collection instruments for defined events in each arm + ##SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.4.27.400.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 + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + ##SETUP + When I click on the link labeled "Project Setup" + And I click on the button labeled "Define My Events" + And I click on the link labeled "Arm 1" + Then I should see the button labeled "Add new event" + + + #FUNCTIONAL REQUIREMENT + ##ACTION Add new events + + When I enter "Event 4" into the input field labeled "Event Label" + And I enter "4" in the input field labeled "Days Offset" + And I click on the button labeled "Add new event" + Then I should see "Event 4" + + When I click on the link labeled "Arm 2" + And I enter "Event 2" into the input field labeled "Event Label" + And I enter "2" in the input field labeled "Days Offset" + And I click on the button labeled "Add new event" + Then I should see "Event 2" + + ##ACTION Designate Instruments + When I click on the link labeled "Designate Instruments for My Events" + And I click on the link labeled "Arm 1" + And I click on the button labeled "Begin Editing" + And I enable the Data Collection Instrument named "Data Types" for the Event named "Event 4" + And I click on the button labeled "Save" + Then I should see Data Collection Instrument named "Data Types" enabled for the Event named "Event 4" + + When I click on the link labeled "Arm 2" + And I click on the button labeled "Begin Editing" + And I enable the Data Collection Instrument named "Survey" for the Event named "Event 2" + And I click on the button labeled "Save" + Then I should see Data Collection Instrument named "Survey" enabled for the Event named "Event 2" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Perform instrument-event mappings | + | test_admin | Manage/Design | Perform instrument-event mappings | + | test_admin | Manage/Design | Create event (Event: Event 2, Arm: Arm Two, Days Offset: 2, Offset Range: -0/+0) | + | test_admin | Manage/Design | Create event (Event: Event 4, Arm: Arm 1, Days Offset: 4, Offset Range: -0/+0) | + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "Arm 1" + Then I should see Data Collection Instrument named "Data Types" enabled for the Event named "Event 4" + + When I click on the link labeled "Arm 2" + Then I should see Data Collection Instrument named "Survey" enabled for the Event named "Event 2" +#END \ No newline at end of file diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.500 - REDUNDANT.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.500 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Longitudinal Project Setup/B.4.27.500 - REDUNDANT.feature rename to Feature Tests/B/Longitudinal Project Setup_27/B.4.27.500 - REDUNDANT.feature diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.600 - REDUNDANT.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.600 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Longitudinal Project Setup/B.4.27.600 - REDUNDANT.feature rename to Feature Tests/B/Longitudinal Project Setup_27/B.4.27.600 - REDUNDANT.feature diff --git a/Feature Tests/B/Longitudinal Project Setup/B.4.27.700 - REDUNDANT.feature b/Feature Tests/B/Longitudinal Project Setup_27/B.4.27.700 - REDUNDANT.feature similarity index 100% rename from Feature Tests/B/Longitudinal Project Setup/B.4.27.700 - REDUNDANT.feature rename to Feature Tests/B/Longitudinal Project Setup_27/B.4.27.700 - REDUNDANT.feature diff --git a/Feature Tests/B/My Projects/B.6.13.100 - My Projects Dashboard.feature b/Feature Tests/B/My Projects/B.6.13.100 - My Projects Dashboard.feature deleted file mode 100644 index 376d3d23..00000000 --- a/Feature Tests/B/My Projects/B.6.13.100 - My Projects Dashboard.feature +++ /dev/null @@ -1,15 +0,0 @@ -Feature: User Interface: The system shall support a My Project dashboard page containing the following information: Project Title (only projects the user has access to will be displayed) | Records (number of records currently in the database for a project) | Fields (number of fields currently in the database for a project) | Instruments (forms and/or surveys) | Type (classic, longitudinal) | Status (Development, Production, Inactive or Archived) - -As a REDCap end user -I want to see that My Project is functioning as expected - -Scenario: B.6.13.100.100 My Project dashboard -#FUNCTIONAL_REQUIREMENT -Given I login to REDCap with the user "Test_Admin" -When I click on the link labeled "My Projects" -Then I should see "Project Title" -Then I should see "Records" -Then I should see "Fields" -Then I should see "Instruments" -Then I should see "Type" -Then I should see "Status" diff --git a/Feature Tests/B/My Projects/B.6.13.200 - Archived Projects.feature b/Feature Tests/B/My Projects/B.6.13.200 - Archived Projects.feature deleted file mode 100644 index 867e73f5..00000000 --- a/Feature Tests/B/My Projects/B.6.13.200 - Archived Projects.feature +++ /dev/null @@ -1,24 +0,0 @@ -Feature: User Interface: The system shall support the ability to show or hide archived projects on the My Projects page. - -As a REDCap end user -I want to see that My Project is functioning as expected - -Scenario: B.6.13.200.100 Hide archived projects -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.13.200.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 click on the link labeled "Other Functionality" -And I click on the button "Mark project as Completed" -And I click on the button "Mark project as Completed" in the dialog box -And I click on the button "OK" in the pop-up box -Then I should see "My Projects" -And I should NOT see "B.6.13.200.100" - -When I click the link labeled "Show Completed Projects" -Then I should see "B.6.13.200.100" - -When I click on the link labeled "B.6.13.200.100" -And I click the button labeled "Restore Project" in the dialog box -Then I should see "PROJECT RESTORED!" in the dialog box - -When I click the link labeled "Close" in the dialog box -Then I should see "Project status: Development" diff --git a/Feature Tests/B/My Projects_13/B.6.13.100 - My Projects Dashboard.feature b/Feature Tests/B/My Projects_13/B.6.13.100 - My Projects Dashboard.feature new file mode 100644 index 00000000..9cfa2f22 --- /dev/null +++ b/Feature Tests/B/My Projects_13/B.6.13.100 - My Projects Dashboard.feature @@ -0,0 +1,16 @@ +Feature: User Interface: The system shall support a My Project dashboard page containing the following information: Project Title (only projects the user has access to will be displayed) | Records (number of records currently in the database for a project) | Fields (number of fields currently in the database for a project) | Instruments (forms and/or surveys) | Type (classic, longitudinal) | Status (Development, Production, Inactive or Archived) + + As a REDCap end user + I want to see that My Project is functioning as expected + + Scenario: B.6.13.100.100 My Project dashboard + #FUNCTIONAL_REQUIREMENT + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + Then I should see "Project Title" + Then I should see "Records" + Then I should see "Fields" + Then I should see "Instruments" + Then I should see "Type" + Then I should see "Status" +#END \ No newline at end of file diff --git a/Feature Tests/B/My Projects_13/B.6.13.200 - Archived Projects.feature b/Feature Tests/B/My Projects_13/B.6.13.200 - Archived Projects.feature new file mode 100644 index 00000000..f16a3ab0 --- /dev/null +++ b/Feature Tests/B/My Projects_13/B.6.13.200 - Archived Projects.feature @@ -0,0 +1,26 @@ +Feature: User Interface: The system shall support the ability to show or hide archived projects on the My Projects page. + + As a REDCap end user + I want to see that My Project is functioning as expected + + Scenario: B.6.13.200.100 Hide archived projects + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.13.200.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 click on the link labeled "Other Functionality" + And I click on the button "Mark project as Completed" + And I click on the button "Mark project as Completed" in the dialog box + And I click on the button "OK" in the pop-up box + Then I should see "My Projects" + And I should NOT see "B.6.13.200.100" + + When I click the link labeled "Show Completed Projects" + Then I should see "B.6.13.200.100" + + When I click on the link labeled "B.6.13.200.100" + And I click the button labeled "Restore Project" in the dialog box + Then I should see "PROJECT RESTORED!" in the dialog box + + When I click the link labeled "Close" in the dialog box + Then I should see "Project status: Development" +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer/B.6.7.100 - New Instruments via Data Dictionary.feature b/Feature Tests/B/Online Designer/B.6.7.100 - New Instruments via Data Dictionary.feature deleted file mode 100644 index 4a12e40f..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.100 - New Instruments via Data Dictionary.feature +++ /dev/null @@ -1,77 +0,0 @@ -Feature: Form Creation: The system shall support the creation of new data collection instruments using the Data Dictionary. - -As a REDCap end user -I want to see that project Designer is functioning as expected - -Scenario: B.6.7.100.100 Data dictionary export/import function - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I click on the link labeled "New Project" -And I enter "B.6.7.100.100" into the input field labeled "Project title" -And I select "Practice / Just for fun" on the dropdown field labeled "Project's purpose" -And I click on the radio labeled "Empty project (blank slate)" -And I click on the button labeled "Create Project" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Download data dictionary -When I click on the link labeled "Dictionary" -And I click on the link labeled "Download the current Data Dictionary" to download a file -##VERIFY -Then I should see the field name labeled "record_id" - -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I upload a "csv" format file located at "dictionaries/Project1xml_DataDictionary.csv", by clicking the button near "Upload your Data Dictionary file" to browse for the file, and clicking the button labeled "Upload" to upload the file - -##VERIFY -Then I should see "Your document was uploaded successfully and awaits your confirmation below." -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -When I click on the link labeled "Online Designer" -Then I should see "Text Validation" -And I should see "Consent" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Upload data dictionary | - -##ACTION: Upload data dictionary with removed form and Reordered form (#B.6.7.500.200 & B.6.7.600.200) -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Data Dictionary File 2.csv" -And I click on the button labeled "Upload File" -##VERIFY -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -When I click on the link labeled "Online Designer" -Then I should see "Text Validation" -And I should NOT see "Consent" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Upload data dictionary | - -##ACTION: Unable to upload data dictionary with Errors -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Data Dictionary File 3.csv" -And I click on the button labeled "Upload File" -##VERIFY -Then I should see "Errors found in your Data Dictionary: " -And I click on the button labeled "RETURN TO PREVIOUS PAGE" -Then I should see "Steps for making project changes" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Upload data dictionary | diff --git a/Feature Tests/B/Online Designer/B.6.7.1000 - Field Multiple Choice.feature b/Feature Tests/B/Online Designer/B.6.7.1000 - Field Multiple Choice.feature deleted file mode 100644 index 6feca25e..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1000 - Field Multiple Choice.feature +++ /dev/null @@ -1,77 +0,0 @@ -Feature: Field Creation: The system shall support the creation and manual coding for multiple choice dropdown list (single answer). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1000.100 Creation of multiple choice dropdown list (single answer) through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1000.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1000.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: dropdown field creation -Given When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -Then I should see a dropdown field labeled "Select a Type of Field" - -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new Multiple Choice - Drop-down List (Single Answer) field labeled "Multiple Choice Dropdown Manual" with the variable name "multiple_dropdown_manual" -And I enter "5, DDChoice5" on the first row of the input field labeled "Choices (one choice per line)" -And I enter "7, DDChoice7" on the second row of the input field labeled "Choices (one choice per line)" -And I enter "6, DDChoice6" on the third row of the input field labeled "Choices (one choice per line)" -And I click on the button labeled "Save" -Then I should see the field labeled "Multiple Choice Dropdown Manual" -And I should see the dropdown field with the options "DDChoice5","DDChoice7" and "DDChoice6" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [multiple_dropdown_manual] | Multiple Choice Dropdown Manual | dropdown | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -Scenario: B.6.7.1000.200 Creation of multiple choice dropdown list (single answer) through Data Dictionary upload (#CROSSFUNCTIONAL - B.6.7.100.100) - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1000.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [multiple_dropdown_manual] | Multiple Choice Dropdown Manual | dropdown | diff --git a/Feature Tests/B/Online Designer/B.6.7.1100 - Field Radio.feature b/Feature Tests/B/Online Designer/B.6.7.1100 - Field Radio.feature deleted file mode 100644 index 7a688105..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1100 - Field Radio.feature +++ /dev/null @@ -1,77 +0,0 @@ -Feature: Field Creation: The system shall support the creation and manual coding for multiple choice radio buttons (single answer). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1100.100 Creation of multiple choice radio buttons (single answer) through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1100.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio button labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Radio field creation -Given When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -And I click on the dropdown field labeled "Select a Type of Field" -And I add a new Multiple Choice - Radio Buttons (Single Answer) field labeled "Radio Button Manual" with the variable name "radio_button_manual" -And I enter "9..9, Choice99" on the first row of the input field labeled "Choices (one choice per line)" -And I enter "100, Choice100" on the second row of the input field labeled "Choices (one choice per line)" -And I enter "101, Choice101" on the third row of the input field labeled "Choices (one choice per line)" -And I enter "Abc123, Choice Abc123" on the fourth row of the input field labeled "Choices (one choice per line)" -And I click on the button labeled "Save" -Then I should see the field labeled "Radio Button Manual" -And I should see the radio button options "Choice99","Choice100", "Choice101, Choice ABc123" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [radio_button_manual] | Radio Button Manual | radio | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -Scenario: B.6.7.1100.200 Creation of multiple choice radio buttons (single answer) through Data Dictionary upload (#CROSSFUNCTIONAL - B.6.7.100.100) - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1100.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [radio_button_manual] | Radio Button Manual | radio | - diff --git a/Feature Tests/B/Online Designer/B.6.7.1200 - Field Checkbox.feature b/Feature Tests/B/Online Designer/B.6.7.1200 - Field Checkbox.feature deleted file mode 100644 index 7ee69e15..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1200 - Field Checkbox.feature +++ /dev/null @@ -1,78 +0,0 @@ -Feature: Field Creation: The system shall support the creation of Checkboxes (multiple answers). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1200.100 Creation of Checkboxes (multiple answers) through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1200.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: checkbox field creation -Given When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new Checkboxes (multiple answers) labeled "Checkbox" with the variable name "checkbox" -And I enter "1, Checkbox1" on the first row of the input field labeled "Choices (one choice per line)" -And I enter "2, Checkbox2" on the second row of the input field labeled "Choices (one choice per line)" -And I enter "3, Checkbox3" on the third row of the input field labeled "Choices (one choice per line)" -And I enter "Abc123, Checkbox Abc123" on the fourth row of the input field labeled "Choices (one choice per line)" - -And I click on the button labeled "Save" -Then I should see the field labeled "Checkbox" -And I should see the checkbox button options "Checkbox1", "Checkbox2", " Checkbox3", and "Checkbox Abc123" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [checkbox] | Checkbox | checkbox | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -Scenario: B.6.7.1200.200 Creation of Checkboxes (multiple answers) through Data Dictionary upload - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1200.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [checkbox] | Checkbox | checkbox | - diff --git a/Feature Tests/B/Online Designer/B.6.7.1300 - Field Signature.feature b/Feature Tests/B/Online Designer/B.6.7.1300 - Field Signature.feature deleted file mode 100644 index 54692016..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1300 - Field Signature.feature +++ /dev/null @@ -1,74 +0,0 @@ -Feature: Field Creation: The system shall support the creation of Signature (draw signature with mouse or finger). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1300.100 Creation of Signature field through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1300.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Signature field creation -Given When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -Then I should see a dropdown field labeled "Select a Type of Field" - -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new Signature (draw signature with mouse or finger) labeled "Signature" with the variable name "signature" -And I click on the button labeled "Save" -Then I should see the field labeled "Signature" -And I should see the link labeled "Add signature" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [signature] | Signature | file (signature) | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -Scenario: B.6.7.1300.200 Creation of Signature field through Data Dictionary upload - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1300.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [signature | Signature | file (signature) | diff --git a/Feature Tests/B/Online Designer/B.6.7.1400 - Field File Upload.feature b/Feature Tests/B/Online Designer/B.6.7.1400 - Field File Upload.feature deleted file mode 100644 index 7994c2ff..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1400 - Field File Upload.feature +++ /dev/null @@ -1,72 +0,0 @@ -Feature: Field Creation: The system shall support the creation of File upload (for users to upload file). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1400.100 Creation of File upload field through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1400.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: checkbox field creation -Given When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new File Upload (for users to upload files) labeled "File Upload" with the variable name "file_upload" -And I click on the button labeled "Save" -Then I should see the field labeled "File Upload" -And I should see the link labeled "Upload file" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [file_upload] | File Upload | file | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -Scenario: B.6.7.1400.200 Creation of File upload field through Data Dictionary upload - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1400.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [file_upload] | File Upload | file | diff --git a/Feature Tests/B/Online Designer/B.6.7.1500 - Field Descriptive Text.feature b/Feature Tests/B/Online Designer/B.6.7.1500 - Field Descriptive Text.feature deleted file mode 100644 index 54875693..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1500 - Field Descriptive Text.feature +++ /dev/null @@ -1,92 +0,0 @@ -Feature: Field Creation: The system shall support the creation of Descriptive Text (with optional Image/File Attachment. - - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1500.100 Creation of Descriptive field through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1500.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Signature field creation -Given I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new Descriptive Text (with optional Image/Video/Audio/File Attachment) labeled "Descriptive Text with File" with the variable name "descriptive_text_file" -And I click on the link labeled "Upload file" -And I upload the file labeled "B.6.7.1500_Upload File" -And I click on the button labeled "Upload file" in the dialog box -Then I should see "Document was successfully uploaded! " - -When I click on the button labeled "Close" in the dialog box -And I click on the button labeled "Save" -##VERIFY -Then I should see the field labeled "Descriptive Text with File" -And I should see the link labeled "B.6.7.1500_Upload File" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [descriptive_text_file] | Descriptive Text with File | descriptive | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -##ACTION: Download file from descriptive field -Given I click on the link labeled "Add/Edit Records" -When I click on the button labeled "Add new record" -Then I should see the field labeled "Descriptive Text with File" -And I should see "Attachment: " -And I should see a link labeled "B.6.7.1500_Upload File" - -When I download the file by clicking on the link labeled " B.6.7.1500_Upload File" -##VERIFY -Then I should have a word file downloaded - - -Scenario: B.6.7.1500.200 Creation of Descriptive field through Data Dictionary upload - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1500.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [descriptive_text_file] | Descriptive Text with File | descriptive | diff --git a/Feature Tests/B/Online Designer/B.6.7.1600 - Field New Section.feature b/Feature Tests/B/Online Designer/B.6.7.1600 - Field New Section.feature deleted file mode 100644 index 5f9ea233..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1600 - Field New Section.feature +++ /dev/null @@ -1,84 +0,0 @@ -Feature: Field Creation: The system shall support the creation of Begin New Section (with optional text). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1600.100 Creation of Section through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1600.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: section break creation -When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -Then I should see a dropdown field labeled "Select a Type of Field" - -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new Begin New Section (with optional text) labeled "Section Break" -And I click on the button labeled "Save" -Then I should see the "Sorry, but Section Headers cannot be the last field on a data entry form" -And I click on the button labeled "OK" -And I should NOT see the field labeled "Section Break" - -When I click on the button labeled "Add Field" below the field labeled "Record ID" -And I select the dropdown option "Notes Box (Paragraph Text)" from the dropdown field with the placeholder text "Select a Type of Field" -Given And I add a new Notes box field labeled "Notes Box" with the variable name "notesbox" -And I click on the button labeled "Save" -#VERIFY -Then I should see the field labeled "Notes Box" - -When I click on the button labeled "Add Field" below the field labeled "Record ID" -And I click on the dropdown field labeled "Select a Type of Field" -And I add a new Begin New Section (with optional text) labeled "Section Break" -And I click on the button labeled "Save" -Then I should see a yellow field labeled "Section Break" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY: section break -When I click on the link labeled "Add / Edit Records" -And I click on the button labeled "Add new record" -And I click on the link labeled "Data Types" -Then I should see a section break labeled "Section Break" - -Scenario: B.6.7.1600.200 Creation of section through Data Dictionary upload - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1600.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY: section break -When I click on the link labeled "Add / Edit Records" -And I click on the button labeled "Add new record" -And I click on the link labeled "Data Types" -Then I should see a section break labeled "Date" diff --git a/Feature Tests/B/Online Designer/B.6.7.1700 - Identifier Fields.feature b/Feature Tests/B/Online Designer/B.6.7.1700 - Identifier Fields.feature deleted file mode 100644 index 97aae42f..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1700 - Identifier Fields.feature +++ /dev/null @@ -1,100 +0,0 @@ -Feature: Field Creation: The system shall support marking a data entry field as an identifier. - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1700.100 Designating field as identifier through the Online Designer -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1700.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 - -#SETUP_USER_RIGHTS -And I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table -And I logout - -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1700.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Online Designer" -Then I should see "Data Collection Instruments" - -#FUNCTIONAL_REQUIREMENT -##ACTION: designate identifier through online designer -When I click on the instrument labeled "Data Types" -And I click on the button labeled "Add Field" at the bottom of the instrument -Then I should see a dropdown field labeled "Select a Type of Field" - -When I click on the dropdown field labeled "Select a Type of Field" -And I add a new Text Box (Short Text, Number, Date/Time ,...) labeled "Identifier 3" -And I enter "identifier_3" -And I select the radio button labeled "Yes" for the field labeled "Identifier" -And I click on the button labeled "Save" -Then I should see the field labeled "Identifier 3" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [identifier_3] | Identifier 3| text, Identifier| - - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Create project field | - -Scenario: B.6.7.1700.200 Designating field as identifier through Project Setup -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1700.200" 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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1700.200" -And I click on the link labeled "Project Setup" -And I click on the link labeled "Check For Identifiers" -Then I should see "Check For Identifiers" - -FUNCTIONAL_REQUIREMENT -##ACTION: designate identifier -When I click on the checkbox for the Variable Name labeled "name" -And I click on the button labeled "Update Identifiers" -Then I should see "Your changes have been saved!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row including the following values in the codebook table: -| [name] | Name | text, Identifier| -| [identifier] | Identifier | text, Identifier| - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Tag new identifier fields | - -Scenario: B.6.7.1700.300 Designating field as identifier through Data Dictionary upload -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1700.300" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [identifier] | Identifier| text, Identifier| diff --git a/Feature Tests/B/Online Designer/B.6.7.1800 - Required Fields.feature b/Feature Tests/B/Online Designer/B.6.7.1800 - Required Fields.feature deleted file mode 100644 index e19a347d..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1800 - Required Fields.feature +++ /dev/null @@ -1,71 +0,0 @@ -Feature: Field Creation: The system shall support marking a data entry field as required. - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1800.100 Designating field as required through the Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1800.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 - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1800.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION Designating field as required -When I click on the instrument labeled "Data Types" -And I click on the button labeled "Add Field" at the bottom of the instrument -Given I add a new Text Box field labeled "Required 2" with the variable name "required_2" -And I mark the field required -And I click on the button labeled "Save" -Then I should see "*must provide value" on the next Text Box field labeled "Required 2" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [required_2] | Required 2 | text, Required | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -Scenario: B.6.7.1800.200 Designating field as required through Data Dictionary upload - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1800.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [required] | Required | text, Required | diff --git a/Feature Tests/B/Online Designer/B.6.7.1900 - Field Management.feature b/Feature Tests/B/Online Designer/B.6.7.1900 - Field Management.feature deleted file mode 100644 index 31c47b87..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.1900 - Field Management.feature +++ /dev/null @@ -1,150 +0,0 @@ -Feature: Field Creation: The system shall support the ability to add, edit, copy, move and delete data collection fields. - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.1900.100 Add, edit, copy, move and delete fields - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.1900.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 - -#SETUP_USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" -And I logout - -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.1900.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Online Designer" -Then I should see "Data Collection Instruments" - -When I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: add field -When I click on the instrument labeled "Data Types" -And I click on the button labeled "Add Field" at the bottom of the instrument -And I add a new Text Box field labeled "Add Field" with the variable name "add" -And I click on the button labeled "Save" -##VERIFY -Then I should see the field labeled "Add Field" - -#FUNCTIONAL_REQUIREMENT -##ACTION: move field within instrument -When I drag the field labeled "Add Field" above the field labeled "Identifier" -##VERIFY -Then I should see the field labeled "Add Field " before the field labeled "Identifier" - -#FUNCTIONAL_REQUIREMENT -##ACTION: move field to another instrument -When I click on the icon labeled "Move" on the field labeled "Required" -Then I should see "Move field to another location" -And I should see a dropdown field with the placeholder text of "select a field" - -When I select "email" from the dropdown field with the placeholder text of "select a field" -And I click on the button labeled "Move field" in the dialog box -##VERIFY -Then I should see "Successfully moved" -And I should see "The field was successfully moved to a new location on another data collection instrument named "Text Validation"." -And I click on the button labeled "Close" in the dialog box - -Given I click on the button labeled "Return to list of instruments" -And I click in the link labeled "Text Validation" -Then I should see the field labeled "Required" - -#FUNCTIONAL_REQUIREMENT -##ACTION: edit field -Given I click on the button labeled "Return to list of instruments" -And I click in the link labeled "Data Types" -When I click on the edit image for the field labeled "Radio Button Manual" -And I clear the field labeled "Choices" -And I enter "9..9, Choice99" on the first row of the input field labeled "Choices (one choice per line)" -And I enter "100, Choice100" on the second row of the input field labeled "Choices (one choice per line)" -And I enter "101, Choice101" on the third row of the input field labeled "Choices (one choice per line)" -And I enter "Abc123, Choice Abc123" on the fourth row of the input field labeled "Choices (one choice per line)" -And I click on the button labeled "Save" -##VERIFY -Then I should see the field labeled "Radio Button Manual" -And I should see the radio button options "Choice99","Choice100", "Choice101, Choice Abc123" - -#FUNCTIONAL_REQUIREMENT -##ACTION: copy field -Given I see the field labeled "Notes box" -And I click on the copy image for the field labeled "Notes box" -And I click on the button labeled "Cancel" in the dialog box -Then I should NOT see "notesbox_2" - -Given I see the field labeled "Notes box" -And I click on the copy image for the field labeled " Notes box " -And I click on the button labeled "Copy field" in the dialog box -##VERIFY -Then I should see "notesbox_2" - -#FUNCTIONAL_REQUIREMENT -##ACTION: delete field -Given I see the field labeled "Multiple Choice Dropdown Manual" -And I click on the delete field image for the field labeled "Multiple Choice Dropdown Manual" -And I click on the button labeled "Delete" in the dialog box -##VERIFY -Then I should NOT see "multiple_dropdown_manual" - -##VERIFY_DRAFT_CHANGES -When I click on the link labeled "View detailed summary of all drafted changes" -Then I should see "Fields to be ADDED:" -And I should see "notesbox_2 "Notes box"" -And I should see "add "Add Field"" -And I should see "Fields to be DELETED:" -And I should see "multiple_dropdown_manual "Multiple ... Manual" (8 records/events affected)" -And I should see a table header and rows including the following values in the table: -|Variable Name | Choices or Calculations | -|radio_button_manual |9..9, Choice99| -| radio_button_manual |100, Choice100| -| radio_button_manual |101, Choice101| -| radio_button_manual |Abc123, Choice Abc123| - -##SETUP_PRODUCTION -When I click on the button labeled "Return to previous page" -And I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Awaiting review of project changes" -And I logout - -Given I login to REDCap with the user "Test_Admin" -When I click on the button labeled "Project Modification Module" -And I click on the button labeled "COMMIT CHANGES" -And I click on the button labeled "COMMIT CHANGES" in the dialog box -Then I should see "Project Changes Committed/User Notified" - - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row including the following values in the codebook table: -| Variable / Field Name |Field Label |Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | -| [add] | Add Field | text | -| [radio_button_manual]| Radio Button Manual| Choice Abc123| -| [notesbox_2] | Notes box | notes | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user | Manage/Design | Delete project field | -| test_user | Manage/Design | Copy project field | -| test_user | Manage/Design | Edit project field | -| test_user | Manage/Design | Move project field | -| test_user | Manage/Design | Create project field | diff --git a/Feature Tests/B/Online Designer/B.6.7.200 - Create Instrument.feature b/Feature Tests/B/Online Designer/B.6.7.200 - Create Instrument.feature deleted file mode 100644 index 865f38b6..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.200 - Create Instrument.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: Form Creation: The system shall support the creation of new data collection instruments via the Online Designer. - -As a REDCap end user -I want to see that Online Designer is functioning as expected - -Scenario: B.6.7.200.100 Create form with Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.200.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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.200.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Online Designer" -Then I should see "Data Collection Instruments" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Create new form -When I click on the button labeled "Create" -And click on the last button labeled "Add instrument here" -And I enter "New Form" in the field labeled "New instrument name" -And I click on the button labeled "Create" -Then I should see "SUCCESS!" -Given I click on the button labeled "Close" in the dialog box -#VERIFY -Then I should see the instrument labeled "New Form" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create data collection instrument | diff --git a/Feature Tests/B/Online Designer/B.6.7.300 - Rename Instrument.feature b/Feature Tests/B/Online Designer/B.6.7.300 - Rename Instrument.feature deleted file mode 100644 index 3b060f30..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.300 - Rename Instrument.feature +++ /dev/null @@ -1,69 +0,0 @@ -Feature: Form Creation: The system shall support the ability to rename data collection instruments. - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.300.100 Unique instrument name - -##SETUP_DEV -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.300.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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.300.100" -#FUNCTIONAL_REQUIREMENT -##ACTION: Verify unique instrument variable name -And I click on the link labeled "Codebook" -##VERIFY_CODEBOOK -Then I should see "Instrument: Text Validation (text_validation)" - -##ACTION: Rename instrument and instrument variable name -When I click on the button labeled "Online Designer" -And I select the dropdown option labeled "Rename" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation" -And I rename the data instrument to "Text Validation Rename" -And I click on the button labeled "Save" -Then I should see the data instrument labeled "Text Validation Rename" - -##VERIFY_CODEBOOK -And I click on the link labeled "Codebook" -Then I should see "Instrument: Text Validation Rename (text_validation_rename)" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | - -| test_admin | Manage/Design | Rename data collection instrument | - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#FUNCTIONAL REQUIREMENT -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -##ACTION: Rename instrument and Keep old instrument variable name -When I select the dropdown option labeled "Rename" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation Rename" -And I rename the data instrument to "Text Validation Rename 2" -And I click on the button labeled "Save" -Then I should see the data instrument labeled "Text Validation Rename 2" - -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -And I click on the link labeled "Codebook" -Then I should see "Instrument: Text Validation Rename 2 (text_validation_rename)" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Rename data collection instrument | diff --git a/Feature Tests/B/Online Designer/B.6.7.400 - Copy Instrument.feature b/Feature Tests/B/Online Designer/B.6.7.400 - Copy Instrument.feature deleted file mode 100644 index 481a888c..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.400 - Copy Instrument.feature +++ /dev/null @@ -1,51 +0,0 @@ -Feature: Form Creation: The system shall support the ability to copy data collection instruments and add a suffix to each variable name in the new instrument. - -As a REDCap end user -I want to see that project Designer is functioning as expected - -Scenario: B.6.7.400.100 Copy instrument - -##SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.400.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 - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I select the dropdown option labeled "Copy" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation" -And click on the button labeled "Copy instrument" -Then I should see "SUCCESS! The instrument was successfully copied." -And I click on the button labeled "Close" in the dialog box - -##VERIFY -When I click on the link labeled "Text Validation 2" -Then I should see the variable labeled "name_v2" -And I should see the variable labeled "email_v2" - -When I click on the button labeled "Return to the list of instruments" -And I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -And I click on the link labeled "Codebook" -Then I should see "Instrument: Text Validation 2 (text_validation_2)" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Copy data collection instrument | - - diff --git a/Feature Tests/B/Online Designer/B.6.7.500 - Delete Instrument.feature b/Feature Tests/B/Online Designer/B.6.7.500 - Delete Instrument.feature deleted file mode 100644 index fb7827b1..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.500 - Delete Instrument.feature +++ /dev/null @@ -1,48 +0,0 @@ -Feature: Form Creation: The system shall support the ability to delete data collection instruments. - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.500.100 Delete instrument from online designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.500.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 - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled " Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I select the dropdown option labeled "Delete" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation" -And I click on the button labeled "Yes, delete it" in the dialog box -Then I should see "Deleted!" -And I should NOT see the instrument labeled "Text Validation" - -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -And I click on the button labeled "Project Modification Module" -Then I should see "Project Modification Module" - -When I click on the button labeled "COMMIT CHANGES" -And I click on the button labeled "COMMIT CHANGES" in the dialog box -Then I should see "Project Changes Committed / User Notified" - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Manage/Design | Delete data collection instrument | - -Scenario: B.6.7.500.200 Delete instrument from Data Dictionary -#REDUNDANT #B.6.7.100.100 - - diff --git a/Feature Tests/B/Online Designer/B.6.7.600 - Reorder Instrument.feature b/Feature Tests/B/Online Designer/B.6.7.600 - Reorder Instrument.feature deleted file mode 100644 index 464b3e56..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.600 - Reorder Instrument.feature +++ /dev/null @@ -1,45 +0,0 @@ -Feature: Form Creation: The system shall support the ability to re-order data collection instruments. - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.600.100 Reorder instrument from online designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.600.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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.600.100" - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I drag on the instrument labeled "Data Types" to position 0 -#The item below always passes when Saved! is hidden -Then I should see "Saved!" -And I should see the instrument labeled "Data Types" in position 0 - -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -And I click on the button labeled "Close" in the dialog box - -#VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin| Manage/Design | Reorder data collection instruments | - -Scenario: B.6.7.600.200 Reorder instrument from Data Dictionary -#REDUNDANT #B.6.7.100.100 diff --git a/Feature Tests/B/Online Designer/B.6.7.700 - Field Textbox.feature b/Feature Tests/B/Online Designer/B.6.7.700 - Field Textbox.feature deleted file mode 100644 index d660d8e6..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.700 - Field Textbox.feature +++ /dev/null @@ -1,73 +0,0 @@ -Feature: Field Creation: The system shall support the creation of Text box (Short Text). - -As a REDCap end user -I want to see that Online Designer is functioning as expected - -Scenario: B.6.7.700.100 Text box field creation in Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named " B.6.7.700.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_DEV -When I click on the link labeled "Designer" -Then I should see "Data Collection Instruments" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Text box field creation -When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" -And I add a new Text Box field labeled "Text Box" with the variable name "textbox " -And I click on the button labeled "Save" in the dialog box -#VERIFY -Then I should see the field labeled "Text Box" - -##ACTION: Edit variable name - numeric (unable) -Given I click on the Edit image for the field labeled "Text Box" -And I clear the field labeled "Variable Name" -And I enter "2" into the field labeled "Variable Name" -And I click on the button labeled "Save" -Then I should see "Alert" -And I should see "Please enter a value for the variable name" -And I click on the button labeled "Close" in the dialog box - -When I clear the field labeled "Variable Name" -And I enter "2ABC" into the field labeled "Variable Name" -And I click on the button labeled "Save" -#VERIFY -Then I should see the variable labeled "abc" - -##ACTION: Add variable name - Alpha numeric -When I click on the button labeled "Add Field" -And I add a new Text Box field labeled "ABC#2" with the variable name "ABC#2" -And I click on the button labeled "Save" in the dialog box -#VERIFY -Then I should see the variable labeled "abc_2" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Edit project field| -| test_admin | Manage/Design | Create project field| - -Scenario: B.6.7.700.200 Text box field creation in Data Dictionary -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.700.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [name] | Name| text | diff --git a/Feature Tests/B/Online Designer/B.6.7.800 - Field Notes.feature b/Feature Tests/B/Online Designer/B.6.7.800 - Field Notes.feature deleted file mode 100644 index 9b423b2d..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.800 - Field Notes.feature +++ /dev/null @@ -1,74 +0,0 @@ -Feature: Field Creation: The system shall support the creation of Notes Box (Paragraph Text). - -As a REDCap end user -I want to see that Project Designer is functioning as expected - -Scenario: B.6.7.800.100 Note box field creation in Online Designer - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.800.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.7.800.100" -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Note box field creation -Given When I click on the instrument labeled "Form 1" -And I click on the button labeled "Add Field" -And I select the dropdown option "Notes Box (Paragraph Text)" from the dropdown field with the placeholder text "Select a Type of Field" -Given And I add a new Notes box field labeled "Notes Box" with the variable name "notesbox" -And I click on the button labeled "Save" -#VERIFY -Then I should see the field labeled "Notes Box" - -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| [notesbox] | Notes Box | notes | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Create project field | - -#Scenario: B.6.7.800.200 Note box field creation in Data Dictionary -#SETUP -#Given I login to REDCap with the user "Test_Admin" -#And I create a new project named "B.6.7.700.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "Project1xml_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | -| [notesbox] | Notes box | notes | -| [notesbox2] | Notes box 2 | notes | - - diff --git a/Feature Tests/B/Online Designer/B.6.7.900 - Field Calculated.feature b/Feature Tests/B/Online Designer/B.6.7.900 - Field Calculated.feature deleted file mode 100644 index e7b50d3f..00000000 --- a/Feature Tests/B/Online Designer/B.6.7.900 - Field Calculated.feature +++ /dev/null @@ -1,80 +0,0 @@ -Feature: Field Creation: The system shall support creation and customization of algorithms for calculated fields. - -As a REDCap end user -I want to see that calculated field is functioning as expected - -Scenario: B.6.7.900.100 Creation of calculated field through online designer -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.7.900.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -When I click on the link labeled "Designer" -And I click on the button labeled "Enter Draft Mode" -Then I should see "The project is now in Draft Mode" - -#FUNCTIONAL_REQUIREMENT -##ACTION: calculated field creation -Given When I click on the link labeled "Form 1" -And I click on the button labeled "Add Field" at the bottom of the instrument -And I click on the dropdown field labeled "Select a Type of Field" -And I add a new Calculated Field field labeled "Calculated Field" with the variable name "calculated_field" -And I enter the equation "3*2" in the Calculation Equation field of the open "Logic Editor" dialog box -And I click on the button labeled "Update & Close Editor" in the dialog box -And I click on the button labeled "Save" -Then I should see the field labeled "Calculated Field" -And I should see the link "View equation" - -##SETUP_PRODUCTION -When I click on the button labeled "Submit Changes for Review" -And I click on the button labeled "Submit" in the dialog box -Then I should see "Changes Were Made Automatically" -When I click on the button labeled "Close" in the dialog box - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | -| [calculated_field] | Calculated Field | calc | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Create project field | - -#Scenario: B.6.7.900.200 Creation of calculated field through Data Dictionary upload - -#SETUP -#Given I login to REDCap with the user "Test_Admin" -#And I create a new project named "B.6.7.900.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload data dictionary -When I click on the link labeled "Dictionary" -And I click on the button labeled "Choose File" -And I select the file labeled "B67900_DataDictionary.csv" -And I click on the button labeled "Upload File" -Then I should see "Your document was uploaded successfully and awaits your confirmation below." - -When I click on the button labeled "Commit Changes" -Then I should see "Changes Made Successfully!" - -##VERIFY_CODEBOOK -When I click on the link labeled "Codebook" -Then I should see a table row containing the following values in the codebook table: -| Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | -| [calculated_field] | Calculated Field | calc | -| [calculated_field2]| Calculated Field 2 | calc | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Upload data dictionary | diff --git a/Feature Tests/B/Online Designer_7/B.6.7.100 - New Instruments via Data Dictionary.feature b/Feature Tests/B/Online Designer_7/B.6.7.100 - New Instruments via Data Dictionary.feature new file mode 100644 index 00000000..c8a52cbc --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.100 - New Instruments via Data Dictionary.feature @@ -0,0 +1,79 @@ +Feature: Form Creation: The system shall support the creation of new data collection instruments using the Data Dictionary. + + As a REDCap end user + I want to see that project Designer is functioning as expected + + Scenario: B.6.7.100.100 Data dictionary export/import function + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I click on the link labeled "New Project" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I enter "B.6.7.100.100" into the input field labeled "Project title" + And I select "Practice / Just for fun" on the dropdown field labeled "Project's purpose" + And I click on the radio labeled "Empty project (blank slate)" + And I click on the button labeled "Create Project" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Download data dictionary + When I click on the link labeled "Dictionary" + And I click on the link labeled "Download the current Data Dictionary" to download a file + ##VERIFY + Then I should see the field name labeled "record_id" + + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I upload a "csv" format file located at "dictionaries/Project1xml_DataDictionary.csv", by clicking the button near "Upload your Data Dictionary file" to browse for the file, and clicking the button labeled "Upload File" to upload the file + + ##VERIFY + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + When I click on the link labeled "Online Designer" + Then I should see "Text Validation" + And I should see "Consent" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Upload data dictionary | + + ##ACTION: Upload data dictionary with removed form and Reordered form (#B.6.7.500.200 & B.6.7.600.200) + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Data Dictionary File 2.csv" + And I click on the button labeled "Upload File" + ##VERIFY + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + When I click on the link labeled "Online Designer" + Then I should see "Text Validation" + And I should NOT see "Consent" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Upload data dictionary | + + ##ACTION: Unable to upload data dictionary with Errors + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Data Dictionary File 3.csv" + And I click on the button labeled "Upload File" + ##VERIFY + Then I should see "Errors found in your Data Dictionary: " + And I click on the button labeled "RETURN TO PREVIOUS PAGE" + Then I should see "Steps for making project changes" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Upload data dictionary | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1000 - Field Multiple Choice.feature b/Feature Tests/B/Online Designer_7/B.6.7.1000 - Field Multiple Choice.feature new file mode 100644 index 00000000..23329ad2 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1000 - Field Multiple Choice.feature @@ -0,0 +1,81 @@ +Feature: Field Creation: The system shall support the creation and manual coding for multiple choice dropdown list (single answer). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1000.100 Creation of multiple choice dropdown list (single answer) through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1000.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1000.100" + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: dropdown field creation + When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + Then I should see a dropdown field labeled "Select a Type of Field" + + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new Multiple Choice - Drop-down List (Single Answer) field labeled "Multiple Choice Dropdown Manual" with the variable name "multiple_dropdown_manual" + And I enter "5, DDChoice5" on the first row of the input field labeled "Choices (one choice per line)" + And I enter "7, DDChoice7" on the second row of the input field labeled "Choices (one choice per line)" + And I enter "6, DDChoice6" on the third row of the input field labeled "Choices (one choice per line)" + And I click on the button labeled "Save" + Then I should see the field labeled "Multiple Choice Dropdown Manual" + And I should see the dropdown field with the options "DDChoice5","DDChoice7" and "DDChoice6" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [multiple_dropdown_manual] | Multiple Choice Dropdown Manual | dropdown | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.1000.200 Creation of multiple choice dropdown list (single answer) through Data Dictionary upload (#CROSSFUNCTIONAL - B.6.7.100.100) + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1000.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [multiple_dropdown_manual] | Multiple Choice Dropdown Manual | dropdown | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1100 - Field Radio.feature b/Feature Tests/B/Online Designer_7/B.6.7.1100 - Field Radio.feature new file mode 100644 index 00000000..92fe83c3 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1100 - Field Radio.feature @@ -0,0 +1,80 @@ +Feature: Field Creation: The system shall support the creation and manual coding for multiple choice radio buttons (single answer). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1100.100 Creation of multiple choice radio buttons (single answer) through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1100.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio button labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Radio field creation + Given When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + And I click on the dropdown field labeled "Select a Type of Field" + And I add a new Multiple Choice - Radio Buttons (Single Answer) field labeled "Radio Button Manual" with the variable name "radio_button_manual" + And I enter "9..9, Choice99" on the first row of the input field labeled "Choices (one choice per line)" + And I enter "100, Choice100" on the second row of the input field labeled "Choices (one choice per line)" + And I enter "101, Choice101" on the third row of the input field labeled "Choices (one choice per line)" + And I enter "Abc123, Choice Abc123" on the fourth row of the input field labeled "Choices (one choice per line)" + And I click on the button labeled "Save" + Then I should see the field labeled "Radio Button Manual" + And I should see the radio button options "Choice99","Choice100", "Choice101, Choice ABc123" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [radio_button_manual] | Radio Button Manual | radio | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.1100.200 Creation of multiple choice radio buttons (single answer) through Data Dictionary upload (#CROSSFUNCTIONAL - B.6.7.100.100) + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1100.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [radio_button_manual] | Radio Button Manual | radio | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1200 - Field Checkbox.feature b/Feature Tests/B/Online Designer_7/B.6.7.1200 - Field Checkbox.feature new file mode 100644 index 00000000..7becbe15 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1200 - Field Checkbox.feature @@ -0,0 +1,79 @@ +Feature: Field Creation: The system shall support the creation of Checkboxes (multiple answers). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1200.100 Creation of Checkboxes (multiple answers) through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1200.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: checkbox field creation + Given When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new Checkboxes (multiple answers) labeled "Checkbox" with the variable name "checkbox" + And I enter "1, Checkbox1" on the first row of the input field labeled "Choices (one choice per line)" + And I enter "2, Checkbox2" on the second row of the input field labeled "Choices (one choice per line)" + And I enter "3, Checkbox3" on the third row of the input field labeled "Choices (one choice per line)" + And I enter "Abc123, Checkbox Abc123" on the fourth row of the input field labeled "Choices (one choice per line)" + + And I click on the button labeled "Save" + Then I should see the field labeled "Checkbox" + And I should see the checkbox button options "Checkbox1", "Checkbox2", " Checkbox3", and "Checkbox Abc123" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [checkbox] | Checkbox | checkbox | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.1200.200 Creation of Checkboxes (multiple answers) through Data Dictionary upload + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1200.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [checkbox] | Checkbox | checkbox | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1300 - Field Signature.feature b/Feature Tests/B/Online Designer_7/B.6.7.1300 - Field Signature.feature new file mode 100644 index 00000000..501412b8 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1300 - Field Signature.feature @@ -0,0 +1,76 @@ +Feature: Field Creation: The system shall support the creation of Signature (draw signature with mouse or finger). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1300.100 Creation of Signature field through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1300.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Signature field creation + Given When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + Then I should see a dropdown field labeled "Select a Type of Field" + + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new Signature (draw signature with mouse or finger) labeled "Signature" with the variable name "signature" + And I click on the button labeled "Save" + Then I should see the field labeled "Signature" + And I should see the link labeled "Add signature" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [signature] | Signature | file (signature) | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.1300.200 Creation of Signature field through Data Dictionary upload + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1300.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [signature | Signature | file (signature) | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1400 - Field File Upload.feature b/Feature Tests/B/Online Designer_7/B.6.7.1400 - Field File Upload.feature new file mode 100644 index 00000000..17694c9a --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1400 - Field File Upload.feature @@ -0,0 +1,74 @@ +Feature: Field Creation: The system shall support the creation of File upload (for users to upload file). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1400.100 Creation of File upload field through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1400.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: checkbox field creation + Given When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new File Upload (for users to upload files) labeled "File Upload" with the variable name "file_upload" + And I click on the button labeled "Save" + Then I should see the field labeled "File Upload" + And I should see the link labeled "Upload file" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [file_upload] | File Upload | file | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.1400.200 Creation of File upload field through Data Dictionary upload + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1400.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [file_upload] | File Upload | file | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1500 - Field Descriptive Text.feature b/Feature Tests/B/Online Designer_7/B.6.7.1500 - Field Descriptive Text.feature new file mode 100644 index 00000000..c1def015 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1500 - Field Descriptive Text.feature @@ -0,0 +1,94 @@ +Feature: Field Creation: The system shall support the creation of Descriptive Text (with optional Image/File Attachment. + + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1500.100 Creation of Descriptive field through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1500.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Signature field creation + Given I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new Descriptive Text (with optional Image/Video/Audio/File Attachment) labeled "Descriptive Text with File" with the variable name "descriptive_text_file" + And I click on the link labeled "Upload file" + And I upload the file labeled "B.6.7.1500_Upload File" + And I click on the button labeled "Upload file" in the dialog box + Then I should see "Document was successfully uploaded! " + + When I click on the button labeled "Close" in the dialog box + And I click on the button labeled "Save" + ##VERIFY + Then I should see the field labeled "Descriptive Text with File" + And I should see the link labeled "B.6.7.1500_Upload File" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [descriptive_text_file] | Descriptive Text with File | descriptive | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + ##ACTION: Download file from descriptive field + Given I click on the link labeled "Add/Edit Records" + When I click on the button labeled "Add new record" + Then I should see the field labeled "Descriptive Text with File" + And I should see "Attachment: " + And I should see a link labeled "B.6.7.1500_Upload File" + + When I download the file by clicking on the link labeled " B.6.7.1500_Upload File" + ##VERIFY + Then I should have a word file downloaded + + + Scenario: B.6.7.1500.200 Creation of Descriptive field through Data Dictionary upload + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1500.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [descriptive_text_file] | Descriptive Text with File | descriptive | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1600 - Field New Section.feature b/Feature Tests/B/Online Designer_7/B.6.7.1600 - Field New Section.feature new file mode 100644 index 00000000..c6b31130 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1600 - Field New Section.feature @@ -0,0 +1,86 @@ +Feature: Field Creation: The system shall support the creation of Begin New Section (with optional text). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1600.100 Creation of Section through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1600.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: section break creation + When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + Then I should see a dropdown field labeled "Select a Type of Field" + + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new Begin New Section (with optional text) labeled "Section Break" + And I click on the button labeled "Save" + Then I should see the "Sorry, but Section Headers cannot be the last field on a data entry form" + And I click on the button labeled "OK" + And I should NOT see the field labeled "Section Break" + + When I click on the button labeled "Add Field" below the field labeled "Record ID" + And I select the dropdown option "Notes Box (Paragraph Text)" from the dropdown field with the placeholder text "Select a Type of Field" + Given And I add a new Notes box field labeled "Notes Box" with the variable name "notesbox" + And I click on the button labeled "Save" + #VERIFY + Then I should see the field labeled "Notes Box" + + When I click on the button labeled "Add Field" below the field labeled "Record ID" + And I click on the dropdown field labeled "Select a Type of Field" + And I add a new Begin New Section (with optional text) labeled "Section Break" + And I click on the button labeled "Save" + Then I should see a yellow field labeled "Section Break" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY: section break + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record" + And I click on the link labeled "Data Types" + Then I should see a section break labeled "Section Break" + + Scenario: B.6.7.1600.200 Creation of section through Data Dictionary upload + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1600.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY: section break + When I click on the link labeled "Add / Edit Records" + And I click on the button labeled "Add new record" + And I click on the link labeled "Data Types" + Then I should see a section break labeled "Date" +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1700 - Identifier Fields.feature b/Feature Tests/B/Online Designer_7/B.6.7.1700 - Identifier Fields.feature new file mode 100644 index 00000000..147ef926 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1700 - Identifier Fields.feature @@ -0,0 +1,105 @@ +Feature: Field Creation: The system shall support marking a data entry field as an identifier. + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1700.100 Designating field as identifier through the Online Designer + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1700.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 + + #SETUP_USER_RIGHTS + And I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + And I logout + + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1700.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Online Designer" + Then I should see "Data Collection Instruments" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: designate identifier through online designer + When I click on the instrument labeled "Data Types" + And I click on the button labeled "Add Field" at the bottom of the instrument + Then I should see a dropdown field labeled "Select a Type of Field" + + When I click on the dropdown field labeled "Select a Type of Field" + And I add a new Text Box (Short Text, Number, Date/Time ,...) labeled "Identifier 3" + And I enter "identifier_3" + And I select the radio button labeled "Yes" for the field labeled "Identifier" + And I click on the button labeled "Save" + Then I should see the field labeled "Identifier 3" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [identifier_3] | Identifier 3 | text, Identifier | + + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Create project field | + + Scenario: B.6.7.1700.200 Designating field as identifier through Project Setup + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1700.200" 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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1700.200" + And I click on the link labeled "Project Setup" + And I click on the link labeled "Check For Identifiers" + Then I should see "Check For Identifiers" + + FUNCTIONAL_REQUIREMENT + ##ACTION: designate identifier + When I click on the checkbox for the Variable Name labeled "name" + And I click on the button labeled "Update Identifiers" + Then I should see "Your changes have been saved!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row including the following values in the codebook table: + | [name] | Name | text, Identifier | + | [identifier] | Identifier | text, Identifier | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Tag new identifier fields | + + Scenario: B.6.7.1700.300 Designating field as identifier through Data Dictionary upload + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1700.300" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [identifier] | Identifier | text, Identifier | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1800 - Required Fields.feature b/Feature Tests/B/Online Designer_7/B.6.7.1800 - Required Fields.feature new file mode 100644 index 00000000..c59086e2 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1800 - Required Fields.feature @@ -0,0 +1,73 @@ +Feature: Field Creation: The system shall support marking a data entry field as required. + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1800.100 Designating field as required through the Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1800.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 + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1800.100" + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Designating field as required + When I click on the instrument labeled "Data Types" + And I click on the button labeled "Add Field" at the bottom of the instrument + Given I add a new Text Box field labeled "Required 2" with the variable name "required_2" + And I mark the field required + And I click on the button labeled "Save" + Then I should see "*must provide value" on the next Text Box field labeled "Required 2" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [required_2] | Required 2 | text, Required | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.1800.200 Designating field as required through Data Dictionary upload + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.1800.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + Then I should see a table row containing the following values in the codebook table: + | [required] | Required | text, Required | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.1900 - Field Management.feature b/Feature Tests/B/Online Designer_7/B.6.7.1900 - Field Management.feature new file mode 100644 index 00000000..e6ebcbee --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.1900 - Field Management.feature @@ -0,0 +1,153 @@ +Feature: Field Creation: The system shall support the ability to add, edit, copy, move and delete data collection fields. + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.1900.100 Add, edit, copy, move and delete fields + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.1900.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 + + #SETUP_USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + ##SETUP_PRODUCTION + When I click on the link on labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + And I logout + + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.1900.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Online Designer" + Then I should see "Data Collection Instruments" + + When I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: add field + When I click on the instrument labeled "Data Types" + And I click on the button labeled "Add Field" at the bottom of the instrument + And I add a new Text Box field labeled "Add Field" with the variable name "add" + And I click on the button labeled "Save" + ##VERIFY + Then I should see the field labeled "Add Field" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: move field within instrument + When I drag the field labeled "Add Field" above the field labeled "Identifier" + ##VERIFY + Then I should see the field labeled "Add Field " before the field labeled "Identifier" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: move field to another instrument + When I click on the icon labeled "Move" on the field labeled "Required" + Then I should see "Move field to another location" + And I should see a dropdown field with the placeholder text of "select a field" + + When I select "email" from the dropdown field with the placeholder text of "select a field" + And I click on the button labeled "Move field" in the dialog box + ##VERIFY + Then I should see "Successfully moved" + And I should see "The field was successfully moved to a new location on another data collection instrument named "Text Validation" + And I click on the button labeled "Close" in the dialog box + + Given I click on the button labeled "Return to list of instruments" + And I click in the link labeled "Text Validation" + Then I should see the field labeled "Required" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: edit field + Given I click on the button labeled "Return to list of instruments" + And I click in the link labeled "Data Types" + When I click on the edit image for the field labeled "Radio Button Manual" + And I clear the field labeled "Choices" + And I enter "9..9, Choice99" on the first row of the input field labeled "Choices (one choice per line)" + And I enter "100, Choice100" on the second row of the input field labeled "Choices (one choice per line)" + And I enter "101, Choice101" on the third row of the input field labeled "Choices (one choice per line)" + And I enter "Abc123, Choice Abc123" on the fourth row of the input field labeled "Choices (one choice per line)" + And I click on the button labeled "Save" + ##VERIFY + Then I should see the field labeled "Radio Button Manual" + And I should see the radio button options "Choice99","Choice100", "Choice101, Choice Abc123" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: copy field + Given I see the field labeled "Notes box" + And I click on the copy image for the field labeled "Notes box" + And I click on the button labeled "Cancel" in the dialog box + Then I should NOT see "notesbox_2" + + Given I see the field labeled "Notes box" + And I click on the copy image for the field labeled " Notes box " + And I click on the button labeled "Copy field" in the dialog box + ##VERIFY + Then I should see "notesbox_2" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: delete field + Given I see the field labeled "Multiple Choice Dropdown Manual" + And I click on the delete field image for the field labeled "Multiple Choice Dropdown Manual" + And I click on the button labeled "Delete" in the dialog box + ##VERIFY + Then I should NOT see "multiple_dropdown_manual" + + ##VERIFY_DRAFT_CHANGES + When I click on the link labeled "View detailed summary of all drafted changes" + Then I should see "Fields to be ADDED:" + And I should see "notesbox_2 "Notes box"" + And I should see "add "Add Field"" + And I should see "Fields to be DELETED:" + And I should see "multiple_dropdown_manual "Multiple ... Manual" (8 records/events affected)" + And I should see a table header and rows including the following values in the table: + | Variable Name | Choices or Calculations | + | radio_button_manual | 9..9, Choice99 | + | radio_button_manual | 100, Choice100 | + | radio_button_manual | 101, Choice101 | + | radio_button_manual | Abc123, Choice Abc123 | + + ##SETUP_PRODUCTION + When I click on the button labeled "Return to previous page" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Awaiting review of project changes" + And I logout + + Given I login to REDCap with the user "Test_Admin" + When I click on the button labeled "Project Modification Module" + And I click on the button labeled "COMMIT CHANGES" + And I click on the button labeled "COMMIT CHANGES" in the dialog box + Then I should see "Project Changes Committed/User Notified" + + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row including the following values in the codebook table: + | Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | + | [add] | Add Field | text | + | [radio_button_manual] | Radio Button Manual | Choice Abc123 | + | [notesbox_2] | Notes box | notes | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user | Manage/Design | Delete project field | + | test_user | Manage/Design | Copy project field | + | test_user | Manage/Design | Edit project field | + | test_user | Manage/Design | Move project field | + | test_user | Manage/Design | Create project field | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.200 - Create Instrument.feature b/Feature Tests/B/Online Designer_7/B.6.7.200 - Create Instrument.feature new file mode 100644 index 00000000..9e405ff3 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.200 - Create Instrument.feature @@ -0,0 +1,34 @@ +Feature: Form Creation: The system shall support the creation of new data collection instruments via the Online Designer. + + As a REDCap end user + I want to see that Online Designer is functioning as expected + + Scenario: B.6.7.200.100 Create form with Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.200.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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.200.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Online Designer" + Then I should see "Data Collection Instruments" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Create new form + When I click on the button labeled "Create" + And click on the last button labeled "Add instrument here" + And I enter "New Form" in the field labeled "New instrument name" + And I click on the button labeled "Create" + Then I should see "SUCCESS!" + Given I click on the button labeled "Close" in the dialog box + #VERIFY + Then I should see the instrument labeled "New Form" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create data collection instrument | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.300 - Rename Instrument.feature b/Feature Tests/B/Online Designer_7/B.6.7.300 - Rename Instrument.feature new file mode 100644 index 00000000..f74bd8cf --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.300 - Rename Instrument.feature @@ -0,0 +1,71 @@ +Feature: Form Creation: The system shall support the ability to rename data collection instruments. + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.300.100 Unique instrument name + + ##SETUP_DEV + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.300.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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.300.100" + #FUNCTIONAL_REQUIREMENT + ##ACTION: Verify unique instrument variable name + And I click on the link labeled "Codebook" + ##VERIFY_CODEBOOK + Then I should see "Instrument: Text Validation (text_validation)" + + ##ACTION: Rename instrument and instrument variable name + When I click on the button labeled "Online Designer" + And I select the dropdown option labeled "Rename" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation" + And I rename the data instrument to "Text Validation Rename" + And I click on the button labeled "Save" + Then I should see the data instrument labeled "Text Validation Rename" + + ##VERIFY_CODEBOOK + And I click on the link labeled "Codebook" + Then I should see "Instrument: Text Validation Rename (text_validation_rename)" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + + | test_admin | Manage/Design | Rename data collection instrument | + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #FUNCTIONAL REQUIREMENT + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + ##ACTION: Rename instrument and Keep old instrument variable name + When I select the dropdown option labeled "Rename" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation Rename" + And I rename the data instrument to "Text Validation Rename 2" + And I click on the button labeled "Save" + Then I should see the data instrument labeled "Text Validation Rename 2" + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + And I click on the link labeled "Codebook" + Then I should see "Instrument: Text Validation Rename 2 (text_validation_rename)" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Rename data collection instrument | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.400 - Copy Instrument.feature b/Feature Tests/B/Online Designer_7/B.6.7.400 - Copy Instrument.feature new file mode 100644 index 00000000..70395552 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.400 - Copy Instrument.feature @@ -0,0 +1,51 @@ +Feature: Form Creation: The system shall support the ability to copy data collection instruments and add a suffix to each variable name in the new instrument. + + As a REDCap end user + I want to see that project Designer is functioning as expected + + Scenario: B.6.7.400.100 Copy instrument + + ##SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.400.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 + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I select the dropdown option labeled "Copy" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation" + And click on the button labeled "Copy instrument" + Then I should see "SUCCESS! The instrument was successfully copied." + And I click on the button labeled "Close" in the dialog box + + ##VERIFY + When I click on the link labeled "Text Validation 2" + Then I should see the variable labeled "name_v2" + And I should see the variable labeled "email_v2" + + When I click on the button labeled "Return to the list of instruments" + And I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + And I click on the link labeled "Codebook" + Then I should see "Instrument: Text Validation 2 (text_validation_2)" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Copy data collection instrument | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.500 - Delete Instrument.feature b/Feature Tests/B/Online Designer_7/B.6.7.500 - Delete Instrument.feature new file mode 100644 index 00000000..9227aadb --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.500 - Delete Instrument.feature @@ -0,0 +1,48 @@ +Feature: Form Creation: The system shall support the ability to delete data collection instruments. + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.500.100 Delete instrument from online designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.500.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 + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled " Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I select the dropdown option labeled "Delete" from the dropdown labeled "Choose action" for the instrument labeled "Text Validation" + And I click on the button labeled "Yes, delete it" in the dialog box + Then I should see "Deleted!" + And I should NOT see the instrument labeled "Text Validation" + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + And I click on the button labeled "Project Modification Module" + Then I should see "Project Modification Module" + + When I click on the button labeled "COMMIT CHANGES" + And I click on the button labeled "COMMIT CHANGES" in the dialog box + Then I should see "Project Changes Committed / User Notified" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Delete data collection instrument | + + Scenario: B.6.7.500.200 Delete instrument from Data Dictionary +#REDUNDANT #B.6.7.100.100 +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.600 - Reorder Instrument.feature b/Feature Tests/B/Online Designer_7/B.6.7.600 - Reorder Instrument.feature new file mode 100644 index 00000000..dfbf2f9b --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.600 - Reorder Instrument.feature @@ -0,0 +1,47 @@ +Feature: Form Creation: The system shall support the ability to re-order data collection instruments. + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.600.100 Reorder instrument from online designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.600.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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.600.100" + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I drag on the instrument labeled "Data Types" to position 0 + #The item below always passes when Saved! is hidden + Then I should see "Saved!" + And I should see the instrument labeled "Data Types" in position 0 + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + And I click on the button labeled "Close" in the dialog box + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Reorder data collection instruments | + + Scenario: B.6.7.600.200 Reorder instrument from Data Dictionary +#REDUNDANT #B.6.7.100.100 +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.700 - Field Textbox.feature b/Feature Tests/B/Online Designer_7/B.6.7.700 - Field Textbox.feature new file mode 100644 index 00000000..09176032 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.700 - Field Textbox.feature @@ -0,0 +1,77 @@ +Feature: Field Creation: The system shall support the creation of Text box (Short Text). + + As a REDCap end user + I want to see that Online Designer is functioning as expected + + Scenario: B.6.7.700.100 Text box field creation in Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named " B.6.7.700.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_DEV + When I click on the link labeled "Designer" + Then I should see "Data Collection Instruments" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Text box field creation + When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" + And I add a new Text Box field labeled "Text Box" with the variable name "textbox " + And I click on the button labeled "Save" in the dialog box + #VERIFY + Then I should see the field labeled "Text Box" + + ##ACTION: Edit variable name - numeric (unable) + Given I click on the Edit image for the field labeled "Text Box" + And I clear the field labeled "Variable Name" + And I enter "2" into the field labeled "Variable Name" + And I click on the button labeled "Save" + Then I should see "Alert" + And I should see "Please enter a value for the variable name" + And I click on the button labeled "Close" in the dialog box + + When I clear the field labeled "Variable Name" + And I enter "2ABC" into the field labeled "Variable Name" + And I click on the button labeled "Save" + #VERIFY + Then I should see the variable labeled "abc" + + ##ACTION: Add variable name - Alpha numeric + When I click on the button labeled "Add Field" + And I add a new Text Box field labeled "ABC#2" with the variable name "ABC#2" + And I click on the button labeled "Save" in the dialog box + #VERIFY + Then I should see the variable labeled "abc_2" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + And I click to Expand the "Text Validation" instrument + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Edit project field | + | test_admin | Manage/Design | Create project field | + + Scenario: B.6.7.700.200 Text box field creation in Data Dictionary + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.7.700.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "Project1xml_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click to Expand the "Text Validation" instrument + Then I should see a table row containing the following values in the codebook table: + | [name] | Name | text | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.800 - Field Notes.feature b/Feature Tests/B/Online Designer_7/B.6.7.800 - Field Notes.feature new file mode 100644 index 00000000..24d402f6 --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.800 - Field Notes.feature @@ -0,0 +1,76 @@ +Feature: Field Creation: The system shall support the creation of Notes Box (Paragraph Text). + + As a REDCap end user + I want to see that Project Designer is functioning as expected + + Scenario: B.6.7.800.100 Note box field creation in Online Designer + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.800.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.7.800.100" + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Note box field creation + When I click on the instrument labeled "Form 1" + And I click on the button labeled "Add Field" + And I select the dropdown option "Notes Box (Paragraph Text)" from the dropdown field with the placeholder text "Select a Type of Field" + And I add a new Notes box field labeled "Notes Box" with the variable name "notesbox" + And I click on the button labeled "Save" + #VERIFY + Then I should see the field labeled "Notes Box" + + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | [notesbox] | Notes Box | notes | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Create project field | + + #Scenario: B.6.7.800.200 Note box field creation in Data Dictionary + #SETUP + #Given I login to REDCap with the user "Test_Admin" + #And I create a new project named "B.6.7.800.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "B67800200_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | + | [notesbox] | Notes box | notes | + | [notesbox2] | Notes box 2 | notes | +#END \ No newline at end of file diff --git a/Feature Tests/B/Online Designer_7/B.6.7.900 - Field Calculated.feature b/Feature Tests/B/Online Designer_7/B.6.7.900 - Field Calculated.feature new file mode 100644 index 00000000..f8be0f4f --- /dev/null +++ b/Feature Tests/B/Online Designer_7/B.6.7.900 - Field Calculated.feature @@ -0,0 +1,84 @@ +Feature: Field Creation: The system shall support creation and customization of algorithms for calculated fields. + + As a REDCap end user + I want to see that calculated field is functioning as expected + + Scenario: B.6.7.900.100 Creation of calculated field through online designer + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.7.900.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + ##SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + When I click on the link labeled "Designer" + And I click on the button labeled "Enter Draft Mode" + Then I should see "The project is now in Draft Mode" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: calculated field creation + When I click on the link labeled "Form 1" + And I click on the button labeled "Add Field" at the bottom of the instrument + And I click on the dropdown field labeled "Select a Type of Field" + And I add a new Calculated Field field labeled "Calculated Field" with the variable name "calculated_field" + And I enter the equation "3*2" in the Calculation Equation field of the open "Logic Editor" dialog box + And I click on the button labeled "Update & Close Editor" in the dialog box + And I click on the button labeled "Save" + Then I should see the field labeled "Calculated Field" + And I should see the link "View equation" + + ##SETUP_PRODUCTION + When I click on the button labeled "Submit Changes for Review" + And I click on the button labeled "Submit" in the dialog box + Then I should see "Changes Were Made Automatically" + When I click on the button labeled "Close" in the dialog box + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | + | [calculated_field] | Calculated Field | calc | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Create project field | + + #Scenario: B.6.7.900.200 Creation of calculated field through Data Dictionary upload + + #SETUP + #Given I login to REDCap with the user "Test_Admin" + #And I create a new project named "B.6.7.900.200" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing "Empty project", and clicking the "Create Project" button + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload data dictionary + When I click on the link labeled "Dictionary" + And I click on the button labeled "Choose File" + And I select the file labeled "B67900_DataDictionary.csv" + And I click on the button labeled "Upload File" + Then I should see "Your document was uploaded successfully and awaits your confirmation below." + + When I click on the button labeled "Commit Changes" + Then I should see "Changes Made Successfully!" + + ##VERIFY_CODEBOOK + When I click on the link labeled "Codebook" + And I click on the button labeled "Expand all instruments" + Then I should see a table row containing the following values in the codebook table: + | Variable / Field Name | Field Label | Field Attributes (Field Type, Validation, Choices, Calculations, etc.) | + | [calculated_field] | Calculated Field | calc | + | [calculated_field2] | Calculated Field 2 | calc | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Upload data dictionary | +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup/B.6.4.1000 - Project Copy.feature b/Feature Tests/B/Project Setup/B.6.4.1000 - Project Copy.feature deleted file mode 100644 index 172be9ac..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.1000 - Project Copy.feature +++ /dev/null @@ -1,136 +0,0 @@ -Feature: User Interface: General: The system shall support the ability to copy the project, all users, and all data. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.6.4.1000.100 Copy a project with all users and all data -#SETUP_DEV -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.1000.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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.1000.100" -And I click on the link labeled "Other Functionality" -Then I should see the button labeled "Copy the Project" - -#FUNCTIONAL REQUIREMENT -##ACTION: Copy original in development mode -When I click on the button labeled "Copy the Project" -And I enter "B.6.4.1000.100.DEV" into the field labeled "Project title:" -And I click on the link labeled "Select All" -And I click on the button labeled "Copy project" -And I click on the button labeled "I Agree" in the dialog box -Then I should see "COPY SUCCESSFUL!" - -##VERIFY_UR -When I click on the link labeled "User Rights" -Then I should see the user "test_user1" - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see records exist - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Add user | user = 'test_user1'| -| test_user1 | Manage/Design | Copy project from | - -#SETUP_PRODUCTION -Given I click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.1000.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION: Copy original in production mode -When I click on the link labeled "Other Functionality" -Then I should see the button labeled "Copy the Project" - -When I click on the button labeled "Copy the Project" -And I enter "B.6.4.1000.100.PROD" into the field labeled "Project title:" -And I click on the link labeled "Select All" -And I click on the button labeled "Copy project" -And I click on the button labeled "I Agree" in the dialog box -Then I should see "COPY SUCCESSFUL!" - -##VERIFY_UR -When I click on the link labeled "User Rights" -Then I should see the user "test_user1" - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see records exist - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Add user | user = 'test_user1'| -| test_user1 | Manage/Design | Copy project from | - -#SETUP_ANALYSIS -Given I click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.1000.100" -And I click on the link labeled "Other Functionality" -And I click on the button labeled "Move to Analysis/Cleanup status" -And I click on the button labeled "YES, Move to Analysis/Cleanup Status" in the dialog box -And I click on the button labeled "OK" in the pop-up box -Then I should see "Project status: Analysis/Cleanup" - -#FUNCTIONAL REQUIREMENT -##ACTION: Copy original in analysis mode -Given I click on the button labeled "Copy the Project" -And I enter "B.6.4.1000.100.ANALYSIS" into the field labeled "Project title:" -And I click on the link labeled "Select All" -And I click on the button labeled "Copy project" -And I click on the button labeled "I Agree" in the dialog box -Then I should see "COPY SUCCESSFUL!" - -##VERIFY_UR -When I click on the link labeled "User Rights" -Then I should see the user "test_user1" - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see records exist - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Add user | user = 'test_user1'| -| test_user1 | Manage/Design | Copy project from | - -#SETUP_COMPLETED -Given I click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.1000.100" -And I click on the link labeled "Other Functionality" -And I click on the button labeled "Mark project as Completed" -And I click on the button labeled "Mark project as Completed" in the dialog box -And I click on the button labeled "OK" in the pop-up box -Then I should see "My Projects" - -#FUNCTIONAL REQUIREMENT -##ACTION: UNABLE to Copy original in complete mode as User -When I click on the link labeled "Show Completed Projects" -And I click on the link labeled "B.6.4.1000.100" -##VERIFY -Then I should see "NOTICE: Project was marked as Completed" -And I click on the button labeled "Return to My Projects page" -And I logout - -##ACTION: UNABLE to Copy original in complete mode as Admin -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 Projects" -And I enter "B.6.4.1000.100" in the field labeled "Search project title by keyword(s):" -And I click on the button labeled "Search project title" -And I click on the link labeled "B.6.4.1000.100" -##VERIFY -Then I should see "NOTICE: Project was marked as Completed" -And I click on the button labeled "Return to My Projects page" diff --git a/Feature Tests/B/Project Setup/B.6.4.1100 - Erase data in Development Mode.feature b/Feature Tests/B/Project Setup/B.6.4.1100 - Erase data in Development Mode.feature deleted file mode 100644 index de7c0796..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.1100 - Erase data in Development Mode.feature +++ /dev/null @@ -1,71 +0,0 @@ -Feature: User Interface: General: The system shall support the ability to erase all data for a project at once only in development. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.6.4.1100.100 Erase all data only in development as User -##SETUP_DEV -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.1100.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 - -##ACTION Verify record exist ##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see record "3" - -When I click on the link labeled "Project Setup" -And I click on the link labeled "Other Functionality" -Then I should see a button labeled "Erase all data" - -#FUNCTIONAL REQUIREMENT -##ACTION Erase data -When I click on the button labeled "Erase all data" -And I click on the button labeled "Erase all data" in the dialog box -Then I should see "SUCCESS!" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "No records exist yet" - -##SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Erase data button missing in production mode -When I click on the link labeled "Other Functionality" -##VERIFY -Then I should NOT see a button labeled "Erase all data" -And I logout - -Scenario: B.6.4.1100.200 Erase all data in production mode as Admin -##SETUP_PRODUCTION -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.4.1100.200.PROD" 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 click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -##ACTION Verify record exist ##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see record "3" - -When I click on the link labeled "Project Setup" -And I click on the link labeled "Other Functionality" -Then I should see a button labeled "Erase all data" - -#FUNCTIONAL REQUIREMENT -##ACTION Erase data -When I click on the button labeled "Erase all data" -And I click on the button labeled "Erase all data" in the dialog box -Then I should see "SUCCESS!" -And I click on the button labeled "Close" in the dialog box - -##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "No records exist yet" diff --git a/Feature Tests/B/Project Setup/B.6.4.1200 - Delete Project.feature b/Feature Tests/B/Project Setup/B.6.4.1200 - Delete Project.feature deleted file mode 100644 index e11ebe98..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.1200 - Delete Project.feature +++ /dev/null @@ -1,95 +0,0 @@ -Feature: User Interface: General: The system shall support the ability to delete projects only in development for project users and in any status for administrators. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.6.4.1200.100 Projects in development can be deleted by user -##SETUP_DEV -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.1200.100.DEV" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown -And I click on the radio labeled "Empty project (blank slate)" -And I click on the button labeled "Create Project" -Then I should see "B.6.4.1200.100.DEV" - -#FUNCTIONAL REQUIREMENT -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.1200.100.DEV" -And I click on the link labeled "Other Functionality" -Then I should see a button labeled "Delete the project" - -##ACTION Delete the project -When I click on the button labeled "Delete the project" -And I enter "DELETE" in the field labeled "TYPE "DELETE" BELOW" in the dialog box -And I click on the button labeled "Delete the project" in the dialog box -And I click on the button labeled "Yes, delete the project" in the dialog box -Then I should see "Project successfully deleted!" -And I click on the button labeled "Close" in the dialog box -Given I logout - -Scenario: B.6.4.1200.200 Projects in production with no records can be deleted by user -##SETUP_PRODUCTION -Given I login to REDCap with the user "Test_User1" -Given I create a new project named "B.6.4.1200.200.PROD" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown -And I click on the radio labeled "Empty project (blank slate)" -And I click on the button labeled "Create Project" -Then I should see "B.6.4.1200.200.PROD" - -When I click on the link labeled "My Projects" -And I click on the link labeled " B.6.4.1200.200.PROD" -And I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -##ACTION Verify record do NOT exist ##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see "No records exist yet" - -#FUNCTIONAL REQUIREMENT -When I click on the button labeled "Project Setup" -And I click on the link labeled "Other Functionality" -Then I should see a button labeled "Request delete project" - -##ACTION Delete the project -When I click on the button labeled "OK" in the pop-up box -Then I should see "Project successfully deleted!" -And I click on the button labeled "Close" in the dialog box - -Scenario: B.6.4.1200.300 Projects in production with records require admin -##SETUP_PRODUCTION -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.1200.300.PROD" 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 click on the link labeled "My Projects" -And I click on the link labeled " B.6.4.1200.300.PROD" -And I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -##ACTION Verify record exist ##VERIFY_RSD -When I click on the link labeled "Record Status Dashboard" -Then I should see record "3" - -#FUNCTIONAL REQUIREMENT -Given I click on the link labeled "Project Setup" -When I click on the link labeled "Other Functionality" -##ACTION Request delete project -And I click on the link labeled "Request delete project" -And I click on the button labeled "OK" in the pop-up box -Then I should see "Success!" -And I logout - -Given I login to REDCap with the user "Test_Admin" -Then I should see a button labeled "Delete the project" - -##ACTION Delete project -When I click on the button labeled "Delete the project" -And I enter "DELETE" in the field labeled "TYPE "DELETE" BELOW" in the dialog box -And I click on the button labeled "Delete the project" in the dialog box -And I click on the button labeled "Yes, delete the project" in the dialog box -##VERIFY -Then I should see "Project successfully deleted!" -And I click on the button labeled "Close" in the dialog box diff --git a/Feature Tests/B/Project Setup/B.6.4.1300 - Enable & Disable Survey.feature b/Feature Tests/B/Project Setup/B.6.4.1300 - Enable & Disable Survey.feature deleted file mode 100644 index 259c067d..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.1300 - Enable & Disable Survey.feature +++ /dev/null @@ -1,63 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall support enabling and disabling survey functionality at the project level. - -As a REDCap end user -I want to see that Manage project user access is functioning as expected - -Scenario: B.6.4.1300.100 Enable/Disable survey in Project Set-up -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.1300.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 - -##ACTION Disable survey in project setup -Given I click on the link labeled "Project Setup" -When I click on the button labeled "Disable" on the field labeled "Use surveys in this project?" -And I click on the button labeled "Disable" on the dialog box -##VERIFY -Then I should see "Saved!" -And I should see a button labeled "Enable" on the field labeled "Use surveys in this project?" - -Given I click on the link labeled " Designer" -Then I should see surveys are disabled - -#VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/design | Modify project settings | - -When I click on the link labeled "Project Setup" -#FUNCTIONAL REQUIREMENT -##ACTION Enable survey in project setup -And I click on the button labeled "Enable" on the field labeled "Use surveys in this project?" -##VERIFY -Then I should see "Saved!" -And I should see a button labeled "Disable" on the field labeled "Use surveys in this project?" - -##ACTION Enable survey in Online Designer #B.3.15.100.100 -Given I click on the link labeled "Designer" -And I enable surveys for the data instrument named "Text Validation" -And I click on the button labeled "Save Changes" -##VERIFY -Then I should see "Your survey settings were successfully saved!" - -#VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/design | Set up survey | - -##ACTION Disable survey in Online Designer #B.3.15.100.100 -Given I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the data instrument named "Text Validation" -And I click on the button labeled "Delete Survey Settings" -And I click on the button labeled "Delete Survey Settings" in the dialog box -And I click on the button "Close" in the dialog box - -##VERIFY -Then I should see the button labeled "Enable" for the data instrument named "Text Validation" - -#VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/design | Delete survey | diff --git a/Feature Tests/B/Project Setup/B.6.4.1400 - Repeating Surveys.feature b/Feature Tests/B/Project Setup/B.6.4.1400 - Repeating Surveys.feature deleted file mode 100644 index 862a5f9e..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.1400 - Repeating Surveys.feature +++ /dev/null @@ -1,79 +0,0 @@ -Feature: User Interface: Survey Project Settings: The system shall support the ability to create repeating surveys. - -As a REDCap end user -I want to see that Manage project user access is functioning as expected - -Scenario: B.6.4.1400.100 Ability to create repeating surveys -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.1400.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 -#VERIFY_SETUP repeat instrument -When I click on the link labeled "Project Setup" -Then I should see a button labeled "Modify" on the field labeled "Repeating instruments and events" - -#SETUP_PRODUCTION -When I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I see " Project status: Production" - -#VERIFY_DESIGNER -When I click on the link labeled "Designer" -Then I should see an enabled icon for the instrument labeled "Survey" - -#FUNCTIONAL REQUIREMENT -Given I click on the link labeled "Record Status Dashboard" -And I click the bubble to select a record for the "Survey" longitudinal instrument for event "Event Three" for record "1" -##ACTION open survey -And I click on the dropdown option labeled "Open survey" on the dropdown button labeled "Survey options" -Then I should see a button labeled "Submit" - -#VERIFY - only submit button and hit submit, no take again -When I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey" -And I should NOT see "Take this survey again" - -#VERIFY - no repeatable button -Given I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" on the dialog box -Then I should NOT see the button labeled "+" for the data collection instrument labeled "Survey" for event "Event Three" for record "1" - -#SETUP modify repeat instrument -Given I click on the link labeled "Project Setup" -When I click on the button labeled "Modify" on the field labeled "Repeating instruments and events" -And I click on the button labeled "Close" in the dialog box -And I select "Repeat Instruments (repeat independently of each other)" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" -And I check the checkbox labeled "Survey" -And I click on the button labeled "Save" -#VERIFY -Then I should see "Successfully saved" -And I click on the button labeled "Close" in the dialog box - -##ACTION - Create repeatable survey -Given I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Survey" -And I click on the checkbox labeled "(Optional) Repeat the survey" -And I click on the button labeled "Save Changes" -#VERIFY -Then I should see "Your survey settings were successfully saved" - -##ACTION - Create repeatable survey in record -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Survey" for event "Event Three" for record "4" -And I click on the button labeled "Save & Stay" -And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" -And I enter "Name" into the field labeled "Name_survey" -And I click on the button labeled "Take this survey again" -And I enter "Name" into the field labeled "Name_survey2" -And I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY 2 instances -Then I should see "+" for the data collection instrument labeled "Survey" for event "Event Three" for record "4" - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent]| Update Response| [instance = 2], name_survey = 'Name_survey2' | -| [survey respondent]| Update Response| name_survey = 'Name_survey' | diff --git a/Feature Tests/B/Project Setup/B.6.4.800 - Project Title.feature b/Feature Tests/B/Project Setup/B.6.4.800 - Project Title.feature deleted file mode 100644 index c6e9f364..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.800 - Project Title.feature +++ /dev/null @@ -1,21 +0,0 @@ -Feature: User Interface: General: The system shall support customization of project titles. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.6.4.800.100 Customize project title -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.800.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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.800.100" -And I click on the link labeled "Project Setup" -#FUNCTIONAL REQUIREMENT -##ACTION: Modify title -And I click on the button labeled "Modify project title, purpose, etc." -And I enter "B.6.4.800.MODIFY" in the field labeled "Project title:" -And I click on the button labeled "Save" in the dialog box -Then I should see "Success! Your changes have been saved." -##VERIFY -When I click on the link labeled "My Projects" -And I should see "B.6.4.800.MODIFY" diff --git a/Feature Tests/B/Project Setup/B.6.4.900 - Project Purpose.feature b/Feature Tests/B/Project Setup/B.6.4.900 - Project Purpose.feature deleted file mode 100644 index 03a3823f..00000000 --- a/Feature Tests/B/Project Setup/B.6.4.900 - Project Purpose.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: User Interface: General: The system shall support the designation of the purpose of the project. - -As a REDCap end user -I want to see that Project Setup is functioning as expected - -Scenario: B.6.4.900.100 Change project purpose designation -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.4.900.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 click on the link labeled "My Projects" -And I click on the link labeled "B.6.4.900.100" -And I click on the link labeled "Project Setup" -#FUNCTIONAL REQUIREMENT -##ACTION: Change project purpose designation -And I click on the button labeled "Modify project title, purpose, etc." -And I select "Operational Support" from the dropdown field labeled "Project's purpose:" -And I click on the button labeled "Save" in the dialog box -##VERIFY -Then I should see "Success! Your changes have been saved." -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Modify project settings | - -##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by event manage/design -When I select the dropdown option labeled "Manage/Design" from the dropdown field labeled "Filter by event:" with the placeholder text of "All event types" -##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by event manage/design -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Modify project settings | - diff --git a/Feature Tests/B/Project Setup_4/B.6.4.1000 - Project Copy.feature b/Feature Tests/B/Project Setup_4/B.6.4.1000 - Project Copy.feature new file mode 100644 index 00000000..e854ff99 --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.1000 - Project Copy.feature @@ -0,0 +1,138 @@ +Feature: User Interface: General: The system shall support the ability to copy the project, all users, and all data. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.6.4.1000.100 Copy a project with all users and all data + #SETUP_DEV + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.1000.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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.1000.100" + And I click on the link labeled "Other Functionality" + Then I should see the button labeled "Copy the Project" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Copy original in development mode + When I click on the button labeled "Copy the Project" + And I enter "B.6.4.1000.100.DEV" into the field labeled "Project title:" + And I click on the link labeled "Select All" + And I click on the button labeled "Copy project" + And I click on the button labeled "I Agree" in the dialog box + Then I should see "COPY SUCCESSFUL!" + + ##VERIFY_UR + When I click on the link labeled "User Rights" + Then I should see the user "test_user1" + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see records exist + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Add user | user = 'test_user1' | + | test_user1 | Manage/Design | Copy project from | + + #SETUP_PRODUCTION + Given I click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.1000.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Copy original in production mode + When I click on the link labeled "Other Functionality" + Then I should see the button labeled "Copy the Project" + + When I click on the button labeled "Copy the Project" + And I enter "B.6.4.1000.100.PROD" into the field labeled "Project title:" + And I click on the link labeled "Select All" + And I click on the button labeled "Copy project" + And I click on the button labeled "I Agree" in the dialog box + Then I should see "COPY SUCCESSFUL!" + + ##VERIFY_UR + When I click on the link labeled "User Rights" + Then I should see the user "test_user1" + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see records exist + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Add user | user = 'test_user1' | + | test_user1 | Manage/Design | Copy project from | + + #SETUP_ANALYSIS + Given I click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.1000.100" + And I click on the link labeled "Other Functionality" + And I click on the button labeled "Move to Analysis/Cleanup status" + And I click on the button labeled "YES, Move to Analysis/Cleanup Status" in the dialog box + And I click on the button labeled "OK" in the pop-up box + Then I should see "Project status: Analysis/Cleanup" + + #FUNCTIONAL REQUIREMENT + ##ACTION: Copy original in analysis mode + Given I click on the button labeled "Copy the Project" + And I enter "B.6.4.1000.100.ANALYSIS" into the field labeled "Project title:" + And I click on the link labeled "Select All" + And I click on the button labeled "Copy project" + And I click on the button labeled "I Agree" in the dialog box + Then I should see "COPY SUCCESSFUL!" + + ##VERIFY_UR + When I click on the link labeled "User Rights" + Then I should see the user "test_user1" + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see records exist + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Add user | user = 'test_user1' | + | test_user1 | Manage/Design | Copy project from | + + #SETUP_COMPLETED + Given I click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.1000.100" + And I click on the link labeled "Other Functionality" + And I click on the button labeled "Mark project as Completed" + And I click on the button labeled "Mark project as Completed" in the dialog box + And I click on the button labeled "OK" in the pop-up box + Then I should see "My Projects" + + #FUNCTIONAL REQUIREMENT + ##ACTION: UNABLE to Copy original in complete mode as User + When I click on the link labeled "Show Completed Projects" + And I click on the link labeled "B.6.4.1000.100" + ##VERIFY + Then I should see "NOTICE: Project was marked as Completed" + And I click on the button labeled "Return to My Projects page" + And I logout + + ##ACTION: UNABLE to Copy original in complete mode as Admin + 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 Projects" + And I enter "B.6.4.1000.100" in the field labeled "Search project title by keyword(s):" + And I click on the button labeled "Search project title" + And I click on the link labeled "B.6.4.1000.100" + ##VERIFY + Then I should see "NOTICE: Project was marked as Completed" + And I click on the button labeled "Return to My Projects page" +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup_4/B.6.4.1100 - Erase data in Development Mode.feature b/Feature Tests/B/Project Setup_4/B.6.4.1100 - Erase data in Development Mode.feature new file mode 100644 index 00000000..78138aff --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.1100 - Erase data in Development Mode.feature @@ -0,0 +1,73 @@ +Feature: User Interface: General: The system shall support the ability to erase all data for a project at once only in development. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.6.4.1100.100 Erase all data only in development as User + ##SETUP_DEV + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.1100.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 + + ##ACTION Verify record exist ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see record "3" + + When I click on the link labeled "Project Setup" + And I click on the link labeled "Other Functionality" + Then I should see a button labeled "Erase all data" + + #FUNCTIONAL REQUIREMENT + ##ACTION Erase data + When I click on the button labeled "Erase all data" + And I click on the button labeled "Erase all data" in the dialog box + Then I should see "SUCCESS!" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "No records exist yet" + + ##SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Erase data button missing in production mode + When I click on the link labeled "Other Functionality" + ##VERIFY + Then I should NOT see a button labeled "Erase all data" + And I logout + + Scenario: B.6.4.1100.200 Erase all data in production mode as Admin + ##SETUP_PRODUCTION + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.4.1100.200.PROD" 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 click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + ##ACTION Verify record exist ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see record "3" + + When I click on the link labeled "Project Setup" + And I click on the link labeled "Other Functionality" + Then I should see a button labeled "Erase all data" + + #FUNCTIONAL REQUIREMENT + ##ACTION Erase data + When I click on the button labeled "Erase all data" + And I click on the button labeled "Erase all data" in the dialog box + Then I should see "SUCCESS!" + And I click on the button labeled "Close" in the dialog box + + ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "No records exist yet" +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup_4/B.6.4.1200 - Delete Project.feature b/Feature Tests/B/Project Setup_4/B.6.4.1200 - Delete Project.feature new file mode 100644 index 00000000..8f79e4cf --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.1200 - Delete Project.feature @@ -0,0 +1,97 @@ +Feature: User Interface: General: The system shall support the ability to delete projects only in development for project users and in any status for administrators. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.6.4.1200.100 Projects in development can be deleted by user + ##SETUP_DEV + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.1200.100.DEV" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown + And I click on the radio labeled "Empty project (blank slate)" + And I click on the button labeled "Create Project" + Then I should see "B.6.4.1200.100.DEV" + + #FUNCTIONAL REQUIREMENT + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.1200.100.DEV" + And I click on the link labeled "Other Functionality" + Then I should see a button labeled "Delete the project" + + ##ACTION Delete the project + When I click on the button labeled "Delete the project" + And I enter "DELETE" in the field labeled "TYPE "DELETE" BELOW" in the dialog box + And I click on the button labeled "Delete the project" in the dialog box + And I click on the button labeled "Yes, delete the project" in the dialog box + Then I should see "Project successfully deleted!" + And I click on the button labeled "Close" in the dialog box + Given I logout + + Scenario: B.6.4.1200.200 Projects in production with no records can be deleted by user + ##SETUP_PRODUCTION + Given I login to REDCap with the user "Test_User1" + Given I create a new project named "B.6.4.1200.200.PROD" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown + And I click on the radio labeled "Empty project (blank slate)" + And I click on the button labeled "Create Project" + Then I should see "B.6.4.1200.200.PROD" + + When I click on the link labeled "My Projects" + And I click on the link labeled " B.6.4.1200.200.PROD" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + ##ACTION Verify record do NOT exist ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see "No records exist yet" + + #FUNCTIONAL REQUIREMENT + When I click on the button labeled "Project Setup" + And I click on the link labeled "Other Functionality" + Then I should see a button labeled "Request delete project" + + ##ACTION Delete the project + When I click on the button labeled "OK" in the pop-up box + Then I should see "Project successfully deleted!" + And I click on the button labeled "Close" in the dialog box + + Scenario: B.6.4.1200.300 Projects in production with records require admin + ##SETUP_PRODUCTION + Given I login to REDCap with the user "Test_User1" + And I create a new project named "B.6.4.1200.300.PROD" 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 click on the link labeled "My Projects" + And I click on the link labeled " B.6.4.1200.300.PROD" + And I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + ##ACTION Verify record exist ##VERIFY_RSD + When I click on the link labeled "Record Status Dashboard" + Then I should see record "3" + + #FUNCTIONAL REQUIREMENT + Given I click on the link labeled "Project Setup" + When I click on the link labeled "Other Functionality" + ##ACTION Request delete project + And I click on the link labeled "Request delete project" + And I click on the button labeled "OK" in the pop-up box + Then I should see "Success!" + And I logout + + Given I login to REDCap with the user "Test_Admin" + Then I should see a button labeled "Delete the project" + + ##ACTION Delete project + When I click on the button labeled "Delete the project" + And I enter "DELETE" in the field labeled "TYPE "DELETE" BELOW" in the dialog box + And I click on the button labeled "Delete the project" in the dialog box + And I click on the button labeled "Yes, delete the project" in the dialog box + ##VERIFY + Then I should see "Project successfully deleted!" + And I click on the button labeled "Close" in the dialog box +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup_4/B.6.4.1300 - Enable & Disable Survey.feature b/Feature Tests/B/Project Setup_4/B.6.4.1300 - Enable & Disable Survey.feature new file mode 100644 index 00000000..848db2e4 --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.1300 - Enable & Disable Survey.feature @@ -0,0 +1,65 @@ +Feature: User Interface: Survey Project Settings: The system shall support enabling and disabling survey functionality at the project level. + + As a REDCap end user + I want to see that survey settings is functioning as expected + + Scenario: B.6.4.1300.100 Enable/Disable survey in Project Set-up + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.1300.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 + + ##ACTION Disable survey in project setup + Given I click on the link labeled "Project Setup" + When I click on the button labeled "Disable" on the field labeled "Use surveys in this project?" + And I click on the button labeled "Disable" on the dialog box + ##VERIFY + Then I should see "Saved!" + And I should see a button labeled "Enable" on the field labeled "Use surveys in this project?" + + Given I click on the link labeled " Designer" + Then I should see surveys are enabled + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/design | Modify project settings | + + When I click on the link labeled "Project Setup" + #FUNCTIONAL REQUIREMENT + ##ACTION Enable survey in project setup + And I click on the button labeled "Enable" on the field labeled "Use surveys in this project?" + ##VERIFY + Then I should see "Saved!" + And I should see a button labeled "Disable" on the field labeled "Use surveys in this project?" + + ##ACTION Enable survey in Online Designer #B.3.15.100.100 + Given I click on the link labeled "Designer" + And I enable surveys for the data instrument named "Text Validation" + And I click on the button labeled "Save Changes" + ##VERIFY + Then I should see "Your survey settings were successfully saved!" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/design | Set up survey | + + ##ACTION Disable survey in Online Designer #B.3.15.100.100 + Given I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the data instrument named "Text Validation" + And I click on the button labeled "Delete Survey Settings" + And I click on the button labeled "Delete Survey Settings" in the dialog box + And I click on the button "Close" in the dialog box + + ##VERIFY + Then I should see the button labeled "Enable" for the data instrument named "Text Validation" + + #VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/design | Delete survey | +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup_4/B.6.4.1400 - Repeating Surveys.feature b/Feature Tests/B/Project Setup_4/B.6.4.1400 - Repeating Surveys.feature new file mode 100644 index 00000000..56a2e930 --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.1400 - Repeating Surveys.feature @@ -0,0 +1,81 @@ +Feature: User Interface: Survey Project Settings: The system shall support the ability to create repeating surveys. + + As a REDCap end user + I want to see that Manage project user access is functioning as expected + + Scenario: B.6.4.1400.100 Ability to create repeating surveys + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.1400.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 + #VERIFY_SETUP repeat instrument + When I click on the link labeled "Project Setup" + Then I should see a button labeled "Modify" on the field labeled "Repeating instruments and events" + + #SETUP_PRODUCTION + When I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I see " Project status: Production" + + #VERIFY_DESIGNER + When I click on the link labeled "Designer" + Then I should see an enabled icon for the instrument labeled "Survey" + + #FUNCTIONAL REQUIREMENT + Given I click on the link labeled "Record Status Dashboard" + And I click the bubble to select a record for the "Survey" longitudinal instrument for event "Event Three" for record "1" + ##ACTION open survey + And I click on the dropdown option labeled "Open survey" on the dropdown button labeled "Survey options" + Then I should see a button labeled "Submit" + + #VERIFY - only submit button and hit submit, no take again + When I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey" + And I should NOT see "Take this survey again" + + #VERIFY - no repeatable button + Given I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" on the dialog box + Then I should NOT see the button labeled "+" for the data collection instrument labeled "Survey" for event "Event Three" for record "1" + + #SETUP modify repeat instrument + Given I click on the link labeled "Project Setup" + When I click on the button labeled "Modify" on the field labeled "Repeating instruments and events" + And I click on the button labeled "Close" in the dialog box + And I select "Repeat Instruments (repeat independently of each other)" on the dropdown field labeled "Event Three (Arm 1: Arm 1)" + And I check the checkbox labeled "Survey" + And I click on the button labeled "Save" + #VERIFY + Then I should see "Successfully saved" + And I click on the button labeled "Close" in the dialog box + + ##ACTION - Create repeatable survey + Given I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Survey" + And I click on the checkbox labeled "(Optional) Repeat the survey" + And I click on the button labeled "Save Changes" + #VERIFY + Then I should see "Your survey settings were successfully saved" + + ##ACTION - Create repeatable survey in record + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Survey" for event "Event Three" for record "4" + And I click on the button labeled "Save & Stay" + And I click on the dropdown option labeled "Open Survey" on the dropdown button labeled "Survey options" + And I enter "Name" into the field labeled "Name_survey" + And I click on the button labeled "Take this survey again" + And I enter "Name" into the field labeled "Name_survey2" + And I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY 2 instances + Then I should see "+" for the data collection instrument labeled "Survey" for event "Event Three" for record "4" + + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response | [instance = 2], name_survey = 'Name_survey2' | + | [survey respondent] | Update Response | name_survey = 'Name_survey' | +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup_4/B.6.4.800 - Project Title.feature b/Feature Tests/B/Project Setup_4/B.6.4.800 - Project Title.feature new file mode 100644 index 00000000..0a4bd55d --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.800 - Project Title.feature @@ -0,0 +1,23 @@ +Feature: User Interface: General: The system shall support customization of project titles. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.6.4.800.100 Customize project title + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.800.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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.800.100" + And I click on the link labeled "Project Setup" + #FUNCTIONAL REQUIREMENT + ##ACTION: Modify title + And I click on the button labeled "Modify project title, purpose, etc." + And I enter "B.6.4.800.MODIFY" in the field labeled "Project title:" + And I click on the button labeled "Save" in the dialog box + Then I should see "Success! Your changes have been saved." + ##VERIFY + When I click on the link labeled "My Projects" + And I should see "B.6.4.800.MODIFY" +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Setup_4/B.6.4.900 - Project Purpose.feature b/Feature Tests/B/Project Setup_4/B.6.4.900 - Project Purpose.feature new file mode 100644 index 00000000..cae9614b --- /dev/null +++ b/Feature Tests/B/Project Setup_4/B.6.4.900 - Project Purpose.feature @@ -0,0 +1,33 @@ +Feature: User Interface: General: The system shall support the designation of the purpose of the project. + + As a REDCap end user + I want to see that Project Setup is functioning as expected + + Scenario: B.6.4.900.100 Change project purpose designation + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.4.900.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 click on the link labeled "My Projects" + And I click on the link labeled "B.6.4.900.100" + And I click on the link labeled "Project Setup" + #FUNCTIONAL REQUIREMENT + ##ACTION: Change project purpose designation + And I click on the button labeled "Modify project title, purpose, etc." + And I select "Operational Support" from the dropdown field labeled "Project's purpose:" + And I click on the button labeled "Save" in the dialog box + ##VERIFY + Then I should see "Success! Your changes have been saved." + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Modify project settings | + + ##ACTION #CROSS-FEATURE B.2.23.100: Verify Logging Filter by event manage/design + When I select the dropdown option labeled "Manage/Design" from the dropdown field labeled "Filter by event:" with the placeholder text of "All event types" + ##VERIFY_LOG #CROSS-FEATURE: Verify Logging Filter by event manage/design + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Modify project settings | +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Status/B.6.11.200 - Move project status.feature b/Feature Tests/B/Project Status/B.6.11.200 - Move project status.feature deleted file mode 100644 index f3a3c6c0..00000000 --- a/Feature Tests/B/Project Status/B.6.11.200 - Move project status.feature +++ /dev/null @@ -1,58 +0,0 @@ -Feature: User Interface: The system shall support the ability for a user to change between following project statuses bidirectionally: Development, Production, Analysis/Cleanup, Mark as Complete. - -As a REDCap end user -I want to see that My Project is functioning as expected - -Scenario: B.6.11.200.100 Move project from development to production to analysis/cleanup to complete to analysis/cleanup to production to development - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.11.200.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 - -#FUNCTIONAL REQUIREMENT -##ACTION: move to production -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "Yes, Move to Production Status" in the dialog box -##VERIFY -Then I should see "Project status: Production" - -##ACTION: move to analysis/cleanup -When I click on the link labeled "Other Functionality" -And I click on the button labeled "Move to Analysis/Cleanup status" -And I click on the button labeled "YES, Move to Analysis/Cleanup" in the dialog box -And I click on the button labeled "OK" in the pop-up box -##VERIFY -Then I should see "Project status: Analysis/Cleanup" - -##ACTION: move to Completed -When I click on the button labeled "Mark project as Completed" -And I click on the button labeled "Mark project as Completed" in the dialog box -And I click on the button labeled "OK" in the pop-up box -And I click on the button labeled "Show Completed Projects" -Then I should see a link labeled "B.6.11.200.100" -##VERIFY -When I click on the link labeled "B.6.11.200.100" -Then I should see "NOTICE: Project was marked as Completed" - -#FUNCTIONAL REQUIREMENT -##ACTION: move to analysis/cleanup -When I click on the button labeled "Restore Project" in the dialog box -And I click on the button labeled "Close" in the dialog box -##VERIFY -Then I should see "Project status: Analysis/Cleanup" - -##ACTION: move to production -When I click on the link labeled "Other Functionality" -And I click on the button labeled "Move back to Production status" -And I click on the button labeled "Yes, Move to Production Status" in the dialog box -And I click on the button labeled "OK" in the pop-up box -##VERIFY -Then I should see "Project status: Production" - -##ACTION: move to development -When I click on the button labeled "Move back to Development status" -And I click on the button labeled "OK" in the pop-up box -##VERIFY -Then I should see "Project status: Development" diff --git a/Feature Tests/B/Project Status/B.6.11.300 - Data management during project status change.feature b/Feature Tests/B/Project Status/B.6.11.300 - Data management during project status change.feature deleted file mode 100644 index 5474adf4..00000000 --- a/Feature Tests/B/Project Status/B.6.11.300 - Data management during project status change.feature +++ /dev/null @@ -1,46 +0,0 @@ -Feature: User Interface: The system shall support the ability for a user to keep or remove all record data during project status change from Development to Production. - -As a REDCap end user -I want to see that My Project is functioning as expected - -Scenario: B.6.11.300.100 Move project from development to production while keeping data -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "B.6.11.300.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 - -#FUNCTIONAL REQUIREMENT -##ACTION: move to production -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.11.300.100" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "Yes, Move to Production Status" in the dialog box -##VERIFY -Then I should see "Project status: Production" - -##VERIFY_RSD: -When I click on "Record Status Dashboard" -Then I should see "1" - - -Scenario: B.6.11.300.200 Move project from development to production while deleting data -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "B.6.11.300.200" 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 - -#FUNCTIONAL REQUIREMENT -##ACTION: move to production -When I click on the link labeled "My Projects" -And I click on the link labeled "B.6.11.300.200" -And I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Delete ALL data" in the dialog box -And I click on the button labeled "Yes, Move to Production Status" in the dialog box -And I click on the button labeled "OK" in the pop-up box -##VERIFY -Then I should see "Project status: Production" - -##VERIFY_RSD: -When I click on "Record Status Dashboard" -Then I should see "No records exist yet" diff --git a/Feature Tests/B/Project Status_11/B.6.11.200 - Move project status.feature b/Feature Tests/B/Project Status_11/B.6.11.200 - Move project status.feature new file mode 100644 index 00000000..c1a64da3 --- /dev/null +++ b/Feature Tests/B/Project Status_11/B.6.11.200 - Move project status.feature @@ -0,0 +1,60 @@ +Feature: User Interface: The system shall support the ability for a user to change between following project statuses bidirectionally: Development, Production, Analysis/Cleanup, Mark as Complete. + + As a REDCap end user + I want to see that My Project is functioning as expected + + Scenario: B.6.11.200.100 Move project from development to production to analysis/cleanup to complete to analysis/cleanup to production to development + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.11.200.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 + + #FUNCTIONAL REQUIREMENT + ##ACTION: move to production + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "Yes, Move to Production Status" in the dialog box + ##VERIFY + Then I should see "Project status: Production" + + ##ACTION: move to analysis/cleanup + When I click on the link labeled "Other Functionality" + And I click on the button labeled "Move to Analysis/Cleanup status" + And I click on the button labeled "YES, Move to Analysis/Cleanup" in the dialog box + And I click on the button labeled "OK" in the pop-up box + ##VERIFY + Then I should see "Project status: Analysis/Cleanup" + + ##ACTION: move to Completed + When I click on the button labeled "Mark project as Completed" + And I click on the button labeled "Mark project as Completed" in the dialog box + And I click on the button labeled "OK" in the pop-up box + And I click on the button labeled "Show Completed Projects" + Then I should see a link labeled "B.6.11.200.100" + ##VERIFY + When I click on the link labeled "B.6.11.200.100" + Then I should see "NOTICE: Project was marked as Completed" + + #FUNCTIONAL REQUIREMENT + ##ACTION: move to analysis/cleanup + When I click on the button labeled "Restore Project" in the dialog box + And I click on the button labeled "Close" in the dialog box + ##VERIFY + Then I should see "Project status: Analysis/Cleanup" + + ##ACTION: move to production + When I click on the link labeled "Other Functionality" + And I click on the button labeled "Move back to Production status" + And I click on the button labeled "Yes, Move to Production Status" in the dialog box + And I click on the button labeled "OK" in the pop-up box + ##VERIFY + Then I should see "Project status: Production" + + ##ACTION: move to development + When I click on the button labeled "Move back to Development status" + And I click on the button labeled "OK" in the pop-up box + ##VERIFY + Then I should see "Project status: Development" +#END \ No newline at end of file diff --git a/Feature Tests/B/Project Status_11/B.6.11.300 - Data management during project status change.feature b/Feature Tests/B/Project Status_11/B.6.11.300 - Data management during project status change.feature new file mode 100644 index 00000000..e9534880 --- /dev/null +++ b/Feature Tests/B/Project Status_11/B.6.11.300 - Data management during project status change.feature @@ -0,0 +1,48 @@ +Feature: User Interface: The system shall support the ability for a user to keep or remove all record data during project status change from Development to Production. + + As a REDCap end user + I want to see that My Project is functioning as expected + + Scenario: B.6.11.300.100 Move project from development to production while keeping data + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "B.6.11.300.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 + + #FUNCTIONAL REQUIREMENT + ##ACTION: move to production + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.11.300.100" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "Yes, Move to Production Status" in the dialog box + ##VERIFY + Then I should see "Project status: Production" + + ##VERIFY_RSD: + When I click on "Record Status Dashboard" + Then I should see "1" + + + Scenario: B.6.11.300.200 Move project from development to production while deleting data + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "B.6.11.300.200" 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 + + #FUNCTIONAL REQUIREMENT + ##ACTION: move to production + When I click on the link labeled "My Projects" + And I click on the link labeled "B.6.11.300.200" + And I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Delete ALL data" in the dialog box + And I click on the button labeled "Yes, Move to Production Status" in the dialog box + And I click on the button labeled "OK" in the pop-up box + ##VERIFY + Then I should see "Project status: Production" + + ##VERIFY_RSD: + When I click on "Record Status Dashboard" + Then I should see "No records exist yet" +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality/C.4.18.100 - Data Quality default rules.feature b/Feature Tests/C/Data Quality/C.4.18.100 - Data Quality default rules.feature deleted file mode 100644 index 91a7fda5..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.100 - Data Quality default rules.feature +++ /dev/null @@ -1,35 +0,0 @@ -Feature: User Interface: The system shall provide default rules after installation of the application. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.100.100 Default data quality rules - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" -And I should see a table header and rows containing the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | -| A | Blank values* | - | -| B | Blank values* (required fields only) | - | -| C | Field validation errors (incorrect data type)| - | -| D | Field validation errors (out of range) | - | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | -| F | Hidden fields that contain values*** | - | -| G | Multiple choice fields with invalid values | - | -| H | Incorrect values for calculated fields | - | -| I | Fields containing "missing data codes" | - | -| 1 | [radio]=9.9 | [radio]='9..9' | -| 2 | [ptname]<>[name] | [ptname]<>[name] | diff --git a/Feature Tests/C/Data Quality/C.4.18.1000 - Data Quality realtime.feature b/Feature Tests/C/Data Quality/C.4.18.1000 - Data Quality realtime.feature deleted file mode 100644 index ea17ae2a..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.1000 - Data Quality realtime.feature +++ /dev/null @@ -1,43 +0,0 @@ -Feature: User Interface: The system shall support the ability to run custom data quality rules real time. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.1000.100 Real-time rule execution - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.1000.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP_PRODUCTION: Rule Creation -When I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -When I enter "Integer" for the field labeled "Rule Name" -And I enter "[integer]<>'1999'" for the field labeled "Logic Editor" -And I click on the button labeled "Update & Close Editor" in the dialog box -And I select the checkbox labeled "Execute in real time on data entry forms" -And I click on the button labeled "Add" -Then I should see a table header and rows containing the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Real-time execution | -| 3 | Integer | [integer]<>'1999' | Enabled | - -#FUNCTIONAL_REQUIREMENT -##ACTION: System shall support the ability to run custom data quality rules real time -When I click the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -And I enter "2000" in the field labeled "Integer" -Then I should see "The value you provided is outside the suggested range" - -When I click on the button labeled "Close" in the dialog box -And I click the button labeled "Save and Exit Form" -Then I should see "WARNING: Data Quality rules were violated!" -And I click on the button labeled "Close" in the dialog box diff --git a/Feature Tests/C/Data Quality/C.4.18.1300 - Data Quality DAG.feature b/Feature Tests/C/Data Quality/C.4.18.1300 - Data Quality DAG.feature deleted file mode 100644 index ce0d0a9d..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.1300 - Data Quality DAG.feature +++ /dev/null @@ -1,72 +0,0 @@ -Feature: User Interface: The system shall support limiting rule viewing to a Data Access Group. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.1300.100 DAG limits rule viewing - - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.1300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I select "TestGroup1" on the dropdown field labeled "[No Assignment]" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table -And I should see "Test User1" assigned to "TestGroup1" - -When I enter "Test_User2" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I select "TestGroup2" on the dropdown field labeled "[No Assignment]" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User2" within the "1_FullRights" row of the column labeled "Username" of the User Rights table -And I should see "Test User2" assigned to "TestGroup2" - -#SETUP: Create Data Quality Rule -When I click on the link labeled "Data Quality" -And I enter "TestGroup1" for the field labeled "Rule Name" -And I enter "([ptname]<>[name]) AND ([user-dag-name]="testgroup1")" for the field labeled "Logic Editor" -And I click on the button labeled "Update & Close Editor" in the dialog box -And I click on the button labeled "Add" -Then I should see a table header and rows including the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | -| 3 | TestGroup1 | ([ptname]<>[name]) AND ([user-dag-name]="testgroup1")| -And I logout - -#FUNCTIONAL_REQUIREMENT -##ACTION: testuser1 can see results within DAG -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -When I click on the button labeled "All" -##VERIFY -Then I should see a table header and rows including the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | -| 3 | TestGroup1 | ([ptname]<>[name]) AND ([user-dag-name]="testgroup1")| 2 export|view | -And I logout - -#FUNCTIONAL_REQUIREMENT -##ACTION: testuser2 cannot see results within DAG -Given I login to REDCap with the user "Test_User2" -And I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -When I click on the button labeled "All" -##VERIFY -Then I should see a table header and rows including the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | -| 3 | TestGroup1 | ([ptname]<>[name]) AND ([user-dag-name]="testgroup1")| 0 | diff --git a/Feature Tests/C/Data Quality/C.4.18.1400 - Data Quality support user rights.feature b/Feature Tests/C/Data Quality/C.4.18.1400 - Data Quality support user rights.feature deleted file mode 100644 index 6424d11c..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.1400 - Data Quality support user rights.feature +++ /dev/null @@ -1,106 +0,0 @@ -Feature: User Interface: The system shall support limiting a rule viewing that references a field to only users with access rights. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.1400.100 User access limit rule viewing - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.1400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#USER_RIGHTS: add two users with diff access levels -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table - -When I enter "Test_User2" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "4_NoAccess_Noexport" on the dropdown field labeled "Select Role" on the role selector dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User2" within the "4_NoAccess_Noexport" row of the column labeled "Username" of the User Rights table - -And I logout - -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.4.18.1400" -And I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -#FUNCTIONAL_REQUIREMENT -##ACTION: confirm user with full rights can execute -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 377 export |view | -| B | Blank values* (required fields only) | - | 2 export |view | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | 1 export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export |view | - -#FUNCTIONAL_REQUIREMENT -##ACTION: verify ability to view discrepancies with access -When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (incorrect data type)" -Then I should see "Rule: Field validation errors (incorrect data type)" in the dialog box -And I should see "Discrepancies found: 1" in the dialog box -And I should see a table header and rows including the following values in the report table: -| Record | Discrepant fields with their values | Status | Exclude| -| 6 Event 1 (Arm 1: Arm 1_) | email = HelloWorld | Validation error | exclude| - -And I click on the button labeled "Close" in the dialog box -And I logout - -#ACTION: switch to Test_User2 -Given I login to REDCap with the user "Test_User2" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.4.18.1400" -And I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -#FUNCTIONAL_REQUIREMENT -##ACTION: confirm user with full rights can execute but NOT view discrepancy -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 0 | -| B | Blank values* (required fields only) | - | 0 | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | ERROR export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | ERROR export |view | - -When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (incorrect data type)" -Then I should see "Rule: Field validation errors (incorrect data type)" in the dialog box -And I should see "Discrepancies found: 1" in the dialog box -And I should see a table header and rows containing the following values in the report table: -| Record | Discrepant fields with their values | Status | Exclude| -| 6 Event 1 (Arm 1: Arm 1_)| email = [cannot display data] (Reason: Lack of user privilege) | Validation error | exclude| - -And I click on the button labeled "Close" in the dialog box - -#VERIFY_RSD GO TO RSD AND CANNOT SEE ANY INSTRUMENTS -When I click on the link labeled "Record Status Dashboard" -Then I should NOT see the instrument labeled "Text Validation" for the event "Event 1" - diff --git a/Feature Tests/C/Data Quality/C.4.18.200 - Data Quality create rules.feature b/Feature Tests/C/Data Quality/C.4.18.200 - Data Quality create rules.feature deleted file mode 100644 index 906a4b6b..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.200 - Data Quality create rules.feature +++ /dev/null @@ -1,108 +0,0 @@ -Feature: User Interface: The system shall support data quality rule creation. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.200.100 Data quality rule creation - - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Manual rule add -When I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -When I enter "Integer" for the field labeled "Rule Name" -And I enter "[integer]='1999'" for the field labeled "Logic Editor" -And I click on the button labeled "Update & Close Editor" in the dialog box -And I click on the button labeled "Add" -##VERIFY -Then I should see a table header and rows including the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | -| 3 | Integer | [integer]='1999' | - -#FUNCTIONAL_REQUIREMENT -##ACTION: Upload rule -When I select the dropdown option labeled "Upload Data Quality Rule (CSV)" from the dropdown field labeled "Upload or download Data Quality Rules" -And I upload the csv file labeled "C418100TEST_DataQualityRules_Upload" -Then I should see "Upload Data Quality Rule (CSV) - Confirm" in the dialog box - -When I click on the button labeled "Upload" in the dialog box -Then I should see "SUCCESS!" - -When I click on the button labeled "Close" in the dialog box -Then I should see "Data Quality Rules" -##VERIFY -And I should see a table header and rows containing the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | -| 4 | Integer | [integer]<>'1999' | - -##ACTION: create record for new rule -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -Then I should see "Adding new Record ID 11" - -When I enter "1999" for the field labeled "Integer" -And I click on the button labeled "Close" in the dialog box -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 11 successfully added." - -##ACTION: create record for uploaded new rule -When I click the link labeled "Add/Edit Records" -And I click the button labeled "Add new record for the arm selected above" -And I click the bubble labeled "Data Types" for event "Event 1" -Then I should see "Adding new Record ID 12." - -When I enter "2000" for the field labeled "Integer" -And I click on the button labeled "Close" in the dialog box -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 12 successfully added." - -#VERIFY -When I click on the link labeled "Data Quality" -And I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows including the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| 3 | Integer | [integer]='1999' | 1 export |view | -| 4 | Integer | [integer]<>'1999' | 17 export |view | -##ACTION: edit existing rule -When I click on the edit image for the Rule Logic for rule "4" -And I enter "[integer]='1'" for the field labeled "Logic Editor" -And I click on the button labeled "Update & Close Editor" in the dialog box -And I click on the button labeled "Save" -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | -| 4 | Integer | [integer]='1' | -#M: refresh browser page - -#VERIFY -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| 4 | Integer | [integer]='1' | 6 export |view | - -##ACTION: delete rule -When I click on the "X" delete image for Rule "4" -And I click on the button labeled "OK" in the pop-up box -Then I should NOT see Rule "4" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Delete data quality rule(s) | -| test_admin | Manage/Design | Edit data quality rule | -| test_admin | Manage/Design | Execute data quality rule(s) | -| test_admin | Manage/Design | Upload Data Quality Rules | -| test_admin | Manage/Design | Create data quality rule | diff --git a/Feature Tests/C/Data Quality/C.4.18.300 - Data Quality execute rules.feature b/Feature Tests/C/Data Quality/C.4.18.300 - Data Quality execute rules.feature deleted file mode 100644 index 78f60f81..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.300 - Data Quality execute rules.feature +++ /dev/null @@ -1,42 +0,0 @@ -Feature: User Interface: The system shall support executing a rule. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.300.100 Executing data quality rule - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button - #SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" -#FUNCTIONAL REQUIREMENT -##ACTION The system shall support executing a single rule. -When I click on the link labeled "Data Quality" -And I click on the button labeled "Execute" for Rule # "1" -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | -| 1 | [radio]=9.9 | [radio]= '9..9' | 1 export |view| - -#FUNCTIONAL REQUIREMENT -##ACTION The system shall support executing all rules. -When I click on the link labeled "Data Quality" -And I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 377 export |view | -| B | Blank values* (required fields only) | - | 2 export |view | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | 1 export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export |view | - diff --git a/Feature Tests/C/Data Quality/C.4.18.500 - Data Quality disrepancies.feature b/Feature Tests/C/Data Quality/C.4.18.500 - Data Quality disrepancies.feature deleted file mode 100644 index 78560f87..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.500 - Data Quality disrepancies.feature +++ /dev/null @@ -1,47 +0,0 @@ -Feature: User Interface: The system shall support viewing discrepancies found in rule execution. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.500.100 View discrepancies - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button - #SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box - -##ACTION executing all rules. -When I click on the link labeled "Data Quality" -And I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 377 export |view | -| B | Blank values* (required fields only) | - | 2 export |view | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | 1 export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export |view | -#FUNCTIONAL_REQUIREMENT -##ACTION: verify ability to view discrepancies -When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (incorrect data type)" -Then I should see "Rule: Field validation errors (incorrect data type)" in the dialog box -And I should see "Discrepancies found: 1" in the dialog box -And I should see a table header and rows including the following values in the report table: -| Record | Discrepant fields with their values | Status | Exclude| -| 6 Event 1 (Arm 1: Arm 1_) | email = HelloWorld | Validation error | exclude| - -#FUNCTIONAL_REQUIREMENT -##ACTION: verify ability to export discrepancies -When I click on the button labeled "Export results (CSV)" in the dialog box -Then I should have a csv file with a table header and rows including the following values in the report table: -| record_id | result-status | email | -| 6 | Validation error | HelloWorld| diff --git a/Feature Tests/C/Data Quality/C.4.18.600 - Data Quality exclude rules.feature b/Feature Tests/C/Data Quality/C.4.18.600 - Data Quality exclude rules.feature deleted file mode 100644 index 2d40757f..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.600 - Data Quality exclude rules.feature +++ /dev/null @@ -1,93 +0,0 @@ -Feature: User Interface: The system shall support excluding discrepancies found in rule execution. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.600.100 Exclude discrepancies - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.4.18.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button - #SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box - -##ACTION executing all rules. -When I click on the link labeled "Data Quality" -And I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 377 export |view | -| B | Blank values* (required fields only) | - | 2 export |view | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | 1 export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export |view | - -#FUNCTIONAL_REQUIREMENT -##ACTION: verify ability to exclude a discrepancy -When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (out of range)" -Then I should see "Rule: Field validation errors (out of range)" in the dialog box -And I should see "Discrepancies found: 4" in the dialog box -And I should see a table header and rows including the following values in the data quality table: -| Record | Discrepant fields with their values | Status | Exclude| -| 5 (#1) | integer = 1111111111 | Out of range | exclude| -| 5 (#1) | number_1_comma = 22222222.0 | Out of range | exclude| -| 5 (#1) | number_1_period = 4.2 | Out of range | exclude| -| 5 (#1) | number = 10.000 | Out of range | exclude| - -When I click on the link labeled "exclude" for the discrepant field labeled "Integer" -Then I should see a table header and rows including the following values in the data quality table: -| Record | Discrepant fields with their values | Status | Exclude| -| 5 (#1) | integer = 1111111111 | Out of range | remove exclusion| - -And I click on the button labeled "Close" in the dialog box -#M: refresh the page - -##VERIFY -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| D | Field validation errors (out of range) | - | 3 export |view | - -#FUNCTIONAL_REQUIREMENT -##ACTION: verify ability to add back excluded discrepancy -When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (out of range)" -Then I should see "Rule: Field validation errors (out of range)" in the dialog box -And I should see "Discrepancies found: 3" in the dialog box -And I should see a link labeled "view" in the dialog box - -When I click on the link labeled "view" in the dialog box -Then I should see "Rule: Field validation errors (out of range)" in the dialog box -And I should see "Discrepancies found: 4" in the dialog box -And I should see a table header and rows including the following values in the data quality table: -| Record | Discrepant fields with their values | Status | Exclude| -| 5 (#1) | integer = 1111111111 | Out of range | remove exclusion| -| 5 (#1) | number_1_comma = 22222222.0 | Out of range | exclude| -| 5 (#1) | number_1_period = 4.2 | Out of range | exclude| -| 5 (#1) | number = 10.000 | Out of range | exclude| - -When I click on the link labeled "remove exclusion" for the discrepant field labeled "Integer" -And I should see a table header and rows containing the following values in the data quality table: -| Record | Discrepant fields with their values | Status | Exclude| -| 5 (#1) | integer = 1111111111 | Out of range | exclude| -| 5 (#1) | number_1_comma = 22222222.0 | Out of range | exclude| -| 5 (#1) | number_1_period = 4.2 | Out of range | exclude| -| 5 (#1) | number = 10.000 | Out of range | exclude| - -And I click on the button labeled "Close" in the dialog box -#M: refresh the page - -##VERIFY -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows including the following values in the data quality table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| D | Field validation errors (out of range) | - | 4 export |view | - diff --git a/Feature Tests/C/Data Quality/C.4.18.700 - Data Quality edit rules.feature b/Feature Tests/C/Data Quality/C.4.18.700 - Data Quality edit rules.feature deleted file mode 100644 index ed540831..00000000 --- a/Feature Tests/C/Data Quality/C.4.18.700 - Data Quality edit rules.feature +++ /dev/null @@ -1,105 +0,0 @@ -Feature: User Interface: The system shall support editing of user defined rules. - -As a REDCap end user -I want to see that Data Quality Module is functioning as expected - -Scenario: C.4.18.700.100 Edit rule - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "C.4.18.700.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Edit User Privileges" -And I verify the checkbox labeled "Create & edit rules" for the field labeled "Data Quality" is selected -And I verify the checkbox labeled "Execute rules" for the field labeled "Data Quality" is selected -And I click on the button labeled "Save Changes" -Then I should see "User "test_user1" was successfully edited" - -#FUNCTIONAL_REQUIREMENT -##ACTION: Manual rule add -When I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" - -When I enter "Integer" for the field labeled "Rule Name" -And I enter "[integer]='1'" for the field labeled "Logic Editor" -And I click on the button labeled "Update & Close Editor" in the dialog box -And I click on the button labeled "Add" -##VERIFY -Then I should see a table header and rows including the following values in the Data Quality Rules table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | -| 3 | Integer | [integer]='1' | - -#FUNCTIONAL_REQUIREMENT -##ACTION executing rule -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 377 export |view | -| B | Blank values* (required fields only) | - | 2 export |view | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | 1 export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export |view | -| 3 | Integer | [integer]='1' | 6 export |view | - -#USER_RIGHTS -##ACTION: change rights-cannot create rules -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Edit User Privileges" -And I deselect the checkbox labeled "Create & edit rules" for the field labeled "Data Quality" -And I click on the button labeled "Save Changes" -Then I should see "User "test_user1" was successfully edited" - -#FUNCTIONAL_REQUIREMENT -##ACTION: cannot add rule and can execute rules -When I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" -And I should NOT see a button labeled "Add" - -When I click on the button labeled "All" in the Data Quality Rules controller box -Then I should see a table header and rows containing the following values in the data quality report table: -| Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies| -| A | Blank values* | - | 377 export |view | -| B | Blank values* (required fields only) | - | 2 export |view | -| C | Field validation errors (incorrect data type)| - | 1 export |view | -| D | Field validation errors (out of range) | - | 4 export |view | -| E | Outliers for numerical fields (numbers, integers, sliders, calc fields)**| - | 2 export |view | -| F | Hidden fields that contain values*** | - | 1 export |view | -| G | Multiple choice fields with invalid values | - | 1 export |view | -| H | Incorrect values for calculated fields | - | 26 export |view | -| I | Fields containing "missing data codes" | - | 4 export |view | -| 1 | [radio]=9.9 | [radio]= '9.9' | 1 export |view | -| 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export |view | -| 3 | Integer | [integer]='1' | 6 export |view | - -#USER_RIGHTS -##ACTION: change rights - cannot execute rules -When I click on the link labeled "User Rights" -And I click on the link labeled "test_user1" -And I click on the button labeled "Edit User Privileges" -And I select the checkbox labeled "Create & edit rules" for the field labeled "Data Quality" -And I deselect the checkbox labeled "Execute rules" for the field labeled "Data Quality" -And I click on the button labeled "Save Changes" -Then I should see "User "test_user1" was successfully edited" - -#FUNCTIONAL_REQUIREMENT -##ACTION: can add rule and cannot execute rules -When I click on the link labeled "Data Quality" -Then I should see "Data Quality Rules" -And I should see a button labeled "Add" -And I should NOT see a button labeled "All" diff --git a/Feature Tests/C/Data Quality_18/C.4.18.100 - Data Quality default rules.feature b/Feature Tests/C/Data Quality_18/C.4.18.100 - Data Quality default rules.feature new file mode 100644 index 00000000..a7a709ce --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.100 - Data Quality default rules.feature @@ -0,0 +1,37 @@ +Feature: User Interface: The system shall provide default rules after installation of the application. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.100.100 Default data quality rules + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.100.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + And I should see a table header and rows containing the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | + | A | Blank values* | - | + | B | Blank values* (required fields only) | - | + | C | Field validation errors (incorrect data type) | - | + | D | Field validation errors (out of range) | - | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | + | F | Hidden fields that contain values*** | - | + | G | Multiple choice fields with invalid values | - | + | H | Incorrect values for calculated fields | - | + | I | Fields containing "missing data codes" | - | + | 1 | [radio]=9.9 | [radio]='9..9' | + | 2 | [ptname]<>[name] | [ptname]<>[name] | +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.1000 - Data Quality realtime.feature b/Feature Tests/C/Data Quality_18/C.4.18.1000 - Data Quality realtime.feature new file mode 100644 index 00000000..f8b7277b --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.1000 - Data Quality realtime.feature @@ -0,0 +1,45 @@ +Feature: User Interface: The system shall support the ability to run custom data quality rules real time. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.1000.100 Real-time rule execution + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.1000.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP_PRODUCTION: Rule Creation + When I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + When I enter "Integer" for the field labeled "Rule Name" + And I enter "[integer]<>'1999'" for the field labeled "Logic Editor" + And I click on the button labeled "Update & Close Editor" in the dialog box + And I select the checkbox labeled "Execute in real time on data entry forms" + And I click on the button labeled "Add" + Then I should see a table header and rows containing the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Real-time execution | + | 3 | Integer | [integer]<>'1999' | Enabled | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: System shall support the ability to run custom data quality rules real time + When I click the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Data Types" for event "Event 1" + And I enter "2000" in the field labeled "Integer" + Then I should see "The value you provided is outside the suggested range" + + When I click on the button labeled "Close" in the dialog box + And I click the button labeled "Save and Exit Form" + Then I should see "WARNING: Data Quality rules were violated!" + And I click on the button labeled "Close" in the dialog box +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality/C.4.18.1100 - REDUNDANT.feature b/Feature Tests/C/Data Quality_18/C.4.18.1100 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/Data Quality/C.4.18.1100 - REDUNDANT.feature rename to Feature Tests/C/Data Quality_18/C.4.18.1100 - REDUNDANT.feature diff --git a/Feature Tests/C/Data Quality/C.4.18.1200 - REDUNDANT.feature b/Feature Tests/C/Data Quality_18/C.4.18.1200 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/Data Quality/C.4.18.1200 - REDUNDANT.feature rename to Feature Tests/C/Data Quality_18/C.4.18.1200 - REDUNDANT.feature diff --git a/Feature Tests/C/Data Quality_18/C.4.18.1300 - Data Quality DAG.feature b/Feature Tests/C/Data Quality_18/C.4.18.1300 - Data Quality DAG.feature new file mode 100644 index 00000000..22d6d558 --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.1300 - Data Quality DAG.feature @@ -0,0 +1,74 @@ +Feature: User Interface: The system shall support limiting rule viewing to a Data Access Group. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.1300.100 DAG limits rule viewing + + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.1300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I select "TestGroup1" on the dropdown field labeled "[No Assignment]" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + And I should see "Test User1" assigned to "TestGroup1" + + When I enter "Test_User2" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I select "TestGroup2" on the dropdown field labeled "[No Assignment]" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User2" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + And I should see "Test User2" assigned to "TestGroup2" + + #SETUP: Create Data Quality Rule + When I click on the link labeled "Data Quality" + And I enter "TestGroup1" for the field labeled "Rule Name" + And I enter "([ptname]<>[name]) AND ([user-dag-name]="testgroup1")" for the field labeled "Logic Editor" + And I click on the button labeled "Update & Close Editor" in the dialog box + And I click on the button labeled "Add" + Then I should see a table header and rows including the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | + | 3 | TestGroup1 | ([ptname]<>[name]) AND ([user-dag-name]="testgroup1") | + And I logout + + #FUNCTIONAL_REQUIREMENT + ##ACTION: testuser1 can see results within DAG + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + When I click on the button labeled "All" + ##VERIFY + Then I should see a table header and rows including the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | 3 | TestGroup1 | ([ptname]<>[name]) AND ([user-dag-name]="testgroup1") | 2 export | view | + And I logout + + #FUNCTIONAL_REQUIREMENT + ##ACTION: testuser2 cannot see results within DAG + Given I login to REDCap with the user "Test_User2" + And I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + When I click on the button labeled "All" + ##VERIFY + Then I should see a table header and rows including the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | 3 | TestGroup1 | ([ptname]<>[name]) AND ([user-dag-name]="testgroup1") | 0 | +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.1400 - Data Quality support user rights.feature b/Feature Tests/C/Data Quality_18/C.4.18.1400 - Data Quality support user rights.feature new file mode 100644 index 00000000..9a2f37a6 --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.1400 - Data Quality support user rights.feature @@ -0,0 +1,107 @@ +Feature: User Interface: The system shall support limiting a rule viewing that references a field to only users with access rights. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.1400.100 User access limit rule viewing + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.1400.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #USER_RIGHTS: add two users with diff access levels + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + + When I enter "Test_User2" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "4_NoAccess_Noexport" on the dropdown field labeled "Select Role" on the role selector dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User2" within the "4_NoAccess_Noexport" row of the column labeled "Username" of the User Rights table + + And I logout + + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.4.18.1400" + And I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: confirm user with full rights can execute + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 377 export | view | + | B | Blank values* (required fields only) | - | 2 export | view | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | 1 export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export | view | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: verify ability to view discrepancies with access + When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (incorrect data type)" + Then I should see "Rule: Field validation errors (incorrect data type)" in the dialog box + And I should see "Discrepancies found: 1" in the dialog box + And I should see a table header and rows including the following values in the report table: + | Record | Discrepant fields with their values | Status | Exclude | + | 6 Event 1 (Arm 1: Arm 1_) | email = HelloWorld | Validation error | exclude | + + And I click on the button labeled "Close" in the dialog box + And I logout + + #ACTION: switch to Test_User2 + Given I login to REDCap with the user "Test_User2" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.4.18.1400" + And I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: confirm user with full rights can execute but NOT view discrepancy + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 0 | + | B | Blank values* (required fields only) | - | 0 | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | ERROR export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | ERROR export | view | + + When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (incorrect data type)" + Then I should see "Rule: Field validation errors (incorrect data type)" in the dialog box + And I should see "Discrepancies found: 1" in the dialog box + And I should see a table header and rows containing the following values in the report table: + | Record | Discrepant fields with their values | Status | Exclude | + | 6 Event 1 (Arm 1: Arm 1_) | email = [cannot display data] (Reason: Lack of user privilege) | Validation error | exclude | + + And I click on the button labeled "Close" in the dialog box + + #VERIFY_RSD GO TO RSD AND CANNOT SEE ANY INSTRUMENTS + When I click on the link labeled "Record Status Dashboard" + Then I should NOT see the instrument labeled "Text Validation" for the event "Event 1" +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.200 - Data Quality create rules.feature b/Feature Tests/C/Data Quality_18/C.4.18.200 - Data Quality create rules.feature new file mode 100644 index 00000000..2b1589c0 --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.200 - Data Quality create rules.feature @@ -0,0 +1,110 @@ +Feature: User Interface: The system shall support data quality rule creation. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.200.100 Data quality rule creation + + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project_418.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Manual rule add + When I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + When I enter "Integer" for the field labeled "Rule Name" + And I enter "[integer]='1999'" for the field labeled "Logic Editor" + And I click on the button labeled "Update & Close Editor" in the dialog box + And I click on the button labeled "Add" + ##VERIFY + Then I should see a table header and rows including the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | + | 3 | Integer | [integer]='1999' | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Upload rule + When I select the dropdown option labeled "Upload Data Quality Rule (CSV)" from the dropdown field labeled "Upload or download Data Quality Rules" + And I upload the csv file labeled "C418100TEST_DataQualityRules_Upload" + Then I should see "Upload Data Quality Rule (CSV) - Confirm" in the dialog box + + When I click on the button labeled "Upload" in the dialog box + Then I should see "SUCCESS!" + + When I click on the button labeled "Close" in the dialog box + Then I should see "Data Quality Rules" + ##VERIFY + And I should see a table header and rows containing the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | + | 4 | Integer | [integer]<>'1999' | + + ##ACTION: create record for new rule + When I click the link labeled "Add/Edit Records" + And I click the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Data Types" for event "Event 1" + Then I should see "Adding new Record ID 11" + + When I enter "1999" for the field labeled "Integer" + And I click on the button labeled "Close" in the dialog box + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 11 successfully added." + + ##ACTION: create record for uploaded new rule + When I click the link labeled "Add/Edit Records" + And I click the button labeled "Add new record for the arm selected above" + And I click the bubble labeled "Data Types" for event "Event 1" + Then I should see "Adding new Record ID 12." + + When I enter "2000" for the field labeled "Integer" + And I click on the button labeled "Close" in the dialog box + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 12 successfully added." + + #VERIFY + When I click on the link labeled "Data Quality" + And I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows including the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | 3 | Integer | [integer]='1999' | 1 export | view | + | 4 | Integer | [integer]<>'1999' | 17 export | view | + ##ACTION: edit existing rule + When I click on the edit image for the Rule Logic for rule "4" + And I enter "[integer]='1'" for the field labeled "Logic Editor" + And I click on the button labeled "Update & Close Editor" in the dialog box + And I click on the button labeled "Save" + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | + | 4 | Integer | [integer]='1' | + #M: refresh browser page + + #VERIFY + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | 4 | Integer | [integer]='1' | 1 export | view | + + ##ACTION: delete rule + When I click on the "X" delete image for Rule "4" + And I click on the button labeled "OK" in the pop-up box + Then I should NOT see Rule "4" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Delete data quality rule(s) | + | test_admin | Manage/Design | Edit data quality rule | + | test_admin | Manage/Design | Execute data quality rule(s) | + | test_admin | Manage/Design | Upload Data Quality Rules | + | test_admin | Manage/Design | Create data quality rule | +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.300 - Data Quality execute rules.feature b/Feature Tests/C/Data Quality_18/C.4.18.300 - Data Quality execute rules.feature new file mode 100644 index 00000000..3d15ef22 --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.300 - Data Quality execute rules.feature @@ -0,0 +1,43 @@ +Feature: User Interface: The system shall support executing a rule. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.300.100 Executing data quality rule + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + #FUNCTIONAL REQUIREMENT + ##ACTION The system shall support executing a single rule. + When I click on the link labeled "Data Quality" + And I click on the button labeled "Execute" for Rule # "1" + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | 1 | [radio]=9.9 | [radio]= '9..9' | 1 export | view | + + #FUNCTIONAL REQUIREMENT + ##ACTION The system shall support executing all rules. + When I click on the link labeled "Data Quality" + And I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 375 export | view | + | B | Blank values* (required fields only) | - | 2 export | view | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | 1 export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export | view | +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality/C.4.18.400 - REDUNDANT.feature b/Feature Tests/C/Data Quality_18/C.4.18.400 - REDUNDANT.feature similarity index 91% rename from Feature Tests/C/Data Quality/C.4.18.400 - REDUNDANT.feature rename to Feature Tests/C/Data Quality_18/C.4.18.400 - REDUNDANT.feature index 7b580df6..caba1f8c 100644 --- a/Feature Tests/C/Data Quality/C.4.18.400 - REDUNDANT.feature +++ b/Feature Tests/C/Data Quality_18/C.4.18.400 - REDUNDANT.feature @@ -1,3 +1,3 @@ Feature: User Interface: The system shall support executing all rules at the same time. -This feature test is REDUNDANT and can be viewed in C.4.18.300.100C.4.18.500 \ No newline at end of file +This feature test is REDUNDANT and can be viewed in C.4.18.300.100 & C.4.18.500 \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.500 - Data Quality disrepancies.feature b/Feature Tests/C/Data Quality_18/C.4.18.500 - Data Quality disrepancies.feature new file mode 100644 index 00000000..26eeb658 --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.500 - Data Quality disrepancies.feature @@ -0,0 +1,49 @@ +Feature: User Interface: The system shall support viewing discrepancies found in rule execution. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.500.100 View discrepancies + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.500.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + + ##ACTION executing all rules. + When I click on the link labeled "Data Quality" + And I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 375 export | view | + | B | Blank values* (required fields only) | - | 2 export | view | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | 1 export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export | view | + #FUNCTIONAL_REQUIREMENT + ##ACTION: verify ability to view discrepancies + When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (incorrect data type)" + Then I should see "Rule: Field validation errors (incorrect data type)" in the dialog box + And I should see "Discrepancies found: 1" in the dialog box + And I should see a table header and rows including the following values in the report table: + | Record | Discrepant fields with their values | Status | Exclude | + | 6 Event 1 (Arm 1: Arm 1_) | email = HelloWorld | Validation error | exclude | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: verify ability to export discrepancies + When I click on the button labeled "Export results (CSV)" in the dialog box + Then I should have a csv file with a table header and rows including the following values in the report table: + | record_id | result-status | email | + | 6 | Validation error | HelloWorld | +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.600 - Data Quality exclude rules.feature b/Feature Tests/C/Data Quality_18/C.4.18.600 - Data Quality exclude rules.feature new file mode 100644 index 00000000..2780530c --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.600 - Data Quality exclude rules.feature @@ -0,0 +1,94 @@ +Feature: User Interface: The system shall support excluding discrepancies found in rule execution. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.600.100 Exclude discrepancies + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.600.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + + ##ACTION executing all rules. + When I click on the link labeled "Data Quality" + And I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 375 export | view | + | B | Blank values* (required fields only) | - | 2 export | view | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | 1 export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export | view | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: verify ability to exclude a discrepancy + When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (out of range)" + Then I should see "Rule: Field validation errors (out of range)" in the dialog box + And I should see "Discrepancies found: 4" in the dialog box + And I should see a table header and rows including the following values in the data quality table: + | Record | Discrepant fields with their values | Status | Exclude | + | 5 (#1) | integer = 1111111111 | Out of range | exclude | + | 5 (#1) | number_1_comma = 22222222.0 | Out of range | exclude | + | 5 (#1) | number_1_period = 4.2 | Out of range | exclude | + | 5 (#1) | number = 10.000 | Out of range | exclude | + + When I click on the link labeled "exclude" for the discrepant field labeled "Integer" + Then I should see a table header and rows including the following values in the data quality table: + | Record | Discrepant fields with their values | Status | Exclude | + | 5 (#1) | integer = 1111111111 | Out of range | remove exclusion | + + And I click on the button labeled "Close" in the dialog box + #M: refresh the page + + ##VERIFY + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | D | Field validation errors (out of range) | - | 3 export | view | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: verify ability to add back excluded discrepancy + When I click on the link labeled "view" for the Rule Name labeled "Field validation errors (out of range)" + Then I should see "Rule: Field validation errors (out of range)" in the dialog box + And I should see "Discrepancies found: 3" in the dialog box + And I should see a link labeled "view" in the dialog box + + When I click on the link labeled "view" in the dialog box + Then I should see "Rule: Field validation errors (out of range)" in the dialog box + And I should see "Discrepancies found: 4" in the dialog box + And I should see a table header and rows including the following values in the data quality table: + | Record | Discrepant fields with their values | Status | Exclude | + | 5 (#1) | integer = 1111111111 | Out of range | remove exclusion | + | 5 (#1) | number_1_comma = 22222222.0 | Out of range | exclude | + | 5 (#1) | number_1_period = 4.2 | Out of range | exclude | + | 5 (#1) | number = 10.000 | Out of range | exclude | + + When I click on the link labeled "remove exclusion" for the discrepant field labeled "Integer" + And I should see a table header and rows containing the following values in the data quality table: + | Record | Discrepant fields with their values | Status | Exclude | + | 5 (#1) | integer = 1111111111 | Out of range | exclude | + | 5 (#1) | number_1_comma = 22222222.0 | Out of range | exclude | + | 5 (#1) | number_1_period = 4.2 | Out of range | exclude | + | 5 (#1) | number = 10.000 | Out of range | exclude | + + And I click on the button labeled "Close" in the dialog box + #M: refresh the page + + ##VERIFY + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows including the following values in the data quality table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | D | Field validation errors (out of range) | - | 4 export | view | +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality_18/C.4.18.700 - Data Quality edit rules.feature b/Feature Tests/C/Data Quality_18/C.4.18.700 - Data Quality edit rules.feature new file mode 100644 index 00000000..8ad589ad --- /dev/null +++ b/Feature Tests/C/Data Quality_18/C.4.18.700 - Data Quality edit rules.feature @@ -0,0 +1,107 @@ +Feature: User Interface: The system shall support editing of user defined rules. + + As a REDCap end user + I want to see that Data Quality Module is functioning as expected + + Scenario: C.4.18.700.100 Edit rule + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.4.18.700.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Project418.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Edit User Privileges" + And I verify the checkbox labeled "Create & edit rules" for the field labeled "Data Quality" is selected + And I verify the checkbox labeled "Execute rules" for the field labeled "Data Quality" is selected + And I click on the button labeled "Save Changes" + Then I should see "User "test_user1" was successfully edited" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: Manual rule add + When I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + + When I enter "Integer" for the field labeled "Rule Name" + And I enter "[integer]='1'" for the field labeled "Logic Editor" + And I click on the button labeled "Update & Close Editor" in the dialog box + And I click on the button labeled "Add" + ##VERIFY + Then I should see a table header and rows including the following values in the Data Quality Rules table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | + | 3 | Integer | [integer]='1' | + + #FUNCTIONAL_REQUIREMENT + ##ACTION executing rule + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 375 export | view | + | B | Blank values* (required fields only) | - | 2 export | view | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | 1 export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export | view | + | 3 | Integer | [integer]='1' | 6 export | view | + + #USER_RIGHTS + ##ACTION: change rights-cannot create rules + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Edit User Privileges" + And I deselect the checkbox labeled "Create & edit rules" for the field labeled "Data Quality" + And I click on the button labeled "Save Changes" + Then I should see "User "test_user1" was successfully edited" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: cannot add rule and can execute rules + When I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + And I should NOT see a button labeled "Add" + + When I click on the button labeled "All" in the Data Quality Rules controller box + Then I should see a table header and rows containing the following values in the data quality report table: + | Rule # | Rule Name | Rule Logic (Show discrepancy only if...) | Total Discrepancies | + | A | Blank values* | - | 377 export | view | + | B | Blank values* (required fields only) | - | 2 export | view | + | C | Field validation errors (incorrect data type) | - | 1 export | view | + | D | Field validation errors (out of range) | - | 4 export | view | + | E | Outliers for numerical fields (numbers, integers, sliders, calc fields)** | - | 2 export | view | + | F | Hidden fields that contain values*** | - | 1 export | view | + | G | Multiple choice fields with invalid values | - | 1 export | view | + | H | Incorrect values for calculated fields | - | 26 export | view | + | I | Fields containing "missing data codes" | - | 4 export | view | + | 1 | [radio]=9.9 | [radio]= '9.9' | 1 export | view | + | 2 | [ptname]<>[name] | [ptname]<>[name] | 8 export | view | + | 3 | Integer | [integer]='1' | 6 export | view | + + #USER_RIGHTS + ##ACTION: change rights - cannot execute rules + When I click on the link labeled "User Rights" + And I click on the link labeled "test_user1" + And I click on the button labeled "Edit User Privileges" + And I select the checkbox labeled "Create & edit rules" for the field labeled "Data Quality" + And I deselect the checkbox labeled "Execute rules" for the field labeled "Data Quality" + And I click on the button labeled "Save Changes" + Then I should see "User "test_user1" was successfully edited" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: can add rule and cannot execute rules + When I click on the link labeled "Data Quality" + Then I should see "Data Quality Rules" + And I should see a button labeled "Add" + And I should NOT see a button labeled "All" +#END \ No newline at end of file diff --git a/Feature Tests/C/Data Quality/C.4.18.800 - REDUNDANT.feature b/Feature Tests/C/Data Quality_18/C.4.18.800 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/Data Quality/C.4.18.800 - REDUNDANT.feature rename to Feature Tests/C/Data Quality_18/C.4.18.800 - REDUNDANT.feature diff --git a/Feature Tests/C/Data Quality/C.4.18.900 - REDUNDANT.feature b/Feature Tests/C/Data Quality_18/C.4.18.900 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/Data Quality/C.4.18.900 - REDUNDANT.feature rename to Feature Tests/C/Data Quality_18/C.4.18.900 - REDUNDANT.feature diff --git a/Feature Tests/C/File Repository/C.3.26.200 - View Access & User Rights.feature b/Feature Tests/C/File Repository/C.3.26.200 - View Access & User Rights.feature deleted file mode 100644 index 7520863b..00000000 --- a/Feature Tests/C/File Repository/C.3.26.200 - View Access & User Rights.feature +++ /dev/null @@ -1,362 +0,0 @@ -Feature: User Interface: The system shall support limiting file repository user view access and export rights. - -As a REDCap end user -I want to see that file repository is functioning as expected - -Scenario: C.3.26.200.100 Limit user view and export access based on User Rights and DAG - -#SETUP -Given I login to REDCap with the user "Test_Admin" -When I create a new project named "A.3.26.200.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 link labeled "My Projects" -And I click on the link labeled "A.3.26.200.100" - -##SETUP auto-archive -And I click the link labeled "Designer" -And I click the button labeled "Survey Settings" for the instrument "Consent" -And I click on the button labeled "Auto-Archiver + eConsent enabled" -Then I click the button labeled "Save Changes" - -##SETUP File Repository -And I click the link labeled "File Repository" - -#Create DAG limited folder -And I click the button labeled "Create Folder" -And I type "TestGroup1_Folder" into the field labeled "New folder name" -And I select "TestGroup1" in the dropdown labeled "Limit access by Data Access Group?" -And I click on the button labeled "Create Folder" -Then I should see "TestGroup1_Folder" - -#Create role limited folder -And I click the button labeled "Create Folder" -And I type "Role1_Folder" into the field labeled "New folder name" -And I select "1_FullRights" in the dropdown labeled "Limit access by User Role?" -And I click on the button labeled "Create Folder" -Then I should see "Role1_Folder" - -##SETUP User Rights: -When I click on the link labeled "User Rights" -Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file -Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" -And I should see a table header and rows containing the following values in the table: -| username | -| test_user1 | -| test_user2 | -| test_user3 | -| test_user4 | - -Given I click on the button labeled "Upload" -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup - -And I should see a table header and rows including the following values in the table: -|Role name | Username | -| | test_admin | -| | test_user1 | -| | test_user2 | -| | test_user3 | -| | test_user4 | -| 1_FullRights | | -| 2_Edit_RemoveID| | -| 3_ReadOnly_Deidentified | | -| 4_NoAccess_Noexport | | - -##SETUP Assign to roles -When I click on the link labeled "Test_User1" -And I click on the button labeled "Assign to role" -And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected -And I click on the button labeled "Assign" -Then I should see "Test_User1" user assigned "1_FullRights" role - -When I click on the link labeled "Test_User2" -And I click on the button labeled "Assign to role" -And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected -And I click on the button labeled "Assign" -Then I should see "Test_User2" user assigned "1_FullRights" role - -When I click on the link labeled "Test_User3" -And I click on the button labeled "Assign to role" -And I should see the dropdown field labeled "Select Role" with the option "3_ReadOnly_Deidentified" selected -And I click on the button labeled "Assign" -Then I should see "Test_User3" user assigned "3_ReadOnly_Deidentified" role - -When I click on the link labeled "Test_User4" -And I click on the button labeled "Assign to role" -And I should see the dropdown field labeled "Select Role" with the option "3_ReadOnly_Deidentified" selected -And I click on the button labeled "Assign" -Then I should see "Test_User4" user assigned "3_ReadOnly_Deidentified" role -And I should see a table header and rows including the following values in the table: -|Role name | Username | -| | test_admin | -| 1_FullRights | test_user1 | -| 1_FullRights | test_user2 | -| 2_Edit_RemoveID| | -| 3_ReadOnly_Deidentified | test_user3 | -| 3_ReadOnly_Deidentified | test_user4 | -| 4_NoAccess_Noexport | | - -##SETUP DAG: Assign User to DAG -When I select "Test_User1" from "Assign User" dropdown -And I select "TestGroup1" from "DAG" dropdown -And I click on the button labeled "Assign" -Then I should see "Test_User1" assigned to "TestGroup1" - -When I select "Test_User2" from "Assign User" dropdown -And I select "TestGroup2" from "DAG" dropdown -And I click on the button labeled "Assign" -Then I should see "Test_User2" assigned to "TestGroup2" - -When I select "Test_User3" from "Assign User" dropdown -And I select "TestGroup1" from "DAG" dropdown -And I click on the button labeled "Assign" -Then I should see "Test_User3" assigned to "TestGroup1" - -#"Test_User4" is not assigned to a DAG - -And I logout - -##SETUP Record: Create record while in DAG through eConsent framework -Given I login to REDCap with the user "Test_User1" -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID" - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -And I click on the button labeled "Next Page" -Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" -And I should see "TestGroup1" - -#FUNCTIONAL_REQUIREMENT -##ACTION Upload to top tier file repo (all users will see file) - using the Drag and drop files here to upload button -When I click on the link labeled "File Repository" -And I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Drag and drop files here to upload" to browse for the file, and clicking the button labeled "Open" to upload the file - -##VERIFY_FiRe file uploaded in folder -Then I should see "user list for project 1.csv" -And I should see "Role1_Folder" -And I should see "TestGroup1_Folder" - -##ACTION Upload to top tier file repo (all users will see file) - using the Select files to upload button -When I click on the link labeled "File Repository" -When I upload a "csv" format file located at "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file - -##VERIFY_FiRe file uploaded in folder -Then I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Upload to DAG folder -When I click on the link labeled "TestGroup1_Folder" -Then I should see "All Files/TestGroup1_Folder" -When I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file - -##VERIFY_FiRe uploaded in subfolder -Then I should see "user list for project 1.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Upload to Role folder -When I click on the link labeled "File Repository" -And I click on the link labeled "Role1_Folder" -Then I should see "All Files/Role1_Folder" -#C.3.26.400.100 #Upload more than one file at the same time using the select files to upload button -When I upload a "csv" format file located at "import_files/user list for project 1.csv" and "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file - -##VERIFY_FiRe uploaded in subfolder -Then I should see "user list for project 1.csv" -And I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Auto-archive file in DAG TestGroup1 -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows including the following values in the PDF Survey Archive table: -Name | Record | -"pdf" format file | (record-name) TestGroup1 - -And I logout - -##SETUP Record: Create record while in DAG through -Given I login to REDCap with the user "Test_User2" -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID" - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -And I click on the button labeled "Next Page" -Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" -And I should see "TestGroup2" - -#FUNCTIONAL_REQUIREMENT -When I click on the link labeled "File Repository" -##ACTION Unable to access DAG folder -##VERIFY_FiRe See file uploaded by Test_User1 -Then I should see "Data Export Files" -And I should see "Recycle Bin" -And I should see "Role1_Folder" -And I should NOT see "TestGroup1_Folder" -And I should see "user list for project 1.csv" -And I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Interact in Role folder -When I click on the link labeled "File Repository" -And I click on the link labeled "Role1_Folder" -#Download file previously uploaded by test_user1 -And I click the link labeled "user list for project 1.csv" -Then I should have a csv file labeled "user list for project 1.csv" - -##ACTION Upload to Role folder -When I upload a "csv" format file located at "import_files/instrument designation.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file - -##VERIFY_FiRe uploaded in subfolder -Then I should see "instrument designation.csv" -And I should see "user list for project 1.csv" -And I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Auto-archive file in DAG TestGroup2 -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -#See consent just created in testgroup2 -#Don't see consent created by testgroup1 -Then I should see a table header and rows including the following values in the PDF Survey Archive table: -Name | Record | -"pdf" format file | [record-name] TestGroup2 - -And I logout - -#FUNCTIONAL_REQUIREMENT -Given I login to REDCap with the user "Test_User3" -When I click on the link labeled "File Repository" -##ACTION Unable to access Role folder -##VERIFY_FiRe See file uploaded by Test_User1 -Then I should see "Data Export Files" -And I should see "Recycle Bin" -And I should NOT see "Role1_Folder" -And I should see "TestGroup1_Folder" -And I should see "user list for project 1.csv" -And I should see "testusers_bulk_upload.csv" - -##ACTION Download to top tier file imported by user 1 & user 2 -When I click on the link labeled "user list for project 1.csv" -Then I should have a csv file labeled "user list for project 1.csv" -When I click on the link labeled "testusers_bulk_upload.csv" -Then I should have a csv file labeled "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Access DAG folder -When I click on the link labeled "TestGroup1_Folder" -Then I should see the link labeled "user list for project 1.csv" - -When I click on the link labeled "user list for project 1.csv" -##VERIFY_FiRe Download another users file in subfolder -Then I should have a csv file labeled "user list for project 1.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Auto-archive file in DAG TestGroup1 -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows including the following values in the PDF Survey Archive table: -Name | Record | -"pdf" format file | [record-name] TestGroup1 -#Don't see consent created by testgroup2 - -And I logout - -#FUNCTIONAL_REQUIREMENT -##ACTION Download to top tier file -Given I login to REDCap with the user "Test_User4" -When I click on the link labeled "File Repository" -##ACTION Unable to access Role folder -##VERIFY_FiRe See file uploaded by Test_User1 & Test_User2 -Then I should see "Data Export Files" -And I should see "Recycle Bin" -And I should NOT see "Role1_Folder" -And I should see "TestGroup1_Folder" -And I should see "user list for project 1.csv" -And I should see "testusers_bulk_upload.csv" - -##ACTION Download to top tier file imported by user 1 & user 2 -When I click on the link labeled "user list for project 1.csv" -Then I should have a csv file labeled "user list for project 1.csv" -When I click on the link labeled "testusers_bulk_upload.csv" -Then I should have a csv file labeled "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Access DAG folder -When I click on the link labeled "TestGroup1_Folder" -Then I should see the link labeled "user list for project 1.csv" - -When I click on the link labeled "user list for project 1.csv" -##VERIFY_FiRe Download another users file in subfolder -Then I should have a csv file labeled "user list for project 1.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Auto-archive access all file -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should see a table header and rows including the following values in the PDF Survey Archive table: -Name | Record | -"pdf" format file | [record-name] testgroup1 -"pdf" format file | [record-name] testgroup2 - -#FUNCTIONAL_REQUIREMENT -##ACTION C.3.26.500.100 Delete folders - unable to delete with file in folder -When I click on the link labeled "File Repository" -And I check the checkbox labeled "TestGroup1_Folder" -And I click on the button labeled "Delete" -##VERIFY will not let you delete folder with file inside -Then I should see a dialog containing the following text: "Alert" -When I click on the button labeled "Close" in the dialog box -Then I should see "TestGroup1_Folder" - -##ACTION Cancel Remove files from folder -When I click on the link labeled "TestGroup1_Folder" -And I check the checkbox labeled "user list for project 1.csv" -And I click on the button labeled "Delete" -Then I should see a dialog containing the following text: "Delete multiple files?" -And I click on the button labeled "Cancel" in the dialog box -##VERIFY file still in folder -Then I should see "user list for project 1.csv" - -##ACTION Delete/Remove files from folder -When I check the checkbox labeled "user list for project 1.csv" -And I click on the button labeled "Delete" -Then I should see a dialog containing the following text: "Delete multiple files?" -And I click on the button labeled "Delete" in the dialog box -##VERIFY file deleted in folder -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup -Then I should NOT see "user list for project 1.csv" - -##ACTION C.3.26.500.100 Delete folders - Cancel deletion -When I click on the link labeled "File Repository" -And I click on the delete file? icon labeled "X" for the folder labeled "TestGroup1_Folder" -##VERIFY Cancel deletion -Then I should see a dialog containing the following text: "Folder: TestGroup1_Folder" -When I click on the button labeled "Cancel" in the dialog box -Then I should see "TestGroup1_Folder" - -##ACTION C.3.26.500.100 Delete folders -When I click on the delete file? icon labeled "X" for the folder labeled "TestGroup1_Folder" -##VERIFY Folder deleted -Then I should see a dialog containing the following text: "Folder: TestGroup1_Folder" - -When I click on the button labeled "Delete" in the dialog box -Then I should NOT see "TestGroup1_Folder" - diff --git a/Feature Tests/C/File Repository/C.3.26.300 - Storage & Organization.feature b/Feature Tests/C/File Repository/C.3.26.300 - Storage & Organization.feature deleted file mode 100644 index 1da61489..00000000 --- a/Feature Tests/C/File Repository/C.3.26.300 - Storage & Organization.feature +++ /dev/null @@ -1,130 +0,0 @@ -Feature: User Interface: The system shall support the storage, organization, and sharing of project files for permanent folders: (Data Export | e-Consent PDFs | Recycle Bin | Custom Create folder / Sub-folder) - -As a REDCap end user -I want to see that file repository is functioning as expected - -Scenario: C.3.26.300.100 Automatic uploading of data export logs into the data export folder - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.3.26.300.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 link labeled "My Projects" -And I click on the link labeled "A.3.26.300.100" - -#SETUP Export data automatically placed in file repo -Given I click on the link labeled "Data Exports, Reports, and Stats" -And I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table -And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box -And I click on the button labeled "Export Data" in the dialog box -Then I should see a dialog containing the following text: "Data export was successful!" - -Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box -Then I should have a csv file - -#FUNCTIONAL_REQUIREMENT -##ACTION Export data automatically placed in file repo -When I click on the link labeled "File Repository" -And I click on the link labeled "Data Export Files" - -Then I verify I see the csv file -And I should see "Data export file created by test_admin on YYYY-MM-DD" - -Scenario: C.3.26.300.200 Automatic uploading of e-Consent Framework PDFs -REDUNDANT -Scenario: C.3.26.300.300 Recycle bin function - permanently force delete - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.3.26.300.300" 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 link labeled "My Projects" -And I click on the link labeled "A.3.26.300.300" - -##ACTION Upload to top tier file repo -When I click on the link labeled "File Repository" -And I upload a "csv" format file located at "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file - -##VERIFY_FiRe file uploaded in folder -Then I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Delete file -When I check the checkbox labeled "testusers_bulk_upload.csv" -And I click on the button labeled "Delete" -Then I should see a dialog containing the following text: "Delete files?" -And I click on the button labeled "Delete" in the dialog box -##VERIFY file deleted in folder -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup -Then I should NOT see "testusers_bulk_upload.csv" - - -#FUNCTIONAL_REQUIREMENT -##ACTION Cancel Restore deleted file -When I click on the link labeled "Recycle Bin" -Then I should see "testusers_bulk_upload.csv" -When I click on the link labeled "Restore deleted file?" -Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" -When I click on the button labeled "Cancel" in the dialog box -##VERIFY file still in recycle folder -Then I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Restore deleted file -When I click on the link labeled "Recycle Bin" -Then I should see "testusers_bulk_upload.csv" -When I click on the link labeled "Restore deleted file?" -Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" -When I click on the button labeled "Restore" in the dialog box -##VERIFY file still in recycle folder -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup -Then I should see NOT "testusers_bulk_upload.csv" -When I click on the link labeled "File Repository" -Then I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Delete file -When I check the checkbox labeled "testusers_bulk_upload.csv" -And I click on the button labeled "Delete" -Then I should see a dialog containing the following text: "Delete files?" -And I click on the button labeled "Delete" in the dialog box -##VERIFY file deleted in folder -Then I should see a dialog containing the following text: "SUCCESS!" -And I close the popup -Then I should NOT see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Cancel Permanently deleted file -When I click on the link labeled "Recycle Bin" -Then I should see "testusers_bulk_upload.csv" -When I click on the link labeled "Permanently deleted file" -Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" -When I click on the button labeled "Cancel" in the dialog box -##VERIFY file still in recycle folder -Then I should see "testusers_bulk_upload.csv" - -#FUNCTIONAL_REQUIREMENT -##ACTION Permanently deleted file -When I click on the link labeled "Recycle Bin" -Then I should see "testusers_bulk_upload.csv" -When I click on the link labeled "Permanently deleted file" -Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" -When I click on the button labeled "Delete" in the dialog box -##VERIFY file deleted in recycle folder -Then I should see a dialog containing the following text: "File was successfully deleted!" -And I close the popup -Then I should see NOT "testusers_bulk_upload.csv" -When I click on the link labeled "File Repository" -Then I should see NOT "testusers_bulk_upload.csv" - -##VERIFY_LOG -When I click on the button labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -test_admin | Manage/Design | Permanently delete file from File Repository -test_admin | Manage/Design | Delete file from File Repository -test_admin | Manage/Design | Restore file in File Repository -test_admin | Manage/Design | Delete file from File Repository - -Scenario: C.3.26.300.400 Custom folder / sub-folder -REDUNDANT with C.3.26.200 diff --git a/Feature Tests/C/File Repository_26/C.3.26.200 - View Access & User Rights.feature b/Feature Tests/C/File Repository_26/C.3.26.200 - View Access & User Rights.feature new file mode 100644 index 00000000..55bdc632 --- /dev/null +++ b/Feature Tests/C/File Repository_26/C.3.26.200 - View Access & User Rights.feature @@ -0,0 +1,363 @@ +Feature: User Interface: The system shall support limiting file repository user view access and export rights. + + As a REDCap end user + I want to see that file repository is functioning as expected + + Scenario: C.3.26.200.100 Limit user view and export access based on User Rights and DAG + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + When I create a new project named "C.3.26.200.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 link labeled "My Projects" + And I click on the link labeled "C.3.26.200.100" + + ##SETUP auto-archive + And I click the link labeled "Designer" + And I click the button labeled "Survey Settings" for the instrument "Consent" + And I click on the button labeled "Auto-Archiver + eConsent enabled" + Then I click the button labeled "Save Changes" + + ##SETUP File Repository + And I click the link labeled "File Repository" + + #Create DAG limited folder + And I click the button labeled "Create Folder" + And I type "TestGroup1_Folder" into the field labeled "New folder name" + And I select "TestGroup1" in the dropdown labeled "Limit access by Data Access Group?" + And I click on the button labeled "Create Folder" + Then I should see "TestGroup1_Folder" + + #Create role limited folder + And I click the button labeled "Create Folder" + And I type "Role1_Folder" into the field labeled "New folder name" + And I select "1_FullRights" in the dropdown labeled "Limit access by User Role?" + And I click on the button labeled "Create Folder" + Then I should see "Role1_Folder" + + ##SETUP User Rights: + When I click on the link labeled "User Rights" + Given I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select your CSV" to browse for the file, and clicking the button labeled "Upload" to upload the file + Then I should see a dialog containing the following text: "Upload users (CSV) - Confirm" + And I should see a table header and rows containing the following values in the table: + | username | + | test_user1 | + | test_user2 | + | test_user3 | + | test_user4 | + + Given I click on the button labeled "Upload" + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + + And I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | | test_user1 | + | | test_user2 | + | | test_user3 | + | | test_user4 | + | 1_FullRights | | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | | + | 4_NoAccess_Noexport | | + + ##SETUP Assign to roles + When I click on the link labeled "Test_User1" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected + And I click on the button labeled "Assign" + Then I should see "Test_User1" user assigned "1_FullRights" role + + When I click on the link labeled "Test_User2" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "1_FullRights" selected + And I click on the button labeled "Assign" + Then I should see "Test_User2" user assigned "1_FullRights" role + + When I click on the link labeled "Test_User3" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "3_ReadOnly_Deidentified" selected + And I click on the button labeled "Assign" + Then I should see "Test_User3" user assigned "3_ReadOnly_Deidentified" role + + When I click on the link labeled "Test_User4" + And I click on the button labeled "Assign to role" + And I should see the dropdown field labeled "Select Role" with the option "3_ReadOnly_Deidentified" selected + And I click on the button labeled "Assign" + Then I should see "Test_User4" user assigned "3_ReadOnly_Deidentified" role + And I should see a table header and rows including the following values in the table: + | Role name | Username | + | | test_admin | + | 1_FullRights | test_user1 | + | 1_FullRights | test_user2 | + | 2_Edit_RemoveID | | + | 3_ReadOnly_Deidentified | test_user3 | + | 3_ReadOnly_Deidentified | test_user4 | + | 4_NoAccess_Noexport | | + + ##SETUP DAG: Assign User to DAG + When I select "Test_User1" from "Assign User" dropdown + And I select "TestGroup1" from "DAG" dropdown + And I click on the button labeled "Assign" + Then I should see "Test_User1" assigned to "TestGroup1" + + When I select "Test_User2" from "Assign User" dropdown + And I select "TestGroup2" from "DAG" dropdown + And I click on the button labeled "Assign" + Then I should see "Test_User2" assigned to "TestGroup2" + + When I select "Test_User3" from "Assign User" dropdown + And I select "TestGroup1" from "DAG" dropdown + And I click on the button labeled "Assign" + Then I should see "Test_User3" assigned to "TestGroup1" + + #"Test_User4" is not assigned to a DAG + + And I logout + + ##SETUP Record: Create record while in DAG through eConsent framework + Given I login to REDCap with the user "Test_User1" + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID" + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + And I click on the button labeled "Next Page" + Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + And I should see "TestGroup1" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Upload to top tier file repo (all users will see file) - using the Drag and drop files here to upload button + When I click on the link labeled "File Repository" + And I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Drag and drop files here to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + + ##VERIFY_FiRe file uploaded in folder + Then I should see "user list for project 1.csv" + And I should see "Role1_Folder" + And I should see "TestGroup1_Folder" + + ##ACTION Upload to top tier file repo (all users will see file) - using the Select files to upload button + When I click on the link labeled "File Repository" + When I upload a "csv" format file located at "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + + ##VERIFY_FiRe file uploaded in folder + Then I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Upload to DAG folder + When I click on the link labeled "TestGroup1_Folder" + Then I should see "All Files/TestGroup1_Folder" + When I upload a "csv" format file located at "import_files/user list for project 1.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + + ##VERIFY_FiRe uploaded in subfolder + Then I should see "user list for project 1.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Upload to Role folder + When I click on the link labeled "File Repository" + And I click on the link labeled "Role1_Folder" + Then I should see "All Files/Role1_Folder" + #C.3.26.400.100 #Upload more than one file at the same time using the select files to upload button + When I upload a "csv" format file located at "import_files/user list for project 1.csv" and "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + + ##VERIFY_FiRe uploaded in subfolder + Then I should see "user list for project 1.csv" + And I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Auto-archive file in DAG TestGroup1 + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows including the following values in the PDF Survey Archive table: + Name | Record | + "pdf" format file | (record-name) TestGroup1 + + And I logout + + ##SETUP Record: Create record while in DAG through + Given I login to REDCap with the user "Test_User2" + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID" + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + And I click on the button labeled "Next Page" + Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + And I should see "TestGroup2" + + #FUNCTIONAL_REQUIREMENT + When I click on the link labeled "File Repository" + ##ACTION Unable to access DAG folder + ##VERIFY_FiRe See file uploaded by Test_User1 + Then I should see "Data Export Files" + And I should see "Recycle Bin" + And I should see "Role1_Folder" + And I should NOT see "TestGroup1_Folder" + And I should see "user list for project 1.csv" + And I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Interact in Role folder + When I click on the link labeled "File Repository" + And I click on the link labeled "Role1_Folder" + #Download file previously uploaded by test_user1 + And I click the link labeled "user list for project 1.csv" + Then I should have a csv file labeled "user list for project 1.csv" + + ##ACTION Upload to Role folder + When I upload a "csv" format file located at "import_files/instrument designation.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + + ##VERIFY_FiRe uploaded in subfolder + Then I should see "instrument designation.csv" + And I should see "user list for project 1.csv" + And I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Auto-archive file in DAG TestGroup2 + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + #See consent just created in testgroup2 + #Don't see consent created by testgroup1 + Then I should see a table header and rows including the following values in the PDF Survey Archive table: + Name | Record | + "pdf" format file | [record-name] TestGroup2 + + And I logout + + #FUNCTIONAL_REQUIREMENT + Given I login to REDCap with the user "Test_User3" + When I click on the link labeled "File Repository" + ##ACTION Unable to access Role folder + ##VERIFY_FiRe See file uploaded by Test_User1 + Then I should see "Data Export Files" + And I should see "Recycle Bin" + And I should NOT see "Role1_Folder" + And I should see "TestGroup1_Folder" + And I should see "user list for project 1.csv" + And I should see "testusers_bulk_upload.csv" + + ##ACTION Download to top tier file imported by user 1 & user 2 + When I click on the link labeled "user list for project 1.csv" + Then I should have a csv file labeled "user list for project 1.csv" + When I click on the link labeled "testusers_bulk_upload.csv" + Then I should have a csv file labeled "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Access DAG folder + When I click on the link labeled "TestGroup1_Folder" + Then I should see the link labeled "user list for project 1.csv" + + When I click on the link labeled "user list for project 1.csv" + ##VERIFY_FiRe Download another users file in subfolder + Then I should have a csv file labeled "user list for project 1.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Auto-archive file in DAG TestGroup1 + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows including the following values in the PDF Survey Archive table: + Name | Record | + "pdf" format file | [record-name] TestGroup1 + #Don't see consent created by testgroup2 + + And I logout + + #FUNCTIONAL_REQUIREMENT + ##ACTION Download to top tier file + Given I login to REDCap with the user "Test_User4" + When I click on the link labeled "File Repository" + ##ACTION Unable to access Role folder + ##VERIFY_FiRe See file uploaded by Test_User1 & Test_User2 + Then I should see "Data Export Files" + And I should see "Recycle Bin" + And I should NOT see "Role1_Folder" + And I should see "TestGroup1_Folder" + And I should see "user list for project 1.csv" + And I should see "testusers_bulk_upload.csv" + + ##ACTION Download to top tier file imported by user 1 & user 2 + When I click on the link labeled "user list for project 1.csv" + Then I should have a csv file labeled "user list for project 1.csv" + When I click on the link labeled "testusers_bulk_upload.csv" + Then I should have a csv file labeled "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Access DAG folder + When I click on the link labeled "TestGroup1_Folder" + Then I should see the link labeled "user list for project 1.csv" + + When I click on the link labeled "user list for project 1.csv" + ##VERIFY_FiRe Download another users file in subfolder + Then I should have a csv file labeled "user list for project 1.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Auto-archive access all file + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should see a table header and rows including the following values in the PDF Survey Archive table: + Name | Record | + "pdf" format file | [record-name] testgroup1 + "pdf" format file | [record-name] testgroup2 + + #FUNCTIONAL_REQUIREMENT + ##ACTION C.3.26.500.100 Delete folders - unable to delete with file in folder + When I click on the link labeled "File Repository" + And I check the checkbox labeled "TestGroup1_Folder" + And I click on the button labeled "Delete" + ##VERIFY will not let you delete folder with file inside + Then I should see a dialog containing the following text: "Alert" + When I click on the button labeled "Close" in the dialog box + Then I should see "TestGroup1_Folder" + + ##ACTION Cancel Remove files from folder + When I click on the link labeled "TestGroup1_Folder" + And I check the checkbox labeled "user list for project 1.csv" + And I click on the button labeled "Delete" + Then I should see a dialog containing the following text: "Delete multiple files?" + And I click on the button labeled "Cancel" in the dialog box + ##VERIFY file still in folder + Then I should see "user list for project 1.csv" + + ##ACTION Delete/Remove files from folder + When I check the checkbox labeled "user list for project 1.csv" + And I click on the button labeled "Delete" + Then I should see a dialog containing the following text: "Delete multiple files?" + And I click on the button labeled "Delete" in the dialog box + ##VERIFY file deleted in folder + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + Then I should NOT see "user list for project 1.csv" + + ##ACTION C.3.26.500.100 Delete folders - Cancel deletion + When I click on the link labeled "File Repository" + And I click on the delete file? icon labeled "X" for the folder labeled "TestGroup1_Folder" + ##VERIFY Cancel deletion + Then I should see a dialog containing the following text: "Folder: TestGroup1_Folder" + When I click on the button labeled "Cancel" in the dialog box + Then I should see "TestGroup1_Folder" + + ##ACTION C.3.26.500.100 Delete folders + When I click on the delete file? icon labeled "X" for the folder labeled "TestGroup1_Folder" + ##VERIFY Folder deleted + Then I should see a dialog containing the following text: "Folder: TestGroup1_Folder" + + When I click on the button labeled "Delete" in the dialog box + Then I should NOT see "TestGroup1_Folder" +#END \ No newline at end of file diff --git a/Feature Tests/C/File Repository_26/C.3.26.300 - Storage & Organization.feature b/Feature Tests/C/File Repository_26/C.3.26.300 - Storage & Organization.feature new file mode 100644 index 00000000..4eda2266 --- /dev/null +++ b/Feature Tests/C/File Repository_26/C.3.26.300 - Storage & Organization.feature @@ -0,0 +1,132 @@ +Feature: User Interface: The system shall support the storage, organization, and sharing of project files for permanent folders: (Data Export | e-Consent PDFs | Recycle Bin | Custom Create folder / Sub-folder) + + As a REDCap end user + I want to see that file repository is functioning as expected + + Scenario: C.3.26.300.100 Automatic uploading of data export logs into the data export folder + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.3.26.300.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 link labeled "My Projects" + And I click on the link labeled "A.3.26.300.100" + + #SETUP Export data automatically placed in file repo + Given I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the "Export Data" button for "All data (all records and fields)" report in the My Reports & Exports table + And I click on the radio labeled "CSV / Microsoft Excel (raw data)" in the dialog box + And I click on the button labeled "Export Data" in the dialog box + Then I should see a dialog containing the following text: "Data export was successful!" + + Given I click on the download icons to receive the files for the "CSV / Microsoft Excel (raw data)" format in the dialog box + Then I should have a csv file + + #FUNCTIONAL_REQUIREMENT + ##ACTION Export data automatically placed in file repo + When I click on the link labeled "File Repository" + And I click on the link labeled "Data Export Files" + + Then I verify I see the csv file + And I should see "Data export file created by test_admin on YYYY-MM-DD" + + Scenario: C.3.26.300.200 Automatic uploading of e-Consent Framework PDFs + REDUNDANT + Scenario: C.3.26.300.300 Recycle bin function - permanently force delete + + #SETUP + Given I login to REDCap with the user "Test_Admin" + And I create a new project named "C.3.26.300.300" 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 link labeled "My Projects" + And I click on the link labeled "A.3.26.300.300" + + ##ACTION Upload to top tier file repo + When I click on the link labeled "File Repository" + And I upload a "csv" format file located at "import_files/testusers_bulk_upload.csv", by clicking the button near "Select files to upload" to browse for the file, and clicking the button labeled "Open" to upload the file + + ##VERIFY_FiRe file uploaded in folder + Then I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Delete file + When I check the checkbox labeled "testusers_bulk_upload.csv" + And I click on the button labeled "Delete" + Then I should see a dialog containing the following text: "Delete files?" + And I click on the button labeled "Delete" in the dialog box + ##VERIFY file deleted in folder + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + Then I should NOT see "testusers_bulk_upload.csv" + + + #FUNCTIONAL_REQUIREMENT + ##ACTION Cancel Restore deleted file + When I click on the link labeled "Recycle Bin" + Then I should see "testusers_bulk_upload.csv" + When I click on the link labeled "Restore deleted file?" + Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" + When I click on the button labeled "Cancel" in the dialog box + ##VERIFY file still in recycle folder + Then I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Restore deleted file + When I click on the link labeled "Recycle Bin" + Then I should see "testusers_bulk_upload.csv" + When I click on the link labeled "Restore deleted file?" + Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" + When I click on the button labeled "Restore" in the dialog box + ##VERIFY file still in recycle folder + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + Then I should see NOT "testusers_bulk_upload.csv" + When I click on the link labeled "File Repository" + Then I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Delete file + When I check the checkbox labeled "testusers_bulk_upload.csv" + And I click on the button labeled "Delete" + Then I should see a dialog containing the following text: "Delete files?" + And I click on the button labeled "Delete" in the dialog box + ##VERIFY file deleted in folder + Then I should see a dialog containing the following text: "SUCCESS!" + And I close the popup + Then I should NOT see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Cancel Permanently deleted file + When I click on the link labeled "Recycle Bin" + Then I should see "testusers_bulk_upload.csv" + When I click on the link labeled "Permanently deleted file" + Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" + When I click on the button labeled "Cancel" in the dialog box + ##VERIFY file still in recycle folder + Then I should see "testusers_bulk_upload.csv" + + #FUNCTIONAL_REQUIREMENT + ##ACTION Permanently deleted file + When I click on the link labeled "Recycle Bin" + Then I should see "testusers_bulk_upload.csv" + When I click on the link labeled "Permanently deleted file" + Then I should see a dialog containing the following text: "File: testusers_bulk_upload.csv" + When I click on the button labeled "Delete" in the dialog box + ##VERIFY file deleted in recycle folder + Then I should see a dialog containing the following text: "File was successfully deleted!" + And I close the popup + Then I should see NOT "testusers_bulk_upload.csv" + When I click on the link labeled "File Repository" + Then I should see NOT "testusers_bulk_upload.csv" + + ##VERIFY_LOG + When I click on the button labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Permanently delete file from File Repository | + | test_admin | Manage/Design | Delete file from File Repository | + | test_admin | Manage/Design | Restore file in File Repository | + | test_admin | Manage/Design | Delete file from File Repository | + + Scenario: C.3.26.300.400 Custom folder / sub-folder +#REDUNDANT with C.3.26.200 +#END \ No newline at end of file diff --git a/Feature Tests/C/File Repository/C.3.26.400 - REDUNDANT.feature b/Feature Tests/C/File Repository_26/C.3.26.400 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/File Repository/C.3.26.400 - REDUNDANT.feature rename to Feature Tests/C/File Repository_26/C.3.26.400 - REDUNDANT.feature diff --git a/Feature Tests/C/File Repository/C.3.26.500 - REDUNDANT.feature b/Feature Tests/C/File Repository_26/C.3.26.500 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/File Repository/C.3.26.500 - REDUNDANT.feature rename to Feature Tests/C/File Repository_26/C.3.26.500 - REDUNDANT.feature diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.100 - Lock status.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.100 - Lock status.feature deleted file mode 100644 index d668b12b..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.100 - Lock status.feature +++ /dev/null @@ -1,96 +0,0 @@ -Feature: User Interface: The E-signature and Locking Management tool shall display all records in a database with their status as locked or e-signed for all data entry forms. - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.100.100 Display locked and e-signed status - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -Then I should see a table header and rows containing the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| -| [✓] | Text Validation | [ ] |Notes Box & "Save" button | -| [✓] | Data Type | [ ] | Notes Box & "Save" button | -| [✓] | Survey | [ ] | Notes Box & "Save" button | -| [✓] | Consent | [ ] | Notes Box & "Save" button | - - -#FUNCTIONAL REQUIREMENT -##ACTION Lock Record Custom Text -When I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" -And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" -And I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Data Types" -And I click on the button labeled "Save" for the Data Collection Instrument labeled "Data Types" -Then I should see a table header and rows containing the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| Lock Record Custom Text | -| [✓] | Text Validation | checkbox | Test custom text | -| [✓] | Data Type | checkbox | Test custom text | -| [✓] | Survey | checkbox | Notes Box & "Save" button | -| checkbox | Consent | checkbox | Notes Box & "Save" button | - - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | - -##VERIFY: custom text in record -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" -Then I should see "Text Validation" -And I should see "Test custom text" - -When I click on the link labeled "Data Tapes" -Then I should see "Data Types" -And I should see "Test custom text" - -#FUNCTIONAL REQUIREMENT -##ACTION Edit / Remove Custom Text -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the edit image for the Data Collection Instrument labeled "Text Validation" -I enter "New custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" -And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" -And I click on the remove image for the Data Collection Instrument labeled "Data Types" -And I click on the button labeled "OK" in the pop-up box -Then I should see a table header and rows containing the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| Lock Record Custom Text | -| [✓] | Text Validation | [✓] | New custom text | -| [✓] | Data Type | [✓] | Notes Box & "Save" button | -| [✓] | Survey | [✓] | Notes Box & "Save" button | -| [✓] | Consent | [✓] | Notes Box & "Save" button | - - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | - - -##VERIFY: custom text in record and revert back to template -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" -Then I should see "Text Validation" -And I should see "New custom text" - -When I click on the link labeled "Data Tapes" -Then I should see "Data Types" -And I should see "Lock this instrument?" diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.200 - Lock form display.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.200 - Lock form display.feature deleted file mode 100644 index 8d6de079..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.200 - Lock form display.feature +++ /dev/null @@ -1,96 +0,0 @@ -Feature: User Interface: The tool shall only display forms that are designated to be locked. - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.100.100 Display locked and e-signed status - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -Then I should see a table header and rows containing the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| -| [✓] | Text Validation | [ ] |Notes Box & "Save" button | -| [✓] | Data Type | [ ] | Notes Box & "Save" button | -| [✓] | Survey | [ ] | Notes Box & "Save" button | -| [✓] | Consent | [ ] | Notes Box & "Save" button | - - -#FUNCTIONAL REQUIREMENT -##ACTION Lock Record Custom Text -When I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" -And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" -And I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Data Types" -And I click on the button labeled "Save" for the Data Collection Instrument labeled "Data Types" -Then I should see a table header and rows containing the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| Lock Record Custom Text | -| [✓] | Text Validation | checkbox | Test custom text | -| [✓] | Data Type | checkbox | Test custom text | -| [✓] | Survey | checkbox | Notes Box & "Save" button | -| checkbox | Consent | checkbox | Notes Box & "Save" button | - - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | - -##VERIFY: custom text in record -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" -Then I should see "Text Validation" -And I should see "Test custom text" - -When I click on the link labeled "Data Tapes" -Then I should see "Data Types" -And I should see "Test custom text" - -#FUNCTIONAL REQUIREMENT -##ACTION Edit / Remove Custom Text -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the edit image for the Data Collection Instrument labeled "Text Validation" -I enter "New custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" -And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" -And I click on the remove image for the Data Collection Instrument labeled "Data Types" -And I click on the button labeled "OK" in the pop-up box -Then I should see a table header and rows containing the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| Lock Record Custom Text | -| [✓] | Text Validation | [✓] | New custom text | -| [✓] | Data Type | [✓] | Notes Box & "Save" button | -| [✓] | Survey | [✓] | Notes Box & "Save" button | -| [✓] | Consent | [✓] | Notes Box & "Save" button | - - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | - - -##VERIFY: custom text in record and revert back to template -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" -Then I should see "Text Validation" -And I should see "New custom text" - -When I click on the link labeled "Data Tapes" -Then I should see "Data Types" -And I should see "Lock this instrument?" diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.300 - Locking record filter.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.300 - Locking record filter.feature deleted file mode 100644 index c0c7d46c..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.300 - Locking record filter.feature +++ /dev/null @@ -1,55 +0,0 @@ -Feature: User Interface: The tool shall support the filtering the record list: - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.300.100 Record locking and E-signatures filtering -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.300.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Lock icon for instrument -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" -Then I should see "Text Validation" -And I should see the checkbox for the field labeled "Lock this instrument?" - -When I click on the checkbox for the field labeled "Lock this instrument?" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record Home Page" -And I should see "Record ID 3 successfully edited." -##VERIFY_RH -And I should see the lock image for the Data Instrument labeled "Text Validation" for event "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username| Action | List of Data Changes OR Fields Exported | -| test_admin | Lock/Unlock Record 3 | Action: Lock instrument, Record: 3, Form: Text Validation, Event: Event 1| - -##VERIFY_LOCK_ESIG: Record instrument lock on Locking Management -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" -Then I should see a table header and rows including the following values in the E-signature and Locking Management table: -| Record| Form Name | Locked? | -| 3 | Text Validation | lock image| -| 3 | Consent | | - -#FUNCTIONAL REQUIREMENT -##ACTION Enable Locking/E-signatures at instrument level -And I should see "SHOW ALL ROWS | Show timestamp / user | Hide timestamp / user | Show locked | Show not locked | Show e-signed | Show not e-signed (excludes N/A) | Show both locked and e-signed | Show neither locked nor e-signed (excludes N/A) | Show locked but not e-signed (excludes N/A)" - -When I click on the button labeled "Export all (CSV)" -Then I should have a "csv" file with a table header and rows including the following values in the report table: -| Record | Event Name | Form Name | Repeat Instance | Locked? | E-signed?| -| 3 | Event 1 (Arm 1: Arm 1)| Text Validation| | MM/DD/YYYY | N/A| -#M: Close file diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.400 - Lock status display.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.400 - Lock status display.feature deleted file mode 100644 index b674163e..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.400 - Lock status display.feature +++ /dev/null @@ -1,152 +0,0 @@ -Feature: User Interface: The tool shall display locked status of forms for all records. - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.400.100 display lock status -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.400.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the input field labeled "Add with custom rights" -And I click on the button labeled "Add with custom rights" -Then I should see "Adding new user "test_user1"" - -When I click on the checkbox for the field labeled "Record Locking Customization" -And I click on the radio labeled "Locking / Unlocking" for the field labeled "Lock / Unlock Records (instrument level)" -And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" -And I click on the button labeled "Add user" -And I click on the checkbox for the field labeled "Logging" -Then I should see "User "test_user1" was successfully added" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Add user test_user1 | user = 'test_user1'| - -And I logout - -Given I login to REDCap with the user "Test_User1" - -#FUNCTIONAL REQUIREMENT -##ACTION Lock icon for instrument -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" -Then I should see "Text Validation" -And I should see the checkbox for the field labeled "Lock this instrument?" - -When I click on the checkbox for the field labeled "Lock this instrument?" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record Home Page" -And I should see "Record ID 3 successfully edited." -##VERIFY_RH -And I should see the lock image for the Data Instrument labeled "Text Validation" for event "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username| Action | List of Data Changes OR Fields Exported | -| test_user1 | Lock/Unlock Record 3 | Action: Lock instrument, Record: 3, Form: Text Validation, Event: Event 1| - -##VERIFY_LOCK_ESIG: Record instrument lock on Locking Management -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" -Then I should see a table header and rows including the following values in the E-signature and Locking Management table: -| Record| Form Name | Locked? | -| 3 | Text Validation | lock image| -| 3 | Consent | | - -##ACTION Lock icon for event -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "3" -Then I should see "Record Home Page" - -When I click on the dropdown option labeled "Lock entire record" from the dropdown button with the placeholder text of "Choose action for record" -And I click on the button labeled "Lock entire record" in the dialog box -Then I should see "Record "3" is now LOCKED" -##VERIFY_RH -And I should see the lock image for "Record ID 3" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username| Action | List of Data Changes OR Fields Exported | -| test_user1 | Lock/Unlock Record 3 | Action: Lock entire record, Record: 3 - Arm 1: Arm 1| - -##VERIFY_LOCK_ESIG: record locked -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" -Then I should see a table header and rows including the following values in the E-signature and Locking Management table: -| Record| Form Name | Locked? | -| 3 (Arm 1: Arm 1) (entire record) | | lock image| - -##ACTION : unlock record 3 -When I click on the link labeled "Record Status Dashboard" -And I click on the link labeled "3" -Then I should see "Record Home Page" - -When I click on the dropdown option labeled "Unlock entire record" from the dropdown button with the placeholder text of "Choose action for record" -And I click on the button labeled "Unlock entire record" in the dialog box -Then I should see "Record "3" is now UNLOCKED" -##VERIFY_RH -And I should NOT see the lock image for "Record ID 3" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username| Action | List of Data Changes OR Fields Exported | -| test_user1 | Lock/Unlock Record 3 | Action: Unlock entire record, Record: 3 - Arm 1: Arm 1| - -##VERIFY_LOCK_ESIG: record locked -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" -Then I should NOT see "3 (Arm 1: Arm 1) (entire record)" - -##ACTION Unlock icon for instrument -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" -Then I should see "Text Validation" -And I should see a button labeled "Unlock form" - -When I click on the button labeled "Unlock form" -And I click on the button labeled "Unlock" in the dialog box -Then I should see "UNLOCK SUCCESSFUL!" - -When I click on the button labeled "Close" in the dialog box -Then I should see "Text Validation" -And I should see the checkbox for the field labeled "Lock this instrument?" - -When I click on the button labeled "Save & Exit Form" -Then I should see "Record Home Page" -And I should see "Record ID 3 successfully edited." -##VERIFY_RH -And I should NOT see the lock image for the Data Instrument labeled "Text Validation" for event "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username| Action | List of Data Changes OR Fields Exported | -| test_user1 | Update record 3 | | - -##VERIFY_LOCK_ESIG: verify that there isn't a lock in that view -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" -Then I should see a table header and rows containing the following values in the E-signature and Locking Management table: -| Record| Form Name | Locked? | -| 3 | Text Validation | | -| 3 | Consent | | - diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.500 - eSign display.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.500 - eSign display.feature deleted file mode 100644 index e9eb8dae..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.500 - eSign display.feature +++ /dev/null @@ -1,88 +0,0 @@ -Feature: User Interface: The tool shall display e-signature status of forms for all records. - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.500.100 Display e-signature - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.500.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the input field labeled "Add with custom rights" -And I click on the button labeled "Add with custom rights" -Then I should see "Adding new user "test_user1"" - -When I click on the checkbox for the field labeled "Logging" -And I click on the checkbox for the field labeled "Record Locking Customization" -And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" -And I click on the button labeled "Close" in the dialog box -And I click on the button labeled "Add user" -Then I should see "User "test_user1" was successfully added" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Add user test_user1 | user = 'test_user1'| - -And I logout - -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.2.19.500.100" -#SETUP -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I verify the checkbox on the column labeled "Display the Lock option for this instrument?" for the Data Collection Instrument labeled "Text Validation" is selected -And I click on the checkbox on the column labeled "Also display E-signature option on instrument?" for the Data Collection Instrument labeled "Text Validation" -Then I should see a table header and rows including the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| -| [✓] | Text Validation | [✓] | -| [✓] | Consent | | - - -##ACTION -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" -Then I should see "Text Validation" -And I should see the checkbox for the field labeled "Lock this instrument?" -And I should see the checkbox for the field labeled "E-signature" - -When I click on the checkbox for the field labeled "Lock this instrument?" -And I click on the checkbox labeled "E-signature" -And I click on the button labeled "Save & Exit Form" -Then I should see "E-signature: Username/password verification" in a dialog box - -Given I enter Test_User login credentials -Then I should see "Record Home Page" -And I should see a lock image for the Data Collection Instrument labeled "Text Validation" for event "Event 1" -And I should see an e-signature image for the Data Collection Instrument labeled "Text Validation" for event "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | E-signature 3 | Action: Save e-signature, Record: 3, Form: Text Validation, Event: Event 1| -| test_user1 | Lock/Unlock Record 3 | Action: Lock instrument, Record: 3, Form: Text Validation, Event: Event 1| - -#FUNCTIONAL REQUIREMENT -##ACTION Record lock and signature status -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" - -##VERIFY -Then I should see a table header and rows including the following values in the E-signature and Locking Management table: -| Record| Form Name | Locked? | E-signed? | -| 3 | Text Validation | lock image| e-signature image | -| 3 | Consent | | N/A | diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.600 - Locking module navigation.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.600 - Locking module navigation.feature deleted file mode 100644 index de9a0716..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.600 - Locking module navigation.feature +++ /dev/null @@ -1,52 +0,0 @@ -Feature: User Interface: The tool shall support the ability to navigate directly to a selected record. - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.600.100 Navigate to record - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.600.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the input field labeled "Add with custom rights" -And I click on the button labeled "Add with custom rights" -Then I should see "Adding new user "test_user1"" - -When I click on the checkbox for the field labeled "Record Locking Customization" -And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" -And I click on the button labeled "Close" in the dialog box -And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" -And I click on the button labeled "Add user" -Then I should see "User "test_user1" was successfully added" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Add user test_user1 | user = 'test_user1'| - - -#FUNCTIONAL REQUIREMENT -##ACTION Navigate to record -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I click on the button labeled "I understand. Let me make changes" in the dialog box -And I click on the link labeled "E-signature and Locking Management" -Then I should see a table header and rows including the following values in the E-signature and Locking Management table: -| Record| Form Name | | -| 3 | Text Validation | View record | - -When I click on the link labeled "View record" for the form labeled "Text Validation" for record "3" -##VERIFY -Then I should see "Text Validation" -And I should see the checkbox for the field labeled "Lock this instrument?" - diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.700 - eSign customization.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.700 - eSign customization.feature deleted file mode 100644 index ea12db4f..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.700 - eSign customization.feature +++ /dev/null @@ -1,128 +0,0 @@ -Feature: User Interface: The Record Locking Customization module shall allow the customization of: Display or not display E-Signature option on each data collection instrument | Lock Record Custom Text | Display or not display the Lock option for each data collection instrument - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.700.100 Customize Record Locking display and text -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.2.19.700.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL REQUIREMENT -##ACTION Lock Record Custom Text -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I select the button labeled "I understand. Let me make changes" in the dialog box -Then I should see "Record Locking Customization" - -When I deselect the checkbox labeled "Display the Lock option for this instrument?" for the instrument labeled "Survey" -And I verify the checkbox labeled "Display the Lock option for this instrument?" is selected for the instrument labeled "Text Validation" -And I check the checkbox labeled "Also display E-signature option on instrument?" for the instrument labeled "Text Validation" -And I enter "Test custom text" in the notes box field for the Data Collection Instrument labeled "Text Validation" -And click on the button labeled "Save" -And I verify the checkbox labeled "Display the Lock option for this instrument?" is selected for the instrument labeled "Data Types" -And I enter "Test custom text" in the notes box field for the Data Collection Instrument labeled "Data Types" -And click on the button labeled "Save" - -#FUNCTIONAL REQUIREMENT -##ACTION Display E-Signature or Lock option -Then I should see a table header and rows including the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| Lock Record Custom Text | -| [✓] | Text Validation | [✓] | Test custom text | -| [✓] | Data Types | | Test custom text | -| | Survey | | [blank] | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Customize record locking | -| test_admin | Manage/Design | Customize record locking | - -##VERIFY_RECORD -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" -Then I should see "Text Validation" -And I should see "Test custom text" -And I should see a checkbox for the field labeled "E-signature" - -When I check the checkbox labeled "Test custom text" -And I check the checkbox labeled "E-signature" -And I click on the button labeled "Save & Stay" -Then I should see "E-signature: Username/password verification" in the dialog box - -Given I enter credentials for user "Test_Admin" -Then I should see "E-signed by test_admin" -And I should see "Instrument locked by test_admim" - -When I click on the link labeled "Data Types" -Then I should see "Data Types" -And I should see "Test custom text" -And I should NOT see a checkbox for the field labeled "E-signature" - -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Survey" for event "Event Three" for record "1" -Then I should NOT see the checkbox for the field labeled "Lock this instrument?" -And I should NOT see a checkbox for the field labeled "E-signature" -And I should NOT see a signature field - - -FUNCTIONAL REQUIREMENT -##ACTION Edit and Delete Lock Record Custom Text -When I click on the link labeled "Customize & Manage Locking/E-signatures" -And I select the button labeled "I understand. Let me make changes" in the dialog box -Then I should see "Record Locking Customization" - -When I click on the edit image for the Data Collection Instrument labeled "Text Validation" -And I enter "Edit Test custom text" in the notes box field for the Data Collection Instrument labeled "Text Validation" -And click on the button labeled "Save" -And I click on the edit image for the Data Collection Instrument labeled "Data Types" -And I clear the notes box field for the Data Collection Instrument labeled "Data Types" -And click on the button labeled "Save" -Then I should see a table header and rows including the following values in the table: -| Display the Lock option for this instrument?| Data Collection Instrument | Also display E-signature option on instrument?| Lock Record Custom Text | -| [✓] | Text Validation | [✓] | Edit Test custom text | -| [✓] | Data Types | | [blank] | -| | Survey | | [blank] | - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Customize record locking | - -##VERIFY_RECORD -When I click on the link labeled "Record Status Dashboard" -And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" -Then I should see "Text Validation" -And I should see "Edit Test custom text" -And I should see a checkbox for the field labeled "E-signature" - -When I check the checkbox labeled "Edit Test custom text" -And I check the checkbox labeled "E-signature" -And I click on the button labeled "Save & Stay" -Then I should see "E-signature: Username/password verification" in the dialog box - -Given I enter credentials for user "Test_Admin" -Then I should see "E-signed by test_admin" -And I should see "Instrument locked by test_admim" - -When I click on the link labeled "Data Types" -Then I should see "Data Types" -And I should see "Lock this instrument?" -And I should NOT see a checkbox for the field labeled "E-signature" - -When I click on the link labeled "Record Status Dashboard" -And I click on the button labeled "Leave without saving changes" in the dialog box -And I click the bubble for the instrument labeled "Survey" for event "Event Three" for record "1" -Then I should NOT see the checkbox for the field labeled "Lock this instrument?" -And I should NOT see a checkbox for the field labeled "E-signature" -And I should NOT see a signature field - - diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.900 - eSign and Lock access.feature b/Feature Tests/C/Record Locking & E-Signatures/C.2.19.900 - eSign and Lock access.feature deleted file mode 100644 index 601e7aa2..00000000 --- a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.900 - eSign and Lock access.feature +++ /dev/null @@ -1,104 +0,0 @@ -Feature: User Interface: The system shall support the ability to limit access to the Record Locking Customization module through user rights. - -As a REDCap end user -I want to see that Record locking and E-signatures is functioning as expected - -Scenario: C.2.19.900.100 Enable user rights for Record Locking Customization module - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "C.2.19.900.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 - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Edit user privileges" -Then I should see "Editing existing user "test_user1"" - -When I click on the checkbox for the field labeled "Record Locking Customization" -And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" -And I click on the button labeled "Close" in the dialog box -And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" -And I click on the button labeled "Save changes" - Then I should see "User "test_user1" was successfully edited" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Update user test_user1 | user = 'test_user1'| - -And I should see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" - -##ACTION verify Record Locking Customization module enabled in Dev -Open Customize & Manage Locking/E-signatures -##VERIFY -When I click on the link labeled "Customize and Manage the Record Locking and E-signature Functionality" -Then I should see "Customize and Manage the Record Locking and E-signature Functionality" - -##USER_RIGHTS -Check Record Locking Customization module disabled -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Edit user privileges" -Then I should see "Editing existing user "test_user1"" - -When I deselect the checkbox for the field labeled "Record Locking Customization" -And I click on the radio labeled "Disabled" for the field labeled "Lock / Unlock Records (instrument level)" -And I verify the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" is not checked -And I click on the button labeled "Save Changes" -Then I should see "User "test_user1" was successfully edited" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Update user test_user1 | user = 'test_user1'| - -##VERIFY -And I should NOT see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" - -##SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Manage/Design | Move project to Production status| - -##VERIFY: Look for Record Locking Customization module (not there) -And I should NOT see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" - -#FUNCTIONAL REQUIREMENT -##USER_RIGHTS -Check Record Locking Customization module disabled -When I click on the link labeled "User Rights" -And I click on the link labeled "Test_User1" -And I click on the button labeled "Edit user privileges" -Then I should see "Editing existing user "test_user1"" -And I verify the checkbox for the field labeled "Record Locking Customization" is not checked -And I verify the radio button labeled "Disabled" is selected for the field labeled "Lock / Unlock Records (instrument level)" -And I verify the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" is not checked - -##USER_RIGHTS -When I click on the checkbox for the field labeled "Record Locking Customization" -And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" -And I click on the button labeled "Close" in the dialog box -And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" -And I click on the button labeled "Save Changes" - Then I should see "User "test_user1" was successfully edited" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_user1 | Update user test_user1 | user = 'test_user1'| - -##ACTION verify Record Locking Customization module enabled in prod -Open Customize & Manage Locking/E-signatures -And I should see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.100 - Lock status.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.100 - Lock status.feature new file mode 100644 index 00000000..630cb8d4 --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.100 - Lock status.feature @@ -0,0 +1,98 @@ +Feature: User Interface: The E-signature and Locking Management tool shall display all records in a database with their status as locked or e-signed for all data entry forms. + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.100.100 Display locked and e-signed status + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + Then I should see a table header and rows containing the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | + | [✓] | Text Validation | [ ] | Notes Box & "Save" button | + | [✓] | Data Type | [ ] | Notes Box & "Save" button | + | [✓] | Survey | [ ] | Notes Box & "Save" button | + | [✓] | Consent | [ ] | Notes Box & "Save" button | + + + #FUNCTIONAL REQUIREMENT + ##ACTION Lock Record Custom Text + When I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" + And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" + And I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Data Types" + And I click on the button labeled "Save" for the Data Collection Instrument labeled "Data Types" + Then I should see a table header and rows containing the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | Lock Record Custom Text | + | [✓] | Text Validation | checkbox | Test custom text | + | [✓] | Data Type | checkbox | Test custom text | + | [✓] | Survey | checkbox | Notes Box & "Save" button | + | checkbox | Consent | checkbox | Notes Box & "Save" button | + + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + + ##VERIFY: custom text in record + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" + Then I should see "Text Validation" + And I should see "Test custom text" + + When I click on the link labeled "Data Tapes" + Then I should see "Data Types" + And I should see "Test custom text" + + #FUNCTIONAL REQUIREMENT + ##ACTION Edit / Remove Custom Text + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the edit image for the Data Collection Instrument labeled "Text Validation" + I enter "New custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" + And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" + And I click on the remove image for the Data Collection Instrument labeled "Data Types" + And I click on the button labeled "OK" in the pop-up box + Then I should see a table header and rows containing the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | Lock Record Custom Text | + | [✓] | Text Validation | [✓] | New custom text | + | [✓] | Data Type | [✓] | Notes Box & "Save" button | + | [✓] | Survey | [✓] | Notes Box & "Save" button | + | [✓] | Consent | [✓] | Notes Box & "Save" button | + + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + + + ##VERIFY: custom text in record and revert back to template + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" + Then I should see "Text Validation" + And I should see "New custom text" + + When I click on the link labeled "Data Tapes" + Then I should see "Data Types" + And I should see "Lock this instrument?" +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.200 - Lock form display.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.200 - Lock form display.feature new file mode 100644 index 00000000..42c017c3 --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.200 - Lock form display.feature @@ -0,0 +1,98 @@ +Feature: User Interface: The tool shall only display forms that are designated to be locked. + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.100.100 Display locked and e-signed status + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + Then I should see a table header and rows containing the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | + | [✓] | Text Validation | [ ] | Notes Box & "Save" button | + | [✓] | Data Type | [ ] | Notes Box & "Save" button | + | [✓] | Survey | [ ] | Notes Box & "Save" button | + | [✓] | Consent | [ ] | Notes Box & "Save" button | + + + #FUNCTIONAL REQUIREMENT + ##ACTION Lock Record Custom Text + When I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" + And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" + And I enter "Test custom text" into the Notes Box field for the Data Collection Instrument labeled "Data Types" + And I click on the button labeled "Save" for the Data Collection Instrument labeled "Data Types" + Then I should see a table header and rows containing the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | Lock Record Custom Text | + | [✓] | Text Validation | checkbox | Test custom text | + | [✓] | Data Type | checkbox | Test custom text | + | [✓] | Survey | checkbox | Notes Box & "Save" button | + | checkbox | Consent | checkbox | Notes Box & "Save" button | + + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + + ##VERIFY: custom text in record + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" + Then I should see "Text Validation" + And I should see "Test custom text" + + When I click on the link labeled "Data Tapes" + Then I should see "Data Types" + And I should see "Test custom text" + + #FUNCTIONAL REQUIREMENT + ##ACTION Edit / Remove Custom Text + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the edit image for the Data Collection Instrument labeled "Text Validation" + I enter "New custom text" into the Notes Box field for the Data Collection Instrument labeled "Text Validation" + And I click on the button labeled "Save" for the Data Collection Instrument labeled "Text Validation" + And I click on the remove image for the Data Collection Instrument labeled "Data Types" + And I click on the button labeled "OK" in the pop-up box + Then I should see a table header and rows containing the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | Lock Record Custom Text | + | [✓] | Text Validation | [✓] | New custom text | + | [✓] | Data Type | [✓] | Notes Box & "Save" button | + | [✓] | Survey | [✓] | Notes Box & "Save" button | + | [✓] | Consent | [✓] | Notes Box & "Save" button | + + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + + + ##VERIFY: custom text in record and revert back to template + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" + Then I should see "Text Validation" + And I should see "New custom text" + + When I click on the link labeled "Data Tapes" + Then I should see "Data Types" + And I should see "Lock this instrument?" +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.300 - Locking record filter.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.300 - Locking record filter.feature new file mode 100644 index 00000000..2dd0986b --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.300 - Locking record filter.feature @@ -0,0 +1,57 @@ +Feature: User Interface: The tool shall support the filtering the record list: + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.300.100 Record locking and E-signatures filtering + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.300.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Lock icon for instrument + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" + Then I should see "Text Validation" + And I should see the checkbox for the field labeled "Lock this instrument?" + + When I click on the checkbox for the field labeled "Lock this instrument?" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record Home Page" + And I should see "Record ID 3 successfully edited." + ##VERIFY_RH + And I should see the lock image for the Data Instrument labeled "Text Validation" for event "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Lock/Unlock Record 3 | Action: Lock instrument, Record: 3, Form: Text Validation, Event: Event 1 | + + ##VERIFY_LOCK_ESIG: Record instrument lock on Locking Management + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + Then I should see a table header and rows including the following values in the E-signature and Locking Management table: + | Record | Form Name | Locked? | + | 3 | Text Validation | lock image | + | 3 | Consent | | + + #FUNCTIONAL REQUIREMENT + ##ACTION Enable Locking/E-signatures at instrument level + And I should see "SHOW ALL ROWS | Show timestamp / user | Hide timestamp / user | Show locked | Show not locked | Show e-signed | Show not e-signed (excludes N/A) | Show both locked and e-signed | Show neither locked nor e-signed (excludes N/A) | Show locked but not e-signed (excludes N/A)" + + When I click on the button labeled "Export all (CSV)" + Then I should have a "csv" file with a table header and rows including the following values in the report table: + | Record | Event Name | Form Name | Repeat Instance | Locked? | E-signed? | + | 3 | Event 1 (Arm 1: Arm 1) | Text Validation | | MM/DD/YYYY | N/A | +#Manual: Close file +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.400 - Lock status display.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.400 - Lock status display.feature new file mode 100644 index 00000000..40c6bab5 --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.400 - Lock status display.feature @@ -0,0 +1,153 @@ +Feature: User Interface: The tool shall display locked status of forms for all records. + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.400.100 display lock status + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.400.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the input field labeled "Add with custom rights" + And I click on the button labeled "Add with custom rights" + Then I should see "Adding new user "test_user1"" + + When I click on the checkbox for the field labeled "Record Locking Customization" + And I click on the radio labeled "Locking / Unlocking" for the field labeled "Lock / Unlock Records (instrument level)" + And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" + And I click on the button labeled "Add user" + And I click on the checkbox for the field labeled "Logging" + Then I should see "User "test_user1" was successfully added" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Add user test_user1 | user = 'test_user1' | + + And I logout + + Given I login to REDCap with the user "Test_User1" + + #FUNCTIONAL REQUIREMENT + ##ACTION Lock icon for instrument + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" + Then I should see "Text Validation" + And I should see the checkbox for the field labeled "Lock this instrument?" + + When I click on the checkbox for the field labeled "Lock this instrument?" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record Home Page" + And I should see "Record ID 3 successfully edited." + ##VERIFY_RH + And I should see the lock image for the Data Instrument labeled "Text Validation" for event "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Lock/Unlock Record 3 | Action: Lock instrument, Record: 3, Form: Text Validation, Event: Event 1 | + + ##VERIFY_LOCK_ESIG: Record instrument lock on Locking Management + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + Then I should see a table header and rows including the following values in the E-signature and Locking Management table: + | Record | Form Name | Locked? | + | 3 | Text Validation | lock image | + | 3 | Consent | | + + ##ACTION Lock icon for event + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "3" + Then I should see "Record Home Page" + + When I click on the dropdown option labeled "Lock entire record" from the dropdown button with the placeholder text of "Choose action for record" + And I click on the button labeled "Lock entire record" in the dialog box + Then I should see "Record "3" is now LOCKED" + ##VERIFY_RH + And I should see the lock image for "Record ID 3" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Lock/Unlock Record 3 | Action: Lock entire record, Record: 3 - Arm 1: Arm 1 | + + ##VERIFY_LOCK_ESIG: record locked + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + Then I should see a table header and rows including the following values in the E-signature and Locking Management table: + | Record | Form Name | Locked? | + | 3 (Arm 1: Arm 1) (entire record) | | lock image | + + ##ACTION : unlock record 3 + When I click on the link labeled "Record Status Dashboard" + And I click on the link labeled "3" + Then I should see "Record Home Page" + + When I click on the dropdown option labeled "Unlock entire record" from the dropdown button with the placeholder text of "Choose action for record" + And I click on the button labeled "Unlock entire record" in the dialog box + Then I should see "Record "3" is now UNLOCKED" + ##VERIFY_RH + And I should NOT see the lock image for "Record ID 3" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Lock/Unlock Record 3 | Action: Unlock entire record, Record: 3 - Arm 1: Arm 1 | + + ##VERIFY_LOCK_ESIG: record locked + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + Then I should NOT see "3 (Arm 1: Arm 1) (entire record)" + + ##ACTION Unlock icon for instrument + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" + Then I should see "Text Validation" + And I should see a button labeled "Unlock form" + + When I click on the button labeled "Unlock form" + And I click on the button labeled "Unlock" in the dialog box + Then I should see "UNLOCK SUCCESSFUL!" + + When I click on the button labeled "Close" in the dialog box + Then I should see "Text Validation" + And I should see the checkbox for the field labeled "Lock this instrument?" + + When I click on the button labeled "Save & Exit Form" + Then I should see "Record Home Page" + And I should see "Record ID 3 successfully edited." + ##VERIFY_RH + And I should NOT see the lock image for the Data Instrument labeled "Text Validation" for event "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update record 3 | | + + ##VERIFY_LOCK_ESIG: verify that there isn't a lock in that view + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + Then I should see a table header and rows containing the following values in the E-signature and Locking Management table: + | Record | Form Name | Locked? | + | 3 | Text Validation | | + | 3 | Consent | | +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.500 - eSign display.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.500 - eSign display.feature new file mode 100644 index 00000000..70c4afff --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.500 - eSign display.feature @@ -0,0 +1,90 @@ +Feature: User Interface: The tool shall display e-signature status of forms for all records. + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.500.100 Display e-signature + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.500.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the input field labeled "Add with custom rights" + And I click on the button labeled "Add with custom rights" + Then I should see "Adding new user "test_user1"" + + When I click on the checkbox for the field labeled "Logging" + And I click on the checkbox for the field labeled "Record Locking Customization" + And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" + And I click on the button labeled "Close" in the dialog box + And I click on the button labeled "Add user" + Then I should see "User "test_user1" was successfully added" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Add user test_user1 | user = 'test_user1' | + + And I logout + + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.2.19.500.100" + #SETUP + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I verify the checkbox on the column labeled "Display the Lock option for this instrument?" for the Data Collection Instrument labeled "Text Validation" is selected + And I click on the checkbox on the column labeled "Also display E-signature option on instrument?" for the Data Collection Instrument labeled "Text Validation" + Then I should see a table header and rows including the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | + | [✓] | Text Validation | [✓] | + | [✓] | Consent | | + + + ##ACTION + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" + Then I should see "Text Validation" + And I should see the checkbox for the field labeled "Lock this instrument?" + And I should see the checkbox for the field labeled "E-signature" + + When I click on the checkbox for the field labeled "Lock this instrument?" + And I click on the checkbox labeled "E-signature" + And I click on the button labeled "Save & Exit Form" + Then I should see "E-signature: Username/password verification" in a dialog box + + Given I enter Test_User login credentials + Then I should see "Record Home Page" + And I should see a lock image for the Data Collection Instrument labeled "Text Validation" for event "Event 1" + And I should see an e-signature image for the Data Collection Instrument labeled "Text Validation" for event "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | E-signature 3 | Action: Save e-signature, Record: 3, Form: Text Validation, Event: Event 1 | + | test_user1 | Lock/Unlock Record 3 | Action: Lock instrument, Record: 3, Form: Text Validation, Event: Event 1 | + + #FUNCTIONAL REQUIREMENT + ##ACTION Record lock and signature status + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + + ##VERIFY + Then I should see a table header and rows including the following values in the E-signature and Locking Management table: + | Record | Form Name | Locked? | E-signed? | + | 3 | Text Validation | lock image | e-signature image | + | 3 | Consent | | N/A | +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.600 - Locking module navigation.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.600 - Locking module navigation.feature new file mode 100644 index 00000000..23614428 --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.600 - Locking module navigation.feature @@ -0,0 +1,53 @@ +Feature: User Interface: The tool shall support the ability to navigate directly to a selected record. + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.600.100 Navigate to record + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.600.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the input field labeled "Add with custom rights" + And I click on the button labeled "Add with custom rights" + Then I should see "Adding new user "test_user1"" + + When I click on the checkbox for the field labeled "Record Locking Customization" + And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" + And I click on the button labeled "Close" in the dialog box + And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" + And I click on the button labeled "Add user" + Then I should see "User "test_user1" was successfully added" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Add user test_user1 | user = 'test_user1' | + + + #FUNCTIONAL REQUIREMENT + ##ACTION Navigate to record + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I click on the button labeled "I understand. Let me make changes" in the dialog box + And I click on the link labeled "E-signature and Locking Management" + Then I should see a table header and rows including the following values in the E-signature and Locking Management table: + | Record | Form Name | | + | 3 | Text Validation | View record | + + When I click on the link labeled "View record" for the form labeled "Text Validation" for record "3" + ##VERIFY + Then I should see "Text Validation" + And I should see the checkbox for the field labeled "Lock this instrument?" +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.700 - eSign customization.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.700 - eSign customization.feature new file mode 100644 index 00000000..30fc58e2 --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.700 - eSign customization.feature @@ -0,0 +1,128 @@ +Feature: User Interface: The Record Locking Customization module shall allow the customization of: Display or not display E-Signature option on each data collection instrument | Lock Record Custom Text | Display or not display the Lock option for each data collection instrument + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.700.100 Customize Record Locking display and text + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.700.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL REQUIREMENT + ##ACTION Lock Record Custom Text + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I select the button labeled "I understand. Let me make changes" in the dialog box + Then I should see "Record Locking Customization" + + When I deselect the checkbox labeled "Display the Lock option for this instrument?" for the instrument labeled "Survey" + And I verify the checkbox labeled "Display the Lock option for this instrument?" is selected for the instrument labeled "Text Validation" + And I check the checkbox labeled "Also display E-signature option on instrument?" for the instrument labeled "Text Validation" + And I enter "Test custom text" in the notes box field for the Data Collection Instrument labeled "Text Validation" + And click on the button labeled "Save" + And I verify the checkbox labeled "Display the Lock option for this instrument?" is selected for the instrument labeled "Data Types" + And I enter "Test custom text" in the notes box field for the Data Collection Instrument labeled "Data Types" + And click on the button labeled "Save" + + #FUNCTIONAL REQUIREMENT + ##ACTION Display E-Signature or Lock option + Then I should see a table header and rows including the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | Lock Record Custom Text | + | [✓] | Text Validation | [✓] | Test custom text | + | [✓] | Data Types | | Test custom text | + | | Survey | | [blank] | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Customize record locking | + | test_admin | Manage/Design | Customize record locking | + + ##VERIFY_RECORD + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "1" for event "Event 1" + Then I should see "Text Validation" + And I should see "Test custom text" + And I should see a checkbox for the field labeled "E-signature" + + When I check the checkbox labeled "Test custom text" + And I check the checkbox labeled "E-signature" + And I click on the button labeled "Save & Stay" + Then I should see "E-signature: Username/password verification" in the dialog box + + Given I enter credentials for user "Test_Admin" + Then I should see "E-signed by test_admin" + And I should see "Instrument locked by test_admim" + + When I click on the link labeled "Data Types" + Then I should see "Data Types" + And I should see "Test custom text" + And I should NOT see a checkbox for the field labeled "E-signature" + + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Survey" for event "Event Three" for record "1" + Then I should NOT see the checkbox for the field labeled "Lock this instrument?" + And I should NOT see a checkbox for the field labeled "E-signature" + And I should NOT see a signature field + + + FUNCTIONAL REQUIREMENT + ##ACTION Edit and Delete Lock Record Custom Text + When I click on the link labeled "Customize & Manage Locking/E-signatures" + And I select the button labeled "I understand. Let me make changes" in the dialog box + Then I should see "Record Locking Customization" + + When I click on the edit image for the Data Collection Instrument labeled "Text Validation" + And I enter "Edit Test custom text" in the notes box field for the Data Collection Instrument labeled "Text Validation" + And click on the button labeled "Save" + And I click on the edit image for the Data Collection Instrument labeled "Data Types" + And I clear the notes box field for the Data Collection Instrument labeled "Data Types" + And click on the button labeled "Save" + Then I should see a table header and rows including the following values in the table: + | Display the Lock option for this instrument? | Data Collection Instrument | Also display E-signature option on instrument? | Lock Record Custom Text | + | [✓] | Text Validation | [✓] | Edit Test custom text | + | [✓] | Data Types | | [blank] | + | | Survey | | [blank] | + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Customize record locking | + + ##VERIFY_RECORD + When I click on the link labeled "Record Status Dashboard" + And I click the bubble for the instrument labeled "Text Validation" for record "3" for event "Event 1" + Then I should see "Text Validation" + And I should see "Edit Test custom text" + And I should see a checkbox for the field labeled "E-signature" + + When I check the checkbox labeled "Edit Test custom text" + And I check the checkbox labeled "E-signature" + And I click on the button labeled "Save & Stay" + Then I should see "E-signature: Username/password verification" in the dialog box + + Given I enter credentials for user "Test_Admin" + Then I should see "E-signed by test_admin" + And I should see "Instrument locked by test_admim" + + When I click on the link labeled "Data Types" + Then I should see "Data Types" + And I should see "Lock this instrument?" + And I should NOT see a checkbox for the field labeled "E-signature" + + When I click on the link labeled "Record Status Dashboard" + And I click on the button labeled "Leave without saving changes" in the dialog box + And I click the bubble for the instrument labeled "Survey" for event "Event Three" for record "1" + Then I should NOT see the checkbox for the field labeled "Lock this instrument?" + And I should NOT see a checkbox for the field labeled "E-signature" + And I should NOT see a signature field +#END \ No newline at end of file diff --git a/Feature Tests/C/Record Locking & E-Signatures/C.2.19.800 - REDUNDANT.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.800 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/Record Locking & E-Signatures/C.2.19.800 - REDUNDANT.feature rename to Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.800 - REDUNDANT.feature diff --git a/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.900 - eSign and Lock access.feature b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.900 - eSign and Lock access.feature new file mode 100644 index 00000000..550b2c74 --- /dev/null +++ b/Feature Tests/C/Record Locking & E-Signatures_19/C.2.19.900 - eSign and Lock access.feature @@ -0,0 +1,106 @@ +Feature: User Interface: The system shall support the ability to limit access to the Record Locking Customization module through user rights. + + As a REDCap end user + I want to see that Record locking and E-signatures is functioning as expected + + Scenario: C.2.19.900.100 Enable user rights for Record Locking Customization module + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.2.19.900.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 + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Edit user privileges" + Then I should see "Editing existing user "test_user1"" + + When I click on the checkbox for the field labeled "Record Locking Customization" + And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" + And I click on the button labeled "Close" in the dialog box + And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" + And I click on the button labeled "Save changes" + Then I should see "User "test_user1" was successfully edited" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update user test_user1 | user = 'test_user1' | + + And I should see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" + + ##ACTION verify Record Locking Customization module enabled in Dev + Open Customize & Manage Locking/E-signatures + ##VERIFY + When I click on the link labeled "Customize and Manage the Record Locking and E-signature Functionality" + Then I should see "Customize and Manage the Record Locking and E-signature Functionality" + + ##USER_RIGHTS + Check Record Locking Customization module disabled + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Edit user privileges" + Then I should see "Editing existing user "test_user1"" + + When I deselect the checkbox for the field labeled "Record Locking Customization" + And I click on the radio labeled "Disabled" for the field labeled "Lock / Unlock Records (instrument level)" + And I verify the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" is not checked + And I click on the button labeled "Save Changes" + Then I should see "User "test_user1" was successfully edited" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update user test_user1 | user = 'test_user1' | + + ##VERIFY + And I should NOT see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" + + ##SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Manage/Design | Move project to Production status | + + ##VERIFY: Look for Record Locking Customization module (not there) + And I should NOT see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" + + #FUNCTIONAL REQUIREMENT + ##USER_RIGHTS + Check Record Locking Customization module disabled + When I click on the link labeled "User Rights" + And I click on the link labeled "Test_User1" + And I click on the button labeled "Edit user privileges" + Then I should see "Editing existing user "test_user1"" + And I verify the checkbox for the field labeled "Record Locking Customization" is not checked + And I verify the radio button labeled "Disabled" is selected for the field labeled "Lock / Unlock Records (instrument level)" + And I verify the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" is not checked + + ##USER_RIGHTS + When I click on the checkbox for the field labeled "Record Locking Customization" + And I click on the radio labeled "Locking / Unlocking with E-signature authority" for the field labeled "Lock / Unlock Records (instrument level)" + And I click on the button labeled "Close" in the dialog box + And I click on the checkbox for the field labeled "Lock/Unlock *Entire* Records (record level)" + And I click on the button labeled "Save Changes" + Then I should see "User "test_user1" was successfully edited" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_user1 | Update user test_user1 | user = 'test_user1' | + + ##ACTION verify Record Locking Customization module enabled in prod + Open Customize & Manage Locking/E-signatures + And I should see the link labeled "Customize and Manage the Record Locking and E-signature Functionality" +#END \ No newline at end of file diff --git a/Feature Tests/C/Reporting/C.5.22.100 - Report Access.feature b/Feature Tests/C/Reporting/C.5.22.100 - Report Access.feature deleted file mode 100644 index 6864d1d5..00000000 --- a/Feature Tests/C/Reporting/C.5.22.100 - Report Access.feature +++ /dev/null @@ -1,210 +0,0 @@ -Feature: User Interface: The system shall support the ability to assign the User Access to View Access and Edit Access in the Reporting module - -As a REDCap end user -I want to see that Reporting is functioning as expected - -Scenario: C.5.22.100.100 - MISSING SCENARIO TITLE - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.5.22.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#SETUP: Assign record 1 to DAG1 -When I click on the link labeled "Record Status Dashboard" -And I click on record "1" -And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown button with the placeholder text of "Choose action for record" -And I select the dropdown option labeled "TestGroup1" from the dropdown button with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 1 was successfully assigned to a Data Access Group1" - -#SETUP: Assign record 2 to DAG2 -When I click on the link labeled "Record Status Dashboard" -And I click on record "2" -And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown button with the placeholder text of "Choose action for record" -And I select the dropdown option labeled "TestGroup2" from the dropdown button with the placeholder text of "[No Assignment]" in the dialog box -And I click on the button labeled "Assign to Data Access Group" in the dialog box -Then I should see "Record ID 2 was successfully assigned to a Data Access Group2" - -#USER_RIGHTS -When I click on the link labeled "User Rights" -And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown -And I select "TestGroup1" on the dropdown field with the placeholder text "[No Assignment]" on the DAG dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User 1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table -And I should see "Test User 1" assigned to the DAG labeled "TestGroup1" - -When I enter "Test_User2" into the field with the placeholder text of "Assign new user to role" -And I click on the button labeled "Assign to role" -And I select "2_Edit_RemoveID" on the dropdown field labeled "Select Role" on the role selector dropdown -And I select "TestGroup2" on the dropdown field with the placeholder text "[No Assignment]" on the DAG dropdown -And I click on the button labeled exactly "Assign" on the role selector dropdown -Then I should see "Test User 2" within the "2_Edit_RemoveID" row of the column labeled "Username" of the User Rights table -And I should see "Test User 2" assigned to the DAG labeled "TestGroup2" - -When I enter "Test_User3" into the input field labeled "Add with custom rights" -And I click on the button labeled "Add with custom rights" -And I uncheck the checkbox on the field labeled "Add/Edit/Organize Reports" -And I click on the button labeled "Add user" -Then I should see User "test_user3" was successfully added -#SETUP: Create report -When I click on the link labeled "Data Exports, Reports, and Stats" -And I click on the button labeled "Create New Report" -And I enter "C.5.22.100.100 REPORT" in the field labeled "Name of Report:" -#FUNCTIONAL_REQUIREMENT -##ACTION -And I verify the radio button labeled "All users" is selected for the field labeled "View Access" -And I verify the radio button labeled "All users" is selected for the field labeled "Edit Access" -And I click on the button labeled "Save Report" -Then I should see "Your report has been saved!" in the dialog box -And I click on the button labeled "Return to My Reports & Exports" -And I logout - -##VERIFY: USER 1 -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" - -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| 1 | C.5.22.100.100 REPORT | - -When I click on the button labeled "View Report" for the report labeled "C.5.22.100.100 REPORT" -Then I should see record "1" -And I should NOT see record "2" -And I should NOT see record "3" -And I should NOT see record "4" -##VERIFY: Edit Report button -And I should see a button labeled "Edit Report" -And I logout - -##VERIFY: USER 2 -Given I login to REDCap with the user "Test_User2" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" - -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| 1 | C.5.22.100.100 REPORT | - -When I click on the button labeled "View Report" -Then I should see record "2" -And I should NOT see record "1" -And I should NOT see record "3" -And I should NOT see record "4" -##VERIFY: Edit Report button -And I should see a button labeled "Edit Report" -And I logout - -##VERIFY: USER 3 -Given I login to REDCap with the user "Test_User3" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" - -When I click on the link labeled "Data Exports, Reports, and Stats" -##VERIFY: cannot create report, edit, delete or copy report -Then I should NOT see a button labeled "Edit" -And I should NOT see a button labeled "Copy" -And I should NOT see a button labeled "Delete" -And I should see a table row containing the following values in the reports table: -| 1 | C.5.22.100.100 REPORT | - -When I click on the button labeled "View Report" -Then I should see record "1" -And I should see record "2" -And I should see record "3" -And I should see record "4" - -##VERIFY: Edit Report button -And I should NOT see a button labeled "Edit Report" -And I logout - -Given I login to REDCap with the user "Test_Admin" -When I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -And I click on the link labeled "Data Exports, Reports, and Stats" -And I click on the button labeled "Edit" for the field labeled "C.5.22.100.100 REPORT" -Then I should see "Edit Existing Report: "C.5.22.100.100 REPORT" - -#FUNCTIONAL_REQUIREMENT -##ACTION -When I click on the radio button labeled "Custom user access" for the field labeled "View Access" -And I select "test_user1" from the dropdown field labeled "Selected users" -And I select "test_user2" from the dropdown field labeled "Selected users" -And I click on the radio labeled "Custom user access" for the field labeled "Edit Access" -And I select "test_user1" from the dropdown field labeled "Selected users" -And I click on the button labeled "Save Report" -Then I should see "Your report has been saved!" in the dialog box -And I click on the button labeled "Return to My Reports & Exports" -And I logout - -##VERIFY: USER 3 -Given I login to REDCap with the user "Test_User3" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -Then I should NOT see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" - -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should NOT see "C.5.22.100.100 REPORT" -And I logout - -##VERIFY: USER 2 -Given I login to REDCap with the user "Test_User2" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" - -When I click on the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" -Then I should see "C.5.22.100.100 REPORT" - -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| 2 | C.5.22.100.100 REPORT | -And I should NOT see a button labeled "Edit" -And I should NOT see a button labeled "Copy" -And I should NOT see a button labeled "Delete" - -When I click on the button labeled "View Report" for the link labeled "C.5.22.100.100 REPORT" -Then I should see record "2" -And I should NOT see record "1" -And I should NOT see record "3" -And I should NOT see record "4" -##VERIFY: Edit Report button -And I should NOT see a button labeled "Edit Report" -And I logout - -##VERIFY: USER 1 -Given I login to REDCap with the user "Test_User1" -And I click on the link labeled "My Projects" -And I click on the link labeled "C.5.22.100.100" -Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" - -When I click on the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" -Then I should see "C.5.22.100.100 REPORT" - -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row containing the following values in the reports table: -| 2 | C.5.22.100.100 REPORT | -Then I should see a button labeled "Edit" -And I should see a button labeled "Copy" -And I should see a button labeled "Delete" - -When I click on the button labeled "View Report" for the link labeled "C.5.22.100.100 REPORT" -Then I should see record "1" -And I should NOT see record "2" -And I should NOT see record "3" -And I should NOT see record "4" -##VERIFY: Edit Report button -And I should see a button labeled "Edit Report" -And I logout diff --git a/Feature Tests/C/Reporting/C.5.22.200 - Report Management.feature b/Feature Tests/C/Reporting/C.5.22.200 - Report Management.feature deleted file mode 100644 index 51e6293c..00000000 --- a/Feature Tests/C/Reporting/C.5.22.200 - Report Management.feature +++ /dev/null @@ -1,78 +0,0 @@ -Feature: User Interface: The system shall support the ability to create, modify, copy, or delete reports. - -As a REDCap end user -I want to see that Reporting is functioning as expected - -Scenario: C.5.22.200.100 - MISSING SCENARIO TITLE - -#SETUP -Given I login to REDCap with the user "Test_User1" -And I create a new project named "C.5.22.200.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 - -#SETUP_PRODUCTION -When I click on the link labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project status: Production" - -#FUNCTIONAL_REQUIREMENT -##ACTION: create report -When I click on the link labeled "Data Exports, Reports, and Stats" -And I click on the button labeled "Create New Report" -And I enter "C.5.22.200.100 REPORT" in the field labeled "Name of Report:" -And I click on the button labeled "Save Report" -Then I should see "Your report has been saved!" in the dialog box - -##VERIFY: saved name -When I click on the button labeled "View report" in the dialog box -Then I should see "C.5.22.200.100 REPORT" - -When I click on the button labeled "Edit Report" -Then I should see "Edit Existing Report: "C.5.22.200.100 REPORT" - -#FUNCTIONAL_REQUIREMENT -##ACTION: edit report name -When I enter " C.5.22.200.100 REPORT_EDIT" in the field labeled "Name of Report:" -And I click on the button labeled "Save Report" -Then I should see "Your report has been saved!" in the dialog box - -##VERIFY: edited name -When I click on the button labeled "View report" in the dialog box -Then I should see "C.5.22.200.100 REPORT_EDIT" - -When I click on the button labeled "Edit Report" -Then I should see "Edit Existing Report: "C.5.22.200.100 REPORT_EDIT" - -When I enter "C.5.22.200.100 REPORT_EDIT2" in the field labeled "Name of Report:" -And I click on the button labeled "Save Report" -Then I should see "Your report has been saved!" in the dialog box - -##VERIFY: edited name -When I click on the button labeled "View report" in the dialog box -Then I should see "C.5.22.200.100 REPORT_EDIT2" - -When I click on the link labeled "Data Exports, Reports, and Stats" -Then I should see a table row including the following values in the reports table: -| 2 | C.5.22.100.100 REPORT_EDIT2 | - -#FUNCTIONAL_REQUIREMENT -##ACTION: copy report -When I click on the button labeled "Copy" for the report labeled "C.5.22.100.100 REPORT_EDIT2" -Then I should see "COPY REPORT?" - -When I click on the button labeled "Copy" in the dialog box -##VERIFY: copy -Then I should see a table row including the following values in the reports table: -| 2 | C.5.22.100.100 REPORT_EDIT2 | -| 3 | C.5.22.100.100 REPORT_EDIT2 (copy) | - -#FUNCTIONAL_REQUIREMENT -##ACTION: delete report -When I click on the button labeled "Delete" for the report labeled "C.5.22.100.100 REPORT_EDIT2" -Then I should see "DELETE REPORT?" - -When I click on the button labeled "Delete" in the dialog box -##VERIFY: delete -Then I should see a table row including the following values in the reports table: -| 2 | C.5.22.100.100 REPORT_EDIT2 (copy) | diff --git a/Feature Tests/C/Reporting_22/C.5.22.100 - Report Access.feature b/Feature Tests/C/Reporting_22/C.5.22.100 - Report Access.feature new file mode 100644 index 00000000..98ee1f34 --- /dev/null +++ b/Feature Tests/C/Reporting_22/C.5.22.100 - Report Access.feature @@ -0,0 +1,212 @@ +Feature: User Interface: The system shall support the ability to assign the User Access to View Access and Edit Access in the Reporting module + + As a REDCap end user + I want to see that Reporting is functioning as expected + + Scenario: C.5.22.100.100 - MISSING SCENARIO TITLE + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.5.22.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #SETUP: Assign record 1 to DAG1 + When I click on the link labeled "Record Status Dashboard" + And I click on record "1" + And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown button with the placeholder text of "Choose action for record" + And I select the dropdown option labeled "TestGroup1" from the dropdown button with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 1 was successfully assigned to a Data Access Group1" + + #SETUP: Assign record 2 to DAG2 + When I click on the link labeled "Record Status Dashboard" + And I click on record "2" + And I select the dropdown option labeled "Assign to Data Access Group" from the dropdown button with the placeholder text of "Choose action for record" + And I select the dropdown option labeled "TestGroup2" from the dropdown button with the placeholder text of "[No Assignment]" in the dialog box + And I click on the button labeled "Assign to Data Access Group" in the dialog box + Then I should see "Record ID 2 was successfully assigned to a Data Access Group2" + + #USER_RIGHTS + When I click on the link labeled "User Rights" + And I enter "Test_User1" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "1_FullRights" on the dropdown field labeled "Select Role" on the role selector dropdown + And I select "TestGroup1" on the dropdown field with the placeholder text "[No Assignment]" on the DAG dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User 1" within the "1_FullRights" row of the column labeled "Username" of the User Rights table + And I should see "Test User 1" assigned to the DAG labeled "TestGroup1" + + When I enter "Test_User2" into the field with the placeholder text of "Assign new user to role" + And I click on the button labeled "Assign to role" + And I select "2_Edit_RemoveID" on the dropdown field labeled "Select Role" on the role selector dropdown + And I select "TestGroup2" on the dropdown field with the placeholder text "[No Assignment]" on the DAG dropdown + And I click on the button labeled exactly "Assign" on the role selector dropdown + Then I should see "Test User 2" within the "2_Edit_RemoveID" row of the column labeled "Username" of the User Rights table + And I should see "Test User 2" assigned to the DAG labeled "TestGroup2" + + When I enter "Test_User3" into the input field labeled "Add with custom rights" + And I click on the button labeled "Add with custom rights" + And I uncheck the checkbox on the field labeled "Add/Edit/Organize Reports" + And I click on the button labeled "Add user" + Then I should see User "test_user3" was successfully added + #SETUP: Create report + When I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the button labeled "Create New Report" + And I enter "C.5.22.100.100 REPORT" in the field labeled "Name of Report:" + #FUNCTIONAL_REQUIREMENT + ##ACTION + And I verify the radio button labeled "All users" is selected for the field labeled "View Access" + And I verify the radio button labeled "All users" is selected for the field labeled "Edit Access" + And I click on the button labeled "Save Report" + Then I should see "Your report has been saved!" in the dialog box + And I click on the button labeled "Return to My Reports & Exports" + And I logout + + ##VERIFY: USER 1 + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | 1 | C.5.22.100.100 REPORT | + + When I click on the button labeled "View Report" for the report labeled "C.5.22.100.100 REPORT" + Then I should see record "1" + And I should NOT see record "2" + And I should NOT see record "3" + And I should NOT see record "4" + ##VERIFY: Edit Report button + And I should see a button labeled "Edit Report" + And I logout + + ##VERIFY: USER 2 + Given I login to REDCap with the user "Test_User2" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | 1 | C.5.22.100.100 REPORT | + + When I click on the button labeled "View Report" + Then I should see record "2" + And I should NOT see record "1" + And I should NOT see record "3" + And I should NOT see record "4" + ##VERIFY: Edit Report button + And I should see a button labeled "Edit Report" + And I logout + + ##VERIFY: USER 3 + Given I login to REDCap with the user "Test_User3" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + + When I click on the link labeled "Data Exports, Reports, and Stats" + ##VERIFY: cannot create report, edit, delete or copy report + Then I should NOT see a button labeled "Edit" + And I should NOT see a button labeled "Copy" + And I should NOT see a button labeled "Delete" + And I should see a table row containing the following values in the reports table: + | 1 | C.5.22.100.100 REPORT | + + When I click on the button labeled "View Report" + Then I should see record "1" + And I should see record "2" + And I should see record "3" + And I should see record "4" + + ##VERIFY: Edit Report button + And I should NOT see a button labeled "Edit Report" + And I logout + + Given I login to REDCap with the user "Test_Admin" + When I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + And I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the button labeled "Edit" for the field labeled "C.5.22.100.100 REPORT" + Then I should see "Edit Existing Report: "C.5.22.100.100 REPORT" + + #FUNCTIONAL_REQUIREMENT + ##ACTION + When I click on the radio button labeled "Custom user access" for the field labeled "View Access" + And I select "test_user1" from the dropdown field labeled "Selected users" + And I select "test_user2" from the dropdown field labeled "Selected users" + And I click on the radio labeled "Custom user access" for the field labeled "Edit Access" + And I select "test_user1" from the dropdown field labeled "Selected users" + And I click on the button labeled "Save Report" + Then I should see "Your report has been saved!" in the dialog box + And I click on the button labeled "Return to My Reports & Exports" + And I logout + + ##VERIFY: USER 3 + Given I login to REDCap with the user "Test_User3" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + Then I should NOT see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should NOT see "C.5.22.100.100 REPORT" + And I logout + + ##VERIFY: USER 2 + Given I login to REDCap with the user "Test_User2" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + + When I click on the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + Then I should see "C.5.22.100.100 REPORT" + + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | 2 | C.5.22.100.100 REPORT | + And I should NOT see a button labeled "Edit" + And I should NOT see a button labeled "Copy" + And I should NOT see a button labeled "Delete" + + When I click on the button labeled "View Report" for the link labeled "C.5.22.100.100 REPORT" + Then I should see record "2" + And I should NOT see record "1" + And I should NOT see record "3" + And I should NOT see record "4" + ##VERIFY: Edit Report button + And I should NOT see a button labeled "Edit Report" + And I logout + + ##VERIFY: USER 1 + Given I login to REDCap with the user "Test_User1" + And I click on the link labeled "My Projects" + And I click on the link labeled "C.5.22.100.100" + Then I should see the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + + When I click on the link labeled "C.5.22.100.100 REPORT" under the header labeled "Reports" + Then I should see "C.5.22.100.100 REPORT" + + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row containing the following values in the reports table: + | 2 | C.5.22.100.100 REPORT | + Then I should see a button labeled "Edit" + And I should see a button labeled "Copy" + And I should see a button labeled "Delete" + + When I click on the button labeled "View Report" for the link labeled "C.5.22.100.100 REPORT" + Then I should see record "1" + And I should NOT see record "2" + And I should NOT see record "3" + And I should NOT see record "4" + ##VERIFY: Edit Report button + And I should see a button labeled "Edit Report" + And I logout +#END \ No newline at end of file diff --git a/Feature Tests/C/Reporting_22/C.5.22.200 - Report Management.feature b/Feature Tests/C/Reporting_22/C.5.22.200 - Report Management.feature new file mode 100644 index 00000000..1aeed041 --- /dev/null +++ b/Feature Tests/C/Reporting_22/C.5.22.200 - Report Management.feature @@ -0,0 +1,80 @@ +Feature: User Interface: The system shall support the ability to create, modify, copy, or delete reports. + + As a REDCap end user + I want to see that Reporting is functioning as expected + + Scenario: C.5.22.200.100 - MISSING SCENARIO TITLE + + #SETUP + Given I login to REDCap with the user "Test_User1" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.5.22.200.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 + + #SETUP_PRODUCTION + When I click on the link labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project status: Production" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: create report + When I click on the link labeled "Data Exports, Reports, and Stats" + And I click on the button labeled "Create New Report" + And I enter "C.5.22.200.100 REPORT" in the field labeled "Name of Report:" + And I click on the button labeled "Save Report" + Then I should see "Your report has been saved!" in the dialog box + + ##VERIFY: saved name + When I click on the button labeled "View report" in the dialog box + Then I should see "C.5.22.200.100 REPORT" + + When I click on the button labeled "Edit Report" + Then I should see "Edit Existing Report: "C.5.22.200.100 REPORT" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: edit report name + When I enter " C.5.22.200.100 REPORT_EDIT" in the field labeled "Name of Report:" + And I click on the button labeled "Save Report" + Then I should see "Your report has been saved!" in the dialog box + + ##VERIFY: edited name + When I click on the button labeled "View report" in the dialog box + Then I should see "C.5.22.200.100 REPORT_EDIT" + + When I click on the button labeled "Edit Report" + Then I should see "Edit Existing Report: "C.5.22.200.100 REPORT_EDIT" + + When I enter "C.5.22.200.100 REPORT_EDIT2" in the field labeled "Name of Report:" + And I click on the button labeled "Save Report" + Then I should see "Your report has been saved!" in the dialog box + + ##VERIFY: edited name + When I click on the button labeled "View report" in the dialog box + Then I should see "C.5.22.200.100 REPORT_EDIT2" + + When I click on the link labeled "Data Exports, Reports, and Stats" + Then I should see a table row including the following values in the reports table: + | 2 | C.5.22.100.100 REPORT_EDIT2 | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: copy report + When I click on the button labeled "Copy" for the report labeled "C.5.22.100.100 REPORT_EDIT2" + Then I should see "COPY REPORT?" + + When I click on the button labeled "Copy" in the dialog box + ##VERIFY: copy + Then I should see a table row including the following values in the reports table: + | 2 | C.5.22.100.100 REPORT_EDIT2 | + | 3 | C.5.22.100.100 REPORT_EDIT2 (copy) | + + #FUNCTIONAL_REQUIREMENT + ##ACTION: delete report + When I click on the button labeled "Delete" for the report labeled "C.5.22.100.100 REPORT_EDIT2" + Then I should see "DELETE REPORT?" + + When I click on the button labeled "Delete" in the dialog box + ##VERIFY: delete + Then I should see a table row including the following values in the reports table: + | 2 | C.5.22.100.100 REPORT_EDIT2 (copy) | +#END \ No newline at end of file diff --git a/Feature Tests/C/e-Consent framework/C.3.24.100 - eConsent enable.feature b/Feature Tests/C/e-Consent framework/C.3.24.100 - eConsent enable.feature deleted file mode 100644 index f9aedc2a..00000000 --- a/Feature Tests/C/e-Consent framework/C.3.24.100 - eConsent enable.feature +++ /dev/null @@ -1,124 +0,0 @@ -Feature: Survey Settings: The system shall support the enabling/disabling of e-Consent framework. The framework categories are listed below: (Disabled | Auto-Archiver enabled | Auto-Archiver + e-Consent Framework (includes end-of-survey certification & archival of PDF consent form)) - -As a REDCap end user -I want to see that eConsent is functioning as expected - -Scenario: C.3.24.100.100 Enable/Disable eConsent framework - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named " C.3.24.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 - -#SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#FUNCTIONAL_REQUIREMENT -##ACTION: e-consent survey settings - disabled -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Disabled" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 5." - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -##VERIFY -Then I should see "Consent" -And I should NOT see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "0 Files" for the field labeled "PDF Survey Archive" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent] | Update Response 5 | consent_complete = '2' | - -#FUNCTIONAL_REQUIREMENTauto-archive enabled -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver enabled" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 6." - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -##VERIFY -Then I should see "Consent" -And I should NOT see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "1 File" for the field labeled "PDF Survey Archive" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent] | Update Response 6 | consent_complete = '2' | - - -#FUNCTIONAL_REQUIREMENT -##ACTION: e-consent survey settings - auto-archive and e-consent -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 7." - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -And I click on the button labeled "Next Page" -Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "2 Files" for the field labeled "PDF Survey Archive" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent] | Update Response 7 | consent_complete = '2' | - - diff --git a/Feature Tests/C/e-Consent framework/C.3.24.200 - eConsent footer.feature b/Feature Tests/C/e-Consent framework/C.3.24.200 - eConsent footer.feature deleted file mode 100644 index f13723e3..00000000 --- a/Feature Tests/C/e-Consent framework/C.3.24.200 - eConsent footer.feature +++ /dev/null @@ -1,402 +0,0 @@ -Feature: The e-Consent framework shall support the automatic insertion of select text fields into the footer of the PDF consent form. Selectors e-Consent version | First name field |Last name field | e-Consent type | Date of birth field | Signature field #1-#5 - -As a REDCap end user -I want to see that eConsent is functioning as expected - -Scenario: C.3.24.200.100 e-Consent text validation - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named " C.3.24.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Consent.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#SETUP_eConsent -When I click on the button labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" -And I verify I see "version test" in the field labeled "e-Consent version:" -And I verify I see "fname "Name"" in the field labeled "First name field:" -And I verify I see "lname "Name"" in the field labeled "Last name field:" -And I verify I see "type test" in the field labeled "e-Consent type:" -And I verify I see "dob "DOB"" in the field labeled "Date of birth field:" -And I verify I see "signature_consent "Signature"" in the field labeled "Signature field #1:" -And I verify I see "signature_consent_2 "Signature"" in the field labeled "Signature field #2:" -And I verify I see "signature_consent_3 "Signature"" in the field labeled "Signature field #3:" -And I verify I see "signature_consent_4 "Signature"" in the field labeled "Signature field #4:" -And I verify I see "signature_consent_5 "Signature"" in the field labeled "Signature field #5:" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 1." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-12-18" in the field labeled "4) DOB" #Date will be today's date. -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" - -When I click on the button labeled "Next Page" -Then I should see "Displayed below is a read-only copy of your survey responses." -And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I check the checkbox labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "1 File" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "1" -Then I should have a pdf file with the following values in the footer: "Name Name, 2023-09-03, Version: version test, Type: type test" -#M: Close document - -##ACTION: add record_missing sig_1 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 2." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "DOB" -And I DO NOT enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" - -When I click on the button labeled "Next Page" -Then I should see "NOTE: Some fields are required!" - -When I click on the button labeled "Okay" in the dialog box -#M: Close browser page -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "1" - -When I click on the Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" -And I select the dropdown option "Open survey" from the dropdown field labeled "Survey Options" -Then I should see "Consent" -And I should see "You have not completed the entire survey, and your responses are thus considered only partially complete. For security reasons, you will not be allowed to continue taking the survey from the place where you stopped." -And I should see the button labeled "Start Over" -#M: Close browser page -And I click on the button labeled "Leave without saving changes" in the dialog box - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should NOT see a PDF link for record "2" - -##ACTION: add record_missing sig_2 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 3." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "DOB" -And I enter a signature in the field labeled "5) Signature" -And I clear the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" - -When I click on the button labeled "Next Page" -Then I should see "NOTE: Some fields are required!" - -When I click on the button labeled "Okay" in the dialog box -#M: Close browser page -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "4" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should NOT see a PDF link for record "3" - -##ACTION: add record_missing sig_3 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 4." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I clear the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" - -When I click on the button labeled "Next Page" -Then I should see "NOTE: Some fields are required!" - -When I click on the button labeled "Okay" in the dialog box -#M: Close browser page -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "4" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should NOT see a PDF link for record "4" - -##ACTION: add record_missing sig_4 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 5." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I DO NOT enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" - -When I click on the button labeled "Next Page" -Then I should see "NOTE: Some fields are required!" - -When I click on the button labeled "Okay" in the dialog box -#M: Close browser page -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "5" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should NOT see a PDF link for record "5" - -##ACTION: add record_missing sig_5 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 6." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I clear the field labeled "9) Signature" - -When I click on the button labeled "Next Page" -Then I should see "NOTE: Some fields are required!" - -When I click on the button labeled "Okay" in the dialog box -#M: Close browser page -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "6" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -And I click on the link labeled "PDF Survey Archive" -Then I should NOT see a PDF link for record "6" - -##ACTION: add record_missing sig_5 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 7." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I clear the field labeled "1) Name" -And I clear the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I clear the field labeled "DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" -And I click on the button labeled "Next Page" -Then I should see "Consent" -And I should see "Displayed below is a read-only copy of your survey responses." -And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I check the checkbox labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "7" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "2 Files" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "7" -#M: Verify name and dob missing from footer -Then I should have a pdf file with the following values in the footer: "Version: version test, Type: type test" -#M: Close document - -#SETUP_eConsent_change field -When I click on the button labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" -And I enter "UPDATED VERSION TEST" in the field labeled "e-Consent version:" -And I verify I see "fname "Name"" in the field labeled "First name field:" -And I verify I see "lname "Name"" in the field labeled "Last name field:" -And I verify I see "type test" in the field labeled "e-Consent type:" -And I verify I see "dob "DOB"" in the field labeled "Date of birth field:" -And I verify I see "signature_consent "Signature"" in the field labeled "Signature field #1:" -And I verify I see "signature_consent_2 "Signature"" in the field labeled "Signature field #2:" -And I verify I see "signature_consent_3 "Signature"" in the field labeled "Signature field #3:" -And I verify I see "signature_consent_4 "Signature"" in the field labeled "Signature field #4:" -And I verify I see "signature_consent_5 "Signature"" in the field labeled "Signature field #5:" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 8." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" -And I click on the button labeled "Next Page" -Then I should see "Displayed below is a read-only copy of your survey responses." -And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I check the checkbox labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "8" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "3 Files" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "8" -Then I should have a pdf file with the following values in the footer: "Name Name, 2023-09-03, Version: UPDATED VERSION TEST, Type: type test" -#M: Close document - -#SETUP_eConsent_change field -When I click on the button labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver enabled" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 9." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-03" in the field labeled "4) DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" - -When I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "9" - -##VERIFY_FiRe_no eConsent -When I click on the link labeled "File Repository" -Then I should see "4 Files" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "9" -Then I should have a pdf file -And I should NOT see the following values in the footer: "Name Name, 2023-09-03, Version: UPDATED VERSION TEST, Type: type test" -#M: Close document diff --git a/Feature Tests/C/e-Consent framework/C.3.24.300 - eConsent status.feature b/Feature Tests/C/e-Consent framework/C.3.24.300 - eConsent status.feature deleted file mode 100644 index b3a7d427..00000000 --- a/Feature Tests/C/e-Consent framework/C.3.24.300 - eConsent status.feature +++ /dev/null @@ -1,129 +0,0 @@ -Feature: User Interface: The e-Consent framework will enable surveys to be considered as complete (submit button appears) once the certification step has been successfully completed. - -As a REDCap end user -I want to see that eConsent is functioning as expected - -Scenario: C.3.24.300.100 Certification required to submit completed survey - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named " C.3.24.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Consent.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#SETUP: Project Setup:modify repeating instruments -When I click on the button labeled "Modify" for the field labeled "Repeating instruments and events" -And I click on the button labeled "Close" in the dialog box -And I select the dropdown option labeled "Repeat Instruments (repeat independently of each other" for event "Event 1 (Arm 1: Arm 1)" -And I check the checkbox labeled "Consent" -And I click on the button labeled "Save" -Then I should see "Successfully saved!" - -#SETUP_eConsent -When I click on the button labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 1." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I enter a signature in the field labeled "5) Signature" -And I enter a signature in the field labeled "8) Signature" -And I click on the button labeled "Next Page" -Then I should see "Displayed below is a read-only copy of your survey responses." -And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." -##VERIFY: cannot submit without attestation -And I verify I CANNOT click on the button labeled "Submit" - -When I check the checkbox labeled "I certify that all of my information in the document above is correct." -##VERIFY: can submit once attestation complete -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" - -When I click the "+" for the Data Collection Instrument labeled "Consent" for event "Event 1" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I enter a signature in the field labeled "5) Signature" -And I enter a signature in the field labeled "8) Signature" -And I click on the button labeled "Next Page" -Then I should see "Displayed below is a read-only copy of your survey responses." -And I should see a button labeled "Previous Page" - -#FUNCTIONAL_REQUIREMENT -##ACTION: click on previous page and cancel -When I click on the button labeled "Previous Page" -Then I should see "Erase your signature(s) in this survey?" - -When I click on the button labeled "Cancel" in the dialog box -Then I should see "Displayed below is a read-only copy of your survey responses." - -#FUNCTIONAL_REQUIREMENT -##ACTION: click on previous page and accept -When I click on the button labeled "Previous Page" -Then I should see "Erase your signature(s) in this survey?" -And I click on the button labeled "Erase my signature(s) and go to earlier page" in the dialog box -Then I should see "Consent" -And I should NOT see a signature in the field labeled "5) Signature" -And I should NOT see "signature_consent_2" in the field labeled "6) Signature" -And I should NOT see "signature_consent_3" in the field labeled "7) Signature" -And I should NOT see a signature in the field labeled "8) Signature" -And I should NOT see "signature_consent_5" in the field labeled "9) Signature" -#M: Close browser page - -When I click on the button labeled "Leave without saving changes" in the dialog box -And I click the bubble for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 1" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -##VERIFY: partial survey completion not accepted -And I should see "You have partially completed this survey." - -When I click on the button labeled "Start Over" -And I click on the button labeled "OK" in the pop-up box -Then I should see "Consent" -And I verify I see "Name" in the field labeled "1) Name" -And I verify I see "Name" in the field labeled "2) Name" -And I verify I see "email@test.edu" in the field labeled "3) Email" -And I verify I see "2023-09-04" in the field labeled "4) DOB" -And I enter a signature in the field labeled "5) Signature" -And I verify I see "signature_consent_2" in the field labeled "6) Signature" -And I verify I see "signature_consent_3" in the field labeled "7) Signature" -And I enter a signature in the field labeled "8) Signature" -And I verify I see "signature_consent_5" in the field labeled "9) Signature" -#M: Close browser page - -When I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "1" for event "Event 1" -And I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 1" - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "1 File" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "1" -Then I should have a pdf file with the following values in the footer: "Name Name, 2023-09-04, Version: version test, Type: type test" -#M: Close document diff --git a/Feature Tests/C/e-Consent framework/C.3.24.600 - eConsent edit.feature b/Feature Tests/C/e-Consent framework/C.3.24.600 - eConsent edit.feature deleted file mode 100644 index 916d3967..00000000 --- a/Feature Tests/C/e-Consent framework/C.3.24.600 - eConsent edit.feature +++ /dev/null @@ -1,101 +0,0 @@ -Feature: User Interface: The e-Consent framework shall support editing of responses by users. - -As a REDCap end user -I want to see that eConsent is functioning as expected - -Scenario: C.3.24.600.100 Enable/disable edit ability for e-Consent framework - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.3.24.600.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 - -#SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -##ACTION: e-consent survey settings - auto-archive and e-consent -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##ACTION: add record -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 5." - -When I click on the button labeled "Save & Stay" -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -And I enter "Consent Name" in the field labeled "Name" -And I click on the button labeled "Next Page" -Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." - -When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." -And I click on the button labeled "Submit" -And I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| [survey respondent]| Update Response 5 | consent_complete = '2' | -| [survey respondent]| Update Response 5 | name_consent = 'Consent Name' | - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "1 File" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "5" -Then I should have a pdf file with the following values in the report: "1) Name" is "Consent Name" -#Manual: Close document - -##ACTION: edit survey response -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Consent" for event "Event 1" for record "5" -And I click on the button labeled "Edit response" -Then I should see "Survey response is editable (now editing)" - -When I enter "Consent 2 Name" in the field labeled "Name" -And I click on the button labeled "Save & Exit Form" -Then I should see "Record ID 5 successfully edited." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Update record 5| name_consent = 'Consent 2 Name' | - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "1 File" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -And I click on the link on the PDF link for record "5" -Then I should have a pdf file with the following values in the report: I should NOT see "1) Name" is "Consent 2 Name" -#Manual: Close document - -##ACTION: disable e-consent survey settings - auto-archive and e-consent -When I click on the link labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I deselect the checkbox labeled "Allow e-Consent responses to be edited by users?" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -##VERIFY: cannot edit survey response -When I click on the link labeled "Record Status Dashboard" -And I click on the bubble for the instrument labeled "Consent" for event "Event 1" for record "5" -Then I should see "Survey responses is read-only because it was complete via the e-Consent Framework." - -##VERIFY_LOG -When I click on the link labeled "Logging" -Then I should see a table header and rows including the following values in the logging table: -| Username | Action | List of Data Changes OR Fields Exported | -| test_admin | Manage/Design | Modify survey info | diff --git a/Feature Tests/C/e-Consent framework/C.3.24.800 - eConsent repeat.feature b/Feature Tests/C/e-Consent framework/C.3.24.800 - eConsent repeat.feature deleted file mode 100644 index d2e5fc80..00000000 --- a/Feature Tests/C/e-Consent framework/C.3.24.800 - eConsent repeat.feature +++ /dev/null @@ -1,124 +0,0 @@ -Feature: User Interface: The e-Consent framework shall support repeatable instruments and repeatable events - -As a REDCap end user -I want to see that eConsent is functioning as expected - -Scenario: C.3.24.800.100 e-Consent framework & Repeatable instruments/events - -#SETUP -Given I login to REDCap with the user "Test_Admin" -And I create a new project named "C.3.24.800.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Consent.xml", and clicking the "Create Project" button - -#SETUP_PRODUCTION -When I click on the button labeled "Project Setup" -And I click on the button labeled "Move project to production" -And I click on the radio labeled "Keep ALL data saved so far" in the dialog box -And I click on the button labeled "YES, Move to Production Status" in the dialog box -Then I should see "Project Status: Production" - -#SETUP: Project Setup:modify repeating instruments -When I click on the button labeled "Modify" for the field labeled "Repeating instruments and events" -And I click on the button labeled "Close" in the dialog box -And I select the dropdown option labeled "Repeat Instruments (repeat independently of each other" for event "Event 1 (Arm 1: Arm 1)" -And I check the checkbox labeled "Consent" -And I click on the button labeled "Save" -Then I should see "Successfully saved!" - -#SETUP_eConsent -When I click on the button labeled "Designer" -And I click on the button labeled "Survey settings" for the instrument labeled "Consent" -And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" -And I click on the button labeled "Save Changes" -Then I should see "Your survey settings were successfully saved!" - -#FUNCTIONAL_REQUIREMENT -##ACTION: instance 1 for event 1 -When I click on the link labeled "Add/Edit Records" -And I click on the button labeled "Add new record for the arm selected above" -And I click on the bubble labeled "Consent" for event "Event 1" -Then I should see "Adding new Record ID 1." - -When I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" -When I enter a signature in the field labeled "5) Signature" -And I enter a signature in the field labeled "8) Signature" -And I click on the button labeled "Next Page" -And I check the checkbox labeled "I certify all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "1" for event "Event 1" for record "1" - -#FUNCTIONAL_REQUIREMENT -##ACTION: instance 2 for event 1 -When I click the "+" for the Data Collection Instrument labeled "Consent" for event "Event 1" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I enter a signature in the field labeled "5) Signature" -And I enter a signature in the field labeled "8) Signature" -And I click on the button labeled "Next Page" -And I check the checkbox labeled "I certify all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 1" for record "1" - -#FUNCTIONAL_REQUIREMENT -##ACTION: instance 1 for event 3 -When I click the bubble for the Data Collection Instrument labeled "Consent" for event "Event 3" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I enter a signature in the field labeled "5) Signature" -And I enter a signature in the field labeled "8) Signature" -And I click on the button labeled "Next Page" -And I check the checkbox labeled "I certify all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "1" for event "Event 3" for record "1" - -#FUNCTIONAL_REQUIREMENT -##ACTION: instance 2 for event 3 -When I click the "+" for the Data Collection Instrument labeled "Consent" for event "Event 3" -And I click on the button labeled "Save & Stay" -And I click on the button labeled "Okay" in the dialog box -And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" -Then I should see "Consent" - -When I enter a signature in the field labeled "5) Signature" -And I enter a signature in the field labeled "8) Signature" -And I click on the button labeled "Next Page" -And I check the checkbox labeled "I certify all of my information in the document above is correct." -And I click on the button labeled "Submit" -Then I should see "Thank you for taking the survey." - -When I click on the button labeled "Close survey" -And I click on the button labeled "Leave without saving changes" in the dialog box -##VERIFY_RSD -Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 3" for record "1" - -##VERIFY_LOG: Keeping here in case you change your mind and want to include something in logging. If you don't feel like its valuable, then delete - -##VERIFY_FiRe -When I click on the link labeled "File Repository" -Then I should see "4 Files" for the field labeled "PDF Survey Archive" - -When I click on the link labeled "PDF Survey Archive" -Then I should have 4 pdf files for record "1" diff --git a/Feature Tests/C/e-Consent framework_24/C.3.24.100 - eConsent enable.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.100 - eConsent enable.feature new file mode 100644 index 00000000..16516a53 --- /dev/null +++ b/Feature Tests/C/e-Consent framework_24/C.3.24.100 - eConsent enable.feature @@ -0,0 +1,124 @@ +Feature: Survey Settings: The system shall support the enabling/disabling of e-Consent framework. The framework categories are listed below: (Disabled | Auto-Archiver enabled | Auto-Archiver + e-Consent Framework (includes end-of-survey certification & archival of PDF consent form)) + + As a REDCap end user + I want to see that eConsent is functioning as expected + + Scenario: C.3.24.100.100 Enable/Disable eConsent framework + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named " C.3.24.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 + + #SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: e-consent survey settings - disabled + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Disabled" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 5." + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + ##VERIFY + Then I should see "Consent" + And I should NOT see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "0 Files" for the field labeled "PDF Survey Archive" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 5 | consent_complete = '2' | + + #FUNCTIONAL_REQUIREMENTauto-archive enabled + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver enabled" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 6." + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + ##VERIFY + Then I should see "Consent" + And I should NOT see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "1 File" for the field labeled "PDF Survey Archive" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 6 | consent_complete = '2' | + + + #FUNCTIONAL_REQUIREMENT + ##ACTION: e-consent survey settings - auto-archive and e-consent + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 7." + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + And I click on the button labeled "Next Page" + Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "2 Files" for the field labeled "PDF Survey Archive" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 7 | consent_complete = '2' | +#END \ No newline at end of file diff --git a/Feature Tests/C/e-Consent framework_24/C.3.24.200 - eConsent footer.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.200 - eConsent footer.feature new file mode 100644 index 00000000..c2afe001 --- /dev/null +++ b/Feature Tests/C/e-Consent framework_24/C.3.24.200 - eConsent footer.feature @@ -0,0 +1,404 @@ +Feature: The e-Consent framework shall support the automatic insertion of select text fields into the footer of the PDF consent form. Selectors e-Consent version | First name field |Last name field | e-Consent type | Date of birth field | Signature field #1-#5 + + As a REDCap end user + I want to see that eConsent is functioning as expected + + Scenario: C.3.24.200.100 e-Consent text validation + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named " C.3.24.200.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Consent.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #SETUP_eConsent + When I click on the button labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" + And I verify I see "version test" in the field labeled "e-Consent version:" + And I verify I see "fname "Name"" in the field labeled "First name field:" + And I verify I see "lname "Name"" in the field labeled "Last name field:" + And I verify I see "type test" in the field labeled "e-Consent type:" + And I verify I see "dob "DOB"" in the field labeled "Date of birth field:" + And I verify I see "signature_consent "Signature"" in the field labeled "Signature field #1:" + And I verify I see "signature_consent_2 "Signature"" in the field labeled "Signature field #2:" + And I verify I see "signature_consent_3 "Signature"" in the field labeled "Signature field #3:" + And I verify I see "signature_consent_4 "Signature"" in the field labeled "Signature field #4:" + And I verify I see "signature_consent_5 "Signature"" in the field labeled "Signature field #5:" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 1." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-12-18" in the field labeled "4) DOB" #Date will be today's date. + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + + When I click on the button labeled "Next Page" + Then I should see "Displayed below is a read-only copy of your survey responses." + And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I check the checkbox labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "1 File" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "1" + Then I should have a pdf file with the following values in the footer: "Name Name, 2023-09-03, Version: version test, Type: type test" + #M: Close document + + ##ACTION: add record_missing sig_1 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 2." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "DOB" + And I DO NOT enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + + When I click on the button labeled "Next Page" + Then I should see "NOTE: Some fields are required!" + + When I click on the button labeled "Okay" in the dialog box + #M: Close browser page + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "1" + + When I click on the Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + And I select the dropdown option "Open survey" from the dropdown field labeled "Survey Options" + Then I should see "Consent" + And I should see "You have not completed the entire survey, and your responses are thus considered only partially complete. For security reasons, you will not be allowed to continue taking the survey from the place where you stopped." + And I should see the button labeled "Start Over" + #M: Close browser page + And I click on the button labeled "Leave without saving changes" in the dialog box + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should NOT see a PDF link for record "2" + + ##ACTION: add record_missing sig_2 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 3." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "DOB" + And I enter a signature in the field labeled "5) Signature" + And I clear the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + + When I click on the button labeled "Next Page" + Then I should see "NOTE: Some fields are required!" + + When I click on the button labeled "Okay" in the dialog box + #M: Close browser page + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "4" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should NOT see a PDF link for record "3" + + ##ACTION: add record_missing sig_3 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 4." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I clear the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + + When I click on the button labeled "Next Page" + Then I should see "NOTE: Some fields are required!" + + When I click on the button labeled "Okay" in the dialog box + #M: Close browser page + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "4" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should NOT see a PDF link for record "4" + + ##ACTION: add record_missing sig_4 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 5." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I DO NOT enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + + When I click on the button labeled "Next Page" + Then I should see "NOTE: Some fields are required!" + + When I click on the button labeled "Okay" in the dialog box + #M: Close browser page + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "5" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should NOT see a PDF link for record "5" + + ##ACTION: add record_missing sig_5 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 6." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I clear the field labeled "9) Signature" + + When I click on the button labeled "Next Page" + Then I should see "NOTE: Some fields are required!" + + When I click on the button labeled "Okay" in the dialog box + #M: Close browser page + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "6" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + And I click on the link labeled "PDF Survey Archive" + Then I should NOT see a PDF link for record "6" + + ##ACTION: add record_missing sig_5 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 7." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I clear the field labeled "1) Name" + And I clear the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I clear the field labeled "DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + And I click on the button labeled "Next Page" + Then I should see "Consent" + And I should see "Displayed below is a read-only copy of your survey responses." + And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I check the checkbox labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "7" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "2 Files" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "7" + #M: Verify name and dob missing from footer + Then I should have a pdf file with the following values in the footer: "Version: version test, Type: type test" + #M: Close document + + #SETUP_eConsent_change field + When I click on the button labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" + And I enter "UPDATED VERSION TEST" in the field labeled "e-Consent version:" + And I verify I see "fname "Name"" in the field labeled "First name field:" + And I verify I see "lname "Name"" in the field labeled "Last name field:" + And I verify I see "type test" in the field labeled "e-Consent type:" + And I verify I see "dob "DOB"" in the field labeled "Date of birth field:" + And I verify I see "signature_consent "Signature"" in the field labeled "Signature field #1:" + And I verify I see "signature_consent_2 "Signature"" in the field labeled "Signature field #2:" + And I verify I see "signature_consent_3 "Signature"" in the field labeled "Signature field #3:" + And I verify I see "signature_consent_4 "Signature"" in the field labeled "Signature field #4:" + And I verify I see "signature_consent_5 "Signature"" in the field labeled "Signature field #5:" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 8." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + And I click on the button labeled "Next Page" + Then I should see "Displayed below is a read-only copy of your survey responses." + And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I check the checkbox labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "8" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "3 Files" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "8" + Then I should have a pdf file with the following values in the footer: "Name Name, 2023-09-03, Version: UPDATED VERSION TEST, Type: type test" + #M: Close document + + #SETUP_eConsent_change field + When I click on the button labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver enabled" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 9." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-03" in the field labeled "4) DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + + When I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" for record "9" + + ##VERIFY_FiRe_no eConsent + When I click on the link labeled "File Repository" + Then I should see "4 Files" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "9" + Then I should have a pdf file + And I should NOT see the following values in the footer: "Name Name, 2023-09-03, Version: UPDATED VERSION TEST, Type: type test" +#Manual: Close document +#END \ No newline at end of file diff --git a/Feature Tests/C/e-Consent framework_24/C.3.24.300 - eConsent status.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.300 - eConsent status.feature new file mode 100644 index 00000000..8ebe325d --- /dev/null +++ b/Feature Tests/C/e-Consent framework_24/C.3.24.300 - eConsent status.feature @@ -0,0 +1,131 @@ +Feature: User Interface: The e-Consent framework will enable surveys to be considered as complete (submit button appears) once the certification step has been successfully completed. + + As a REDCap end user + I want to see that eConsent is functioning as expected + + Scenario: C.3.24.300.100 Certification required to submit completed survey + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named " C.3.24.300.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Consent.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #SETUP: Project Setup:modify repeating instruments + When I click on the button labeled "Modify" for the field labeled "Repeating instruments and events" + And I click on the button labeled "Close" in the dialog box + And I select the dropdown option labeled "Repeat Instruments (repeat independently of each other" for event "Event 1 (Arm 1: Arm 1)" + And I check the checkbox labeled "Consent" + And I click on the button labeled "Save" + Then I should see "Successfully saved!" + + #SETUP_eConsent + When I click on the button labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 1." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I enter a signature in the field labeled "5) Signature" + And I enter a signature in the field labeled "8) Signature" + And I click on the button labeled "Next Page" + Then I should see "Displayed below is a read-only copy of your survey responses." + And I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + ##VERIFY: cannot submit without attestation + And I verify I CANNOT click on the button labeled "Submit" + + When I check the checkbox labeled "I certify that all of my information in the document above is correct." + ##VERIFY: can submit once attestation complete + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + + When I click the "+" for the Data Collection Instrument labeled "Consent" for event "Event 1" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I enter a signature in the field labeled "5) Signature" + And I enter a signature in the field labeled "8) Signature" + And I click on the button labeled "Next Page" + Then I should see "Displayed below is a read-only copy of your survey responses." + And I should see a button labeled "Previous Page" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: click on previous page and cancel + When I click on the button labeled "Previous Page" + Then I should see "Erase your signature(s) in this survey?" + + When I click on the button labeled "Cancel" in the dialog box + Then I should see "Displayed below is a read-only copy of your survey responses." + + #FUNCTIONAL_REQUIREMENT + ##ACTION: click on previous page and accept + When I click on the button labeled "Previous Page" + Then I should see "Erase your signature(s) in this survey?" + And I click on the button labeled "Erase my signature(s) and go to earlier page" in the dialog box + Then I should see "Consent" + And I should NOT see a signature in the field labeled "5) Signature" + And I should NOT see "signature_consent_2" in the field labeled "6) Signature" + And I should NOT see "signature_consent_3" in the field labeled "7) Signature" + And I should NOT see a signature in the field labeled "8) Signature" + And I should NOT see "signature_consent_5" in the field labeled "9) Signature" + #M: Close browser page + + When I click on the button labeled "Leave without saving changes" in the dialog box + And I click the bubble for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 1" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + ##VERIFY: partial survey completion not accepted + And I should see "You have partially completed this survey." + + When I click on the button labeled "Start Over" + And I click on the button labeled "OK" in the pop-up box + Then I should see "Consent" + And I verify I see "Name" in the field labeled "1) Name" + And I verify I see "Name" in the field labeled "2) Name" + And I verify I see "email@test.edu" in the field labeled "3) Email" + And I verify I see "2023-09-04" in the field labeled "4) DOB" + And I enter a signature in the field labeled "5) Signature" + And I verify I see "signature_consent_2" in the field labeled "6) Signature" + And I verify I see "signature_consent_3" in the field labeled "7) Signature" + And I enter a signature in the field labeled "8) Signature" + And I verify I see "signature_consent_5" in the field labeled "9) Signature" + #M: Close browser page + + When I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "1" for event "Event 1" + And I should see a Partial Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 1" + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "1 File" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "1" + Then I should have a pdf file with the following values in the footer: "Name Name, 2023-09-04, Version: version test, Type: type test" +#Manual: Close document +#END \ No newline at end of file diff --git a/Feature Tests/C/e-Consent framework/C.3.24.400 - REDUNDANT.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.400 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/e-Consent framework/C.3.24.400 - REDUNDANT.feature rename to Feature Tests/C/e-Consent framework_24/C.3.24.400 - REDUNDANT.feature diff --git a/Feature Tests/C/e-Consent framework/C.3.24.500 - REDUNDANT.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.500 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/e-Consent framework/C.3.24.500 - REDUNDANT.feature rename to Feature Tests/C/e-Consent framework_24/C.3.24.500 - REDUNDANT.feature diff --git a/Feature Tests/C/e-Consent framework_24/C.3.24.600 - eConsent edit.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.600 - eConsent edit.feature new file mode 100644 index 00000000..149f46f5 --- /dev/null +++ b/Feature Tests/C/e-Consent framework_24/C.3.24.600 - eConsent edit.feature @@ -0,0 +1,103 @@ +Feature: User Interface: The e-Consent framework shall support editing of responses by users. + + As a REDCap end user + I want to see that eConsent is functioning as expected + + Scenario: C.3.24.600.100 Enable/disable edit ability for e-Consent framework + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.3.24.600.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 + + #SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + ##ACTION: e-consent survey settings - auto-archive and e-consent + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##ACTION: add record + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 5." + + When I click on the button labeled "Save & Stay" + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + And I enter "Consent Name" in the field labeled "Name" + And I click on the button labeled "Next Page" + Then I should see a checkbox for the field labeled "I certify that all of my information in the document above is correct." + + When I click on the checkbox for the field labeled "I certify that all of my information in the document above is correct." + And I click on the button labeled "Submit" + And I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for event "Event 1" + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | [survey respondent] | Update Response 5 | consent_complete = '2' | + | [survey respondent] | Update Response 5 | name_consent = 'Consent Name' | + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "1 File" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "5" + Then I should have a pdf file with the following values in the report: "1) Name" is "Consent Name" + #Manual: Close document + + ##ACTION: edit survey response + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Consent" for event "Event 1" for record "5" + And I click on the button labeled "Edit response" + Then I should see "Survey response is editable (now editing)" + + When I enter "Consent 2 Name" in the field labeled "Name" + And I click on the button labeled "Save & Exit Form" + Then I should see "Record ID 5 successfully edited." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Update record 5 | name_consent = 'Consent 2 Name' | + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "1 File" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + And I click on the link on the PDF link for record "5" + Then I should have a pdf file with the following values in the report: I should NOT see "1) Name" is "Consent 2 Name" + #Manual: Close document + + ##ACTION: disable e-consent survey settings - auto-archive and e-consent + When I click on the link labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I deselect the checkbox labeled "Allow e-Consent responses to be edited by users?" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + ##VERIFY: cannot edit survey response + When I click on the link labeled "Record Status Dashboard" + And I click on the bubble for the instrument labeled "Consent" for event "Event 1" for record "5" + Then I should see "Survey responses is read-only because it was complete via the e-Consent Framework." + + ##VERIFY_LOG + When I click on the link labeled "Logging" + Then I should see a table header and rows including the following values in the logging table: + | Username | Action | List of Data Changes OR Fields Exported | + | test_admin | Manage/Design | Modify survey info | +#END \ No newline at end of file diff --git a/Feature Tests/C/e-Consent framework/C.3.24.700 - REDUNDANT.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.700 - REDUNDANT.feature similarity index 100% rename from Feature Tests/C/e-Consent framework/C.3.24.700 - REDUNDANT.feature rename to Feature Tests/C/e-Consent framework_24/C.3.24.700 - REDUNDANT.feature diff --git a/Feature Tests/C/e-Consent framework_24/C.3.24.800 - eConsent repeat.feature b/Feature Tests/C/e-Consent framework_24/C.3.24.800 - eConsent repeat.feature new file mode 100644 index 00000000..c0bd3a09 --- /dev/null +++ b/Feature Tests/C/e-Consent framework_24/C.3.24.800 - eConsent repeat.feature @@ -0,0 +1,126 @@ +Feature: User Interface: The e-Consent framework shall support repeatable instruments and repeatable events + + As a REDCap end user + I want to see that eConsent is functioning as expected + + Scenario: C.3.24.800.100 e-Consent framework & Repeatable instruments/events + + #SETUP + Given I login to REDCap with the user "Test_Admin" + #Manual: Append project name with the current version (i.e. "X.X.X.XXX.XXX - LTS X.X.X") + And I create a new project named "C.3.24.800.100" by clicking on "New Project" in the menu bar, selecting "Practice / Just for fun" from the dropdown, choosing file "Consent.xml", and clicking the "Create Project" button + + #SETUP_PRODUCTION + When I click on the button labeled "Project Setup" + And I click on the button labeled "Move project to production" + And I click on the radio labeled "Keep ALL data saved so far" in the dialog box + And I click on the button labeled "YES, Move to Production Status" in the dialog box + Then I should see "Project Status: Production" + + #SETUP: Project Setup:modify repeating instruments + When I click on the button labeled "Modify" for the field labeled "Repeating instruments and events" + And I click on the button labeled "Close" in the dialog box + And I select the dropdown option labeled "Repeat Instruments (repeat independently of each other" for event "Event 1 (Arm 1: Arm 1)" + And I check the checkbox labeled "Consent" + And I click on the button labeled "Save" + Then I should see "Successfully saved!" + + #SETUP_eConsent + When I click on the button labeled "Designer" + And I click on the button labeled "Survey settings" for the instrument labeled "Consent" + And I click on the radio labeled "Auto-Archiver + e-Consent Framework" for the field labeled "e-Consent Framework" + And I click on the button labeled "Save Changes" + Then I should see "Your survey settings were successfully saved!" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: instance 1 for event 1 + When I click on the link labeled "Add/Edit Records" + And I click on the button labeled "Add new record for the arm selected above" + And I click on the bubble labeled "Consent" for event "Event 1" + Then I should see "Adding new Record ID 1." + + When I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + When I enter a signature in the field labeled "5) Signature" + And I enter a signature in the field labeled "8) Signature" + And I click on the button labeled "Next Page" + And I check the checkbox labeled "I certify all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "1" for event "Event 1" for record "1" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: instance 2 for event 1 + When I click the "+" for the Data Collection Instrument labeled "Consent" for event "Event 1" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I enter a signature in the field labeled "5) Signature" + And I enter a signature in the field labeled "8) Signature" + And I click on the button labeled "Next Page" + And I check the checkbox labeled "I certify all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 1" for record "1" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: instance 1 for event 3 + When I click the bubble for the Data Collection Instrument labeled "Consent" for event "Event 3" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I enter a signature in the field labeled "5) Signature" + And I enter a signature in the field labeled "8) Signature" + And I click on the button labeled "Next Page" + And I check the checkbox labeled "I certify all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "1" for event "Event 3" for record "1" + + #FUNCTIONAL_REQUIREMENT + ##ACTION: instance 2 for event 3 + When I click the "+" for the Data Collection Instrument labeled "Consent" for event "Event 3" + And I click on the button labeled "Save & Stay" + And I click on the button labeled "Okay" in the dialog box + And I select the dropdown option labeled "Open survey" from the dropdown button with the placeholder text of "Survey options" + Then I should see "Consent" + + When I enter a signature in the field labeled "5) Signature" + And I enter a signature in the field labeled "8) Signature" + And I click on the button labeled "Next Page" + And I check the checkbox labeled "I certify all of my information in the document above is correct." + And I click on the button labeled "Submit" + Then I should see "Thank you for taking the survey." + + When I click on the button labeled "Close survey" + And I click on the button labeled "Leave without saving changes" in the dialog box + ##VERIFY_RSD + Then I should see a Completed Survey Response icon for the Data Collection Instrument labeled "Consent" for instance "2" for event "Event 3" for record "1" + + ##VERIFY_LOG: Keeping here in case you change your mind and want to include something in logging. If you don't feel like its valuable, then delete + + ##VERIFY_FiRe + When I click on the link labeled "File Repository" + Then I should see "4 Files" for the field labeled "PDF Survey Archive" + + When I click on the link labeled "PDF Survey Archive" + Then I should have 4 pdf files for record "1" +#END \ No newline at end of file