Commit f489f8be59f1e46a8c3ec321659ef0adfe485981

Authored by Leits
Committed by mykhaly
1 parent aa404ab4

Upd op_client.robot

@@ -28,6 +28,37 @@ Library openprocurement_client_helper.py @@ -28,6 +28,37 @@ Library openprocurement_client_helper.py
28 Log Variables 28 Log Variables
29 29
30 30
  31 +Завантажити документ
  32 + [Arguments] ${username} ${filepath} ${tender_uaid}
  33 + Log ${username}
  34 + Log ${tender_uaid}
  35 + Log ${filepath}
  36 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  37 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}
  38 + ${reply}= Call Method ${USERS.users['${username}'].client} upload_document ${filepath} ${tender}
  39 + Log object data ${reply} reply
  40 + [return] ${reply}
  41 +
  42 +
  43 +Отримати документ
  44 + [Arguments] ${username} ${tender_uaid} ${url}
  45 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  46 + ${token}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].access.token}
  47 + ${contents} ${filename}= Call Method ${USERS.users['${username}'].client} get_file ${tender} ${url} ${token}
  48 + [return] ${contents} ${filename}
  49 +
  50 +
  51 +Отримати посилання на аукціон для глядача
  52 + [Arguments] ${username} ${tender_uaid} ${lot_id}=${Empty}
  53 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  54 + ${auctionUrl}= Run Keyword IF '${lot_id}' Set Variable ${tender.data.lots[${lot_index}].auctionUrl}
  55 + ... ELSE Set Variable ${tender.data.auctionUrl}
  56 + [return] ${auctionUrl}
  57 +
  58 +##############################################################################
  59 +# Tender operations
  60 +##############################################################################
  61 +
31 Підготувати дані для оголошення тендера 62 Підготувати дані для оголошення тендера
32 [Documentation] Це слово використовується в майданчиків, тому потрібно, щоб воно було і тут 63 [Documentation] Це слово використовується в майданчиків, тому потрібно, щоб воно було і тут
33 [Arguments] ${username} ${tender_data} 64 [Arguments] ${username} ${tender_data}
@@ -48,14 +79,16 @@ Library openprocurement_client_helper.py @@ -48,14 +79,16 @@ Library openprocurement_client_helper.py
48 Пошук тендера по ідентифікатору 79 Пошук тендера по ідентифікатору
49 [Arguments] ${username} ${tender_uaid} 80 [Arguments] ${username} ${tender_uaid}
50 ${internalid}= openprocurement_client.Отримати internal id по UAid ${username} ${tender_uaid} 81 ${internalid}= openprocurement_client.Отримати internal id по UAid ${username} ${tender_uaid}
51 - ${tender}= openprocurement_client.Отримати тендер ${username} ${internalid} 82 + ${tender}= Call Method ${USERS.users['${username}'].client} get_tender ${internalid}
  83 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}
  84 + Set To Dictionary ${USERS.users['${username}']} tender_data=${tender}
  85 + Log ${tender}
