Commit 1a617f2ebf7cc3230550b4c20223592b150a22d5

Authored by Playtenders
2 parents debd3ff8 37e78607

Merge branch 'v3-dev' of https://git.4k.com.ua/root/playtender-robot_tests into v3-dev

... ... @@ -148,6 +148,9 @@ Resource playtender_contr
148 148 [Arguments] ${username} ${tender_uaid} ${field_name}
149 149 [Documentation] Отримати значення поля field_name для тендера tender_uaid.
150 150
  151 + # fix for preventing error "Resolving variable '${award.value.amount}' failed: AttributeError: value" in next keywords for owner role
  152 + run keyword if ${is_test_role_owner} and '${field_name}' == 'awards[0].complaintPeriod.endDate' fix awards data in global Users variable ${username}
  153 +
151 154 open tender page by uaid ${tender_uaid}
152 155 wait until page does not contain element with reloading ${tender_sync_element_locator}
153 156 run keyword if '${field_name}' == 'status' wait for tender status
... ...
... ... @@ -444,4 +444,15 @@ activate stage 2
444 444 capture page screenshot
445 445 submit current visible popup
446 446
447   -
  447 +fix awards data in global Users variable
  448 + [Arguments] ${username}
  449 + [Documentation] Фікс для помилки "Resolving variable '${award.value.amount}' failed: AttributeError: value"
  450 +
  451 + :FOR ${user} IN @{USERS}
  452 + \ continue for loop if '${user}' == '${username}'
  453 + \ ${is_user_has_tender_data} = run keyword and return status dictionary should contain key ${USERS.users['${user}'] tender_data
  454 + \ continue for loop if ${is_user_has_tender_data} == ${False}
  455 + \ ${status} ${award_data} = run keyword and ignore error get_from_object ${USERS.users['${user}'].tender_data.data} awards
  456 + \ continue for loop if ${status} == ${False}
  457 + \ set to object ${USERS.users['${username}'].tender_data.data} awards ${award_data}
  458 + \ exit for loop
\ No newline at end of file
... ...
Please register or login to post a comment