Commit 28832b9cb53a8268aa585ce9022fb459575f5df9
1 parent
ae96a02e
Made code look nicer: openprocurement_client.robot
Showing
1 changed file
with
61 additions
and
38 deletions
1 | *** Settings *** | 1 | *** Settings *** |
2 | Library openprocurement_client_helper.py | 2 | Library openprocurement_client_helper.py |
3 | 3 | ||
4 | + | ||
4 | *** Keywords *** | 5 | *** Keywords *** |
5 | Отримати internal id по UAid | 6 | Отримати internal id по UAid |
6 | [Arguments] @{ARGUMENTS} | 7 | [Arguments] @{ARGUMENTS} |
@@ -19,6 +20,7 @@ Library openprocurement_client_helper.py | @@ -19,6 +20,7 @@ Library openprocurement_client_helper.py | ||
19 | Dictionary Should Contain Key ${ID_MAP} ${ARGUMENTS[1]} | 20 | Dictionary Should Contain Key ${ID_MAP} ${ARGUMENTS[1]} |
20 | Run Keyword And Return Get From Dictionary ${ID_MAP} ${ARGUMENTS[1]} | 21 | Run Keyword And Return Get From Dictionary ${ID_MAP} ${ARGUMENTS[1]} |
21 | 22 | ||
23 | + | ||
22 | Підготувати клієнт для користувача | 24 | Підготувати клієнт для користувача |
23 | [Arguments] @{ARGUMENTS} | 25 | [Arguments] @{ARGUMENTS} |
24 | [Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо | 26 | [Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо |
@@ -28,10 +30,12 @@ Library openprocurement_client_helper.py | @@ -28,10 +30,12 @@ Library openprocurement_client_helper.py | ||
28 | Set Suite Variable ${ID_MAP} | 30 | Set Suite Variable ${ID_MAP} |
29 | Log Variables | 31 | Log Variables |
30 | 32 | ||
33 | + | ||
31 | Підготувати дані для оголошення тендера | 34 | Підготувати дані для оголошення тендера |
32 | ${INITIAL_TENDER_DATA}= prepare_test_tender_data | 35 | ${INITIAL_TENDER_DATA}= prepare_test_tender_data |
33 | [return] ${INITIAL_TENDER_DATA} | 36 | [return] ${INITIAL_TENDER_DATA} |
34 | 37 | ||
38 | + | ||
35 | Створити тендер | 39 | Створити тендер |
36 | [Arguments] @{ARGUMENTS} | 40 | [Arguments] @{ARGUMENTS} |
37 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_tender ${ARGUMENTS[1]} | 41 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_tender ${ARGUMENTS[1]} |
@@ -44,6 +48,7 @@ Library openprocurement_client_helper.py | @@ -44,6 +48,7 @@ Library openprocurement_client_helper.py | ||
44 | Log ${USERS.users['${ARGUMENTS[0]}'].TENDER_DATA} | 48 | Log ${USERS.users['${ARGUMENTS[0]}'].TENDER_DATA} |
45 | [return] ${TENDER_DATA.data.tenderID} | 49 | [return] ${TENDER_DATA.data.tenderID} |
46 | 50 | ||
51 | + | ||
47 | Пошук тендера по ідентифікатору | 52 | Пошук тендера по ідентифікатору |
48 | [Arguments] @{ARGUMENTS} | 53 | [Arguments] @{ARGUMENTS} |
49 | [Documentation] | 54 | [Documentation] |
@@ -54,12 +59,15 @@ Library openprocurement_client_helper.py | @@ -54,12 +59,15 @@ Library openprocurement_client_helper.py | ||
54 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} tender_data ${tender_data} | 59 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} tender_data ${tender_data} |
55 | [return] ${tender_data} | 60 | [return] ${tender_data} |
56 | 61 | ||
62 | + | ||
57 | Оновити сторінку з тендером | 63 | Оновити сторінку з тендером |
58 | [Arguments] @{ARGUMENTS} | 64 | [Arguments] @{ARGUMENTS} |
59 | [Documentation] | 65 | [Documentation] |
60 | ... ${ARGUMENTS[0]} == username | 66 | ... ${ARGUMENTS[0]} == username |
61 | ... ${ARGUMENTS[1]} == tenderId | 67 | ... ${ARGUMENTS[1]} == tenderId |
62 | - openprocurement_client.Пошук тендера по ідентифікатору @{ARGUMENTS} | 68 | + ${tender_data}= openprocurement_client.Пошук тендера по ідентифікатору @{ARGUMENTS} |
69 | + Log ${tender_data} | ||
70 | + | ||
63 | 71 | ||
64 | Отримати інформацію із тендера | 72 | Отримати інформацію із тендера |
65 | [Arguments] @{ARGUMENTS} | 73 | [Arguments] @{ARGUMENTS} |
@@ -71,6 +79,7 @@ Library openprocurement_client_helper.py | @@ -71,6 +79,7 @@ Library openprocurement_client_helper.py | ||
71 | Log ${field_value} | 79 | Log ${field_value} |
72 | [return] ${field_value} | 80 | [return] ${field_value} |
73 | 81 | ||
82 | + | ||
74 | Внести зміни в тендер | 83 | Внести зміни в тендер |
75 | [Arguments] @{ARGUMENTS} | 84 | [Arguments] @{ARGUMENTS} |
76 | [Documentation] | 85 | [Documentation] |
@@ -85,6 +94,7 @@ Library openprocurement_client_helper.py | @@ -85,6 +94,7 @@ Library openprocurement_client_helper.py | ||
85 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} | 94 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} |
86 | Set Global Variable ${TENDER_DATA} | 95 | Set Global Variable ${TENDER_DATA} |
87 | 96 | ||
97 | + | ||
88 | Отримати тендер | 98 | Отримати тендер |
89 | [Arguments] @{ARGUMENTS} | 99 | [Arguments] @{ARGUMENTS} |
90 | [Documentation] | 100 | [Documentation] |
@@ -95,6 +105,7 @@ Library openprocurement_client_helper.py | @@ -95,6 +105,7 @@ Library openprocurement_client_helper.py | ||
95 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 105 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
96 | Set Global Variable ${TENDER_DATA} | 106 | Set Global Variable ${TENDER_DATA} |
97 | 107 | ||
108 | + | ||
98 | Відняти предмети закупівлі | 109 | Відняти предмети закупівлі |
99 | [Arguments] @{ARGUMENTS} | 110 | [Arguments] @{ARGUMENTS} |
100 | [Documentation] | 111 | [Documentation] |
@@ -112,6 +123,7 @@ Library openprocurement_client_helper.py | @@ -112,6 +123,7 @@ Library openprocurement_client_helper.py | ||
112 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} | 123 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} |
113 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 124 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
114 | 125 | ||
126 | + | ||
115 | Додати предмети закупівлі | 127 | Додати предмети закупівлі |
116 | [Arguments] @{ARGUMENTS} | 128 | [Arguments] @{ARGUMENTS} |
117 | [Documentation] | 129 | [Documentation] |
@@ -130,19 +142,21 @@ Library openprocurement_client_helper.py | @@ -130,19 +142,21 @@ Library openprocurement_client_helper.py | ||
130 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 142 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
131 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} | 143 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} |
132 | 144 | ||
145 | + | ||
133 | Задати питання | 146 | Задати питання |
134 | [Documentation] | 147 | [Documentation] |
135 | ... ${ARGUMENTS[0]} == username | 148 | ... ${ARGUMENTS[0]} == username |
136 | ... ${ARGUMENTS[1]} == tender_uid | 149 | ... ${ARGUMENTS[1]} == tender_uid |
137 | ... ${ARGUMENTS[2]} == question | 150 | ... ${ARGUMENTS[2]} == question |
138 | [Arguments] @{ARGUMENTS} | 151 | [Arguments] @{ARGUMENTS} |
139 | - log many @{ARGUMENTS} | 152 | + Log many @{ARGUMENTS} |
140 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 153 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
141 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 154 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
142 | - log ${USERS.users['${ARGUMENTS[0]}']} | 155 | + Log ${USERS.users['${ARGUMENTS[0]}']} |
143 | ${biddingresponse}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_question ${tender} ${ARGUMENTS[2]} | 156 | ${biddingresponse}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_question ${tender} ${ARGUMENTS[2]} |
144 | [return] ${biddingresponse} | 157 | [return] ${biddingresponse} |
145 | 158 | ||
159 | + | ||
146 | Відповісти на питання | 160 | Відповісти на питання |
147 | [Documentation] | 161 | [Documentation] |
148 | ... ${ARGUMENTS[0]} == username | 162 | ... ${ARGUMENTS[0]} == username |
@@ -150,23 +164,24 @@ Library openprocurement_client_helper.py | @@ -150,23 +164,24 @@ Library openprocurement_client_helper.py | ||
150 | ... ${ARGUMENTS[2]} == question_id | 164 | ... ${ARGUMENTS[2]} == question_id |
151 | ... ${ARGUMENTS[3]} == answer_data | 165 | ... ${ARGUMENTS[3]} == answer_data |
152 | [Arguments] @{ARGUMENTS} | 166 | [Arguments] @{ARGUMENTS} |
153 | - log many @{ARGUMENTS} | 167 | + Log many @{ARGUMENTS} |
154 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 168 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
155 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 169 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
156 | - log many ${USERS.users['${ARGUMENTS[0]}']} | 170 | + Log many ${USERS.users['${ARGUMENTS[0]}']} |
157 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 171 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
158 | ${ARGUMENTS[3].data.id}= Set Variable ${tender.data.questions[${ARGUMENTS[2]}].id} | 172 | ${ARGUMENTS[3].data.id}= Set Variable ${tender.data.questions[${ARGUMENTS[2]}].id} |
159 | ${question_with_answer}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_question ${tender} ${ARGUMENTS[3]} | 173 | ${question_with_answer}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_question ${tender} ${ARGUMENTS[3]} |
160 | - log many ${USERS.users['${ARGUMENTS[0]}'].client} ${tender} ${ARGUMENTS[3]} | 174 | + Log many ${USERS.users['${ARGUMENTS[0]}'].client} ${tender} ${ARGUMENTS[3]} |
161 | Log object data ${question_with_answer} question_with_answer | 175 | Log object data ${question_with_answer} question_with_answer |
162 | 176 | ||
177 | + | ||
163 | Подати скаргу | 178 | Подати скаргу |
164 | [Documentation] | 179 | [Documentation] |
165 | ... ${ARGUMENTS[0]} == username | 180 | ... ${ARGUMENTS[0]} == username |
166 | ... ${ARGUMENTS[1]} == tender_uid | 181 | ... ${ARGUMENTS[1]} == tender_uid |
167 | ... ${ARGUMENTS[2]} == complaint | 182 | ... ${ARGUMENTS[2]} == complaint |
168 | [Arguments] @{ARGUMENTS} | 183 | [Arguments] @{ARGUMENTS} |
169 | - log many @{ARGUMENTS} | 184 | + Log many @{ARGUMENTS} |
170 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 185 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
171 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 186 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
172 | ${complaint}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} _create_tender_resource_item ${tender} ${ARGUMENTS[2]} complaints | 187 | ${complaint}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} _create_tender_resource_item ${tender} ${ARGUMENTS[2]} complaints |
@@ -174,23 +189,25 @@ Library openprocurement_client_helper.py | @@ -174,23 +189,25 @@ Library openprocurement_client_helper.py | ||
174 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} access_token ${access_token} | 189 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} access_token ${access_token} |
175 | Log object data ${complaint} complaint | 190 | Log object data ${complaint} complaint |
176 | 191 | ||
192 | + | ||
177 | Порівняти скаргу | 193 | Порівняти скаргу |
178 | [Documentation] | 194 | [Documentation] |
179 | ... ${ARGUMENTS[0]} == username | 195 | ... ${ARGUMENTS[0]} == username |
180 | ... ${ARGUMENTS[1]} == tender_uid | 196 | ... ${ARGUMENTS[1]} == tender_uid |
181 | ... ${ARGUMENTS[2]} == complaint | 197 | ... ${ARGUMENTS[2]} == complaint |
182 | [Arguments] @{ARGUMENTS} | 198 | [Arguments] @{ARGUMENTS} |
199 | + Log many @{ARGUMENTS} | ||
183 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 200 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
184 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 201 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
185 | ${complaint}= Get Variable Value ${tender.data.complaints[0]} | 202 | ${complaint}= Get Variable Value ${tender.data.complaints[0]} |
186 | - log ${complaint} | ||
187 | - log ${ARGUMENTS[2]} | 203 | + Log ${complaint} |
188 | #TODO: COMPARE | 204 | #TODO: COMPARE |
189 | #Dictionary Should Contain Sub Dictionary ${complaint} ${ARGUMENTS[2].data} | 205 | #Dictionary Should Contain Sub Dictionary ${complaint} ${ARGUMENTS[2].data} |
190 | #:FOR ${element} IN ${ARGUMENTS[2].data} | 206 | #:FOR ${element} IN ${ARGUMENTS[2].data} |
191 | - #\ log ${element} | 207 | + #\ Log ${element} |
192 | #\ Dictionary Should Contain Value ${complaint} ${element} | 208 | #\ Dictionary Should Contain Value ${complaint} ${element} |
193 | 209 | ||
210 | + | ||
194 | Обробити скаргу | 211 | Обробити скаргу |
195 | [Documentation] | 212 | [Documentation] |
196 | ... ${ARGUMENTS[0]} == username | 213 | ... ${ARGUMENTS[0]} == username |
@@ -198,28 +215,30 @@ Library openprocurement_client_helper.py | @@ -198,28 +215,30 @@ Library openprocurement_client_helper.py | ||
198 | ... ${ARGUMENTS[2]} == question_id | 215 | ... ${ARGUMENTS[2]} == question_id |
199 | ... ${ARGUMENTS[3]} == answer_data | 216 | ... ${ARGUMENTS[3]} == answer_data |
200 | [Arguments] @{ARGUMENTS} | 217 | [Arguments] @{ARGUMENTS} |
201 | - log many @{ARGUMENTS} | 218 | + Log many @{ARGUMENTS} |
202 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 219 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
203 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 220 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
204 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 221 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
205 | ${ARGUMENTS[3].data.id}= Set Variable ${tender.data.complaints[${ARGUMENTS[2]}].id} | 222 | ${ARGUMENTS[3].data.id}= Set Variable ${tender.data.complaints[${ARGUMENTS[2]}].id} |
206 | ${complaint_with_answer}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} _patch_tender_resource_item ${tender} ${ARGUMENTS[3]} complaints | 223 | ${complaint_with_answer}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} _patch_tender_resource_item ${tender} ${ARGUMENTS[3]} complaints |
207 | - log many ${USERS.users['${ARGUMENTS[0]}'].client} ${tender} ${ARGUMENTS[3]} | 224 | + Log many ${USERS.users['${ARGUMENTS[0]}'].client} ${tender} ${ARGUMENTS[3]} |
208 | Log object data ${complaint_with_answer} complaint_with_answer | 225 | Log object data ${complaint_with_answer} complaint_with_answer |
209 | 226 | ||
227 | + | ||
210 | Подати цінову пропозицію | 228 | Подати цінову пропозицію |
211 | [Documentation] | 229 | [Documentation] |
212 | ... ${ARGUMENTS[0]} == username | 230 | ... ${ARGUMENTS[0]} == username |
213 | ... ${ARGUMENTS[1]} == tender_uid | 231 | ... ${ARGUMENTS[1]} == tender_uid |
214 | ... ${ARGUMENTS[2]} == bid | 232 | ... ${ARGUMENTS[2]} == bid |
215 | [Arguments] @{ARGUMENTS} | 233 | [Arguments] @{ARGUMENTS} |
216 | - log many @{ARGUMENTS} | 234 | + Log many @{ARGUMENTS} |
217 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 235 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
218 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 236 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
219 | - log ${tender}Отримати | 237 | + Log ${tender} |
220 | ${biddingresponse}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_bid ${tender} ${ARGUMENTS[2]} | 238 | ${biddingresponse}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_bid ${tender} ${ARGUMENTS[2]} |
221 | [return] ${biddingresponse} | 239 | [return] ${biddingresponse} |
222 | 240 | ||
241 | + | ||
223 | Змінити цінову пропозицію | 242 | Змінити цінову пропозицію |
224 | [Documentation] | 243 | [Documentation] |
225 | ... ${ARGUMENTS[0]} == username | 244 | ... ${ARGUMENTS[0]} == username |
@@ -232,20 +251,22 @@ Library openprocurement_client_helper.py | @@ -232,20 +251,22 @@ Library openprocurement_client_helper.py | ||
232 | Log ${changed_bid} | 251 | Log ${changed_bid} |
233 | [return] ${changed_bid} | 252 | [return] ${changed_bid} |
234 | 253 | ||
254 | + | ||
235 | Скасувати цінову пропозицію | 255 | Скасувати цінову пропозицію |
236 | [Documentation] | 256 | [Documentation] |
237 | ... ${ARGUMENTS[0]} == username | 257 | ... ${ARGUMENTS[0]} == username |
238 | ... ${ARGUMENTS[1]} == tender_uid | 258 | ... ${ARGUMENTS[1]} == tender_uid |
239 | ... ${ARGUMENTS[2]} == bid | 259 | ... ${ARGUMENTS[2]} == bid |
240 | [Arguments] @{ARGUMENTS} | 260 | [Arguments] @{ARGUMENTS} |
261 | + Log many @{ARGUMENTS} | ||
241 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 262 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
242 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 263 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
243 | - log ${tender} | ||
244 | - log ${ARGUMENTS[2]}Отримати | 264 | + Log ${tender} |
245 | ${changed_bid}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} delete_bid ${tender} ${ARGUMENTS[2]} | 265 | ${changed_bid}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} delete_bid ${tender} ${ARGUMENTS[2]} |
246 | Log ${changed_bid} | 266 | Log ${changed_bid} |
247 | [return] ${changed_bid} | 267 | [return] ${changed_bid} |
248 | 268 | ||
269 | + | ||
249 | Прийняти цінову пропозицію | 270 | Прийняти цінову пропозицію |
250 | [Documentation] | 271 | [Documentation] |
251 | ... ${ARGUMENTS[0]} == username | 272 | ... ${ARGUMENTS[0]} == username |
@@ -259,25 +280,25 @@ Library openprocurement_client_helper.py | @@ -259,25 +280,25 @@ Library openprocurement_client_helper.py | ||
259 | Log ${award_activeted_response} | 280 | Log ${award_activeted_response} |
260 | [return] ${award_activeted_response} | 281 | [return] ${award_activeted_response} |
261 | 282 | ||
283 | + | ||
262 | Завантажити документ в ставку | 284 | Завантажити документ в ставку |
263 | [Documentation] | 285 | [Documentation] |
264 | ... ${ARGUMENTS[0]} == username | 286 | ... ${ARGUMENTS[0]} == username |
265 | ... ${ARGUMENTS[1]} == path | 287 | ... ${ARGUMENTS[1]} == path |
266 | ... ${ARGUMENTS[2]} == tenderid | 288 | ... ${ARGUMENTS[2]} == tenderid |
267 | [Arguments] @{ARGUMENTS} | 289 | [Arguments] @{ARGUMENTS} |
268 | - log ${ARGUMENTS[0]} | ||
269 | - log ${ARGUMENTS[1]} | ||
270 | - log ${ARGUMENTS[2]} | 290 | + Log many @{ARGUMENTS} |
271 | ${bid_id}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].data.id} | 291 | ${bid_id}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].data.id} |
272 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} | 292 | ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} |
273 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 293 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
274 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].access.token} | 294 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].access.token} |
275 | ${response}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_bid_document ${ARGUMENTS[1]} ${tender} ${bid_id} | 295 | ${response}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_bid_document ${ARGUMENTS[1]} ${tender} ${bid_id} |
276 | ${uploaded_file} = Create Dictionary filepath ${ARGUMENTS[1]} upload_response ${response} | 296 | ${uploaded_file} = Create Dictionary filepath ${ARGUMENTS[1]} upload_response ${response} |
277 | - log ${response} | 297 | + Log ${response} |
278 | Log object data ${uploaded_file} | 298 | Log object data ${uploaded_file} |
279 | [return] ${uploaded_file} | 299 | [return] ${uploaded_file} |
280 | 300 | ||
301 | + | ||
281 | Змінити документ в ставці | 302 | Змінити документ в ставці |
282 | [Documentation] | 303 | [Documentation] |
283 | ... ${ARGUMENTS[0]} == username | 304 | ... ${ARGUMENTS[0]} == username |
@@ -285,27 +306,24 @@ Library openprocurement_client_helper.py | @@ -285,27 +306,24 @@ Library openprocurement_client_helper.py | ||
285 | ... ${ARGUMENTS[2]} == bidid | 306 | ... ${ARGUMENTS[2]} == bidid |
286 | ... ${ARGUMENTS[3]} == docid | 307 | ... ${ARGUMENTS[3]} == docid |
287 | [Arguments] @{ARGUMENTS} | 308 | [Arguments] @{ARGUMENTS} |
288 | - log ${ARGUMENTS[0]} | ||
289 | - log ${ARGUMENTS[1]} | ||
290 | - log ${ARGUMENTS[2]} | ||
291 | - ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${TENDER['TENDER_UAID']} | 309 | + Log many @{ARGUMENTS} |
310 | + ${internalid}= Отримати internal id по UAid ${ARGUMENTS[0]} ${TENDER['TENDER['TENDER_UAID']']} | ||
292 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | 311 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
293 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].access.token} | 312 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].access.token} |
294 | ${response}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} update_bid_document ${ARGUMENTS[1]} ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} | 313 | ${response}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} update_bid_document ${ARGUMENTS[1]} ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} |
295 | ${uploaded_file} = Create Dictionary filepath ${ARGUMENTS[1]} upload_response ${response} | 314 | ${uploaded_file} = Create Dictionary filepath ${ARGUMENTS[1]} upload_response ${response} |
296 | - log ${response} | 315 | + Log ${response} |
297 | Log object data ${uploaded_file} | 316 | Log object data ${uploaded_file} |
298 | [return] ${uploaded_file} | 317 | [return] ${uploaded_file} |
299 | 318 | ||
319 | + | ||
300 | Завантажити документ | 320 | Завантажити документ |
301 | [Documentation] | 321 | [Documentation] |
302 | ... ${ARGUMENTS[0]} == username | 322 | ... ${ARGUMENTS[0]} == username |
303 | ... ${ARGUMENTS[1]} == filepath | 323 | ... ${ARGUMENTS[1]} == filepath |
304 | - ... ${ARGUMENTS[2]} == tenderUAID | 324 | + ... ${ARGUMENTS[2]} == TENDER['TENDER_UAID'] |
305 | [Arguments] @{ARGUMENTS} | 325 | [Arguments] @{ARGUMENTS} |
306 | - log ${ARGUMENTS[0]} | ||
307 | - log ${ARGUMENTS[1]} | ||
308 | - log ${ARGUMENTS[2]} | 326 | + Log many @{ARGUMENTS} |
309 | ${tenderID}= openprocurement_client.Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} | 327 | ${tenderID}= openprocurement_client.Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} |
310 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} | 328 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} |
311 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 329 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
@@ -313,17 +331,20 @@ Library openprocurement_client_helper.py | @@ -313,17 +331,20 @@ Library openprocurement_client_helper.py | ||
313 | Log object data ${reply} reply | 331 | Log object data ${reply} reply |
314 | [return] ${reply} | 332 | [return] ${reply} |
315 | 333 | ||
334 | + | ||
316 | Отримати посилання на аукціон для глядача | 335 | Отримати посилання на аукціон для глядача |
317 | [Arguments] ${username} ${tender_uid} | 336 | [Arguments] ${username} ${tender_uid} |
318 | ${internalid}= Отримати internal id по UAid ${username} ${tender_uid} | 337 | ${internalid}= Отримати internal id по UAid ${username} ${tender_uid} |
319 | ${tender}= Call Method ${USERS.users['${username}'].client} get_tender ${internalid} | 338 | ${tender}= Call Method ${USERS.users['${username}'].client} get_tender ${internalid} |
320 | [return] ${tender.data.auctionUrl} | 339 | [return] ${tender.data.auctionUrl} |
321 | 340 | ||
341 | + | ||
322 | Отримати посилання на аукціон для учасника | 342 | Отримати посилання на аукціон для учасника |
323 | [Arguments] ${username} ${tender_uid} | 343 | [Arguments] ${username} ${tender_uid} |
324 | ${bid}= Викликати для учасника ${username} Отримати пропозицію ${tender_uid} | 344 | ${bid}= Викликати для учасника ${username} Отримати пропозицію ${tender_uid} |
325 | [return] ${bid.data.participationUrl} | 345 | [return] ${bid.data.participationUrl} |
326 | 346 | ||
347 | + | ||
327 | Отримати пропозицію | 348 | Отримати пропозицію |
328 | [Arguments] ${username} ${tender_uid} | 349 | [Arguments] ${username} ${tender_uid} |
329 | ${internalid}= Отримати internal id по UAid ${username} ${tender_uid} | 350 | ${internalid}= Отримати internal id по UAid ${username} ${tender_uid} |
@@ -333,20 +354,19 @@ Library openprocurement_client_helper.py | @@ -333,20 +354,19 @@ Library openprocurement_client_helper.py | ||
333 | ${bid}= Call Method ${USERS.users['${username}'].client} get_bid ${tender} ${bid_id} ${token} | 354 | ${bid}= Call Method ${USERS.users['${username}'].client} get_bid ${tender} ${bid_id} ${token} |
334 | [return] ${bid} | 355 | [return] ${bid} |
335 | 356 | ||
357 | + | ||
336 | Отримати документ | 358 | Отримати документ |
337 | [Documentation] | 359 | [Documentation] |
338 | ... ${ARGUMENTS[0]} == username | 360 | ... ${ARGUMENTS[0]} == username |
339 | - ... ${ARGUMENTS[1]} == tenderUaID | 361 | + ... ${ARGUMENTS[1]} == TENDER['TENDER_UAID'] |
340 | ... ${ARGUMENTS[2]} == url | 362 | ... ${ARGUMENTS[2]} == url |
341 | [Arguments] @{ARGUMENTS} | 363 | [Arguments] @{ARGUMENTS} |
342 | - log ${ARGUMENTS[0]} | ||
343 | - log ${ARGUMENTS[1]} | ||
344 | - log ${ARGUMENTS[2]} | 364 | + Log many @{ARGUMENTS} |
345 | ${tenderID}= openprocurement_client.Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | 365 | ${tenderID}= openprocurement_client.Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
346 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} | 366 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} |
347 | ${token}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].access.token} | 367 | ${token}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponses['resp'].access.token} |
348 | ${contents} ${filename}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${token} | 368 | ${contents} ${filename}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${token} |
349 | - log ${filename} | 369 | + Log ${filename} |
350 | [return] ${contents} ${filename} | 370 | [return] ${contents} ${filename} |
351 | 371 | ||
352 | 372 | ||
@@ -356,24 +376,26 @@ Library openprocurement_client_helper.py | @@ -356,24 +376,26 @@ Library openprocurement_client_helper.py | ||
356 | ... ${ARGUMENTS[1]} == tender | 376 | ... ${ARGUMENTS[1]} == tender |
357 | ... ${ARGUMENTS[2]} == lot | 377 | ... ${ARGUMENTS[2]} == lot |
358 | [Arguments] @{ARGUMENTS} | 378 | [Arguments] @{ARGUMENTS} |
359 | - log many @{ARGUMENTS} | 379 | + Log many @{ARGUMENTS} |
360 | ${tender}= set_access_key ${ARGUMENTS[1]} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 380 | ${tender}= set_access_key ${ARGUMENTS[1]} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
361 | ${tender_lot}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_lot ${tender} ${ARGUMENTS[2]} | 381 | ${tender_lot}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_lot ${tender} ${ARGUMENTS[2]} |
362 | Log ${tender_lot} | 382 | Log ${tender_lot} |
363 | [return] ${tender_lot} | 383 | [return] ${tender_lot} |
364 | 384 | ||
385 | + | ||
365 | Змінити лот | 386 | Змінити лот |
366 | [Documentation] | 387 | [Documentation] |
367 | ... ${ARGUMENTS[0]} == username | 388 | ... ${ARGUMENTS[0]} == username |
368 | ... ${ARGUMENTS[1]} == tender | 389 | ... ${ARGUMENTS[1]} == tender |
369 | ... ${ARGUMENTS[2]} == lot | 390 | ... ${ARGUMENTS[2]} == lot |
370 | [Arguments] @{ARGUMENTS} | 391 | [Arguments] @{ARGUMENTS} |
371 | - log many @{ARGUMENTS} | 392 | + Log many @{ARGUMENTS} |
372 | ${tender}= set_access_key ${ARGUMENTS[1]} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 393 | ${tender}= set_access_key ${ARGUMENTS[1]} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
373 | ${tender_lot}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_lot ${tender} ${ARGUMENTS[2]} | 394 | ${tender_lot}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_lot ${tender} ${ARGUMENTS[2]} |
374 | Log ${tender_lot} | 395 | Log ${tender_lot} |
375 | [return] ${tender_lot} | 396 | [return] ${tender_lot} |
376 | 397 | ||
398 | + | ||
377 | Завантажити документ в лот | 399 | Завантажити документ в лот |
378 | [Documentation] | 400 | [Documentation] |
379 | ... ${ARGUMENTS[0]} == username | 401 | ... ${ARGUMENTS[0]} == username |
@@ -381,7 +403,7 @@ Library openprocurement_client_helper.py | @@ -381,7 +403,7 @@ Library openprocurement_client_helper.py | ||
381 | ... ${ARGUMENTS[2]} == tenderUAID | 403 | ... ${ARGUMENTS[2]} == tenderUAID |
382 | ... ${ARGUMENTS[3]} == lot_id | 404 | ... ${ARGUMENTS[3]} == lot_id |
383 | [Arguments] @{ARGUMENTS} | 405 | [Arguments] @{ARGUMENTS} |
384 | - log many @{ARGUMENTS} | 406 | + Log many @{ARGUMENTS} |
385 | ${tenderID}= openprocurement_client.Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} | 407 | ${tenderID}= openprocurement_client.Отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} |
386 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} | 408 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} |
387 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 409 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
@@ -391,13 +413,14 @@ Library openprocurement_client_helper.py | @@ -391,13 +413,14 @@ Library openprocurement_client_helper.py | ||
391 | Log object data ${reply} reply | 413 | Log object data ${reply} reply |
392 | [return] ${reply} | 414 | [return] ${reply} |
393 | 415 | ||
416 | + | ||
394 | Видалити лот | 417 | Видалити лот |
395 | [Documentation] | 418 | [Documentation] |
396 | ... ${ARGUMENTS[0]} == username | 419 | ... ${ARGUMENTS[0]} == username |
397 | ... ${ARGUMENTS[1]} == tender | 420 | ... ${ARGUMENTS[1]} == tender |
398 | ... ${ARGUMENTS[2]} == lot | 421 | ... ${ARGUMENTS[2]} == lot |
399 | [Arguments] @{ARGUMENTS} | 422 | [Arguments] @{ARGUMENTS} |
400 | - log many @{ARGUMENTS} | 423 | + Log many @{ARGUMENTS} |
401 | ${tender}= set_access_key ${ARGUMENTS[1]} ${USERS.users['${ARGUMENTS[0]}'].access_token} | 424 | ${tender}= set_access_key ${ARGUMENTS[1]} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
402 | ${tender_lot}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} delete_lot ${tender} ${ARGUMENTS[2]} | 425 | ${tender_lot}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} delete_lot ${tender} ${ARGUMENTS[2]} |
403 | Log ${tender_lot} | 426 | Log ${tender_lot} |
Please
register
or
login
to post a comment