Commit 27dba15ee38c3348ee5852d97f04e53e386b903c
Committed by
GitHub
Merge pull request #240 from ProzorroUKR/cancellation
refactor lot cancellation test cases
Showing
5 changed files
with
30 additions
and
15 deletions
| ... | ... | @@ -731,6 +731,8 @@ Library openprocurement_client.utils |
| 731 | 731 | Скасувати лот |
| 732 | 732 | [Arguments] ${username} ${tender_uaid} ${lot_id} ${cancellation_reason} ${cancellation_reasonType} ${document} ${new_description} |
| 733 | 733 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 734 | + ${procurementMethodType}= set variable ${USERS.users['${tender_owner}'].initial_data.data.procurementMethodType} | |
| 735 | + Log ${procurementMethodType} | |
| 734 | 736 | ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id} |
| 735 | 737 | ${lot_id}= Get Variable Value ${tender.data.lots[${lot_index}].id} |
| 736 | 738 | ${data}= Create dictionary |
| ... | ... | @@ -742,12 +744,11 @@ Library openprocurement_client.utils |
| 742 | 744 | ${cancellation_data}= munch_dict arg=${cancellation_data} |
| 743 | 745 | ${cancel_reply}= Call Method ${USERS.users['${username}'].client} create_cancellation ${tender} ${cancellation_data} |
| 744 | 746 | ${cancellation_id}= Set variable ${cancel_reply.data.id} |
| 745 | - | |
| 746 | 747 | ${document_id}= openprocurement_client.Завантажити документацію до запиту на скасування ${username} ${tender_uaid} ${cancellation_id} ${document} |
| 747 | - | |
| 748 | 748 | openprocurement_client.Змінити опис документа в скасуванні ${username} ${tender_uaid} ${cancellation_id} ${document_id} ${new_description} |
| 749 | - | |
| 750 | - openprocurement_client.Підтвердити скасування закупівлі ${username} ${tender_uaid} ${cancellation_id} | |
| 749 | + run keyword if '${procurementMethodType}' in ['belowThreshold', 'reporting', 'closeFrameworkAgreementUA'] | |
| 750 | + ... openprocurement_client.Підтвердити скасування закупівлі ${username} ${tender_uaid} ${cancellation_id} | |
| 751 | + ... ELSE openprocurement_client.Перевести скасування закупівлі в період очікування ${username} ${tender_uaid} ${cancellation_id} | |
| 751 | 752 | |
| 752 | 753 | |
| 753 | 754 | Отримати інформацію з документа до лоту | ... | ... |
| ... | ... | @@ -44,11 +44,22 @@ ${PLAN_TENDER} ${True} |
| 44 | 44 | Можливість скасувати 0 лот |
| 45 | 45 | |
| 46 | 46 | |
| 47 | +Дочекатися закічення complait періоду скасування лота | |
| 48 | + [Tags] ${USERS.users['${tender_owner}'].broker}: Скасування тендера | |
| 49 | + ... tender_owner | |
| 50 | + ... ${USERS.users['${tender_owner}'].broker} | |
| 51 | + ... lot_cancellation_stand_still | |
| 52 | + ... critical | |
| 53 | + Log ${TENDER['TENDER_UAID']} | |
| 54 | + ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} | |
| 55 | + Дочекатись зміни статусу cancellations ${tender_owner} ${TENDER['TENDER_UAID']} active ${cancellation_index} | |
| 56 | + | |
| 57 | + | |
| 47 | 58 | Відображення активного статусу скасування лота |
| 48 | 59 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 49 | 60 | ... viewer |
| 50 | 61 | ... ${USERS.users['${viewer}'].broker} |
| 51 | - ... lot_cancellation | |
| 62 | + ... lot_cancellation_view | |
| 52 | 63 | [Setup] Дочекатись синхронізації з майданчиком ${viewer} |
| 53 | 64 | ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} ${viewer} |
| 54 | 65 | Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} |
| ... | ... | @@ -60,7 +71,7 @@ ${PLAN_TENDER} ${True} |
| 60 | 71 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 61 | 72 | ... viewer |
| 62 | 73 | ... ${USERS.users['${viewer}'].broker} |
| 63 | - ... lot_cancellation | |
| 74 | + ... lot_cancellation_view | |
| 64 | 75 | ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} ${viewer} |
| 65 | 76 | Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} |
| 66 | 77 | ... ${USERS.users['${tender_owner}']['lot_cancellation_data']['cancellation_reason']} |
| ... | ... | @@ -71,7 +82,7 @@ ${PLAN_TENDER} ${True} |
| 71 | 82 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 72 | 83 | ... viewer |
| 73 | 84 | ... ${USERS.users['${viewer}'].broker} |
| 74 | - ... lot_cancellation | |
| 85 | + ... lot_cancellation_view | |
| 75 | 86 | Звірити відображення поля description документа ${USERS.users['${tender_owner}']['lot_cancellation_data']['document']['doc_id']} до скасування ${USERS.users['${tender_owner}']['lot_cancellation_data']['cancellation_id']} із ${USERS.users['${tender_owner}']['lot_cancellation_data']['description']} для користувача ${viewer} |
| 76 | 87 | |
| 77 | 88 | |
| ... | ... | @@ -79,7 +90,7 @@ ${PLAN_TENDER} ${True} |
| 79 | 90 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 80 | 91 | ... viewer |
| 81 | 92 | ... ${USERS.users['${viewer}'].broker} |
| 82 | - ... lot_cancellation | |
| 93 | + ... lot_cancellation_view | |
| 83 | 94 | Звірити відображення поля title документа ${USERS.users['${tender_owner}']['lot_cancellation_data']['document']['doc_id']} до скасування ${USERS.users['${tender_owner}']['lot_cancellation_data']['cancellation_id']} із ${USERS.users['${tender_owner}']['lot_cancellation_data']['document']['doc_name']} для користувача ${viewer} |
| 84 | 95 | |
| 85 | 96 | |
| ... | ... | @@ -87,7 +98,7 @@ ${PLAN_TENDER} ${True} |
| 87 | 98 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 88 | 99 | ... viewer |
| 89 | 100 | ... ${USERS.users['${viewer}'].broker} |
| 90 | - ... lot_cancellation | |
| 101 | + ... lot_cancellation_view | |
| 91 | 102 | Звірити відображення вмісту документа ${USERS.users['${tender_owner}']['lot_cancellation_data']['document']['doc_id']} до скасування ${USERS.users['${tender_owner}']['lot_cancellation_data']['cancellation_id']} з ${USERS.users['${tender_owner}']['lot_cancellation_data']['document']['doc_content']} для користувача ${viewer} |
| 92 | 103 | |
| 93 | 104 | ############################################################################################## | ... | ... |
| ... | ... | @@ -1239,7 +1239,7 @@ Require Failure |
| 1239 | 1239 | [Arguments] ${username} ${tender_uaid} ${status} ${cancellation_index} |
| 1240 | 1240 | Дочекатись синхронізації з майданчиком ${username} |
| 1241 | 1241 | Wait until keyword succeeds |
| 1242 | - ... 12 min | |
| 1242 | + ... 20 min | |
| 1243 | 1243 | ... 60 sec |
| 1244 | 1244 | ... Звірити статус cancellations |
| 1245 | 1245 | ... ${username} | ... | ... |
| ... | ... | @@ -3,15 +3,16 @@ |
| 3 | 3 | -v NUMBER_OF_ITEMS:1 |
| 4 | 4 | -v NUMBER_OF_LOTS:2 |
| 5 | 5 | |
| 6 | --v TENDER_MEAT:True | |
| 7 | --v ITEM_MEAT:True | |
| 8 | --v LOT_MEAT:True | |
| 6 | +-v TENDER_MEAT:False | |
| 7 | +-v ITEM_MEAT:False | |
| 8 | +-v LOT_MEAT:False | |
| 9 | 9 | |
| 10 | 10 | -i create_tender |
| 11 | 11 | -i find_tender |
| 12 | 12 | -i lot_cancellation |
| 13 | +-i lot_cancellation_stand_still | |
| 14 | +-i lot_cancellation_view | |
| 13 | 15 | -i tender_cancellation |
| 14 | 16 | -i tender_cancellation_stand_still |
| 15 | 17 | -i tender_cancellation_view |
| 16 | --i lot_cancellation | |
| 17 | 18 | -i delete_lot |
| \ No newline at end of file | ... | ... |
Please
register
or
login
to post a comment