Commit e13f99afb2eac31a5c88ab35b579f83e3e289360
1 parent
13d18a83
E-tender: Use "Run Keyword And Return"
Showing
1 changed file
with
17 additions
and
25 deletions
| @@ -507,14 +507,12 @@ Change_date_to_month | @@ -507,14 +507,12 @@ Change_date_to_month | ||
| 507 | [return] ${return_value[1]} | 507 | [return] ${return_value[1]} |
| 508 | 508 | ||
| 509 | Отримати інформацію про items[0].deliveryAddress.postalCode | 509 | Отримати інформацію про items[0].deliveryAddress.postalCode |
| 510 | - ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.postalCode | ||
| 511 | - ${return_value}= Get Substring ${return_value} 0 5 | ||
| 512 | - [return] ${return_value} | 510 | + ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.postalCode |
| 511 | + Run Keyword And Return Get Substring ${return_value} 0 5 | ||
| 513 | 512 | ||
| 514 | Отримати інформацію про items[0].deliveryAddress.countryName | 513 | Отримати інформацію про items[0].deliveryAddress.countryName |
| 515 | - ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.countryName | ||
| 516 | - ${return_value}= Get Substring ${return_value} 0 7 | ||
| 517 | - [return] ${return_value} | 514 | + ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.countryName |
| 515 | + Run Keyword And Return Get Substring ${return_value} 0 7 | ||
| 518 | 516 | ||
| 519 | Отримати інформацію про items[0].deliveryAddress.region | 517 | Отримати інформацію про items[0].deliveryAddress.region |
| 520 | ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.region | 518 | ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.region |
| @@ -525,32 +523,26 @@ Change_date_to_month | @@ -525,32 +523,26 @@ Change_date_to_month | ||
| 525 | Run Keyword And Return Remove String ${return_value} , | 523 | Run Keyword And Return Remove String ${return_value} , |
| 526 | 524 | ||
| 527 | Отримати інформацію про items[0].deliveryAddress.streetAddress | 525 | Отримати інформацію про items[0].deliveryAddress.streetAddress |
| 528 | - ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryAddress.streetAddress | ||
| 529 | - [return] ${return_value} | 526 | + Run Keyword And Return Отримати текст із поля і показати на сторінці items[0].deliveryAddress.streetAddress |
| 530 | 527 | ||
| 531 | Отримати інформацію про items[0].deliveryDate.endDate | 528 | Отримати інформацію про items[0].deliveryDate.endDate |
| 532 | - ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryDate.endDate | ||
| 533 | - ${time}= Отримати текст із поля і показати на сторінці enquiryPeriod.startDate | ||
| 534 | - ${time}= Get Substring ${time} 11 | ||
| 535 | - ${day}= Get Substring ${return_value} 16 18 | ||
| 536 | - ${month}= Get Substring ${return_value} 18 22 | ||
| 537 | - ${year}= Get Substring ${return_value} 22 | ||
| 538 | - ${return_value}= Convert To String ${year}${month}${day}${time} | ||
| 539 | - [return] ${return_value} | 529 | + ${return_value}= Отримати текст із поля і показати на сторінці items[0].deliveryDate.endDate |
| 530 | + ${time}= Отримати текст із поля і показати на сторінці enquiryPeriod.startDate | ||
| 531 | + ${time}= Get Substring ${time} 11 | ||
| 532 | + ${day}= Get Substring ${return_value} 16 18 | ||
| 533 | + ${month}= Get Substring ${return_value} 18 22 | ||
| 534 | + ${year}= Get Substring ${return_value} 22 | ||
| 535 | + Run Keyword And Return Convert To String ${year}${month}${day}${time} | ||
| 540 | 536 | ||
| 541 | Отримати інформацію про questions[0].title | 537 | Отримати інформацію про questions[0].title |
| 542 | - ${return_value}= Отримати текст із поля і показати на сторінці questions[0].title | ||
| 543 | - [return] ${return_value} | 538 | + Run Keyword And Return Отримати текст із поля і показати на сторінці questions[0].title |
| 544 | 539 | ||
| 545 | Отримати інформацію про questions[0].description | 540 | Отримати інформацію про questions[0].description |
| 546 | - ${return_value}= Отримати текст із поля і показати на сторінці questions[0].description | ||
| 547 | - [return] ${return_value} | 541 | + Run Keyword And Return Отримати текст із поля і показати на сторінці questions[0].description |
| 548 | 542 | ||
| 549 | Отримати інформацію про questions[0].date | 543 | Отримати інформацію про questions[0].date |
| 550 | - ${return_value}= Отримати текст із поля і показати на сторінці questions[0].date | ||
| 551 | - ${return_value}= Change_date_to_month ${return_value} | ||
| 552 | - [return] ${return_value} | 544 | + ${return_value}= Отримати текст із поля і показати на сторінці questions[0].date |
| 545 | + Run Keyword And Return Change_date_to_month ${return_value} | ||
| 553 | 546 | ||
| 554 | Отримати інформацію про questions[0].answer | 547 | Отримати інформацію про questions[0].answer |
| 555 | - ${return_value}= Отримати текст із поля і показати на сторінці questions[0].answer | ||
| 556 | - [return] ${return_value} | 548 | + Run Keyword And Return Отримати текст із поля і показати на сторінці questions[0].answer |
Please
register
or
login
to post a comment