52 [return] ${tender} 86 [return] ${tender}
53 87
54 88
55 Оновити сторінку з тендером 89 Оновити сторінку з тендером
56 [Arguments] ${username} ${tender_uaid} 90 [Arguments] ${username} ${tender_uaid}
57 - ${tender_data}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
58 - Log ${tender_data} 91 + openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
59 92
60 93
61 Отримати інформацію із тендера 94 Отримати інформацію із тендера
@@ -73,12 +106,6 @@ Library openprocurement_client_helper.py @@ -73,12 +106,6 @@ Library openprocurement_client_helper.py
73 Fail Field not found: ${field_name} 106 Fail Field not found: ${field_name}
74 107
75 108
76 -Отримати інформацію із запитання  
77 - [Arguments] ${username} ${tender_uaid} ${question_id} ${field_name}  
78 - ${field_name}= Отримати шлях до поля об’єкта ${username} ${field_name} ${question_id}  
79 - Run Keyword And Return openprocurement_client.Отримати інформацію із тендера ${username} ${tender_uaid} ${field_name}  
80 -  
81 -  
82 Внести зміни в тендер 109 Внести зміни в тендер
83 [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue} 110 [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue}
84 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 111 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
@@ -90,17 +117,9 @@ Library openprocurement_client_helper.py @@ -90,17 +117,9 @@ Library openprocurement_client_helper.py
90 ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender} 117 ${tender}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
91 Set_To_Object ${USERS.users['${username}'].tender_data} ${fieldname} ${fieldvalue} 118 Set_To_Object ${USERS.users['${username}'].tender_data} ${fieldname} ${fieldvalue}
92 119
93 -  
94 -Отримати тендер  
95 - [Arguments] ${username} ${internalid}  
96 - Log ${username}  
97 - Log ${internalid}  
98 - ${tender}= Call Method ${USERS.users['${username}'].client} get_tender ${internalid}  
99 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}  
100 - Set To Dictionary ${USERS.users['${username}']} tender_data=${tender}  
101 - Log ${tender}  
102 - [Return] ${tender}  
103 - 120 +##############################################################################
  121 +# Item operations
  122 +##############################################################################
