Commit d2dc92a261f12f8ebe7fa9ceb3020f3a7564b7c4

Authored by biviktorqc
1 parent 0c3c16b4

fix document upload

... ... @@ -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
... ...
... ... @@ -17,7 +17,7 @@ users:
17 17 homepage: "http://uat.e-tender.biz/#/profile"
18 18 login: Misha2
19 19 password: Password1
20   - browser: firefox
  20 + browser: chrome
21 21 position: [0, 0]
22 22 size: [640, 450]
23 23 E-tender_Provider1:
... ...
... ... @@ -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