Showing
5 changed files
with
110 additions
and
1 deletions
@@ -5,6 +5,7 @@ Resource playtender_plan. | @@ -5,6 +5,7 @@ Resource playtender_plan. | ||
5 | Resource playtender_tender.robot | 5 | Resource playtender_tender.robot |
6 | Resource playtender_qualification.robot | 6 | Resource playtender_qualification.robot |
7 | Resource playtender_contract.robot | 7 | Resource playtender_contract.robot |
8 | +Resource playtender_agreement.robot | ||
8 | 9 | ||
9 | *** Variables *** | 10 | *** Variables *** |
10 | 11 | ||
@@ -1064,3 +1065,34 @@ Resource playtender_contr | @@ -1064,3 +1065,34 @@ Resource playtender_contr | ||
1064 | ######################################################################################################################## | 1065 | ######################################################################################################################## |
1065 | ################################################### END CONTRACTS KEYWORDS #################################### | 1066 | ################################################### END CONTRACTS KEYWORDS #################################### |
1066 | ######################################################################################################################## | 1067 | ######################################################################################################################## |
1068 | + | ||
1069 | +######################################################################################################################## | ||
1070 | +################################################### AGREEMENT KEYWORDS ################################################# | ||
1071 | +######################################################################################################################## | ||
1072 | + | ||
1073 | +Пошук угоди по ідентифікатору | ||
1074 | + [Arguments] ${username} ${agreement_uaid} ${save_key}=${Empty} | ||
1075 | + [Documentation] Знайти угоду з uaid рівним tender_uaid. | ||
1076 | + | ||
1077 | + open agreement search form | ||
1078 | + input to search form and wait results ${agreement_search_form_query_input_locator} ${agreement_uaid} ${agreement_search_form_result_locator_tpl} | ||
1079 | + | ||
1080 | +Отримати доступ до угоди | ||
1081 | + [Arguments] ${username} ${agreement_uaid} | ||
1082 | + [Documentation] Отримати доступ до угоди по agreement id. | ||
1083 | + | ||
1084 | + open agreement page by uaid ${agreement_uaid} | ||
1085 | + Log to Console ${agreement_uaid} | ||
1086 | + | ||
1087 | +Завантажити документ в рамкову угоду | ||
1088 | + [Arguments] ${username} ${filepath} ${tender_uaid} | ||
1089 | + [Documentation] Завантажити документ, який знаходиться по шляху filepath, | ||
1090 | + ... до тендера tender_uaid. | ||
1091 | + | ||
1092 | + open agreement form by uaid ${tender_uaid} | ||
1093 | + add document in agreement ${filepath} | ||
1094 | + save agreement form and wait synchronization | ||
1095 | + | ||
1096 | +######################################################################################################################## | ||
1097 | +################################################### AGREEMENT KEYWORDS ################################################# | ||
1098 | +######################################################################################################################## |
playtender_agreement.robot
0 → 100644
1 | +*** Settings *** | ||
2 | + | ||
3 | +Resource playtender_common.robot | ||
4 | +Resource playtender_agreement_variables.robot | ||
5 | +Resource playtender_question.robot | ||
6 | +Resource playtender_claim.robot | ||
7 | +Resource playtender_bid.robot | ||
8 | +Resource playtender_viewer.robot | ||
9 | + | ||
10 | +*** Keywords *** | ||
11 | + | ||
12 | +update agreement queue | ||
13 | + [Documentation] запускає оновлення agreement з ЦБД і додає їх в чергу, тобто синхронізація може відбутися не відразу | ||
14 | + ... поточна сторіка повертається | ||
15 | + | ||
16 | + ${current_url} = get location | ||
17 | + go to ${broker_baseurl}/utils/queue-agreement-update | ||
18 | + go to ${current_url} | ||
19 | + | ||
20 | +open agreement search form | ||
21 | + [Documentation] відкриває сторінку з пошуком agreement | ||
22 | + | ||
23 | + open page and wait element by locator ${broker_baseurl}/agreements ${agreement_search_form_locator} | ||
24 | + | ||
25 | +open agreement form by uaid | ||
26 | + [Arguments] ${agreement_uaid} | ||
27 | + [Documentation] відкриття сторінки редагування плану | ||
28 | + | ||
29 | + open agreement page by uaid ${agreement_uaid} | ||
30 | + click visible element and wait until page contains element ${tender_edit_btn_locator} ${tender_form_locator} | ||
31 | + | ||
32 | +open agreement page by uaid | ||
33 | + [Arguments] ${uaid} | ||
34 | + [Documentation] відкриває сторінку з agreement | ||
35 | + | ||
36 | + open site page and wait content element ${broker_baseurl}/agreement/${uaid} | ||
37 | + ${is_agreement_found} = get is element exist ${agreement_view_checker_element_locator} | ||
38 | + return from keyword if ${is_agreement_found} == ${True} | ||
39 | + ${is_agreement_not_found} = get is 404 page | ||
40 | + ${is_needed_to_update_and_wait_sync} = set variable if ${is_test_role_owner} == ${False} and ${is_agreement_not_found} ${True} ${False} | ||
41 | + run keyword if ${is_needed_to_update_and_wait_sync} update agreement queue | ||
42 | + run keyword if ${is_needed_to_update_and_wait_sync} wait until 404 page disappears | ||
43 | + ${is_agreement_found} = get is element exist ${agreement_view_checker_element_locator} | ||
44 | + run keyword if ${is_agreement_found} == ${False} fail Opening agreement page by uaid fails. | ||
45 | + | ||
46 | +save agreement form and wait synchronization | ||
47 | + [Documentation] натискає кнопку "Зберегти" і чекає синхронізації угоди | ||
48 | + | ||
49 | + submit form and check result ${tender_form_submit_btn_locator} ${tender_form_submit_success_msg} ${tender_created_checker_element_locator} ${true} | ||
50 | + wait until page does not contain element with reloading ${agreement_sync_element_locator} | ||
51 | + | ||
52 | +add document in agreement | ||
53 | + [Arguments] ${filepath} | ||
54 | + [Documentation] Завантажити документ, який знаходиться по шляху filepath. | ||
55 | + | ||
56 | + click visible element ${tender_form_general_panel_edit_add_document_btn_locator} | ||
57 | + choose file ${add_file_to_form_locator} ${filepath} | ||
58 | + wait until page does not contain element ${popup_dynamic_form_loading_element_locator} | ||
59 | + submit current visible popup | ||
60 | + | ||
61 | + |
playtender_agreement_variables.robot
0 → 100644
1 | +*** Variables *** | ||
2 | + | ||
3 | +${agreement_search_form_locator} = id=agreement-filter-form | ||
4 | +${agreement_search_form_query_input_locator} = jquery=#agreement-filter-form .dynamic-search-query input | ||
5 | +${agreement_search_form_result_locator_tpl} = jquery=#agreement-list .lots__item .lot__characteristic li:contains(%query%) | ||
6 | + | ||
7 | +# agreement view | ||
8 | +${agreement_view_checker_element_locator} = id=agreement-general-info | ||
9 | +${agreement_sync_element_locator} = jquery=#aside-part-pjax .status-label .fa-refresh | ||
10 | +${agreement_uaid_text_locator} = jquery=#agreement-general-info .agreement-id .value | ||
11 | +${agreement_edit_btn_locator} = jquery=#aside-part-pjax a[href*="agreement/update"] | ||
12 | +${agreement_status_value_locator} = jquery=#aside-part-pjax .hidden.opstatus | ||
13 | +#елемент проверки загрузки формы в попапе | ||
14 | +#${popup_dynamic_form_loading_element_locator} = jquery=.fancybox-is-open .btn-add .fa-spin |
@@ -59,7 +59,7 @@ fill tender form | @@ -59,7 +59,7 @@ fill tender form | ||
59 | run keyword if condition is not none ${lots} fill tender form lots ${lots} | 59 | run keyword if condition is not none ${lots} fill tender form lots ${lots} |
60 | ${supplier_data} = op_robot_tests.tests_files.service_keywords . Test Supplier Data | 60 | ${supplier_data} = op_robot_tests.tests_files.service_keywords . Test Supplier Data |
61 | ##### BOF - TMP for negotiation milestone 1 lot##### | 61 | ##### BOF - TMP for negotiation milestone 1 lot##### |
62 | - Set Global Variable ${rep_val} ${data.value.amount} | 62 | + run keyword if '${mode}' in 'reporting' Set Global Variable ${rep_val} ${data.value.amount} |
63 | ##### EOF - TMP ##### | 63 | ##### EOF - TMP ##### |
64 | run keyword if '${mode}' in 'negotiation reporting' fill tender from award reporting ${data.value.amount} ${supplier_data.data.suppliers[0]} | 64 | run keyword if '${mode}' in 'negotiation reporting' fill tender from award reporting ${data.value.amount} ${supplier_data.data.suppliers[0]} |
65 | Run Keyword And Ignore Error fill tender required documents | 65 | Run Keyword And Ignore Error fill tender required documents |
@@ -217,3 +217,5 @@ ${tender_maxAwardsCount_value_type} = integer | @@ -217,3 +217,5 @@ ${tender_maxAwardsCount_value_type} = integer | ||
217 | ${tender_agreementDuration_value_locator} = jquery=#tender-general-info .agreement-duration | 217 | ${tender_agreementDuration_value_locator} = jquery=#tender-general-info .agreement-duration |
218 | ${tender_agreements_0_status_value_locator} = jquery=.tabs__pane--visible[id*="tab-agreement-contract"] .status-source.hidden | 218 | ${tender_agreements_0_status_value_locator} = jquery=.tabs__pane--visible[id*="tab-agreement-contract"] .status-source.hidden |
219 | ${tender_agreements_status_active_value_locator} = jquery=.tabs__pane--visible[id*="tab-agreement-contract"] .status-source.hidden:contains(active) | 219 | ${tender_agreements_status_active_value_locator} = jquery=.tabs__pane--visible[id*="tab-agreement-contract"] .status-source.hidden:contains(active) |
220 | + | ||
221 | +${tender_agreements_0_agreementID_value_locator} = jquery=#agreement-contracts-list .agreement-info-wrapper.info-wrapper .agreement-id .value |
Please
register
or
login
to post a comment