-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtestManagement.feature
161 lines (138 loc) · 7.81 KB
/
testManagement.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
Feature: Test Management Feature
Background:
Given User logins and Visits Home Page
@testManagement
Scenario: Validate list items in Test Management menu
Given User clicks admin menu link
Then User clicks Test Management left menu item link
And Test Management page appears with functionality links
| Rename existing test names |
| Rename Existing Panels |
| Rename Existing Sample Types |
| Rename Existing Test Sections |
| Rename Existing Unit of Measure Entries |
| Rename existing result list options |
| Rename existing method names |
| View Test Catalog |
| Manage Methods |
| Add new tests |
| Modify tests |
| Activate/Deactivate tests |
| Enable/disable test orderability |
| Manage Test Units |
| Manage Sample Types |
| Manage Units of Measure |
| Manage Panels |
| Add result select list |
Then Count List menu list Items should be <18>
@testManagement @renameExistingTest
Scenario Outline: Open Rename Existing Test Names page
Given User clicks admin menu link
Then User clicks Test Management left menu item link
And Check if rename existing test names link exists
When User clicks rename existing test names link
Then Laboratory test names (hyperlinked & underlined) should appear on page in three columns. All are in primary language
When User selects an existing Test Name "<testName>"
And User enters test name "<testNameEng>" in English
And User enters test name "<testNameFR>" in French
And User enters Reporting test name "<TestNameReportENG>" in English
And User enters reporting test name "<TestNameReportFR>" in French
Then User Clicks save button
And User Clicks accept to confirm changes
Then Confirm Test name "<testNameEng>" update was saved
Examples:
| testName | testNameEng | testNameFR | TestNameReportENG | TestNameReportFR |
| Glucose(Plasma) | GlucoseENG | GlucoseFR | GlucoseReportENG | GlucoseReportFR |
| GlucoseENG(Plasma) | Glucose | Glucose | GlucoseReport | GlucoseReport |
@testManagement @renameExistingTest
Scenario: User rejects the testName updates
Given User clicks admin menu link
Then User clicks Test Management left menu item link
And Check if rename existing test names link exists
When User clicks rename existing test names link
Then Laboratory test names (hyperlinked & underlined) should appear on page in three columns. All are in primary language
When User selects an existing Test Name "Glucose(Plasma)"
And User enters test name "GlucoseRejectEng" in English
And User enters test name "GlucoseRejectFR" in French
And User enters Reporting test name "GlucoseReportRejectEng" in English
And User enters reporting test name "GlucoseReportRejectFR" in French
Then User Clicks save button
When User clicks reject button
Then Confirm Test name "GlucoseRejectEng" update was rejected but contains "Glucose(Plasma)"
And User clicks on finished button
@testManagement @renameExistingTest
Scenario: User cancels the testName updates
Given User clicks admin menu link
Then User clicks Test Management left menu item link
And Check if rename existing test names link exists
When User clicks rename existing test names link
Then Laboratory test names (hyperlinked & underlined) should appear on page in three columns. All are in primary language
When User selects an existing Test Name "Glucose(Plasma)"
And User enters test name "GlucoseCancelEng" in English
And User enters test name "GlucoseCancelFR" in French
And User enters Reporting test name "GlucoseReportCancelEng" in English
And User enters reporting test name "GlucoseReportCancelFR" in French
When User clicks cancel button
Then Confirm Test name "GlucoseCancelEng" update was canceled
And User clicks on finished button
@testManagement @addNewTestName
Scenario Outline: Add new tests
Given User clicks admin menu link
Then User clicks Test Management left menu item link
And User Clicks Add new test link on the test management menu
Then User Enters test name for English "<TestNameEng>" and French "<TestNameFrench>" into the respective text fields
Then From the Unit of Measure dropdown select the appropriate unit "<UnitOfMeasure>"
Then From the Test Section drop down select the appropriate option "<testSection>"
Then From the Panel dropdown select the appropriate option "<panel>"
Then From the Result type dropdown select the appropriate option
Then Under Reporting Test name, click on Copy from Test Name
Then User Enters Reporting test names for English and French into the respective fields if different from Test Name
Then With all of the *required fields completed the Next button becomes active
Then The tick box next to Active is auto-selected
Then The tick box next to Orderable is auto-selected
And User Clicks Next button
Then User selects the Type "<sampleType>" from SampleType dropdown options
Then User selects one more type from SampleType "<anotherSampleType>" dropdown options and testName "<TestNameEng>" should be displayed
Then Select the new Test Name and hold the selection move it to the desired position in the Test display order
And User Clicks on Next button
And User Clicks on Accept button
Examples:
| TestNameEng | TestNameFrench | UnitOfMeasure | testSection | panel | sampleType | anotherSampleType |
| gastric fluid analysis | analyse du liquide gastrique | mlU/ml | Molecular Biology | Bilan Biochimique | Serum | Urines |
@testManagement @addNewTestName
Scenario Outline: Verify Added new testName
Given User Clicks on the Order menu tab and select Add order
Then User selects sample type "<sampleType>" from the drop down
And User Searches TestName "<TestName>" from the available Tests
Examples:
| sampleType | TestName |
| Serum | gastric fluid analysis |
| Urines | gastric fluid analysis |
@testManagement @modifyTest
Scenario Outline: Modify test details
Given User clicks admin menu link
Then User clicks Test Management left menu item link
And User Clicks on modify tests link on the test management menu
Then User checks show Guide checkbox
Then User unchecks show Guide checkbox
And User clicks on one of the available tests "<testName>"
Then Change Test Name both english and french "<newTestName>"
And Click on Copy from Test Name "<newTestName>"
And Test Name,Reporting Test Name, Test Section and Result Type are mandatory
And Test Section : click on dropbox and select section
And LOINC test field accepts text "<LOINC>"
And Panel : click on dropbox and select option
Then Unit of Measure : click on dropbox and select option
And Result Type : click on dropbox and select option "<resultType>"
Then user clicks Click on Next
# Then Sample Type : click on dropbox and select option // to be reviewed
And Sample Type is mandatory
Then click on Next button
Then Click on Edit Result Ranges button "<resultType>"
And Enter appropriate ranges "<resultType>"
Then User clicks Click on Next button after entering Result ranges
Then Click on Accept button
Examples:
| testName | newTestName | LOINC | resultType |
| Amylase | Amylase updated | 82092-8 | Numeric |
| Bioline | Bioline updated | 15052-2 | Select List |