104 123
105 Додати предмет закупівлі 124 Додати предмет закупівлі
106 [Arguments] ${username} ${tender_uaid} ${item} 125 [Arguments] ${username} ${tender_uaid} ${item}
@@ -110,162 +129,12 @@ Library openprocurement_client_helper.py @@ -110,162 +129,12 @@ Library openprocurement_client_helper.py
110 129
111 130
112 Видалити предмет закупівлі 131 Видалити предмет закупівлі
113 - [Arguments] ${username} ${tender_uaid} ${item_id} 132 + [Arguments] ${username} ${tender_uaid} ${item_id} ${lot_id}=${None}
114 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 133 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
115 ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id} 134 ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id}
116 Remove From List ${tender.data['items']} ${item_index} 135 Remove From List ${tender.data['items']} ${item_index}
117 Call Method ${USERS.users['${username}'].client} patch_tender ${tender} 136 Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
118 137
119 -  
120 -Задати питання  
121 - [Arguments] ${username} ${tender_uaid} ${question}  
122 - Log ${question}  
123 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
124 - ${biddingresponse}= Call Method ${USERS.users['${username}'].client} create_question ${tender} ${question}  
125 - [return] ${biddingresponse}  
126 -  
127 -  
128 -Відповісти на питання  
129 - [Arguments] ${username} ${tender_uaid} ${question} ${answer_data} ${question_id}  
130 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
131 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}  
132 - ${answer_data.data.id}= openprocurement_client.Отримати інформацію із запитання ${username} ${tender_uaid} ${question_id} id  
133 - ${question_with_answer}= Call Method ${USERS.users['${username}'].client} patch_question ${tender} ${answer_data}  
134 - Log object data ${question_with_answer} question_with_answer  
135 - [return] ${question_with_answer}  
136 -  
137 -  
138 -Подати цінову пропозицію  
139 - [Arguments] ${username} ${tender_uaid} ${bid}  
140 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
141 - ${lots}= Run Keyword If "${mode}" == "single" Get Variable Value ${tender.data.lots}  
142 - ${bid}= Run Keyword If ${lots} test_bid_data multiLot  
143 - ... ELSE Set Variable ${bid}  
144 - Run Keyword If ${lots}  
145 - ... Run Keywords  
146 - ... Remove From List ${bid.data.lotValues} 1  
147 - ... AND  
148 - ... Set_To_Object ${bid.data.lotValues[0]} relatedLot ${lots[0].id}  
149 - ${biddingresponse}= Call Method ${USERS.users['${username}'].client} create_bid ${tender} ${bid}  
150 - Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${biddingresponse['data']['id']}  
151 - Log ${biddingresponse}  
152 - [return] ${biddingresponse}  
153 -  
154 -  
155 -Змінити цінову пропозицію  
156 - [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue}  
157 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
158 - ${lots}= Run Keyword If "${mode}" == "single" Get Variable Value ${tender.data.lots}  
159 - ${fieldname}= Run Keyword If ${lots} Set Variable lotValues.0.${fieldname}  
160 - ... ELSE Set Variable ${fieldname}  
161 - ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid}  
162 - Set_To_Object ${bid.data} ${fieldname} ${fieldvalue}  
163 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}  
164 - ${changed_bid}= Call Method ${USERS.users['${username}'].client} patch_bid ${tender} ${bid}  
165 - Log ${changed_bid}  
166 - [return] ${changed_bid}  
167 -  
168 -  
169 -Скасувати цінову пропозицію  
170 - [Arguments] ${username} ${tender_uaid} ${bid}  
171 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
172 - Set To Dictionary ${bid.data} id=${USERS.users['${username}'].bidresponses['bid'].data.id}  
173 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}  
174 - ${changed_bid}= Call Method ${USERS.users['${username}'].client} delete_bid ${tender} ${bid}  
175 - Log ${changed_bid}  
176 - [return] ${changed_bid}  
177 -  
178 -  
179 -Прийняти цінову пропозицію  
180 - [Arguments] ${username} ${tender_uaid} ${award}  
181 - ${internalid}= openprocurement_client.Отримати internal id по UAid ${username} ${tender_uaid}  
182 - ${tender}= Call Method ${USERS.users['${username}'].client} get_tender ${internalid}  
183 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}  
184 - ${award_activeted_response}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award}  
185 - Log ${award_activeted_response}  
186 - [return] ${award_activeted_response}  
187 -  
188 -  
189 -Завантажити документ в ставку  
190 - [Arguments] ${username} ${path} ${tender_uaid} ${doc_type}=documents  
191 - ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id}  
192 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
193 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}  
194 - ${response}= Call Method ${USERS.users['${username}'].client} upload_bid_document ${path} ${tender} ${bid_id} ${doc_type}  
195 - ${uploaded_file} = Create Dictionary filepath=${path} upload_response=${response}  
196 - Log ${response}  
197 - Log object data ${uploaded_file}  
198 - [return] ${uploaded_file}  
199 -  
200 -  
201 -Змінити документ в ставці  
202 - [Arguments] ${username} ${path} ${bidid} ${docid}  
203 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${TENDER['TENDER_UAID']}  
204 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}  
205 - ${response}= Call Method ${USERS.users['${username}'].client} update_bid_document ${path} ${tender} ${bidid} ${docid}  
206 - ${uploaded_file} = Create Dictionary filepath=${path} upload_response=${response}  
207 - Log ${response}  
208 - Log object data ${uploaded_file}  
209 - [return] ${uploaded_file}  
210 -  
211 -  
212 -Змінити документацію в ставці  
213 - [Arguments] ${username} ${doc_data} ${bidid} ${docid}  
214 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${TENDER['TENDER_UAID']}  
215 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}  
216 - ${response}= Call Method ${USERS.users['${username}'].client} patch_bid_document ${tender} ${doc_data} ${bidid} ${docid}  
217 - Log ${response}  
218 - [return] ${response}  
219 -  
220 -  
221 -Завантажити документ  
222 - [Arguments] ${username} ${filepath} ${tender_uaid}  
223 - Log ${username}  
224 - Log ${tender_uaid}  
225 - Log ${filepath}  
226 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
227 - ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}  
228 - ${reply}= Call Method ${USERS.users['${username}'].client} upload_document ${filepath} ${tender}  
229 - Log object data ${reply} reply  
230 - [return] ${reply}  
231 -  
232 -  
233 -Отримати посилання на аукціон для глядача  
234 - [Arguments] ${username} ${tender_uaid} ${lot_id}=${Empty}  
235 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
236 - ${lot_auctionUrl}= Run Keyword If "${mode}" == "single" Get Variable Value ${tender.data.lots[0].auctionUrl}  
237 - ${auctionUrl}= Run Keyword If ${lot_auctionUrl} Set Variable ${lot_auctionUrl}  
238 - ... ELSE IF '${lot_id}' Set Variable ${tender.data.lots[${lot_index}].auctionUrl}  
239 - ... ELSE Set Variable ${tender.data.auctionUrl}  
240 - [return] ${auctionUrl}  
241 -  
242 -  
243 -Отримати посилання на аукціон для учасника  
244 - [Arguments] ${username} ${tender_uaid}  
245 - ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid}  
246 - ${lot_participationUrl}= Run Keyword If "${mode}" == "single" Get Variable Value ${bid.data.lots[0].participationUrl}  
247 - ${participationUrl}= Run Keyword If ${lot_participationUrl} Set Variable ${participationUrl}  
248 - ... ELSE Set Variable ${bid.data.participationUrl}  
249 - [return] ${participationUrl}  
250 -  
251 -  
252 -Отримати пропозицію  
253 - [Arguments] ${username} ${tender_uaid}  
254 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
255 - ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id}  
256 - ${token}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].access.token}  
257 - ${bid}= Call Method ${USERS.users['${username}'].client} get_bid ${tender} ${bid_id} ${token}  
258 - [return] ${bid}  
259 -  
260 -  
261 -Отримати документ  
262 - [Arguments] ${username} ${tender_uaid} ${url}  
263 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
264 - ${token}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].access.token}  
265 - ${contents} ${filename}= Call Method ${USERS.users['${username}'].client} get_file ${tender} ${url} ${token}  
266 - Log ${filename}  
267 - [return] ${contents} ${filename}  
268 -  
269 ############################################################################## 138 ##############################################################################
270 # Lot operations 139 # Lot operations
271 ############################################################################## 140 ##############################################################################
@@ -303,16 +172,6 @@ Library openprocurement_client_helper.py @@ -303,16 +172,6 @@ Library openprocurement_client_helper.py
303 Call Method ${USERS.users['${username}'].client} patch_tender ${tender} 172 Call Method ${USERS.users['${username}'].client} patch_tender ${tender}
304 173
305 174
306 -Задати питання до лоту  
307 - [Arguments] ${username} ${tender_uaid} ${lot_id} ${question}  
308 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}  
309 - ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id}  
310 - ${lot_id}= Get Variable Value ${tender.data.lots[${lot_index}].id}  
311 - ${question}= test_lot_question_data ${question} ${lot_id}  
312 - ${biddingresponse}= Call Method ${USERS.users['${username}'].client} create_question ${tender} ${question}  
313 - [return] ${biddingresponse}  
314 -  
315 -  
316 Завантажити документ в лот 175 Завантажити документ в лот
317 [Arguments] ${username} ${filepath} ${tender_uaid} ${lot_id} 176 [Arguments] ${username} ${filepath} ${tender_uaid} ${lot_id}
318 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 177 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
@@ -333,14 +192,49 @@ Library openprocurement_client_helper.py @@ -333,14 +192,49 @@ Library openprocurement_client_helper.py
333 [return] ${reply} 192 [return] ${reply}
334 193
335 194
336 -Подати цінову пропозицію на лоти  
337 - [Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids} 195 +##############################################################################
  196 +# Questions
  197 +##############################################################################
  198 +
  199 +Задати запитання на предмет
  200 + [Arguments] ${username} ${tender_uaid} ${item_id} ${question}
  201 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  202 + ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id}
  203 + ${item_id}= Get Variable Value ${tender.data['items'][${item_index}].id}
  204 + ${question}= test_related_question ${question} item ${item_id}
  205 + ${reply}= Call Method ${USERS.users['${username}'].client} create_question ${tender} ${question}
  206 + [return] ${reply}
  207 +
  208 +
  209 +Задати запитання на лот
  210 + [Arguments] ${username} ${tender_uaid} ${lot_id} ${question}
  211 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  212 + ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id}
  213 + ${lot_id}= Get Variable Value ${tender.data.lots[${lot_index}].id}
  214 + ${question}= test_related_question ${question} lot ${lot_id}
  215 + ${reply}= Call Method ${USERS.users['${username}'].client} create_question ${tender} ${question}
  216 + [return] ${reply}
  217 +
  218 +
  219 +Задати запитання на тендер
  220 + [Arguments] ${username} ${tender_uaid} ${question}
  221 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  222 + ${reply}= Call Method ${USERS.users['${username}'].client} create_question ${tender} ${question}
  223 + [return] ${reply}
  224 +
  225 +
  226 +Отримати інформацію із запитання
  227 + [Arguments] ${username} ${question_id} ${field_name}
  228 + ${field_name}= Отримати шлях до поля об’єкта ${username} ${field_name} ${question_id}
  229 + Run Keyword And Return openprocurement_client.Отримати інформацію із тендера ${username} ${field_name}
  230 +
  231 +
  232 +Відповісти на запитання
  233 + [Arguments] ${username} ${tender_uaid} ${answer_data} ${question_id}
