Commit 6d77ee50c7bdc59fed7de2cbd1f39a014da44aff

Authored by oleg.stasiv
1 parent f93c58e2

Create new keyword for creating tender with negative scenarios

... ... @@ -219,6 +219,45 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
219 219 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
220 220
221 221
  222 +Можливість оголосити тендер з недоліками в параметрах
  223 + ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
  224 + ${ARTIFACT}= load_data_from ${file_path}
  225 + Log ${ARTIFACT.tender_uaid}
  226 + ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
  227 + ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
  228 + ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES}
  229 + ${WRONG_TENDER_DATE} Get Variable Value ${WRONG_TENDER_DATE} ${False}
  230 + ${tender_parameters}= Create Dictionary
  231 + ... mode=${MODE}
  232 + ... number_of_items=${NUMBER_OF_ITEMS}
  233 + ... number_of_lots=${NUMBER_OF_LOTS}
  234 + ... number_of_milestones=${NUMBER_OF_MILESTONES}
  235 + ... tender_meat=${${TENDER_MEAT}}
  236 + ... lot_meat=${${LOT_MEAT}}
  237 + ... item_meat=${${ITEM_MEAT}}
  238 + ... api_host_url=${API_HOST_URL}
  239 + ... moz_integration=${${MOZ_INTEGRATION}}
  240 + ... vat_included=${${VAT_INCLUDED}}
  241 + ... road_index=${${ROAD_INDEX}}
  242 + ... gmdn_index=${${GMDN_INDEX}}
  243 + ... plan_tender=${${PLAN_TENDER}}
  244 + ... wrong_tender_date=${${WRONG_TENDER_DATE}}
  245 + ${DIALOGUE_TYPE}= Get Variable Value ${DIALOGUE_TYPE}
  246 + ${FUNDING_KIND}= Get Variable Value ${FUNDING_KIND}
  247 + Run keyword if '${DIALOGUE_TYPE}' != '${None}' Set to dictionary ${tender_parameters} dialogue_type=${DIALOGUE_TYPE}
  248 + Run keyword if '${FUNDING_KIND}' != '${None}' Set to dictionary ${tender_parameters} fundingKind=${FUNDING_KIND}
  249 + :FOR ${username} IN ${viewer} ${tender_owner}
  250 + \ ${status}= Run Keyword And Return Status List Should Contain Value ${USERS.users['${username}']} plan_client
  251 + \ Run Keyword If ${status} Exit For Loop
  252 + ${plan_data}= знайти план за ідентифікатором ${ARTIFACT.tender_uaid} ${username}
  253 + Log ${plan_data}
  254 + ${tender_data}= Підготувати дані для створення тендера ${tender_parameters} ${plan_data}
  255 + ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
  256 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data} ${ARTIFACT.tender_uaid}
  257 + Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data}
  258 + Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
  259 +
  260 +
222 261 Можливість створити об'єкт моніторингу
223 262 ${period_intervals}= compute_intrs ${BROKERS} ${used_brokers}
224 263 ${accelerator}= Get Variable Value ${accelerator}
... ...
Please register or login to post a comment