Commit 4215beab072b3a2fb303fc60325be0f60dd5df20
1 parent
ebdef4f8
Caching id and access token for bid
Showing
2 changed files
with
8 additions
and
2 deletions
| ... | ... | @@ -739,6 +739,8 @@ Library openprocurement_client_helper.py |
| 739 | 739 | Set To Dictionary ${USERS.users['${username}']} access_token=${reply['access']['token']} |
| 740 | 740 | Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${reply['data']['id']} |
| 741 | 741 | Log ${reply_active} |
| 742 | + Set To Dictionary ${USERS.users['${username}']} bid_id=${reply['data']['id']} | |
| 743 | + Log ${reply} | |
| 742 | 744 | |
| 743 | 745 | |
| 744 | 746 | Змінити цінову пропозицію |
| ... | ... | @@ -800,8 +802,8 @@ Library openprocurement_client_helper.py |
| 800 | 802 | Отримати пропозицію |
| 801 | 803 | [Arguments] ${username} ${tender_uaid} |
| 802 | 804 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 803 | - ${bid_id}= Get Variable Value ${USERS.users['${username}'].bidresponses['bid'].data.id} | |
| 804 | - ${token}= Get Variable Value ${USERS.users['${username}']['access_token']} | |
| 805 | + ${bid_id}= Get Variable Value ${USERS.users['${username}'].bid_id} | |
| 806 | + ${token}= Get Variable Value ${USERS.users['${username}'].access_token} | |
| 805 | 807 | ${reply}= Call Method ${USERS.users['${username}'].client} get_bid ${tender} ${bid_id} ${token} |
| 806 | 808 | ${reply}= munch_dict arg=${reply} |
| 807 | 809 | [return] ${reply} | ... | ... |
| ... | ... | @@ -174,6 +174,8 @@ Get Broker Property By Username |
| 174 | 174 | Run Keyword And Ignore Error Set To Dictionary ${artifact} tender_owner_access_token=${USERS.users['${tender_owner}'].access_token} |
| 175 | 175 | Run Keyword And Ignore Error Set To Dictionary ${artifact} provider_access_token=${USERS.users['${provider}'].access_token} |
| 176 | 176 | Run Keyword And Ignore Error Set To Dictionary ${artifact} provider1_access_token=${USERS.users['${provider1}'].access_token} |
| 177 | + Run Keyword And Ignore Error Set To Dictionary ${artifact} provider_bid_id=${USERS.users['${provider}'].bid_id} | |
| 178 | + Run Keyword And Ignore Error Set To Dictionary ${artifact} provider1_bid_id=${USERS.users['${provider1}'].bid_id} | |
| 177 | 179 | ${status} ${lots_ids}= Run Keyword And Ignore Error Отримати ідентифікатори об’єктів ${viewer} lots |
| 178 | 180 | Run Keyword If '${status}'=='PASS' |
| 179 | 181 | ... Set To Dictionary ${artifact} lots=${lots_ids} |
| ... | ... | @@ -195,6 +197,8 @@ Get Broker Property By Username |
| 195 | 197 | Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.tender_owner_access_token} |
| 196 | 198 | Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider}']} access_token=${ARTIFACT.provider_access_token} |
| 197 | 199 | Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider1}']} access_token=${ARTIFACT.provider1_access_token} |
| 200 | + Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider}']} bid_id=${ARTIFACT.provider_bid_id} | |
| 201 | + Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${provider1}']} bid_id=${ARTIFACT.provider1_bid_id} | |
| 198 | 202 | Set Suite Variable ${MODE} |
| 199 | 203 | Set Suite Variable ${lot_index} |
| 200 | 204 | Set Suite Variable ${TENDER} | ... | ... |
Please
register
or
login
to post a comment