Commit e6c42b85c675e1cde4743e4f4de8ab1053d3f930
Merge pull request #139 from Leits/singlelot
SingleLot bid
Showing
1 changed file
with
11 additions
and
0 deletions
@@ -154,6 +154,14 @@ Library openprocurement_client_helper.py | @@ -154,6 +154,14 @@ Library openprocurement_client_helper.py | ||
154 | Подати цінову пропозицію | 154 | Подати цінову пропозицію |
155 | [Arguments] ${username} ${tender_uaid} ${bid} | 155 | [Arguments] ${username} ${tender_uaid} ${bid} |
156 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 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 | ${biddingresponse}= Call Method ${USERS.users['${username}'].client} create_bid ${tender} ${bid} | 165 | ${biddingresponse}= Call Method ${USERS.users['${username}'].client} create_bid ${tender} ${bid} |
158 | Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${biddingresponse['data']['id']} | 166 | Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${biddingresponse['data']['id']} |
159 | Log ${biddingresponse} | 167 | Log ${biddingresponse} |
@@ -163,6 +171,9 @@ Library openprocurement_client_helper.py | @@ -163,6 +171,9 @@ Library openprocurement_client_helper.py | ||
163 | Змінити цінову пропозицію | 171 | Змінити цінову пропозицію |
164 | [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue} | 172 | [Arguments] ${username} ${tender_uaid} ${fieldname} ${fieldvalue} |
165 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 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 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} | 177 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} |
167 | Set_To_Object ${bid.data} ${fieldname} ${fieldvalue} | 178 | Set_To_Object ${bid.data} ${fieldname} ${fieldvalue} |
168 | ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token} | 179 | ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token} |
Please
register
or
login
to post a comment