Showing
1 changed file
with
564 additions
and
0 deletions
publicbid_viewer.robot
0 → 100644
| 1 | +*** Settings *** | |
| 2 | + | |
| 3 | +Resource playtender_common.robot | |
| 4 | +Resource playtender_variables.robot | |
| 5 | +Resource playtender_question.robot | |
| 6 | +Resource playtender_claim.robot | |
| 7 | +Resource playtender_bid.robot | |
| 8 | +Resource playtender_viewer.robot | |
| 9 | +Resource playtender_viewer_variables.robot | |
| 10 | + | |
| 11 | +*** Keywords *** | |
| 12 | + | |
| 13 | +get value from features | |
| 14 | + [Arguments] ${feature_id} ${field_name} | |
| 15 | + [Documentation] Отримати значення поля field_name з нецінового показника з feature_id в описі для тендера tender_uaid. | |
| 16 | + | |
| 17 | + wait until page does not contain element with reloading ${tender_sync_element_locator} | |
| 18 | + ${tender_features_new_value_locator} = replace string ${tender_features_new_value_locator_tpl} %feature_id% ${feature_id} | |
| 19 | + wait until page contains element with reloading ${tender_features_new_value_locator} | |
| 20 | + ${return_value} = Run Keyword If 'title' == '${field_name}' Отримати інформацію із нецінового показника title ${feature_id} | |
| 21 | + ... ELSE IF 'description' == '${field_name}' Отримати інформацію із нецінового показника description ${feature_id} | |
| 22 | + ... ELSE IF 'featureOf' == '${field_name}' Отримати інформацію із нецінового показника featureOf ${feature_id} | |
| 23 | + [return] ${return_value} | |
| 24 | + | |
| 25 | +Отримати інформацію із нецінового показника title | |
| 26 | + [Arguments] ${feature_id} | |
| 27 | + [Documentation] Отримати значення поля title з нецінового показника з feature_id в описі для тендера tender_uaid. | |
| 28 | + | |
| 29 | + ${tender_features_title_value_locator} = replace string ${tender_features_title_value_locator_tpl} %feature_id% ${feature_id} | |
| 30 | + ${return_value} = get value by locator on opened page ${tender_features_title_value_locator} | |
| 31 | + [return] ${return_value} | |
| 32 | + | |
| 33 | +Отримати інформацію із нецінового показника description | |
| 34 | + [Arguments] ${feature_id} | |
| 35 | + [Documentation] Отримати значення поля description з нецінового показника з feature_id в описі для тендера tender_uaid. | |
| 36 | + | |
| 37 | + ${tender_features_description_value_locator} = replace string ${tender_features_description_value_locator_tpl} %feature_id% ${feature_id} | |
| 38 | + ${return_value} = get value by locator on opened page ${tender_features_description_value_locator} | |
| 39 | + [return] ${return_value} | |
| 40 | + | |
| 41 | +Отримати інформацію із нецінового показника featureOf | |
| 42 | + [Arguments] ${feature_id} | |
| 43 | + [Documentation] Отримати значення поля featureOf з нецінового показника з feature_id в описі для тендера tender_uaid. | |
| 44 | + | |
| 45 | + ${tender_features_featureof_value_locator} = replace string ${tender_features_featureof_value_locator_tpl} %feature_id% ${feature_id} | |
| 46 | + ${return_value} = get value by locator on opened page ${tender_features_featureof_value_locator} | |
| 47 | + [return] ${return_value} | |
| 48 | + | |
| 49 | + | |
| 50 | +get value from item | |
| 51 | + [Arguments] ${item_id} ${field_name} | |
| 52 | + [Documentation] Отримати значення поля field_name з предмету з item_id в описі для тендера tender_uaid. | |
| 53 | + | |
| 54 | +# ${return_value} = Run Keyword If 'title' == '${field_name}' Отримати інформацію із предмету title ${item_id} | |
| 55 | +# ... ELSE IF 'description' == '${field_name}' Отримати інформацію із предмету description ${item_id} | |
| 56 | +# ... ELSE IF 'featureOf' == '${field_name}' Отримати інформацію із предмету featureOf ${item_id]} | |
| 57 | + ${tender_items_new_value_locator} = replace string ${tender_items_new_value_locator_tpl} %item_id% ${item_id} | |
| 58 | + wait until page contains element with reloading ${tender_items_new_value_locator} | |
| 59 | + log many ${item_id} | |
| 60 | + Run Keyword And Return If 'description' == '${field_name}' Отримати інформацію із предмету description ${item_id} | |
| 61 | + Run Keyword And Return If 'deliveryDate.startDate' == '${field_name}' Отримати інформацію із предмету deliveryDate.startDate ${item_id} | |
| 62 | + Run Keyword And Return If 'deliveryDate.endDate' == '${field_name}' Отримати інформацію із предмету deliveryDate.endDate ${item_id} | |
| 63 | + Run Keyword And Return If 'deliveryAddress.countryName' == '${field_name}' Отримати інформацію із предмету deliveryAddress.countryName ${item_id} | |
| 64 | + Run Keyword And Return If 'deliveryAddress.postalCode' == '${field_name}' Отримати інформацію із предмету deliveryAddress.postalCode ${item_id} | |
| 65 | + Run Keyword And Return If 'deliveryAddress.region' == '${field_name}' Отримати інформацію із предмету deliveryAddress.region ${item_id} | |
| 66 | + Run Keyword And Return If 'deliveryAddress.locality' == '${field_name}' Отримати інформацію із предмету deliveryAddress.locality ${item_id} | |
| 67 | + Run Keyword And Return If 'deliveryAddress.streetAddress' == '${field_name}' Отримати інформацію із предмету deliveryAddress.streetAddress ${item_id} | |
| 68 | + Run Keyword And Return If 'classification.scheme' == '${field_name}' Отримати інформацію із предмету classification.scheme ${item_id} | |
| 69 | + Run Keyword And Return If 'classification.id' == '${field_name}' Отримати інформацію із предмету classification.id ${item_id} | |
| 70 | + Run Keyword And Return If 'classification.description' == '${field_name}' Отримати інформацію із предмету classification.description ${item_id} | |
| 71 | + Run Keyword And Return If 'additionalClassifications[0].scheme' == '${field_name}' Отримати інформацію із предмету additionalClassifications[0].scheme ${item_id} | |
| 72 | + Run Keyword And Return If 'additionalClassifications[0].id' == '${field_name}' Отримати інформацію із предмету additionalClassifications[0].id ${item_id} | |
| 73 | + Run Keyword And Return If 'additionalClassifications[0].description' == '${field_name}' Отримати інформацію із предмету additionalClassifications[0].description ${item_id} | |
| 74 | + Run Keyword And Return If 'unit.name' == '${field_name}' Отримати інформацію із предмету unit.name ${item_id} | |
| 75 | + Run Keyword And Return If 'unit.code' == '${field_name}' Отримати інформацію із предмету unit.code ${item_id} | |
| 76 | + Run Keyword And Return If 'quantity' == '${field_name}' Отримати інформацію із предмету quantity ${item_id} | |
| 77 | +# [return] ${return_value} | |
| 78 | + | |
| 79 | + | |
| 80 | +Отримати інформацію із предмету description | |
| 81 | + [Arguments] ${item_id} | |
| 82 | + [Documentation] Отримати значення поля description з предмету з item_id в описі для тендера tender_uaid. | |
| 83 | + | |
| 84 | + log many ${item_id} | |
| 85 | + ${tender_items_description_value_locator} = run keyword if ${number_of_lots} > 0 replace string ${tender_items_description_value_locator_tpl} %item_id% ${item_id} | |
| 86 | + ... ELSE replace string ${tender_items_no_lot_description_value_locator_tpl} %item_id% ${item_id} | |
| 87 | + ${return_value} = get value by locator on opened page ${tender_items_description_value_locator} | |
| 88 | + [return] ${return_value} | |
| 89 | + | |
| 90 | +Отримати інформацію із предмету deliveryDate.startDate | |
| 91 | + [Arguments] ${item_id} | |
| 92 | + [Documentation] Отримати значення поля deliveryDate.startDate з предмету з item_id в описі для тендера tender_uaid. | |
| 93 | + | |
| 94 | + ${tender_items_delivery_start_date_value_locator} = replace string ${tender_items_delivery_start_date_value_locator_tpl} %item_id% ${item_id} | |
| 95 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_start_date_value_locator} | |
| 96 | + [return] ${return_value} | |
| 97 | + | |
| 98 | +Отримати інформацію із предмету deliveryDate.endDate | |
| 99 | + [Arguments] ${item_id} | |
| 100 | + [Documentation] Отримати значення поля deliveryDate.endDate з предмету з item_id в описі для тендера tender_uaid. | |
| 101 | + | |
| 102 | + ${tender_items_delivery_end_date_value_locator} = replace string ${tender_items_delivery_end_date_value_locator_tpl} %item_id% ${item_id} | |
| 103 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_end_date_value_locator} | |
| 104 | + [return] ${return_value} | |
| 105 | + | |
| 106 | +Отримати інформацію із предмету deliveryAddress.countryName | |
| 107 | + [Arguments] ${item_id} | |
| 108 | + [Documentation] Отримати значення поля deliveryAddress.countryName з предмету з item_id в описі для тендера tender_uaid. | |
| 109 | + | |
| 110 | + ${tender_items_delivery_country_value_locator} = replace string ${tender_items_delivery_country_value_locator_tpl} %item_id% ${item_id} | |
| 111 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_country_value_locator} | |
| 112 | + [return] ${return_value} | |
| 113 | + | |
| 114 | +Отримати інформацію із предмету deliveryAddress.postalCode | |
| 115 | + [Arguments] ${item_id} | |
| 116 | + [Documentation] Отримати значення поля deliveryAddress.postalCode з предмету з item_id в описі для тендера tender_uaid. | |
| 117 | + | |
| 118 | + ${tender_items_delivery_postal_code_value_locator} = replace string ${tender_items_delivery_postal_code_value_locator_tpl} %item_id% ${item_id} | |
| 119 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_postal_code_value_locator} | |
| 120 | + [return] ${return_value} | |
| 121 | + | |
| 122 | +Отримати інформацію із предмету deliveryAddress.region | |
| 123 | + [Arguments] ${item_id} | |
| 124 | + [Documentation] Отримати значення поля deliveryAddress.region з предмету з item_id в описі для тендера tender_uaid. | |
| 125 | + | |
| 126 | + ${tender_items_delivery_region_id_value_locator} = replace string ${tender_items_delivery_region_id_value_locator_tpl} %item_id% ${item_id} | |
| 127 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_region_id_value_locator} | |
| 128 | + [return] ${return_value} | |
| 129 | + | |
| 130 | +Отримати інформацію із предмету deliveryAddress.locality | |
| 131 | + [Arguments] ${item_id} | |
| 132 | + [Documentation] Отримати значення поля deliveryAddress.locality з предмету з item_id в описі для тендера tender_uaid. | |
| 133 | + | |
| 134 | + ${tender_items_delivery_locality_value_locator} = replace string ${tender_items_delivery_locality_value_locator_tpl} %item_id% ${item_id} | |
| 135 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_locality_value_locator} | |
| 136 | + [return] ${return_value} | |
| 137 | + | |
| 138 | +Отримати інформацію із предмету deliveryAddress.streetAddress | |
| 139 | + [Arguments] ${item_id} | |
| 140 | + [Documentation] Отримати значення поля deliveryAddress.streetAddress з предмету з item_id в описі для тендера tender_uaid. | |
| 141 | + | |
| 142 | + ${tender_items_delivery_street_address_value_locator} = replace string ${tender_items_delivery_street_address_value_locator_tpl} %item_id% ${item_id} | |
| 143 | + ${return_value} = get value by locator on opened page ${tender_items_delivery_street_address_value_locator} | |
| 144 | + [return] ${return_value} | |
| 145 | + | |
| 146 | +Отримати інформацію із предмету classification.scheme | |
| 147 | + [Arguments] ${item_id} | |
| 148 | + [Documentation] Отримати значення поля classification.scheme з предмету з item_id в описі для тендера tender_uaid. | |
| 149 | + | |
| 150 | + ${tender_items_classification_scheme_value_locator} = replace string ${tender_items_classification_scheme_value_locator_tpl} %item_id% ${item_id} | |
| 151 | + ${return_value} = get value by locator on opened page ${tender_items_classification_scheme_value_locator} | |
| 152 | + [return] ${return_value} | |
| 153 | + | |
| 154 | +Отримати інформацію із предмету classification.id | |
| 155 | + [Arguments] ${item_id} | |
| 156 | + [Documentation] Отримати значення поля classification.id з предмету з item_id в описі для тендера tender_uaid. | |
| 157 | + | |
| 158 | + ${tender_items_classification_code_value_locator} = replace string ${tender_items_classification_code_value_locator_tpl} %item_id% ${item_id} | |
| 159 | + ${return_value} = get value by locator on opened page ${tender_items_classification_code_value_locator} | |
| 160 | + [return] ${return_value} | |
| 161 | + | |
| 162 | +Отримати інформацію із предмету classification.description | |
| 163 | + [Arguments] ${item_id} | |
| 164 | + [Documentation] Отримати значення поля classification.description з предмету з item_id в описі для тендера tender_uaid. | |
| 165 | + | |
| 166 | + ${tender_items_classification_description_value_locator} = replace string ${tender_items_classification_description_value_locator_tpl} %item_id% ${item_id} | |
| 167 | + ${return_value} = get value by locator on opened page ${tender_items_classification_description_value_locator} | |
| 168 | + [return] ${return_value} | |
| 169 | + | |
| 170 | +Отримати інформацію із предмету additionalClassifications[0].scheme | |
| 171 | + [Arguments] ${item_id} | |
| 172 | + [Documentation] Отримати значення поля additionalClassifications[0].scheme з предмету з item_id в описі для тендера tender_uaid. | |
| 173 | + | |
| 174 | + ${tender_items_additional_classification_scheme_value_locator} = replace string ${tender_items_additional_classification_scheme_value_locator_tpl} %item_id% ${item_id} | |
| 175 | + ${return_value} = get value by locator on opened page ${tender_items_additional_classification_scheme_value_locator} | |
| 176 | + [return] ${return_value} | |
| 177 | + | |
| 178 | +Отримати інформацію із предмету additionalClassifications[0].id | |
| 179 | + [Arguments] ${item_id} | |
| 180 | + [Documentation] Отримати значення поля additionalClassifications[0].id з предмету з item_id в описі для тендера tender_uaid. | |
| 181 | + | |
| 182 | + ${tender_items_additional_classification_code_value_locator} = replace string ${tender_items_additional_classification_code_value_locator_tpl} %item_id% ${item_id} | |
| 183 | + ${return_value} = get value by locator on opened page ${tender_items_additional_classification_code_value_locator} | |
| 184 | + [return] ${return_value} | |
| 185 | + | |
| 186 | +Отримати інформацію із предмету additionalClassifications[0].description | |
| 187 | + [Arguments] ${item_id} | |
| 188 | + [Documentation] Отримати значення поля additionalClassifications[0].description з предмету з item_id в описі для тендера tender_uaid. | |
| 189 | + | |
| 190 | + ${tender_items_additional_classification_description_value_locator} = replace string ${tender_items_additional_classification_description_value_locator_tpl} %item_id% ${item_id} | |
| 191 | + ${return_value} = get value by locator on opened page ${tender_items_additional_classification_description_value_locator} | |
| 192 | + [return] ${return_value} | |
| 193 | + | |
| 194 | +Отримати інформацію із предмету unit.name | |
| 195 | + [Arguments] ${item_id} | |
| 196 | + [Documentation] Отримати значення поля unit.name з предмету з item_id в описі для тендера tender_uaid. | |
| 197 | + | |
| 198 | + ${tender_items_unit_title_value_locator} = replace string ${tender_items_unit_title_value_locator_tpl} %item_id% ${item_id} | |
| 199 | + ${return_value} = get value by locator on opened page ${tender_items_unit_title_value_locator} | |
| 200 | + [return] ${return_value} | |
| 201 | + | |
| 202 | +Отримати інформацію із предмету unit.code | |
| 203 | + [Arguments] ${item_id} | |
| 204 | + [Documentation] Отримати значення поля unit.code з предмету з item_id в описі для тендера tender_uaid. | |
| 205 | + | |
| 206 | + ${tender_items_unit_code_value_locator} = replace string ${tender_items_unit_code_value_locator_tpl} %item_id% ${item_id} | |
| 207 | + ${return_value} = get value by locator on opened page ${tender_items_unit_code_value_locator} | |
| 208 | + [return] ${return_value} | |
| 209 | + | |
| 210 | +Отримати інформацію із предмету quantity | |
| 211 | + [Arguments] ${item_id} | |
| 212 | + [Documentation] Отримати значення поля quantity з предмету з item_id в описі для тендера tender_uaid. | |
| 213 | + | |
| 214 | + ${tender_items_quantity_value_locator} = replace string ${tender_items_quantity_value_locator_tpl} %item_id% ${item_id} | |
| 215 | + ${return_value} = get value by locator on opened page ${tender_items_quantity_value_locator} float | |
| 216 | + [return] ${return_value} | |
| 217 | + | |
| 218 | +get value from lot | |
| 219 | + [Arguments] ${lot_id} ${field_name} | |
| 220 | + [Documentation] Отримати значення поля field_name з лоту з lot_id в описі для тендера tender_uaid. | |
| 221 | + | |
| 222 | + Run Keyword And Return If 'title' == '${field_name}' Отримати інформацію із лоту title ${lot_id} | |
| 223 | + Run Keyword And Return If 'description' == '${field_name}' Отримати інформацію із лоту description ${lot_id} | |
| 224 | + Run Keyword And Return If 'value.amount' == '${field_name}' Отримати інформацію із лоту value.amount ${lot_id} | |
| 225 | + Run Keyword And Return If 'minimalStep.amount' == '${field_name}' Отримати інформацію із лоту minimalStep.amount ${lot_id} | |
| 226 | + Run Keyword And Return If 'value.currency' == '${field_name}' Отримати інформацію із лоту value.currency ${lot_id} | |
| 227 | + Run Keyword And Return If 'value.valueAddedTaxIncluded' == '${field_name}' Отримати інформацію із лоту value.valueAddedTaxIncluded ${lot_id} | |
| 228 | + Run Keyword And Return If 'minimalStep.currency' == '${field_name}' Отримати інформацію із лоту minimalStep.currency ${lot_id} | |
| 229 | + Run Keyword And Return If 'minimalStep.valueAddedTaxIncluded' == '${field_name}' Отримати інформацію із лоту minimalStep.valueAddedTaxIncluded ${lot_id} | |
| 230 | +# Run Keyword And Return If 'auctionPeriod.startDate' == '${field_name}' get text jquery=#lots .tabs__content .tabs__pane--visible .auction-period .value .start-date | |
| 231 | + Run Keyword And Return If 'auctionPeriod.startDate' == '${field_name}' Отримати інформацію із лоту auctionPeriod.startDate ${lot_id} | |
| 232 | + Run Keyword And Return If 'auctionPeriod.endDate' == '${field_name}' Отримати інформацію із лоту auctionPeriod.endDate ${lot_id} | |
| 233 | +# Run Keyword And Return If 'auctionPeriod.endDate' == '${field_name}' get text jquery=#lots .tabs__content .tabs__pane--visible .auction-period .value .end-date | |
| 234 | + Run Keyword And Return If 'minimalStepPercentage' == '${field_name}' Отримати інформацію із лоту minimalStepPercentage ${lot_id} | |
| 235 | + Run Keyword And Return If 'fundingKind' == '${field_name}' Отримати інформацію із лоту fundingKind ${lot_id} | |
| 236 | + Run Keyword And Return If 'yearlyPaymentsPercentageRange' == '${field_name}' Отримати інформацію із лоту yearlyPaymentsPercentageRange ${lot_id} | |
| 237 | + | |
| 238 | + | |
| 239 | +Отримати інформацію із лоту title | |
| 240 | + [Arguments] ${lot_id} | |
| 241 | + [Documentation] Отримати значення поля title з лоту з lot_id в описі для тендера tender_uaid. | |
| 242 | + | |
| 243 | +# ${tender_lot_title_value_locator} = replace string ${tender_lot_title_value_locator_tpl} %lot_id% ${lot_id} | |
| 244 | + ${return_value} = get value by locator on opened page ${tender_lot_title_value_locator} | |
| 245 | + [return] ${return_value} | |
| 246 | + | |
| 247 | +Отримати інформацію із лоту description | |
| 248 | + [Arguments] ${lot_id} | |
| 249 | + [Documentation] Отримати значення поля description з лоту з lot_id в описі для тендера tender_uaid. | |
| 250 | + | |
| 251 | +# ${tender_lot_description_value_locator} = replace string ${tender_lot_description_value_locator_tpl} %lot_id% ${lot_id} | |
| 252 | + ${return_value} = get value by locator on opened page ${tender_lot_description_value_locator} | |
| 253 | + [return] ${return_value} | |
| 254 | + | |
| 255 | +Отримати інформацію із лоту value.amount | |
| 256 | + [Arguments] ${lot_id} | |
| 257 | + [Documentation] Отримати значення поля description з лоту з lot_id в описі для тендера tender_uaid. | |
| 258 | + | |
| 259 | +# ${tender_lot_value_amount_value_locator} = replace string ${tender_lot_value_amount_value_locator_tpl} %lot_id% ${lot_id} | |
| 260 | + ${return_value} = get value by locator on opened page ${tender_lot_value_amount_value_locator} ${tender_lot_value_amount_value_type} | |
| 261 | + [return] ${return_value} | |
| 262 | + | |
| 263 | +Отримати інформацію із лоту minimalStep.amount | |
| 264 | + [Arguments] ${lot_id} | |
| 265 | + [Documentation] Отримати значення поля featureOf з лоту з lot_id в описі для тендера tender_uaid. | |
| 266 | + | |
| 267 | +# ${tender_lot_minimal_step_amount_value_locator} = replace string ${tender_lot_minimal_step_amount_value_locator_tpl} %lot_id% ${lot_id} | |
| 268 | + ${return_value} = get value by locator on opened page ${tender_lot_minimal_step_amount_value_locator} ${tender_lot_minimal_step_amount_value_type} | |
| 269 | + [return] ${return_value} | |
| 270 | + | |
| 271 | +Отримати інформацію із лоту value.currency | |
| 272 | + [Arguments] ${lot_id} | |
| 273 | + [Documentation] Отримати значення поля title з лоту з lot_id в описі для тендера tender_uaid. | |
| 274 | + | |
| 275 | +# ${tender_lot_value_currency_value_locator} = replace string ${tender_lot_value_currency_value_locator_tpl} %lot_id% ${lot_id} | |
| 276 | + ${return_value} = get value by locator on opened page ${tender_lot_value_currency_value_locator} | |
| 277 | + [return] ${return_value} | |
| 278 | + | |
| 279 | +Отримати інформацію із лоту value.valueAddedTaxIncluded | |
| 280 | + [Arguments] ${lot_id} | |
| 281 | + [Documentation] Отримати значення поля description з лоту з lot_id в описі для тендера tender_uaid. | |
| 282 | + | |
| 283 | +# ${tender_lot_value_value_added_tax_included_value_locator} = replace string ${tender_lot_value_value_added_tax_included_value_locator_tpl} %lot_id% ${lot_id} | |
| 284 | + ${return_value} = get value by locator on opened page ${tender_lot_value_value_added_tax_included_value_locator} | |
| 285 | + ${return_value} = set variable if 'з ПДВ' in '${return_value}' ${True} ${False} | |
| 286 | +# ${return_value} = set variable if ${return_value} == 1 True | |
| 287 | + [return] ${return_value} | |
| 288 | + | |
| 289 | +Отримати інформацію із лоту minimalStep.currency | |
| 290 | + [Arguments] ${lot_id} | |
| 291 | + [Documentation] Отримати значення поля title з лоту з lot_id в описі для тендера tender_uaid. | |
| 292 | + | |
| 293 | +# ${tender_lot_minimal_step_currency_value_locator} = replace string ${tender_lot_minimal_step_currency_value_locator_tpl} %lot_id% ${lot_id} | |
| 294 | + ${return_value} = get value by locator on opened page ${tender_lot_minimal_step_currency_value_locator} | |
| 295 | + ${return_value} = set variable if 'UAH' in '${return_value}' UAH | |
| 296 | + [return] ${return_value} | |
| 297 | + | |
| 298 | +Отримати інформацію із лоту minimalStep.valueAddedTaxIncluded | |
| 299 | + [Arguments] ${lot_id} | |
| 300 | + [Documentation] Отримати значення поля description з лоту з lot_id в описі для тендера tender_uaid. | |
| 301 | + | |
| 302 | +# ${tender_lot_value_minimal_step_added_tax_included_value_locator} = replace string ${tender_lot_minimal_step_value_added_tax_included_value_locator_tpl} %lot_id% ${lot_id} | |
| 303 | +# ${return_value} = get value by locator on opened page ${tender_lot_minimal_step_value_added_tax_included_value_locator} | |
| 304 | + ${return_value} = get value by locator on opened page ${tender_lot_value_value_added_tax_included_value_locator} | |
| 305 | + ${return_value} = set variable if 'з ПДВ' in '${return_value}' ${True} ${False} | |
| 306 | + [return] ${return_value} | |
| 307 | + | |
| 308 | +Отримати інформацію із лоту auctionPeriod.startDate | |
| 309 | + [Arguments] ${lot_id} | |
| 310 | + [Documentation] Отримати значення поля featureOf з лоту з lot_id в описі для тендера tender_uaid. | |
| 311 | + | |
| 312 | +# ${tender_lot_delivery_region_id_value_locator} = replace string ${tender_lot_delivery_region_id_value_locator_tpl} %lot_id% ${lot_id} | |
| 313 | + ${return_value} = get value by locator on opened page ${tender_auctionPeriod_startDate_value_locator} | |
| 314 | +# ${return_value} = parse_complaintPeriod_date ${return_value} | |
| 315 | + [return] ${return_value} | |
| 316 | + | |
| 317 | +Отримати інформацію із лоту auctionPeriod.endDate | |
| 318 | + [Arguments] ${lot_id} | |
| 319 | + [Documentation] Отримати значення поля title з лоту з lot_id в описі для тендера tender_uaid. | |
| 320 | + | |
| 321 | +# ${tender_lot_delivery_locality_value_locator} = replace string ${tender_lot_delivery_locality_value_locator_tpl} %lot_id% ${lot_id} | |
| 322 | + ${return_value} = get value by locator on opened page ${tender_auctionPeriod_endDate_value_locator} | |
| 323 | + [return] ${return_value} | |
| 324 | + | |
| 325 | +Отримати інформацію із лоту minimalStepPercentage | |
| 326 | + [Arguments] ${lot_id} | |
| 327 | + [Documentation] Отримати значення поля minimalStepPercentage з лоту з lot_id в описі для тендера tender_uaid. | |
| 328 | + | |
| 329 | +# ${tender_lot_delivery_street_address_value_locator} = replace string ${tender_lot_delivery_street_address_value_locator_tpl} %lot_id% ${lot_id} | |
| 330 | +# ${return_value} = get field_value by field_name on opened page ${tender_minimalStepPercentage_value_locator} | |
| 331 | + ${return_value} = get value by locator on opened page ${tender_minimalStepPercentage_value_locator} | |
| 332 | + ${return_value} = convert_string_to_float ${return_value} | |
| 333 | + [return] ${return_value} | |
| 334 | + | |
| 335 | +Отримати інформацію із лоту fundingKind | |
| 336 | + [Arguments] ${lot_id} | |
| 337 | + [Documentation] Отримати значення поля featureOf з лоту з lot_id в описі для тендера tender_uaid. | |
| 338 | + | |
| 339 | +# ${tender_lot_classification_scheme_value_locator} = replace string ${tender_lot_classification_scheme_value_locator_tpl} %lot_id% ${lot_id} | |
| 340 | + ${return_value} = get value by locator on opened page ${tender_fundingKind_value_locator} | |
| 341 | + [return] ${return_value} | |
| 342 | + | |
| 343 | +Отримати інформацію із лоту yearlyPaymentsPercentageRange | |
| 344 | + [Arguments] ${lot_id} | |
| 345 | + [Documentation] Отримати значення поля title з лоту з lot_id в описі для тендера tender_uaid. | |
| 346 | + | |
| 347 | +# ${tender_lot_classification_code_value_locator} = replace string ${tender_lot_classification_code_value_locator_tpl} %lot_id% ${lot_id} | |
| 348 | +# ${field_name} = set variable tender.${field_name}.value | |
| 349 | +# ${return_value} = get field_value by field_name on opened page ${tender_yearlyPaymentsPercentageRange_value_locator} | |
| 350 | + ${return_value} = get value by locator on opened page ${tender_yearlyPaymentsPercentageRange_value_locator} | |
| 351 | + ${return_value} = convert_string_to_float ${return_value} | |
| 352 | + [return] ${return_value} | |
| 353 | + | |
| 354 | +Отримати інформацію із документа title | |
| 355 | + [Arguments] ${doc_id} | |
| 356 | + [Documentation] Отримати значення поля title з документу з doc_id в описі для тендера tender_uaid. | |
| 357 | + | |
| 358 | +#заготовка | |
| 359 | + ${tender_new_doc_locator} = replace string ${tender_new_doc_locator_tpl} %doc_id% ${doc_id} | |
| 360 | + wait until page contains element with reloading ${tender_new_doc_locator} | |
| 361 | + | |
| 362 | + ${tender_new_doc__title_locator} = replace string ${tender_new_doc_title_locator_tpl} %doc_id% ${doc_id} | |
| 363 | + | |
| 364 | + ${return_value} = Execute Javascript return ${tender_new_doc__title_locator} | |
| 365 | + ##${return_value} = get text ${tender_new_doc_locator} | |
| 366 | + #${return_value} = get value by locator on opened page ${tender_new_doc_locator} | |
| 367 | + [return] ${return_value} | |
| 368 | + | |
| 369 | +wait for tender status | |
| 370 | + [Documentation] Очикування відповідного статусу закупівлі, в залежності від кейворда | |
| 371 | + | |
| 372 | + Run Keyword If '${TEST_NAME}' == 'Неможливість завантажити документ першим учасником після закінчення прийому пропозицій' Wait Until Keyword Succeeds 480 s 20 s Wait For EndEnquire | |
| 373 | + Run Keyword If '${TEST_NAME}' == 'Неможливість завантажити документ другим учасником після закінчення прийому пропозицій' Wait Until Keyword Succeeds 480 s 20 s Wait For EndEnquire | |
| 374 | + Run Keyword If '${TEST_NAME}' == 'Неможливість задати запитання на тендер після закінчення періоду прийому пропозицій' Wait Until Keyword Succeeds 480 s 20 s Wait For EndEnquire | |
| 375 | + #Run Keyword If '${TEST_NAME}' == 'Неможливість задати запитання на тендер після закінчення періоду уточнень' Wait Until Keyword Succeeds 480 s 20 s Wait For EndEnquire | |
| 376 | + Run Keyword If '${TEST_NAME}' == 'Можливість подати пропозицію першим учасником' Wait Until Keyword Succeeds 480 s 20 s Wait For TenderPeriod | |
| 377 | + Run Keyword If '${TEST_NAME}' == 'Можливість подати пропозицію другим учасником' Wait Until Keyword Succeeds 480 s 20 s Wait For TenderPeriod | |
| 378 | + Run Keyword If '${TEST_NAME}' == 'Відображення дати закінчення періоду блокування перед початком аукціону' Wait Until Keyword Succeeds 80 s 20 s Wait For AuctionPeriod | |
| 379 | + Run Keyword If '${TEST_NAME}' == 'Можливість підтвердити першу пропозицію кваліфікації' Wait Until Keyword Succeeds 80 s 20 s Wait For PreQualificationPeriod | |
| 380 | + Run Keyword If '${TEST_NAME}' == 'Можливість підтвердити другу пропозицію кваліфікації' Wait Until Keyword Succeeds 80 s 20 s Wait For PreQualificationPeriod | |
| 381 | + Run Keyword If '${TEST_NAME}' == 'Можливість дочекатися завершення роботи мосту' Wait Until Keyword Succeeds 6000 s 20 s Wait For CompletePeriod | |
| 382 | + #cat Run Keyword If '${TEST_NAME}' == 'Можливість дочекатися початку періоду очікування' Wait Until Keyword Succeeds 600 s 20 s Wait For PreQualificationsStandPeriod | |
| 383 | + Run Keyword If '${TEST_NAME}' == 'Можливість дочекатися початку періоду очікування' Wait Until Keyword Succeeds 600 s 20 s Wait For ActiveStage2Pending | |
| 384 | + Run Keyword If '${TEST_NAME}' == 'Можливість перевести тендер в статус очікування обробки мостом' Wait Until Keyword Succeeds 600 s 20 s Wait For ActiveStage2Waiting | |
| 385 | + Run Keyword If '${TEST_NAME}' == 'Можливість дочекатись дати закінчення прийому пропозицій' and '${SUITE NAME}' == 'Tests Files.Complaints' Wait Until Keyword Succeeds 800 s 20 s Wait For NotTenderPeriod | |
| 386 | + Run Keyword If '${TEST_NAME}' == 'Можливість дочекатись дати початку періоду кваліфікації' and '${SUITE NAME}' == 'Tests Files.Complaints' Wait Until Keyword Succeeds 800 s 20 s Wait For QualificationsStandPeriod | |
| 387 | + Run Keyword If '${TEST_NAME}' == 'Відображення статусу успішного завершення тендера' Wait Until Keyword Succeeds 6000 s 20 s Wait For CompletePeriod | |
| 388 | + | |
| 389 | +Wait For EndEnquire | |
| 390 | + [Documentation] Очикування статусу закупівлі закінчення обговорення | |
| 391 | + | |
| 392 | + Reload Page | |
| 393 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 394 | + Log Many CAT ${return_value} | |
| 395 | + Page Should Not Contain Element ${tender_status_active_tendering_value_locator} | |
| 396 | + | |
| 397 | +Wait For TenderPeriod | |
| 398 | + [Documentation] Очикування статусу закупівлі початку подачи пропозицій | |
| 399 | + | |
| 400 | + Reload Page | |
| 401 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 402 | + Log Many CAT ${return_value} | |
| 403 | + Page Should Contain Element ${tender_status_active_tendering_value_locator} | |
| 404 | + | |
| 405 | +Wait For AuctionPeriod | |
| 406 | + [Documentation] Очикування статусу закупівлі аукціон | |
| 407 | + | |
| 408 | + Reload Page | |
| 409 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 410 | + Log Many CAT ${return_value} | |
| 411 | + Page Should Contain Element ${tender_status_active_auction_value_locator} | |
| 412 | + | |
| 413 | +Wait For PreQualificationPeriod | |
| 414 | + [Documentation] Очикування статусу закупівлі аукціон | |
| 415 | + | |
| 416 | + Reload Page | |
| 417 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 418 | + Log Many CAT ${return_value} | |
| 419 | + Page Should Contain Element ${tender_status_active_pre_qualification_value_locator} | |
| 420 | + | |
| 421 | +Wait For CompletePeriod | |
| 422 | + [Documentation] Очикування статусу закупівлі завершення | |
| 423 | + | |
| 424 | + Reload Page | |
| 425 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 426 | + Log Many CAT ${return_value} | |
| 427 | + Page Should Contain Element ${tender_status_complete_value_locator} | |
| 428 | + | |
| 429 | +Wait For ActiveStage2Pending | |
| 430 | + [Documentation] Очикування статусу закупівлі завершення | |
| 431 | + | |
| 432 | + Reload Page | |
| 433 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 434 | + Log Many CAT ${return_value} | |
| 435 | + Page Should Contain Element ${tender_status_active_stage2_pending_value_locator} | |
| 436 | + | |
| 437 | +Wait For ActiveStage2Waiting | |
| 438 | + [Documentation] Очикування статусу закупівлі завершення | |
| 439 | + | |
| 440 | + Reload Page | |
| 441 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 442 | + Log Many CAT ${return_value} | |
| 443 | + Page Should Contain Element ${tender_status_active_stage2_waiting_value_locator} | |
| 444 | + | |
| 445 | +Wait For NotTenderPeriod | |
| 446 | + [Documentation] Очикування статусу закупівлі завершення | |
| 447 | + | |
| 448 | + Reload Page | |
| 449 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 450 | + Log Many CAT ${return_value} | |
| 451 | + Page Should Contain Element ${tender_status_active_tendering_value_locator} | |
| 452 | + | |
| 453 | +Wait For QualificationsStandPeriod | |
| 454 | + [Documentation] Очикування статусу закупівлі завершення кваліфікації | |
| 455 | + | |
| 456 | + Reload Page | |
| 457 | + ${return_value} = Get text ${tender_status_value_locator} | |
| 458 | + Log Many CAT ${return_value} | |
| 459 | + Page Should Contain Element ${tender_status_active_qualification_value_locator} | |
| 460 | + | |
| 461 | +Wait For QualificationsPeriodEnd | |
| 462 | + [Documentation] Очикування дати завершення кваліфікації закупівлі | |
| 463 | + | |
| 464 | + Reload Page | |
| 465 | + ${complaintPeriod} = get value by locator on opened page ${tender_qualificationPeriod_endDate_value_locator} | |
| 466 | + Log Many CAT ${complaintPeriod} | |
| 467 | + Run Keyword If '${complaintPeriod}' == '' input text to exist visible input ${contract_contractform_date_start_input_locator} ${date_start} | |
| 468 | + :FOR ${INDEX} IN RANGE 1 60 | |
| 469 | + \ Run Keyword If '${complaintPeriod}' != '' Exit For Loop | |
| 470 | + \ Reload Page | |
| 471 | + \ ${complaintPeriod} = get value by locator on opened page ${tender_qualificationPeriod_endDate_value_locator} | |
| 472 | + | |
| 473 | +Отримати інформацію із contracts[0].status | |
| 474 | + [Documentation] Отримати значення поля contracts[0].status | |
| 475 | + | |
| 476 | +# ${tmp} = get value by locator on opened page ${tender_contracts_0_status_value_locator} | |
| 477 | +# ${return_value} = Set Variable If '${tmp}' in 'Підписаний Новий' active other | |
| 478 | + Run Keyword If '${TEST_NAME}' == 'Відображення статусу підписаної угоди з постачальником переговорної процедури' Wait Until Keyword Succeeds 800 s 20 s Wait For contractactive | |
| 479 | + Run Keyword If '${TEST_NAME}' == 'Відображення статусу підписаної угоди з постачальником звіту про укладений договір' Wait Until Keyword Succeeds 800 s 20 s Wait For contractactive | |
| 480 | + Run Keyword If '${TEST_NAME}' == 'Відображення статусу підписаної угоди з постачальником закупівлі' Wait Until Keyword Succeeds 800 s 20 s Wait For contractactive | |
| 481 | + ${return_value} = get value by locator on opened page ${tender_contracts_0_status_value_locator} | |
| 482 | + [return] ${return_value} | |
| 483 | + | |
| 484 | +Wait For contractactive | |
| 485 | + [Documentation] Очикування статусу закупівлі початку подачи пропозицій | |
| 486 | + | |
| 487 | + Reload Page | |
| 488 | + ${return_value} = get value by locator on opened page ${tender_contracts_0_status_value_locator} | |
| 489 | + Page Should Contain Element ${tender_contracts_status_active_value_locator} | |
| 490 | + | |
| 491 | +Отримати інформацію із awards.complaintPeriod.endDate | |
| 492 | + [Documentation] Отримати значення поля awards.complaintPeriod.endDate | |
| 493 | + | |
| 494 | + run keyword and ignore error Wait Until Keyword Succeeds 600 s 30 s Wait For complaintPeriodendDate | |
| 495 | + ${return_value} = get value by locator on opened page ${tender_awards_complaintPeriod_endDate_value_locator} | |
| 496 | +# ${return_value} = run keyword if '${mode}' in 'negotiation' get value by locator on opened page ${tender_awards_negotiation_complaintPeriod_endDate_value_locator} | |
| 497 | +# ... ELSE get value by locator on opened page ${tender_awards_complaintPeriod_endDate_value_locator} | |
| 498 | +# ${return_value} = run keyword if '${mode}' in 'negotiation' parse_complaintPeriod_date ${return_value} | |
| 499 | +# ... ELSE set variable ${return_value} | |
| 500 | + [return] ${return_value} | |
| 501 | + | |
| 502 | +Отримати інформацію із complaintPeriod.endDate | |
| 503 | + [Documentation] Отримати значення поля complaintPeriod.endDate | |
| 504 | + | |
| 505 | + ${return_value} = get value by locator on opened page ${tender_complaintPeriod_endDate_value_locator} | |
| 506 | + [return] ${return_value} | |
| 507 | + | |
| 508 | +Wait For complaintPeriodendDate | |
| 509 | + [Documentation] Очикування появи дати завершення подачи скарг на кваліфікацію закупівлі в belowThreshold та below_funders | |
| 510 | + | |
| 511 | + reload page | |
| 512 | + ${complaintPeriod} = get value by locator on opened page ${tender_awards_complaintPeriod_endDate_value_locator} | |
| 513 | + :FOR ${INDEX} IN RANGE 1 60 | |
| 514 | + \ Run Keyword If '${complaintPeriod}' != '' Exit For Loop | |
| 515 | + \ Reload Page | |
| 516 | + \ ${complaintPeriod} = get value by locator on opened page ${tender_awards_complaintPeriod_endDate_value_locator} | |
| 517 | + | |
| 518 | +Отримати інформацію із minimalStep.amount | |
| 519 | + [Documentation] Отримати значення поля minimalStep.amount для тендера tender_uaid. | |
| 520 | + | |
| 521 | +# ${tender_lot_minimal_step_amount_value_locator} = replace string ${tender_lot_minimal_step_amount_value_locator_tpl} %lot_id% ${lot_id} | |
| 522 | + ${return_value} = run keyword if ${number_of_lots} > 0 get value by locator on opened page ${tender_lot_minimal_step_amount_value_locator} ${tender_lot_minimal_step_amount_value_type} | |
| 523 | + ... ELSE get value by locator on opened page ${tender_minimalStep_amount_value_locator} ${tender_lot_minimal_step_amount_value_type} | |
| 524 | + [return] ${return_value} | |
| 525 | + | |
| 526 | +Отримати інформацію із awards[0].documents[0].title | |
| 527 | + [Documentation] Отримати значення поля minimalStep.amount для тендера tender_uaid. | |
| 528 | + | |
| 529 | +# ${tender_lot_minimal_step_amount_value_locator} = replace string ${tender_lot_minimal_step_amount_value_locator_tpl} %lot_id% ${lot_id} | |
| 530 | +# click visible element ${tender_awards_negotiation_documents_btn_locator} | |
| 531 | + open popup by btn locator ${tender_awards_negotiation_documents_btn_locator} | |
| 532 | + ${return_value} = get value by locator on opened page ${tender_awards_0_documents_0_title_value_locator} | |
| 533 | + click visible element ${tender_awards_negotiation_documents_close_btn_locator} | |
| 534 | + [return] ${return_value} | |
| 535 | + | |
| 536 | +Wait For stage2button | |
| 537 | + [Documentation] Очикування кнопки переводу до другого етапу | |
| 538 | + | |
| 539 | + Reload Page | |
| 540 | + Page Should Contain Element ${tender_stage2_open_btn_locator} | |
| 541 | + | |
| 542 | +Отримати інформацію із qualificationPeriod.endDate | |
| 543 | + [Documentation] Отримати значення поля qualificationPeriod.endDate | |
| 544 | + | |
| 545 | +# run keyword and ignore error run keyword if '${mode}' in 'belowThreshold below_funders' Wait Until Keyword Succeeds 600 s 30 s Wait For complaintPeriodendDate | |
| 546 | +# run keyword and ignore error Wait Until Keyword Succeeds 600 s 30 s Wait For complaintPeriodendDate | |
| 547 | + ${return_value} = get value by locator on opened page ${tender_qualificationPeriod_endDate_value_locator} | |
| 548 | + ${return_value} = parse_complaintPeriod_date ${return_value} | |
| 549 | + [return] ${return_value} | |
| 550 | + | |
| 551 | +wait for agreements status active | |
| 552 | + [Documentation] Очикування статусу agreements active | |
| 553 | + | |
| 554 | + Reload Page | |
| 555 | + ${return_value} = get value by locator on opened page ${tender_agreements_0_status_value_locator} | |
| 556 | + Page Should Contain Element ${tender_agreements_status_active_value_locator} | |
| 557 | + | |
| 558 | +Wait date | |
| 559 | + [Arguments] ${date} | |
| 560 | + ${sleep}= wait_to_date ${date} | |
| 561 | + Run Keyword If ${sleep} > 0 Sleep ${sleep} | |
| 562 | + | |
| 563 | + | |
| 564 | + | ... | ... |
Please
register
or
login
to post a comment