Commit c5e6ce7d5223dc4be8beaf1f1bdb86e266eb7c54
1 parent
64702965
refactor lot cancellation test cases
Showing
5 changed files
with
30 additions
and
15 deletions
| @@ -723,6 +723,8 @@ Library openprocurement_client.utils | @@ -723,6 +723,8 @@ Library openprocurement_client.utils | ||
| 723 | Скасувати лот | 723 | Скасувати лот |
| 724 | [Arguments] ${username} ${tender_uaid} ${lot_id} ${cancellation_reason} ${cancellation_reasonType} ${document} ${new_description} | 724 | [Arguments] ${username} ${tender_uaid} ${lot_id} ${cancellation_reason} ${cancellation_reasonType} ${document} ${new_description} |
| 725 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | 725 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} |
| 726 | + ${procurementMethodType}= set variable ${USERS.users['${tender_owner}'].initial_data.data.procurementMethodType} | ||
| 727 | + Log ${procurementMethodType} | ||
| 726 | ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id} | 728 | ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id} |
| 727 | ${lot_id}= Get Variable Value ${tender.data.lots[${lot_index}].id} | 729 | ${lot_id}= Get Variable Value ${tender.data.lots[${lot_index}].id} |
| 728 | ${data}= Create dictionary | 730 | ${data}= Create dictionary |
| @@ -734,12 +736,11 @@ Library openprocurement_client.utils | @@ -734,12 +736,11 @@ Library openprocurement_client.utils | ||
| 734 | ${cancellation_data}= munch_dict arg=${cancellation_data} | 736 | ${cancellation_data}= munch_dict arg=${cancellation_data} |
| 735 | ${cancel_reply}= Call Method ${USERS.users['${username}'].client} create_cancellation ${tender} ${cancellation_data} | 737 | ${cancel_reply}= Call Method ${USERS.users['${username}'].client} create_cancellation ${tender} ${cancellation_data} |
| 736 | ${cancellation_id}= Set variable ${cancel_reply.data.id} | 738 | ${cancellation_id}= Set variable ${cancel_reply.data.id} |
| 737 | - | ||
| 738 | ${document_id}= openprocurement_client.Завантажити документацію до запиту на скасування ${username} ${tender_uaid} ${cancellation_id} ${document} | 739 | ${document_id}= openprocurement_client.Завантажити документацію до запиту на скасування ${username} ${tender_uaid} ${cancellation_id} ${document} |
| 739 | - | ||
| 740 | openprocurement_client.Змінити опис документа в скасуванні ${username} ${tender_uaid} ${cancellation_id} ${document_id} ${new_description} | 740 | openprocurement_client.Змінити опис документа в скасуванні ${username} ${tender_uaid} ${cancellation_id} ${document_id} ${new_description} |
| 741 | - | ||
| 742 | - openprocurement_client.Підтвердити скасування закупівлі ${username} ${tender_uaid} ${cancellation_id} | 741 | + run keyword if '${procurementMethodType}' in ['belowThreshold', 'reporting', 'closeFrameworkAgreementUA'] |
| 742 | + ... openprocurement_client.Підтвердити скасування закупівлі ${username} ${tender_uaid} ${cancellation_id} | ||
| 743 | + ... ELSE openprocurement_client.Перевести скасування закупівлі в період очікування ${username} ${tender_uaid} ${cancellation_id} | ||
| 743 | 744 | ||
| 744 | 745 | ||
| 745 | Отримати інформацію з документа до лоту | 746 | Отримати інформацію з документа до лоту |
| @@ -44,11 +44,22 @@ ${PLAN_TENDER} ${True} | @@ -44,11 +44,22 @@ ${PLAN_TENDER} ${True} | ||
| 44 | Можливість скасувати 0 лот | 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 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота | 59 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 49 | ... viewer | 60 | ... viewer |
| 50 | ... ${USERS.users['${viewer}'].broker} | 61 | ... ${USERS.users['${viewer}'].broker} |
| 51 | - ... lot_cancellation | 62 | + ... lot_cancellation_view |
| 52 | [Setup] Дочекатись синхронізації з майданчиком ${viewer} | 63 | [Setup] Дочекатись синхронізації з майданчиком ${viewer} |
| 53 | ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} ${viewer} | 64 | ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} ${viewer} |
| 54 | Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} | 65 | Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} |
| @@ -60,7 +71,7 @@ ${PLAN_TENDER} ${True} | @@ -60,7 +71,7 @@ ${PLAN_TENDER} ${True} | ||
| 60 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота | 71 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 61 | ... viewer | 72 | ... viewer |
| 62 | ... ${USERS.users['${viewer}'].broker} | 73 | ... ${USERS.users['${viewer}'].broker} |
| 63 | - ... lot_cancellation | 74 | + ... lot_cancellation_view |
| 64 | ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} ${viewer} | 75 | ${cancellation_index}= Отримати останній індекс cancellations ${tender_owner} ${viewer} |
| 65 | Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} | 76 | Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} |
| 66 | ... ${USERS.users['${tender_owner}']['lot_cancellation_data']['cancellation_reason']} | 77 | ... ${USERS.users['${tender_owner}']['lot_cancellation_data']['cancellation_reason']} |
| @@ -71,7 +82,7 @@ ${PLAN_TENDER} ${True} | @@ -71,7 +82,7 @@ ${PLAN_TENDER} ${True} | ||
| 71 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота | 82 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 72 | ... viewer | 83 | ... viewer |
| 73 | ... ${USERS.users['${viewer}'].broker} | 84 | ... ${USERS.users['${viewer}'].broker} |
| 74 | - ... lot_cancellation | 85 | + ... lot_cancellation_view |
| 75 | Звірити відображення поля 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} | 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,7 +90,7 @@ ${PLAN_TENDER} ${True} | ||
| 79 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота | 90 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 80 | ... viewer | 91 | ... viewer |
| 81 | ... ${USERS.users['${viewer}'].broker} | 92 | ... ${USERS.users['${viewer}'].broker} |
| 82 | - ... lot_cancellation | 93 | + ... lot_cancellation_view |
| 83 | Звірити відображення поля 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} | 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,7 +98,7 @@ ${PLAN_TENDER} ${True} | ||
| 87 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота | 98 | [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування лота |
| 88 | ... viewer | 99 | ... viewer |
| 89 | ... ${USERS.users['${viewer}'].broker} | 100 | ... ${USERS.users['${viewer}'].broker} |
| 90 | - ... lot_cancellation | 101 | + ... lot_cancellation_view |
| 91 | Звірити відображення вмісту документа ${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} | 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 | ############################################################################################## |
| @@ -1228,7 +1228,7 @@ Require Failure | @@ -1228,7 +1228,7 @@ Require Failure | ||
| 1228 | [Arguments] ${username} ${tender_uaid} ${status} ${cancellation_index} | 1228 | [Arguments] ${username} ${tender_uaid} ${status} ${cancellation_index} |
| 1229 | Дочекатись синхронізації з майданчиком ${username} | 1229 | Дочекатись синхронізації з майданчиком ${username} |
| 1230 | Wait until keyword succeeds | 1230 | Wait until keyword succeeds |
| 1231 | - ... 12 min | 1231 | + ... 20 min |
| 1232 | ... 60 sec | 1232 | ... 60 sec |
| 1233 | ... Звірити статус cancellations | 1233 | ... Звірити статус cancellations |
| 1234 | ... ${username} | 1234 | ... ${username} |
| @@ -3,15 +3,16 @@ | @@ -3,15 +3,16 @@ | ||
| 3 | -v NUMBER_OF_ITEMS:1 | 3 | -v NUMBER_OF_ITEMS:1 |
| 4 | -v NUMBER_OF_LOTS:2 | 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 | -i create_tender | 10 | -i create_tender |
| 11 | -i find_tender | 11 | -i find_tender |
| 12 | -i lot_cancellation | 12 | -i lot_cancellation |
| 13 | +-i lot_cancellation_stand_still | ||
| 14 | +-i lot_cancellation_view | ||
| 13 | -i tender_cancellation | 15 | -i tender_cancellation |
| 14 | -i tender_cancellation_stand_still | 16 | -i tender_cancellation_stand_still |
| 15 | -i tender_cancellation_view | 17 | -i tender_cancellation_view |
| 16 | --i lot_cancellation | ||
| 17 | -i delete_lot | 18 | -i delete_lot |
Please
register
or
login
to post a comment