Commit f945207c1821bb993d485d9317b013f45347b946
1 parent
f38bb250
Add test draft.unsuccessful if SHORTLISTEDFIRMS is EMPTY
Showing
6 changed files
with
45 additions
and
0 deletions
| ... | ... | @@ -228,6 +228,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status |
| 228 | 228 | ${EMPTY_PROFILE} Get Variable Value ${EMPTY_PROFILE} ${False} |
| 229 | 229 | ${WRONG_PROFILE} Get Variable Value ${PROFILE} ${True} |
| 230 | 230 | ${PROFILES_HIDDEN_STATUS} Get Variable Value ${PROFILES_HIDDEN_STATUS} ${False} |
| 231 | + ${PROFILES_SHORTLISTEDFIRMS_EMPTY} Get Variable Value ${PROFILES_SHORTLISTEDFIRMS_EMPTY} ${False} | |
| 231 | 232 | ${tender_parameters}= Create Dictionary |
| 232 | 233 | ... mode=${MODE} |
| 233 | 234 | ... number_of_items=${NUMBER_OF_ITEMS} |
| ... | ... | @@ -246,6 +247,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status |
| 246 | 247 | ... empty_profile=${${EMPTY_PROFILE}} |
| 247 | 248 | ... wrong_profile=${${WRONG_PROFILE}} |
| 248 | 249 | ... profiles_hidden_status=${${PROFILES_HIDDEN_STATUS}} |
| 250 | + ... profiles_shortlistedfirms_empty=${${PROFILES_SHORTLISTEDFIRMS_EMPTY}} | |
| 249 | 251 | ${DIALOGUE_TYPE}= Get Variable Value ${DIALOGUE_TYPE} |
| 250 | 252 | ${FUNDING_KIND}= Get Variable Value ${FUNDING_KIND} |
| 251 | 253 | Run keyword if '${DIALOGUE_TYPE}' != '${None}' Set to dictionary ${tender_parameters} dialogue_type=${DIALOGUE_TYPE} | ... | ... |
| ... | ... | @@ -1076,6 +1076,8 @@ def test_tender_data_pq(params, submissionMethodDetails, plan_data): |
| 1076 | 1076 | data['status'] = fake.wrong_status() |
| 1077 | 1077 | if params.get('profiles_hidden_status'): |
| 1078 | 1078 | data['profile'] = fake.profiles_hidden() |
| 1079 | + if params.get('profiles_shortlistedfirms_empty'): | |
| 1080 | + data['profile'] = fake.shortlistedfirms_empty() | |
| 1079 | 1081 | |
| 1080 | 1082 | return munchify(data) |
| 1081 | 1083 | ... | ... |
| ... | ... | @@ -37,6 +37,7 @@ class OP_Provider(BaseProvider): |
| 37 | 37 | invalid_profile_ids = _fake_data.invalid_profile_ids |
| 38 | 38 | tender_wrong_status = _fake_data.wrong_status_when_create_tender |
| 39 | 39 | profiles_hidden_status = _fake_data.profiles_hidden_status |
| 40 | + profiles_shortlistedfirms_empty = _fake_data.profiles_shortlistedfirms_empty | |
| 40 | 41 | |
| 41 | 42 | @classmethod |
| 42 | 43 | def randomize_nb_elements(self, number=10, le=60, ge=140): |
| ... | ... | @@ -244,3 +245,7 @@ class OP_Provider(BaseProvider): |
| 244 | 245 | @classmethod |
| 245 | 246 | def profiles_hidden(self): |
| 246 | 247 | return self.random_element(self.profiles_hidden_status) |
| 248 | + | |
| 249 | + @classmethod | |
| 250 | + def shortlistedfirms_empty(self): | |
| 251 | + return self.random_element(self.profiles_shortlistedfirms_empty) | ... | ... |
| ... | ... | @@ -8165,6 +8165,9 @@ |
| 8165 | 8165 | "profiles_hidden_status": [ |
| 8166 | 8166 | "333222-33140000-555666-42000111" |
| 8167 | 8167 | ], |
| 8168 | + "profiles_shortlistedfirms_empty": [ | |
| 8169 | + "333222-33140000-999888-42000111" | |
| 8170 | + ], | |
| 8168 | 8171 | "wrong_status_when_create_tender": [ |
| 8169 | 8172 | "draft.unsuccessful", |
| 8170 | 8173 | "draft.publishing", | ... | ... |
| ... | ... | @@ -124,6 +124,17 @@ ${PLAN_TENDER} ${True} |
| 124 | 124 | Можливість оголосити тендер з недоліками в параметрах |
| 125 | 125 | |
| 126 | 126 | |
| 127 | +Можливість оголосити тендер з пустим shortlistedfirms | |
| 128 | + [Tags] ${USERS.users['${tender_owner}'].broker}: Оголошення тендера | |
| 129 | + ... tender_owner | |
| 130 | + ... ${USERS.users['${tender_owner}'].broker} | |
| 131 | + ... create_tender_shortlistedfirms_empty level1 | |
| 132 | + ... critical | |
| 133 | + [Teardown] Оновити LAST_MODIFICATION_DATE | |
| 134 | + Set Test Variable ${PROFILES_SHORTLISTEDFIRMS_EMPTY} ${True} | |
| 135 | + Можливість оголосити тендер з недоліками в параметрах | |
| 136 | + | |
| 137 | + | |
| 127 | 138 | Можливість оголосити тендер |
| 128 | 139 | [Tags] ${USERS.users['${tender_owner}'].broker}: Оголошення тендера |
| 129 | 140 | ... tender_owner |
| ... | ... | @@ -631,6 +642,16 @@ ${PLAN_TENDER} ${True} |
| 631 | 642 | ... unsuccessfulReason |
| 632 | 643 | |
| 633 | 644 | |
| 645 | +Відображення причини відхилення тендера, якщо shortlistedfirms пустий | |
| 646 | + [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування тендера | |
| 647 | + ... viewer | |
| 648 | + ... ${USERS.users['${viewer}'].broker} | |
| 649 | + ... tender_unsuccessfully_reason_shortlistedfirms_empty | |
| 650 | + Звірити поле тендера із значенням ${viewer} ${TENDER['TENDER_UAID']} | |
| 651 | + ... В обраному профілі немає активних постачальників | |
| 652 | + ... unsuccessfulReason | |
| 653 | + | |
| 654 | + | |
| 634 | 655 | Неможливість подати пропозицію в статусі draft |
| 635 | 656 | [Tags] ${USERS.users['${provider}'].broker}: Подання пропозиції |
| 636 | 657 | ... provider | ... | ... |
| 1 | +-v MODE:priceQuotation | |
| 2 | + | |
| 3 | +-v NUMBER_OF_ITEMS:1 | |
| 4 | +-v NUMBER_OF_LOTS:0 | |
| 5 | + | |
| 6 | +-v TENDER_MEAT:False | |
| 7 | +-v ITEM_MEAT:False | |
| 8 | +-v LOT_MEAT:False | |
| 9 | + | |
| 10 | +-i create_tender_shortlistedfirms_empty | |
| 11 | +-i unsuccessfully_tender_verification_wrong_profile | |
| 12 | +-i tender_unsuccessfully_reason_shortlistedfirms_empty | |
| \ No newline at end of file | ... | ... |
Please
register
or
login
to post a comment