Commit c1e812cb9316b0568fb81b4a368f01366ea2ccd4
Committed by
mykhaly
1 parent
1b29306e
Update code to work with lot ids
Showing
3 changed files
with
18 additions
and
15 deletions
| ... | ... | @@ -49,9 +49,9 @@ Library openprocurement_client_helper.py |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | Отримати посилання на аукціон для глядача |
| 52 | - [Arguments] ${username} ${tender_uaid} ${lot_id}=${None} | |
| 52 | + [Arguments] ${username} ${tender_uaid} ${lot_id}=${Empty} | |
| 53 | 53 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 54 | - ${auctionUrl}= Run Keyword IF ${lot_id} Set Variable ${tender.data.lots[${lot_index}].auctionUrl} | |
| 54 | + ${auctionUrl}= Run Keyword IF '${lot_id}' Set Variable ${tender.data.lots[${lot_index}].auctionUrl} | |
| 55 | 55 | ... ELSE Set Variable ${tender.data.auctionUrl} |
| 56 | 56 | [return] ${auctionUrl} |
| 57 | 57 | |
| ... | ... | @@ -129,7 +129,7 @@ Library openprocurement_client_helper.py |
| 129 | 129 | |
| 130 | 130 | |
| 131 | 131 | Видалити предмет закупівлі |
| 132 | - [Arguments] ${username} ${tender_uaid} ${item_id} ${lot_id}=${None} | |
| 132 | + [Arguments] ${username} ${tender_uaid} ${item_id} ${lot_id}=${Empty} | |
| 133 | 133 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 134 | 134 | ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id} |
| 135 | 135 | Remove From List ${tender.data['items']} ${item_index} |
| ... | ... | @@ -435,9 +435,9 @@ Library openprocurement_client_helper.py |
| 435 | 435 | |
| 436 | 436 | |
| 437 | 437 | Отримати посилання на аукціон для учасника |
| 438 | - [Arguments] ${username} ${tender_uaid} ${lot_id}=${None} | |
| 438 | + [Arguments] ${username} ${tender_uaid} ${lot_id}=${Empty} | |
| 439 | 439 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} |
| 440 | - ${participationUrl}= Run Keyword IF ${lot_id} Set Variable ${bid.data.lotValues[${lot_index}].participationUrl} | |
| 440 | + ${participationUrl}= Run Keyword IF '${lot_id}' Set Variable ${bid.data.lotValues[${lot_index}].participationUrl} | |
| 441 | 441 | ... ELSE Set Variable ${bid.data.participationUrl} |
| 442 | 442 | [return] ${participationUrl} |
| 443 | 443 | |
| ... | ... | @@ -450,14 +450,9 @@ Library openprocurement_client_helper.py |
| 450 | 450 | ... [Arguments] Username, tender uaid, qualification number and document to upload |
| 451 | 451 | ... [Description] Find tender using uaid, and call upload_qualification_document |
| 452 | 452 | ... [Return] Reply of API |
| 453 | - [Arguments] ${username} ${document} ${tender_uaid} ${award_num} ${lot_id}=${None} | |
| 453 | + [Arguments] ${username} ${document} ${tender_uaid} ${award_num} | |
| 454 | 454 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 455 | 455 | ${doc}= Call Method ${USERS.users['${username}'].client} upload_award_document ${document} ${tender} ${tender.data.awards[${award_num}].id} |
| 456 | - ${lot_index}= Run Keyword If ${lot_id} get_object_index_by_id ${tender.data.lots} ${lot_id} | |
| 457 | - Run Keyword If ${lot_id} | |
| 458 | - ... Set To Object ${doc.data} documentOf lot | |
| 459 | - ... Set To Object ${doc.data} relatedItem ${tender.data.lots[${lot_index}].id} | |
| 460 | - ... Call Method ${USERS.users['${username}'].client} patch_document ${tender} ${doc} | |
| 461 | 456 | Log ${doc} |
| 462 | 457 | [Return] ${doc} |
| 463 | 458 | |
| ... | ... | @@ -471,6 +466,10 @@ Library openprocurement_client_helper.py |
| 471 | 466 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 472 | 467 | ${award}= create_data_dict data.status active |
| 473 | 468 | Set To Dictionary ${award.data} id=${tender.data.awards[${award_num}].id} |
| 469 | + Run Keyword IF 'open' in '${mode}' | |
| 470 | + ... Set To Dictionary ${award.data} | |
| 471 | + ... qualified=${True} | |
| 472 | + ... eligible=${True} | |
| 474 | 473 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award} |
| 475 | 474 | Log ${reply} |
| 476 | 475 | ... | ... |
| ... | ... | @@ -180,7 +180,7 @@ Get Broker Property By Username |
| 180 | 180 | ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact.yaml |
| 181 | 181 | ${ARTIFACT}= load_data_from ${file_path} |
| 182 | 182 | Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.access_token} |
| 183 | - ${TENDER}= Create Dictionary TENDER_UAID=${ARTIFACT.tender_uaid} LAST_MODIFICATION_DATE=${ARTIFACT.last_modification_date} LOT_ID=${None} | |
| 183 | + ${TENDER}= Create Dictionary TENDER_UAID=${ARTIFACT.tender_uaid} LAST_MODIFICATION_DATE=${ARTIFACT.last_modification_date} LOT_ID=${Empty} | |
| 184 | 184 | ${lot_index}= Get Variable Value ${lot_index} 0 |
| 185 | 185 | Run Keyword And Ignore Error Set To Dictionary ${TENDER} LOT_ID=${ARTIFACT.lots[${lot_index}]} |
| 186 | 186 | ${mode}= Get Variable Value ${mode} ${ARTIFACT.mode} | ... | ... |
| ... | ... | @@ -29,9 +29,10 @@ Suite Teardown Test Suite Teardown |
| 29 | 29 | ... ${USERS.users['${tender_owner}'].broker} |
| 30 | 30 | :FOR ${username} IN ${viewer} ${tender_owner} |
| 31 | 31 | \ ${qualification_status}= Отримати дані із тендера ${tender_owner} status ${TENDER['LOT_ID']} |
| 32 | - \ Run Keyword IF ${TENDER['LOT_ID']} Should Be Equal ${qualification_status} active | |
| 32 | + \ Run Keyword IF '${TENDER['LOT_ID']}' Should Be Equal ${qualification_status} active | |
| 33 | 33 | \ ... ELSE Should Be Equal ${qualification_status} active.qualification |
| 34 | 34 | |
| 35 | + | |
| 35 | 36 | Відображення вартості номенклатури постачальника |
| 36 | 37 | [Tags] ${USERS.users['${tender_owner}'].broker}: Відображення основних даних оголошеного тендера |
| 37 | 38 | ... tender_owner |
| ... | ... | @@ -63,7 +64,8 @@ Suite Teardown Test Suite Teardown |
| 63 | 64 | ... tender_owner |
| 64 | 65 | ... ${USERS.users['${tender_owner}'].broker} |
| 65 | 66 | ${filepath}= create_fake_doc |
| 66 | - Викликати для учасника ${tender_owner} Завантажити документ рішення кваліфікаційної комісії ${filepath} ${TENDER['TENDER_UAID']} 0 ${TENDER['LOT_ID']} | |
| 67 | + Викликати для учасника ${tender_owner} Завантажити документ рішення кваліфікаційної комісії ${filepath} ${TENDER['TENDER_UAID']} 0 | |
| 68 | + | |
| 67 | 69 | |
| 68 | 70 | Можливість підтвердити постачальника |
| 69 | 71 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість зареєструвати і підтвердити постачальника до прямої закупівлі |
| ... | ... | @@ -78,12 +80,14 @@ Suite Teardown Test Suite Teardown |
| 78 | 80 | ... minimal |
| 79 | 81 | Викликати для учасника ${tender_owner} Скасування рішення кваліфікаційної комісії ${TENDER['TENDER_UAID']} 0 |
| 80 | 82 | |
| 83 | + | |
| 81 | 84 | Можливість завантажити документ рішення кваліфікаційної комісії для підтвердження нового постачальника |
| 82 | 85 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість укласти угоду для прямої закупівлі |
| 83 | 86 | ... tender_owner |
| 84 | 87 | ... ${USERS.users['${tender_owner}'].broker} |
| 85 | 88 | ${filepath}= create_fake_doc |
| 86 | - Викликати для учасника ${tender_owner} Завантажити документ рішення кваліфікаційної комісії ${filepath} ${TENDER['TENDER_UAID']} 1 ${TENDER['LOT_ID']} | |
| 89 | + Викликати для учасника ${tender_owner} Завантажити документ рішення кваліфікаційної комісії ${filepath} ${TENDER['TENDER_UAID']} 1 | |
| 90 | + | |
| 87 | 91 | |
| 88 | 92 | Можливість підтвердити нового постачальника |
| 89 | 93 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість зареєструвати і підтвердити постачальника до прямої закупівлі | ... | ... |
Please
register
or
login
to post a comment