Commit 1cfc68cc3af1d6cbd5b5d0fd4b4ff887af21dae7

Authored by Yurii Mykhalchuk
Committed by OrysiaDrabych
1 parent 22945474

Add `Отримати інформацію із договору` to op_client.robot

@@ -1381,3 +1381,18 @@ Library openprocurement_client.utils @@ -1381,3 +1381,18 @@ Library openprocurement_client.utils
1381 Set to dictionary ${data.data} amountPaid=${amountPaid} 1381 Set to dictionary ${data.data} amountPaid=${amountPaid}
1382 ${reply}= Call Method ${USERS.users['${username}'].contracting_client} patch_contract ${internalid} ${USERS.users['${username}'].contract_access_token} ${data} 1382 ${reply}= Call Method ${USERS.users['${username}'].contracting_client} patch_contract ${internalid} ${USERS.users['${username}'].contract_access_token} ${data}
1383 Log ${reply} 1383 Log ${reply}
  1384 +
  1385 +
  1386 +Отримати інформацію із договору
  1387 + [Arguments] ${username} ${contract_uaid} ${field_name}
  1388 + openprocurement_client.Пошук договору по ідентифікатору
  1389 + ... ${username}
  1390 + ... ${contract_uaid}
  1391 +
  1392 + ${status} ${field_value}= Run keyword and ignore error
  1393 + ... Get from object
  1394 + ... ${USERS.users['${username}'].contract_data.data}
  1395 + ... ${field_name}
  1396 + Run Keyword if '${status}' == 'PASS' Return from keyword ${field_value}
  1397 +
  1398 + Fail Field not found: ${field_name}
Please register or login to post a comment