Showing
3 changed files
with
4 additions
and
4 deletions
| ... | ... | @@ -4,7 +4,6 @@ Library String |
| 4 | 4 | Library DateTime |
| 5 | 5 | |
| 6 | 6 | *** Variables *** |
| 7 | -${file_path} local_path_to_file("TestDocument.docx") | |
| 8 | 7 | ${mail} test@mail.com |
| 9 | 8 | ${telephone} +380976535447 |
| 10 | 9 | |
| ... | ... | @@ -32,6 +31,7 @@ ${telephone} +380976535447 |
| 32 | 31 | [Documentation] |
| 33 | 32 | ... ${ARGUMENTS[0]} == username |
| 34 | 33 | ... ${ARGUMENTS[1]} == tender_data |
| 34 | + ${file_path}= local_path_to_file TestDocument.docx | |
| 35 | 35 | ${prepared_tender_data}= Add_data_for_GUI_FrontEnds ${ARGUMENTS[1]} |
| 36 | 36 | ${items}= Get From Dictionary ${prepared_tender_data.data} items |
| 37 | 37 | ${title}= Get From Dictionary ${prepared_tender_data.data} title | ... | ... |
| ... | ... | @@ -174,7 +174,7 @@ def Add_data_for_GUI_FrontEnds(INITIAL_TENDER_DATA): |
| 174 | 174 | INITIAL_TENDER_DATA.data.tenderPeriod['endDate'] = (now + timedelta(minutes=5)).isoformat() |
| 175 | 175 | return INITIAL_TENDER_DATA |
| 176 | 176 | |
| 177 | -def local_path_to_file( file_name ): | |
| 177 | +def local_path_to_file(file_name): | |
| 178 | 178 | path = os.getcwd() |
| 179 | - path = path.split("brokers", 1)[0] + "documents/" + file_name | |
| 179 | + path = path.split("brokers", 1)[0] + "/src/op_robot_tests/op_robot_tests/tests_files/documents/" + file_name | |
| 180 | 180 | return path | ... | ... |
Please
register
or
login
to post a comment