Commit 06b5eef1aa1794eab0b522500b87c7fe96d89cbb
1 parent
760ef534
Update `Підготувати дані про скасування` keyword
Use updated return values from `create_fake_doc`. Save `${doc_id}` into variable in order to use when needed. Munchify ${cancellation_data} to have better log output.
Showing
1 changed file
with
8 additions
and
1 deletions
... | ... | @@ -265,9 +265,16 @@ Get Broker Property By Username |
265 | 265 | Підготувати дані про скасування |
266 | 266 | [Arguments] ${username} |
267 | 267 | ${cancellation_reason}= create_fake_sentence |
268 | - ${document}= create_fake_doc | |
268 | + ${file_path} ${file_name} ${file_content}= create_fake_doc | |
269 | + ${doc_id}= get_id_from_doc_name ${file_name} | |
270 | + ${document}= Create Dictionary | |
271 | + ... doc_path=${file_path} | |
272 | + ... doc_name=${file_name} | |
273 | + ... doc_content=${file_content} | |
274 | + ... doc_id=${doc_id} | |
269 | 275 | ${new_description}= create_fake_sentence |
270 | 276 | ${cancellation_data}= Create Dictionary cancellation_reason=${cancellation_reason} document=${document} description=${new_description} |
277 | + ${cancellation_data}= munchify ${cancellation_data} | |
271 | 278 | Set To Dictionary ${USERS.users['${username}']} cancellation_data=${cancellation_data} |
272 | 279 | [Return] ${cancellation_data} |
273 | 280 | ... | ... |
Please
register
or
login
to post a comment