Commit ded33dcd6a4686a492e1fe8ae7e2970ef8ec6c0b
Committed by
OrysiaDrabych
1 parent
dd92ad67
Update openprocurement_client.robot
Now there are keywords to work with contracts documents.
Showing
1 changed file
with
16 additions
and
0 deletions
... | ... | @@ -1397,3 +1397,19 @@ Library openprocurement_client.utils |
1397 | 1397 | Run Keyword if '${status}' == 'PASS' Return from keyword ${field_value} |
1398 | 1398 | |
1399 | 1399 | Fail Field not found: ${field_name} |
1400 | + | |
1401 | + | |
1402 | +Отримати інформацію із документа до договору | |
1403 | + [Arguments] ${username} ${contract_uaid} ${doc_id} ${field_name} | |
1404 | + ${tender}= openprocurement_client.Пошук договору по ідентифікатору ${username} ${contract_uaid} | |
1405 | + ${document}= get_document_by_id ${tender.data} ${doc_id} | |
1406 | + Log ${document} | |
1407 | + [Return] ${document['${field_name}']} | |
1408 | + | |
1409 | + | |
1410 | +Отримати документ до договору | |
1411 | + [Arguments] ${username} ${contract_uaid} ${doc_id} | |
1412 | + ${tender}= openprocurement_client.Пошук договору по ідентифікатору ${username} ${contract_uaid} | |
1413 | + ${document}= get_document_by_id ${tender.data} ${doc_id} | |
1414 | + ${filename}= download_file_from_url ${document.url} ${OUTPUT_DIR}${/}${document.title} | |
1415 | + [return] ${filename} | ... | ... |
Please
register
or
login
to post a comment