Skip to content

Commit

Permalink
Update B.6.7.1700 - Identifier Fields.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
aldefouw committed Jan 2, 2024
1 parent 292d80c commit 1b66376
Showing 1 changed file with 31 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,27 @@ 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"
#MANUAL NOTE: the last button is the one at the bottom of the instrument
And I click on the last button labeled "Add Field"

When I select "Text Box (Short Text, Number, Date/Time, ...)" from the Field Type dropdown of the open "Add New Field" dialog box
And I enter "Identifier 3" into the Field Label of the open "Add New Field" dialog box
And I enter "identifier_3" into the Variable Name of the open "Add New Field" dialog box
And I mark the field as an identifier
And I click on the button labeled "Save" in the "Add New Field" dialog box

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|

| [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 |
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 | Create project field |

Scenario: B.6.7.1700.200 Designating field as identifier through Project Setup
#SETUP
Expand All @@ -62,39 +62,44 @@ Then I should see "Check For Identifiers"

#FUNCTIONAL_REQUIREMENT
##ACTION: designate identifier
When I click on the checkbox for the Variable Name labeled "name"
When I click on the checkbox 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|
Then I should see a table header and rows containing the following values in the codebook table:
| Variable / Field Name | Field Label | Field Attributes |
| [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 |
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_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
And I click on the link labeled "New Project"
And I enter "B.6.7.1700.300" 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"
Then I should see "Your new REDCap project has been created"
And I should see "B.6.7.1700.300"

#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"
And I upload a "csv" format file located at "dictionaries/Project1xml_DataDictionary.csv", by clicking the button near "Choose File" to browse for the file, and clicking the button labeled "Upload File" to upload the 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|
Then I should see a table header and rows containing the following values in the codebook table:
| Variable / Field Name | Field Label | Field Attributes |
| [identifier] | Identifier | text, Identifier|

0 comments on commit 1b66376

Please sign in to comment.