Commit 55efa6f2028f6ae4951736f8df5eb78d387c80bd
1 parent
ed6a03b1
Create `Адаптувати дані для оголошення тендера` keyword
Showing
1 changed file
with
18 additions
and
2 deletions
... | ... | @@ -146,11 +146,13 @@ Get Broker Property By Username |
146 | 146 | Log ${tender_data} |
147 | 147 | [return] ${tender_data} |
148 | 148 | |
149 | + | |
149 | 150 | Підготовка даних для створення лоту |
150 | 151 | ${lot}= test_lot_data |
151 | 152 | ${reply}= Create Dictionary data=${lot} |
152 | 153 | [Return] ${reply} |
153 | 154 | |
155 | + | |
154 | 156 | Підготовка даних для подання вимоги |
155 | 157 | ${claim}= test_claim_data |
156 | 158 | [Return] ${claim} |
... | ... | @@ -196,6 +198,21 @@ Get Broker Property By Username |
196 | 198 | [Return] ${cancellation_data} |
197 | 199 | |
198 | 200 | |
201 | +Адаптувати дані для оголошення тендера | |
202 | + [Arguments] ${username} ${tender_data} | |
203 | + # munchify is used to make deep copy of ${tender_data} | |
204 | + ${tender_data_copy}= munchify ${tender_data} | |
205 | + ${status} ${adapted_data}= Run Keyword And Ignore Error Викликати для учасника ${username} Підготувати дані для оголошення тендера ${tender_data_copy} | |
206 | + ${adapted_data}= Set variable if '${status}' == 'FAIL' ${tender_data_copy} ${adapted_data} | |
207 | + # munchify is used to make nice log output | |
208 | + ${adapted_data}= munchify ${adapted_data} | |
209 | + Log ${tender_data} | |
210 | + Log ${adapted_data} | |
211 | + ${status}= Run keyword and return status Dictionaries Should Be Equal ${adapted_data.data} ${tender_data.data} | |
212 | + Run keyword if ${status} == ${False} Log Initial tender data was changed WARN | |
213 | + [Return] ${adapted_data} | |
214 | + | |
215 | + | |
199 | 216 | Завантажуємо бібліотеку з реалізацією для майданчика ${keywords_file} |
200 | 217 | [Documentation] |
201 | 218 | ... Load broker's driver (keyword library). |
... | ... | @@ -363,6 +380,7 @@ Get Broker Property By Username |
363 | 380 | ... WARN |
364 | 381 | Run Keyword And Return Run As ${username} ${command} @{arguments} |
365 | 382 | |
383 | + | |
366 | 384 | Отримати дані із тендера |
367 | 385 | [Arguments] ${username} ${field_name} |
368 | 386 | Log ${username} |
... | ... | @@ -381,8 +399,6 @@ Get Broker Property By Username |
381 | 399 | [return] ${field_value} |
382 | 400 | |
383 | 401 | |
384 | - | |
385 | - | |
386 | 402 | Run As |
387 | 403 | [Arguments] ${username} ${command} @{arguments} |
388 | 404 | [Documentation] | ... | ... |
Please
register
or
login
to post a comment