338 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 234 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
339 - : FOR ${index} ${lot_id} IN ENUMERATE @{lots_ids}  
340 - \ ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id}  
341 - \ ${lot_id}= Get Variable Value ${tender.data.lots[${lot_index}].id}  
342 - \ Set To Dictionary ${bid.data.lotValues[${index}]} relatedLot=${lot_id}  
343 - ${reply}= openprocurement_client.Подати цінову пропозицію ${username} ${tender_uaid} ${bid} 235 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token}
  236 + ${answer_data.data.id}= openprocurement_client.Отримати інформацію із запитання ${username} ${question_id} id
  237 + ${reply}= Call Method ${USERS.users['${username}'].client} patch_question ${tender} ${answer_data}
344 [return] ${reply} 238 [return] ${reply}
345 239
346 ############################################################################## 240 ##############################################################################
@@ -463,6 +357,86 @@ Library openprocurement_client_helper.py @@ -463,6 +357,86 @@ Library openprocurement_client_helper.py
463 Log ${reply} 357 Log ${reply}
464 358
465 ############################################################################## 359 ##############################################################################
  360 +# Bid operations
  361 +##############################################################################
  362 +
  363 +Подати цінову пропозицію
  364 + [Arguments] ${username} ${tender_uaid} ${bid}
  365 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  366 + ${reply}= Call Method ${USERS.users['${username}'].client} create_bid ${tender} ${bid}
  367 + Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${reply['data']['id']}
  368 + Log ${reply}
  369 + [return] ${reply}
  370 +
  371 +
  372 +Змінити цінову пропозицію
  373 + [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue}
  374 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  375 + ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid}
  376 + Set_To_Object ${bid.data} ${fieldname} ${fieldvalue}
  377 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}
  378 + ${reply}= Call Method ${USERS.users['${username}'].client} patch_bid ${tender} ${bid}
  379 + Log ${reply}
  380 + [return] ${reply}
  381 +
  382 +
  383 +Скасувати цінову пропозицію
  384 + [Arguments] ${username} ${tender_uaid}
  385 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  386 + ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid}
  387 + ${reply}= Call Method ${USERS.users['${username}'].client} delete_bid ${tender} ${bid.data.id} ${USERS.users['${username}'].bidresponses['resp'].access.token}
  388 + Log ${reply}
  389 + [return] ${reply}
  390 +
  391 +Завантажити документ в ставку
  392 + [Arguments] ${username} ${path} ${tender_uaid} ${doc_type}=documents
  393 + ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id}
  394 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  395 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}
  396 + ${response}= Call Method ${USERS.users['${username}'].client} upload_bid_document ${path} ${tender} ${bid_id} ${doc_type}
  397 + ${uploaded_file} = Create Dictionary filepath=${path} upload_response=${response}
  398 + Log object data ${uploaded_file}
  399 + [return] ${uploaded_file}
  400 +
  401 +
  402 +Змінити документ в ставці
  403 + [Arguments] ${username} ${path} ${docid}
  404 + ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id}
  405 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${TENDER['TENDER_UAID']}
  406 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}
  407 + ${response}= Call Method ${USERS.users['${username}'].client} update_bid_document ${path} ${tender} ${bid_id} ${docid}
  408 + ${uploaded_file} = Create Dictionary filepath=${path} upload_response=${response}
  409 + Log object data ${uploaded_file}
  410 + [return] ${uploaded_file}
  411 +
  412 +
  413 +Змінити документацію в ставці
  414 + [Arguments] ${username} ${doc_data} ${docid}
  415 + ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id}
  416 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${TENDER['TENDER_UAID']}
  417 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token}
  418 + ${reply}= Call Method ${USERS.users['${username}'].client} patch_bid_document ${tender} ${doc_data} ${bid_id} ${docid}
  419 + [return] ${reply}
  420 +
  421 +
  422 +Отримати пропозицію
  423 + [Arguments] ${username} ${tender_uaid}
  424 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
  425 + ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].data.id}
  426 + ${token}= Get Variable Value ${USERS.users['${username}'].bidresponses['resp'].access.token}
  427 + ${reply}= Call Method ${USERS.users['${username}'].client} get_bid ${tender} ${bid_id} ${token}
  428 + [return] ${reply}
  429 +
  430 +
  431 +Отримати посилання на аукціон для учасника
  432 + [Arguments] ${username} ${tender_uaid}
  433 + ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid}
  434 + ${lot_participationUrl}= Run Keyword If "${mode}" == "single" Get Variable Value ${bid.data.lots[0].participationUrl}
  435 + ${participationUrl}= Run Keyword If ${lot_participationUrl} Set Variable ${participationUrl}
  436 + ... ELSE Set Variable ${bid.data.participationUrl}
  437 + [return] ${participationUrl}
  438 +
  439 +##############################################################################
