Showing
1 changed file
with
7 additions
and
1 deletions
1 | *** Settings *** | 1 | *** Settings *** |
2 | Library op_robot_tests.tests_files.brokers.openprocurement_client_helper | 2 | Library op_robot_tests.tests_files.brokers.openprocurement_client_helper |
3 | 3 | ||
4 | +***Variables*** | ||
5 | +${item_id} 0 | ||
6 | +${question_id} 0 | ||
7 | + | ||
4 | *** Keywords *** | 8 | *** Keywords *** |
5 | Підготувати клієнт для користувача | 9 | Підготувати клієнт для користувача |
6 | [Arguments] @{ARGUMENTS} | 10 | [Arguments] @{ARGUMENTS} |
7 | [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо | 11 | [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо |
8 | - ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} | 12 | + ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} ${api_version} |
9 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} client ${api_wrapper} | 13 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} client ${api_wrapper} |
10 | Log Variables | 14 | Log Variables |
11 | 15 | ||
@@ -218,6 +222,8 @@ Library op_robot_tests.tests_files.brokers.openprocurement_client_helper | @@ -218,6 +222,8 @@ Library op_robot_tests.tests_files.brokers.openprocurement_client_helper | ||
218 | ... ${ARGUMENTS[0]} == username | 222 | ... ${ARGUMENTS[0]} == username |
219 | ... ${ARGUMENTS[1]} == token | 223 | ... ${ARGUMENTS[1]} == token |
220 | [Arguments] @{ARGUMENTS} | 224 | [Arguments] @{ARGUMENTS} |
225 | + log ${ARGUMENTS[0]} | ||
226 | + log ${ARGUMENTS[1]} | ||
221 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${TENDER_DATA.data.id} | 227 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${TENDER_DATA.data.id} |
222 | ${tender}= set_access_key ${tender} ${ARGUMENTS[1]} | 228 | ${tender}= set_access_key ${tender} ${ARGUMENTS[1]} |
223 | ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_tender_document ${tender} | 229 | ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_tender_document ${tender} |
Please
register
or
login
to post a comment