Showing
1 changed file
with
13 additions
and
7 deletions
@@ -7,7 +7,7 @@ Library Selenium2Library | @@ -7,7 +7,7 @@ Library Selenium2Library | ||
7 | 7 | ||
8 | *** Variables *** | 8 | *** Variables *** |
9 | @{USED_ROLES} viewer provider provider1 | 9 | @{USED_ROLES} viewer provider provider1 |
10 | - | 10 | +${TENDER_MEAT} ${True} |
11 | 11 | ||
12 | *** Test Cases *** | 12 | *** Test Cases *** |
13 | Можливість знайти закупівлю по ідентифікатору | 13 | Можливість знайти закупівлю по ідентифікатору |
@@ -319,8 +319,10 @@ Library Selenium2Library | @@ -319,8 +319,10 @@ Library Selenium2Library | ||
319 | 319 | ||
320 | 320 | ||
321 | Поставити максимально можливу ставку | 321 | Поставити максимально можливу ставку |
322 | - Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | ||
323 | - ${last_amount}= Get Text xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | 322 | + Run Keyword If ${TENDER_MEAT} == ${True} Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] |
323 | + ... ELSE Wait Until Page Contains Element id=max_bid_amount_price | ||
324 | + ${last_amount}= Run Keyword If ${TENDER_MEAT} == ${True} Get Text xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | ||
325 | + ... ELSE Get Text id=max_bid_amount_price | ||
324 | ${last_amount}= convert_amount_string_to_float ${last_amount} | 326 | ${last_amount}= convert_amount_string_to_float ${last_amount} |
325 | ${value}= Convert To Number 0.01 | 327 | ${value}= Convert To Number 0.01 |
326 | ${last_amount}= subtraction ${last_amount} ${value} | 328 | ${last_amount}= subtraction ${last_amount} ${value} |
@@ -328,8 +330,10 @@ Library Selenium2Library | @@ -328,8 +330,10 @@ Library Selenium2Library | ||
328 | 330 | ||
329 | 331 | ||
330 | Поставити ставку більшу від максимальної на ${extra_amount} грн | 332 | Поставити ставку більшу від максимальної на ${extra_amount} грн |
331 | - Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | ||
332 | - ${last_amount}= Get Text xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | 333 | + Run Keyword If ${TENDER_MEAT} == ${True} Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] |
334 | + ... ELSE Wait Until Page Contains Element id=max_bid_amount_price | ||
335 | + ${last_amount}= Run Keyword If ${TENDER_MEAT} == ${True} Get Text xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | ||
336 | + ... ELSE Get Text id=max_bid_amount_price | ||
333 | ${last_amount}= convert_amount_string_to_float ${last_amount} | 337 | ${last_amount}= convert_amount_string_to_float ${last_amount} |
334 | ${extra_amount}= convert_amount_string_to_float ${extra_amount} | 338 | ${extra_amount}= convert_amount_string_to_float ${extra_amount} |
335 | ${last_amount}= Evaluate ${last_amount}+${extra_amount} | 339 | ${last_amount}= Evaluate ${last_amount}+${extra_amount} |
@@ -366,12 +370,14 @@ Library Selenium2Library | @@ -366,12 +370,14 @@ Library Selenium2Library | ||
366 | 370 | ||
367 | 371 | ||
368 | Поставити малу ставку в ${last_amount} грн | 372 | Поставити малу ставку в ${last_amount} грн |
369 | - Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | 373 | + Run Keyword If ${TENDER_MEAT} == ${True} Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] |
374 | + ... ELSE Wait Until Page Contains Element id=max_bid_amount_price | ||
370 | Поставити ставку ${last_amount} Ви ввели дуже малу суму | 375 | Поставити ставку ${last_amount} Ви ввели дуже малу суму |
371 | 376 | ||
372 | 377 | ||
373 | Поставити нульову ставку | 378 | Поставити нульову ставку |
374 | - Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] | 379 | + Run Keyword If ${TENDER_MEAT} == ${True} Wait Until Page Contains Element xpath=//div[@class='col-md-5 col-sm-5 full-price-group']//span[@class='ng-binding'] |
380 | + ... ELSE Wait Until Page Contains Element id=max_bid_amount_price | ||
375 | Поставити ставку 0 Bid amount is required | 381 | Поставити ставку 0 Bid amount is required |
376 | 382 | ||
377 | 383 |
Please
register
or
login
to post a comment