466 # Qualification operations 440 # Qualification operations
467 ############################################################################## 441 ##############################################################################
468 442
@@ -501,8 +475,8 @@ Library openprocurement_client_helper.py @@ -501,8 +475,8 @@ Library openprocurement_client_helper.py
501 ... [Arguments] Username, tender uaid and award number 475 ... [Arguments] Username, tender uaid and award number
502 ... [Description] Find tender using uaid, create data dict with unsuccessful status and call patch_award 476 ... [Description] Find tender using uaid, create data dict with unsuccessful status and call patch_award
503 ... [Return] Reply of API 477 ... [Return] Reply of API
504 - [Arguments] ${username} ${tender_uid} ${award_num}  
505 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uid} 478 + [Arguments] ${username} ${tender_uaid} ${award_num}
  479 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
506 ${award}= create_data_dict data.status unsuccessful 480 ${award}= create_data_dict data.status unsuccessful
507 Set To Dictionary ${award.data} id=${tender.data.awards[${award_num}].id} 481 Set To Dictionary ${award.data} id=${tender.data.awards[${award_num}].id}
508 ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award} 482 ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award}
@@ -515,8 +489,8 @@ Library openprocurement_client_helper.py @@ -515,8 +489,8 @@ Library openprocurement_client_helper.py
515 ... [Arguments] Username, tender uaid and award number 489 ... [Arguments] Username, tender uaid and award number
516 ... [Description] Find tender using uaid, create data dict with unsuccessful status and call patch_award 490 ... [Description] Find tender using uaid, create data dict with unsuccessful status and call patch_award
517 ... [Return] Reply of API 491 ... [Return] Reply of API
518 - [Arguments] ${username} ${tender_uid} ${award_num}  
519 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uid} 492 + [Arguments] ${username} ${tender_uaid} ${award_num}
  493 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
