Commit 586133296653466d345993be94a5c9b7ab65f2b1
1 parent
820e90a5
Add time accuracy and absolute_delta
Where needed in keywords.robot
Showing
1 changed file
with
8 additions
and
8 deletions
@@ -380,15 +380,15 @@ Get Broker Property By Username | @@ -380,15 +380,15 @@ Get Broker Property By Username | ||
380 | 380 | ||
381 | 381 | ||
382 | Звірити дату тендера | 382 | Звірити дату тендера |
383 | - [Arguments] ${username} ${tender_data} ${field} | 383 | + [Arguments] ${username} ${tender_data} ${field} ${accuracy}=60 ${absolute_delta}=${False} |
384 | ${left}= Get_From_Object ${tender_data.data} ${field} | 384 | ${left}= Get_From_Object ${tender_data.data} ${field} |
385 | - Звірити дату тендера із значенням ${username} ${left} ${field} | 385 | + Звірити дату тендера із значенням ${username} ${left} ${field} accuracy=${accuracy} absolute_delta=${absolute_delta} |
386 | 386 | ||
387 | 387 | ||
388 | Звірити дату тендера із значенням | 388 | Звірити дату тендера із значенням |
389 | - [Arguments] ${username} ${left} ${field} ${object_id}=${None} | 389 | + [Arguments] ${username} ${left} ${field} ${object_id}=${None} ${accuracy}=60 ${absolute_delta}=${False} |
390 | ${right}= Отримати дані із тендера ${username} ${field} ${object_id} | 390 | ${right}= Отримати дані із тендера ${username} ${field} ${object_id} |
391 | - Порівняти дати ${left} ${right} | 391 | + Порівняти дати ${left} ${right} accuracy=${accuracy} absolute_delta=${absolute_delta} |
392 | 392 | ||
393 | 393 | ||
394 | Порівняти дати | 394 | Порівняти дати |
@@ -399,12 +399,12 @@ Get Broker Property By Username | @@ -399,12 +399,12 @@ Get Broker Property By Username | ||
399 | ... The keyword will fail if the difference between | 399 | ... The keyword will fail if the difference between |
400 | ... ``left`` and ``right`` dates is more than ``accuracy``, | 400 | ... ``left`` and ``right`` dates is more than ``accuracy``, |
401 | ... otherwise it will pass. | 401 | ... otherwise it will pass. |
402 | - [Arguments] ${left} ${right} ${accuracy}=60 | 402 | + [Arguments] ${left} ${right} ${accuracy}=60 ${absolute_delta}=${False} |
403 | Log ${left} | 403 | Log ${left} |
404 | Log ${right} | 404 | Log ${right} |
405 | Should Not Be Equal ${left} ${None} | 405 | Should Not Be Equal ${left} ${None} |
406 | Should Not Be Equal ${right} ${None} | 406 | Should Not Be Equal ${right} ${None} |
407 | - ${status}= compare_date ${left} ${right} ${accuracy} | 407 | + ${status}= compare_date ${left} ${right} accuracy=${accuracy} absolute_delta=${absolute_delta} |
408 | Should Be True ${status} msg=Dates are not equal: ${left} != ${right} | 408 | Should Be True ${status} msg=Dates are not equal: ${left} != ${right} |
409 | 409 | ||
410 | 410 | ||
@@ -418,12 +418,12 @@ Get Broker Property By Username | @@ -418,12 +418,12 @@ Get Broker Property By Username | ||
418 | 418 | ||
419 | 419 | ||
420 | Звірити дату предметів закупівлі багатопредметного тендера | 420 | Звірити дату предметів закупівлі багатопредметного тендера |
421 | - [Arguments] ${username} ${tender_data} ${field} | 421 | + [Arguments] ${username} ${tender_data} ${field} ${accuracy}=60 ${absolute_delta}=${False} |
422 | @{items}= Get_From_Object ${tender_data.data} items | 422 | @{items}= Get_From_Object ${tender_data.data} items |
423 | ${len_of_items}= Get Length ${items} | 423 | ${len_of_items}= Get Length ${items} |
424 | :FOR ${index} IN RANGE ${len_of_items} | 424 | :FOR ${index} IN RANGE ${len_of_items} |
425 | \ Log ${index} | 425 | \ Log ${index} |
426 | - \ Звірити дату тендера ${viewer} ${tender_data} items[${index}].${field} | 426 | + \ Звірити дату тендера ${viewer} ${tender_data} items[${index}].${field} accuracy=${accuracy} absolute_delta=${absolute_delta} |
427 | 427 | ||
428 | 428 | ||
429 | Отримати дані із тендера | 429 | Отримати дані із тендера |
Please
register
or
login
to post a comment