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,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 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 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 | ... ELSE Set Variable ${tender.data.auctionUrl} | 55 | ... ELSE Set Variable ${tender.data.auctionUrl} |
| 56 | [return] ${auctionUrl} | 56 | [return] ${auctionUrl} |
| 57 | 57 | ||
| @@ -129,7 +129,7 @@ Library openprocurement_client_helper.py | @@ -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 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 133 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 134 | ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id} | 134 | ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id} |
| 135 | Remove From List ${tender.data['items']} ${item_index} | 135 | Remove From List ${tender.data['items']} ${item_index} |
| @@ -435,9 +435,9 @@ Library openprocurement_client_helper.py | @@ -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 | ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} | 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 | ... ELSE Set Variable ${bid.data.participationUrl} | 441 | ... ELSE Set Variable ${bid.data.participationUrl} |
| 442 | [return] ${participationUrl} | 442 | [return] ${participationUrl} |
| 443 | 443 | ||
| @@ -450,14 +450,9 @@ Library openprocurement_client_helper.py | @@ -450,14 +450,9 @@ Library openprocurement_client_helper.py | ||
| 450 | ... [Arguments] Username, tender uaid, qualification number and document to upload | 450 | ... [Arguments] Username, tender uaid, qualification number and document to upload |
| 451 | ... [Description] Find tender using uaid, and call upload_qualification_document | 451 | ... [Description] Find tender using uaid, and call upload_qualification_document |
| 452 | ... [Return] Reply of API | 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 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 454 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 455 | ${doc}= Call Method ${USERS.users['${username}'].client} upload_award_document ${document} ${tender} ${tender.data.awards[${award_num}].id} | 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 | Log ${doc} | 456 | Log ${doc} |
| 462 | [Return] ${doc} | 457 | [Return] ${doc} |
| 463 | 458 | ||
| @@ -471,6 +466,10 @@ Library openprocurement_client_helper.py | @@ -471,6 +466,10 @@ Library openprocurement_client_helper.py | ||
| 471 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 466 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 472 | ${award}= create_data_dict data.status active | 467 | ${award}= create_data_dict data.status active |
| 473 | Set To Dictionary ${award.data} id=${tender.data.awards[${award_num}].id} | 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 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award} | 473 | ${reply}= Call Method ${USERS.users['${username}'].client} patch_award ${tender} ${award} |
| 475 | Log ${reply} | 474 | Log ${reply} |
| 476 | 475 |
| @@ -180,7 +180,7 @@ Get Broker Property By Username | @@ -180,7 +180,7 @@ Get Broker Property By Username | ||
| 180 | ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact.yaml | 180 | ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact.yaml |
| 181 | ${ARTIFACT}= load_data_from ${file_path} | 181 | ${ARTIFACT}= load_data_from ${file_path} |
| 182 | Run Keyword And Ignore Error Set To Dictionary ${USERS.users['${tender_owner}']} access_token=${ARTIFACT.access_token} | 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 | ${lot_index}= Get Variable Value ${lot_index} 0 | 184 | ${lot_index}= Get Variable Value ${lot_index} 0 |
| 185 | Run Keyword And Ignore Error Set To Dictionary ${TENDER} LOT_ID=${ARTIFACT.lots[${lot_index}]} | 185 | Run Keyword And Ignore Error Set To Dictionary ${TENDER} LOT_ID=${ARTIFACT.lots[${lot_index}]} |
| 186 | ${mode}= Get Variable Value ${mode} ${ARTIFACT.mode} | 186 | ${mode}= Get Variable Value ${mode} ${ARTIFACT.mode} |
| @@ -29,9 +29,10 @@ Suite Teardown Test Suite Teardown | @@ -29,9 +29,10 @@ Suite Teardown Test Suite Teardown | ||
| 29 | ... ${USERS.users['${tender_owner}'].broker} | 29 | ... ${USERS.users['${tender_owner}'].broker} |
| 30 | :FOR ${username} IN ${viewer} ${tender_owner} | 30 | :FOR ${username} IN ${viewer} ${tender_owner} |
| 31 | \ ${qualification_status}= Отримати дані із тендера ${tender_owner} status ${TENDER['LOT_ID']} | 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 | \ ... ELSE Should Be Equal ${qualification_status} active.qualification | 33 | \ ... ELSE Should Be Equal ${qualification_status} active.qualification |
| 34 | 34 | ||
| 35 | + | ||
| 35 | Відображення вартості номенклатури постачальника | 36 | Відображення вартості номенклатури постачальника |
| 36 | [Tags] ${USERS.users['${tender_owner}'].broker}: Відображення основних даних оголошеного тендера | 37 | [Tags] ${USERS.users['${tender_owner}'].broker}: Відображення основних даних оголошеного тендера |
| 37 | ... tender_owner | 38 | ... tender_owner |
| @@ -63,7 +64,8 @@ Suite Teardown Test Suite Teardown | @@ -63,7 +64,8 @@ Suite Teardown Test Suite Teardown | ||
| 63 | ... tender_owner | 64 | ... tender_owner |
| 64 | ... ${USERS.users['${tender_owner}'].broker} | 65 | ... ${USERS.users['${tender_owner}'].broker} |
| 65 | ${filepath}= create_fake_doc | 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 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість зареєструвати і підтвердити постачальника до прямої закупівлі | 71 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість зареєструвати і підтвердити постачальника до прямої закупівлі |
| @@ -78,12 +80,14 @@ Suite Teardown Test Suite Teardown | @@ -78,12 +80,14 @@ Suite Teardown Test Suite Teardown | ||
| 78 | ... minimal | 80 | ... minimal |
| 79 | Викликати для учасника ${tender_owner} Скасування рішення кваліфікаційної комісії ${TENDER['TENDER_UAID']} 0 | 81 | Викликати для учасника ${tender_owner} Скасування рішення кваліфікаційної комісії ${TENDER['TENDER_UAID']} 0 |
| 80 | 82 | ||
| 83 | + | ||
| 81 | Можливість завантажити документ рішення кваліфікаційної комісії для підтвердження нового постачальника | 84 | Можливість завантажити документ рішення кваліфікаційної комісії для підтвердження нового постачальника |
| 82 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість укласти угоду для прямої закупівлі | 85 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість укласти угоду для прямої закупівлі |
| 83 | ... tender_owner | 86 | ... tender_owner |
| 84 | ... ${USERS.users['${tender_owner}'].broker} | 87 | ... ${USERS.users['${tender_owner}'].broker} |
| 85 | ${filepath}= create_fake_doc | 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 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість зареєструвати і підтвердити постачальника до прямої закупівлі | 93 | [Tags] ${USERS.users['${tender_owner}'].broker}: Можливість зареєструвати і підтвердити постачальника до прямої закупівлі |
Please
register
or
login
to post a comment