Showing
2 changed files
with
48 additions
and
0 deletions
@@ -1093,6 +1093,33 @@ Resource playtender_agree | @@ -1093,6 +1093,33 @@ Resource playtender_agree | ||
1093 | add document in agreement ${filepath} | 1093 | add document in agreement ${filepath} |
1094 | save agreement form and wait synchronization | 1094 | save agreement form and wait synchronization |
1095 | 1095 | ||
1096 | +Отримати інформацію із угоди | ||
1097 | + [Arguments] ${username} ${agreement_uaid} ${field_name} | ||
1098 | + [Documentation] Отримати значення поля field_name для тендера tender_uaid. | ||
1099 | + | ||
1100 | + # fix for preventing error "Resolving variable '${award.value.amount}' failed: AttributeError: value" in next keywords for owner role | ||
1101 | +## run keyword if ${is_test_role_owner} and '${field_name}' in 'awards[0].complaintPeriod.endDate awards[1].complaintPeriod.endDate awards[2].complaintPeriod.endDate awards[3].complaintPeriod.endDate' fix awards data in global Users variable ${username} | ||
1102 | + | ||
1103 | + open agreement page by uaid ${agreement_uaid} | ||
1104 | + ${return_value} = Run Keyword If '${field_name}' == 'changes[0].status' get value by locator on opened page ${agreement_changes_0_status_value_locator} | ||
1105 | + ... ELSE Run Keyword If '${field_name}' == 'changes[1].rationaleType' get value by locator on opened page ${agreement_changes_1_rationaleType_value_locator} | ||
1106 | + ... ELSE Run Keyword If '${field_name}' == 'changes[1].rationale' get value by locator on opened page ${agreement_changes_1_rationale_value_locator} | ||
1107 | + ... ELSE Run Keyword If '${field_name}' == 'changes[1].modifications[0].itemId' get value by locator on opened page ${agreement_changes_1_modifications_0_itemId_value_locator} | ||
1108 | + ... ELSE Run Keyword If '${field_name}' == 'changes[1].modifications[0].factor' get value by locator on opened page ${agreement_changes_1_modifications_0_factor_value_locator} | ||
1109 | + ... ELSE Run Keyword If '${field_name}' == 'changes[1].status' get value by locator on opened page ${agreement_changes_1_status_value_locator} | ||
1110 | + ... ELSE Run Keyword If '${field_name}' == 'changes[2].rationaleType' get value by locator on opened page ${agreement_changes_2_rationaleType_value_locator} | ||
1111 | + ... ELSE Run Keyword If '${field_name}' == 'changes[2].rationale' get value by locator on opened page ${agreement_changes_2_rationale_value_locator} | ||
1112 | + ... ELSE Run Keyword If '${field_name}' == 'changes[2].modifications[0].itemId' get value by locator on opened page ${agreement_changes_2_modifications_0_itemId_value_locator} | ||
1113 | + ... ELSE Run Keyword If '${field_name}' == 'changes[2].modifications[0].factor' get value by locator on opened page ${agreement_changes_2_modifications_0_factor_value_locator} | ||
1114 | + ... ELSE Run Keyword If '${field_name}' == 'changes[2].status' get value by locator on opened page ${agreement_changes_2_status_value_locator} | ||
1115 | + ... ELSE Run Keyword If '${field_name}' == 'changes[3].rationaleType' get value by locator on opened page ${agreement_changes_3_rationaleType_value_locator} | ||
1116 | + ... ELSE Run Keyword If '${field_name}' == 'changes[3].rationale' get value by locator on opened page ${agreement_changes_3_rationale_value_locator} | ||
1117 | + ... ELSE Run Keyword If '${field_name}' == 'changes[3].modifications[0].itemId' get value by locator on opened page ${agreement_changes_3_modifications_0_itemId_value_locator} | ||
1118 | + ... ELSE Run Keyword If '${field_name}' == 'changes[3].modifications[0].factor' get value by locator on opened page ${agreement_changes_2_modifications_0_factor_value_locator} | ||
1119 | + ... ELSE Run Keyword If '${field_name}' == 'changes[3].modifications[0].contractId' get value by locator on opened page ${} | ||
1120 | + ... ELSE Run Keyword If '${field_name}' == 'changes[3].status' get value by locator on opened page ${agreement_changes_3_status_value_locator} | ||
1121 | + [Return] ${return_value} | ||
1122 | + | ||
1096 | ######################################################################################################################## | 1123 | ######################################################################################################################## |
1097 | ################################################### AGREEMENT KEYWORDS ################################################# | 1124 | ################################################### AGREEMENT KEYWORDS ################################################# |
1098 | ######################################################################################################################## | 1125 | ######################################################################################################################## |
@@ -12,3 +12,24 @@ ${agreement_edit_btn_locator} = jquery=#asid | @@ -12,3 +12,24 @@ ${agreement_edit_btn_locator} = jquery=#asid | ||
12 | ${agreement_status_value_locator} = jquery=#aside-part-pjax .hidden.opstatus | 12 | ${agreement_status_value_locator} = jquery=#aside-part-pjax .hidden.opstatus |
13 | #елемент проверки загрузки формы в попапе | 13 | #елемент проверки загрузки формы в попапе |
14 | #${popup_dynamic_form_loading_element_locator} = jquery=.fancybox-is-open .btn-add .fa-spin | 14 | #${popup_dynamic_form_loading_element_locator} = jquery=.fancybox-is-open .btn-add .fa-spin |
15 | +${agreement_changes_0_status_value_locator} = jquery=.tabs__pane.tabs__pane--visible[id*="tab-agreement-change"] .info-row.status span.value .badge__text | ||
16 | +${agreement_changes_1_rationaleType_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(1) .agreement-contract-info-wrapper.info-wrapper .info-row.rationale-type span.value | ||
17 | +${agreement_changes_1_rationale_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(1) .agreement-contract-info-wrapper.info-wrapper .info-row.rationale span.value | ||
18 | + | ||
19 | +${agreement_changes_1_modifications_0_itemId_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(1) .agreement-contract-info-wrapper.info-wrapper .info-row.itemid span.value | ||
20 | +${agreement_changes_1_modifications_0_factor_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(1) .agreement-contract-info-wrapper.info-wrapper .info-row.factor span.value | ||
21 | +${agreement_changes_1_status_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(1) .info-row.status span.value .badge__text | ||
22 | + | ||
23 | +${agreement_changes_2_rationaleType_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(2) .agreement-contract-info-wrapper.info-wrapper .info-row.rationale-type span.value | ||
24 | +${agreement_changes_2_rationale_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(2) .agreement-contract-info-wrapper.info-wrapper .info-row.rationale span.value | ||
25 | + | ||
26 | +${agreement_changes_2_modifications_0_itemId_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(2) .agreement-contract-info-wrapper.info-wrapper .info-row.itemid span.value | ||
27 | +${agreement_changes_2_modifications_0_factor_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(2) .agreement-contract-info-wrapper.info-wrapper .info-row.factor span.value | ||
28 | +${agreement_changes_2_status_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(2) .info-row.status span.value .badge__text | ||
29 | + | ||
30 | +${agreement_changes_3_rationaleType_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(3) .agreement-contract-info-wrapper.info-wrapper .info-row.rationale-type span.value | ||
31 | +${agreement_changes_3_rationale_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(3) .agreement-contract-info-wrapper.info-wrapper .info-row.rationale span.value | ||
32 | + | ||
33 | +${agreement_changes_3_modifications_0_itemId_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(3) .agreement-contract-info-wrapper.info-wrapper .info-row.itemid span.value | ||
34 | +${agreement_changes_3_modifications_0_factor_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(3) .agreement-contract-info-wrapper.info-wrapper .info-row.factor span.value | ||
35 | +${agreement_changes_3_status_value_locator} = jquery=.tabs__pane[id*="tab-agreement-change"]:nth(3) .info-row.status span.value .badge__text |
Please
register
or
login
to post a comment