You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Context (Explains the specifications of a certain situation)
5
+
3. Given/When/Then (Describes the steps a user takes interacting with the application)
6
+
7
+
Describe: Reading code systems from the application
8
+
Context 1:
9
+
Given the service is populated with data
10
+
AND the server is running
11
+
12
+
Context 1a:
13
+
Given a valid user
14
+
AND has access to the api
15
+
# Base
16
+
Test 1:
17
+
When I GET an endpoint that does not exist
18
+
Then Status Code 400
19
+
# Code Systems
20
+
Test 2:
21
+
When I GET “ALL code systems”
22
+
Then Status Code 200
23
+
AND Response body contains ALL code systems
24
+
25
+
Test 3a:
26
+
When I GET code-systems by {id} with a VALID id
27
+
Then status code 200
28
+
AND response body contains correct code-system
29
+
30
+
Test 3b:
31
+
When I GET code-systems by {id} with an INVALID id
32
+
Then status code 400
33
+
# Code Systems Concepts
34
+
Test 4:
35
+
When I GET all code systems Concepts
36
+
Then status code 200
37
+
AND response body contains all Code Systems Concepts
38
+
39
+
Test 5:
40
+
When I GET a code systems concept by ID with a VALID ID
41
+
Then status code 200
42
+
AND response body contains the correct code system
43
+
44
+
Test 6:
45
+
When I GET a code systems concept by ID with an INVALID ID
46
+
Then Status code 400
47
+
# Value Sets
48
+
Test:
49
+
When I GET api/value-sets/
50
+
Then Status Code 200
51
+
AND response body returns ALL value sets
52
+
53
+
Test:
54
+
When I GET a value set by ID with a VALID id
55
+
Then status code 200
56
+
AND response body contains the correct value set
57
+
58
+
Test:
59
+
When I GET a value set by ID with an INVALID ID
60
+
Then Status code 400
61
+
62
+
Test:
63
+
When I GET a value sets version based on its oid ("GET /api/value-sets/{oid}/versions") with a VALID oid
64
+
Then status code 200
65
+
AND response body contains the value set's CORRECT version
66
+
67
+
Test:
68
+
When I GET a value sets version based on its oid ("GET /api/value-sets/{oid}/versions") with an INVALID oid
69
+
Then status code 400
70
+
# Value Set versions
71
+
Test:
72
+
When I get the VALUE sets versions by ID endpoint using a VALID ID
73
+
Then Status Code 200
74
+
AND Response Body contains the versions of the CORRECT value set
75
+
76
+
Test:
77
+
When I get the VALUE sets versions by ID endpoint using an INVALID ID
78
+
Then Status Code 400
79
+
# Views
80
+
Test 3:
81
+
When I GET “ALL Views”
82
+
Then Status Code 200
83
+
AND Response body contains ALL Views
84
+
85
+
Test 6a:
86
+
When I GET ViewByID with a valid ID
87
+
Then Status Code 200
88
+
AND response body contains the correct View
89
+
90
+
Test 6b:
91
+
When I GET ViewByID with an invalid ID
92
+
Then Status Code 400
93
+
# VIEW Versions
94
+
Test:
95
+
When I get the VIEW versions by ID endpoint using a VALID ID
96
+
Then Status Code 200
97
+
AND Response Body contains the versions of the CORRECT view
98
+
99
+
Test:
100
+
When I get the VIEW versions by ID endpoint using an INVALID ID
101
+
Then Status Code 400
102
+
103
+
Test:
104
+
When I get the VIEW versions by VIEW ID endpoint using a VALID ID
105
+
Then Status Code 200
106
+
AND Response Body contains the versions of the CORRECT view id
107
+
108
+
Test:
109
+
When I get the VIEW versions by VIEW ID endpoint using an INVALID ID
110
+
Then Status Code 400
111
+
# Value Set Concepts
112
+
Test:
113
+
When I get the VALUE SET CONCEPTS by ID endpoint using a VALID ID
114
+
Then Status Code 200
115
+
AND Response Body contains the correct VALUE SET CONCEPTS
116
+
117
+
Test:
118
+
When I get the VALUE SET CONCEPTS by ID endpoint using an INVALID ID
119
+
Then Status Code 400
120
+
121
+
Test:
122
+
When I get the VALUE SET CONCEPTS through VALUE SET VERSION by the VERSION ID endpoint ("GET /api/value-set-concepts/value-set-version/{valueSetVersionId}") using a VALID ID
123
+
Then Status Code 200
124
+
AND Response Body contains the correct VALUE SET CONCEPTS
125
+
126
+
Test:
127
+
When I get the VALUE SET CONCEPTS through VALUE SET VERSION by the VERSION ID using an INVALID ID
128
+
Then Status Code 400
129
+
130
+
Test:
131
+
When I get the VALUE SET CONCEPTS through the CODE SYSTEM by the CODE SYSTEM ID endpoint using a VALID ID
132
+
Then Status Code 200
133
+
AND Response Body contains the correct VALUE SET CONCEPTS
134
+
135
+
Test:
136
+
When I get the VALUE SET CONCEPTS through the CODE SYSTEM by the CODE SYSTEM ID endpoint using an INVALID ID
137
+
Then Status Code 400
138
+
# Miscellaneous
139
+
Test:
140
+
When I GET the TOGGLE BANNER endpoint with an ACTION, using a VALID ACTION
141
+
Status Code 200
142
+
The Action is properly taken
143
+
144
+
Test:
145
+
When I GET the TOGGLE BANNER endpoint with an ACTION, using an INVALID ACTION
146
+
Status Code 400
147
+
The Action is not taken
148
+
149
+
Test:
150
+
When I GET the LOAD HOT TOPICS endpoint
151
+
Status Code 200
152
+
The HOT TOPICS are properly loaded
153
+
154
+
Test:
155
+
When I GET the SEARCH RESULTS
156
+
Status Code 200
157
+
The response body contains the proper search RESULTS
0 commit comments