520 ${award}= create_data_dict data.status cancelled 494 ${award}= create_data_dict data.status cancelled
521 Set To Dictionary ${award.data} id=${tender.data.awards[${award_num}].id} 495 Set To Dictionary ${award.data} id=${tender.data.awards[${award_num}].id}
522 ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award} 496 ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award}
@@ -638,8 +612,8 @@ Library openprocurement_client_helper.py @@ -638,8 +612,8 @@ Library openprocurement_client_helper.py
638 ... [Arguments] Username, tender uaid and qualification number 612 ... [Arguments] Username, tender uaid and qualification number
639 ... [Description] Find tender using uaid, create data dict with active status and call patch_qualification 613 ... [Description] Find tender using uaid, create data dict with active status and call patch_qualification
640 ... [Return] Reply of API 614 ... [Return] Reply of API
641 - [Arguments] ${username} ${tender_uid} ${qualification_num}  
642 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uid} 615 + [Arguments] ${username} ${tender_uaid} ${qualification_num}
  616 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
643 ${qualification}= create_data_dict data.status active 617 ${qualification}= create_data_dict data.status active
644 Set To Dictionary ${qualification.data} id=${tender.data.qualifications[${qualification_num}].id} eligible=${True} qualified=${True} 618 Set To Dictionary ${qualification.data} id=${tender.data.qualifications[${qualification_num}].id} eligible=${True} qualified=${True}
645 ${reply}= Call Method ${USERS.users['${username}'].client} patch_qualification ${tender} ${qualification} 619 ${reply}= Call Method ${USERS.users['${username}'].client} patch_qualification ${tender} ${qualification}
@@ -652,8 +626,8 @@ Library openprocurement_client_helper.py @@ -652,8 +626,8 @@ Library openprocurement_client_helper.py
652 ... [Arguments] Username, tender uaid and qualification number 626 ... [Arguments] Username, tender uaid and qualification number
653 ... [Description] Find tender using uaid, create data dict with unsuccessful status and call patch_qualification 627 ... [Description] Find tender using uaid, create data dict with unsuccessful status and call patch_qualification
654 ... [Return] Reply of API 628 ... [Return] Reply of API
655 - [Arguments] ${username} ${tender_uid} ${qualification_num}  
656 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uid} 629 + [Arguments] ${username} ${tender_uaid} ${qualification_num}
  630 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
