Showing
1 changed file
with
19 additions
and
2 deletions
... | ... | @@ -154,6 +154,14 @@ Library openprocurement_client_helper.py |
154 | 154 | Подати цінову пропозицію |
155 | 155 | [Arguments] ${username} ${tender_uaid} ${bid} |
156 | 156 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
157 | + ${lots}= Get Variable Value ${tender.data.lots} | |
158 | + ${bid}= Run Keyword If ${lots} test_lots_bid_data | |
159 | + ... ELSE Set Variable ${bid} | |
160 | + Run Keyword If ${lots} | |
161 | + ... Run Keywords | |
162 | + ... Remove From List ${bid.data.lotValues} 1 | |
163 | + ... AND | |
164 | + ... Set_To_Object ${bid.data.lotValues[0]} relatedLot ${lots[0].id} | |
157 | 165 | ${biddingresponse}= Call Method ${USERS.users['${username}'].client} create_bid ${tender} ${bid} |
158 | 166 | Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${biddingresponse['data']['id']} |
159 | 167 | Log ${biddingresponse} |
... | ... | @@ -163,6 +171,9 @@ Library openprocurement_client_helper.py |
163 | 171 | Змінити цінову пропозицію |
164 | 172 | [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue} |
165 | 173 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
174 | + ${lots}= Get Variable Value ${tender.data.lots} | |
175 | + ${fieldname}= Run Keyword If ${lots} Set Variable lotValues.0.${fieldname} | |
176 | + ... ELSE Set Variable ${fieldname} | |
166 | 177 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} |
167 | 178 | Set_To_Object ${bid.data} ${fieldname} ${fieldvalue} |
168 | 179 | ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token} |
... | ... | @@ -238,13 +249,19 @@ Library openprocurement_client_helper.py |
238 | 249 | Отримати посилання на аукціон для глядача |
239 | 250 | [Arguments] ${username} ${tender_uaid} |
240 | 251 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
241 | - [return] ${tender.data.auctionUrl} | |
252 | + ${lots}= Get Variable Value ${tender.data.lots} | |
253 | + ${auctionUrl}= Run Keyword If ${lots} Set Variable ${tender.data.lots[0].auctionUrl} | |
254 | + ... ELSE Set Variable ${tender.data.auctionUrl} | |
255 | + [return] ${auctionUrl} | |
242 | 256 | |
243 | 257 | |
244 | 258 | Отримати посилання на аукціон для учасника |
245 | 259 | [Arguments] ${username} ${tender_uaid} |
246 | 260 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} |
247 | - [return] ${bid.data.participationUrl} | |
261 | + ${lots}= Get Variable Value ${bid.data.lotValues} | |
262 | + ${participationUrl}= Run Keyword If ${lots} Set Variable ${bid.data.lotValues[0].participationUrl} | |
263 | + ... ELSE Set Variable ${bid.data.participationUrl} | |
264 | + [return] ${participationUrl} | |
248 | 265 | |
249 | 266 | |
250 | 267 | Отримати пропозицію | ... | ... |
Please
register
or
login
to post a comment