Commit 37e78607c1e0a13d874bf317e17b05c49cf8191b
1 parent
b7191176
fix for owner "Resolving variable '${award.value.amount}' failed: AttributeError: value"
Showing
2 changed files
with
15 additions
and
1 deletions
... | ... | @@ -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