657 ${qualification}= create_data_dict data.status unsuccessful 631 ${qualification}= create_data_dict data.status unsuccessful
658 Set To Dictionary ${qualification.data} id=${tender.data.qualifications[${qualification_num}].id} 632 Set To Dictionary ${qualification.data} id=${tender.data.qualifications[${qualification_num}].id}
659 ${reply}= Call Method ${USERS.users['${username}'].client} patch_qualification ${tender} ${qualification} 633 ${reply}= Call Method ${USERS.users['${username}'].client} patch_qualification ${tender} ${qualification}
@@ -678,8 +652,8 @@ Library openprocurement_client_helper.py @@ -678,8 +652,8 @@ Library openprocurement_client_helper.py
678 ... [Arguments] Username, tender uaid and qualification number 652 ... [Arguments] Username, tender uaid and qualification number
679 ... [Description] Find tender using uaid, create data dict with cancelled status and call patch_qualification 653 ... [Description] Find tender using uaid, create data dict with cancelled status and call patch_qualification
680 ... [Return] Reply of API 654 ... [Return] Reply of API
681 - [Arguments] ${username} ${tender_uid} ${qualification_num}  
682 - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uid} 655 + [Arguments] ${username} ${tender_uaid} ${qualification_num}
  656 + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
683 ${qualification}= create_data_dict data.status cancelled 657 ${qualification}= create_data_dict data.status cancelled
684 Set To Dictionary ${qualification.data} id=${tender.data.qualifications[${qualification_num}].id} 658 Set To Dictionary ${qualification.data} id=${tender.data.qualifications[${qualification_num}].id}
685 ${reply}= Call Method ${USERS.users['${username}'].client} patch_qualification ${tender} ${qualification} 659 ${reply}= Call Method ${USERS.users['${username}'].client} patch_qualification ${tender} ${qualification}
Please register or login to post a comment