Commit d2dc92a261f12f8ebe7fa9ceb3020f3a7564b7c4

Authored by biviktorqc
1 parent 0c3c16b4

fix document upload

@@ -4,7 +4,6 @@ Library String @@ -4,7 +4,6 @@ Library String
4 Library DateTime 4 Library DateTime
5 5
6 *** Variables *** 6 *** Variables ***
7 -${file_path} local_path_to_file("TestDocument.docx")  
8 ${mail} test@mail.com 7 ${mail} test@mail.com
9 ${telephone} +380976535447 8 ${telephone} +380976535447
10 9
@@ -32,6 +31,7 @@ ${telephone} +380976535447 @@ -32,6 +31,7 @@ ${telephone} +380976535447
32 [Documentation] 31 [Documentation]
33 ... ${ARGUMENTS[0]} == username 32 ... ${ARGUMENTS[0]} == username
34 ... ${ARGUMENTS[1]} == tender_data 33 ... ${ARGUMENTS[1]} == tender_data
  34 + ${file_path}= local_path_to_file TestDocument.docx
35 ${prepared_tender_data}= Add_data_for_GUI_FrontEnds ${ARGUMENTS[1]} 35 ${prepared_tender_data}= Add_data_for_GUI_FrontEnds ${ARGUMENTS[1]}
36 ${items}= Get From Dictionary ${prepared_tender_data.data} items 36 ${items}= Get From Dictionary ${prepared_tender_data.data} items
37 ${title}= Get From Dictionary ${prepared_tender_data.data} title 37 ${title}= Get From Dictionary ${prepared_tender_data.data} title
@@ -17,7 +17,7 @@ users: @@ -17,7 +17,7 @@ users:
17 homepage: "http://uat.e-tender.biz/#/profile" 17 homepage: "http://uat.e-tender.biz/#/profile"
18 login: Misha2 18 login: Misha2
19 password: Password1 19 password: Password1
20 - browser: firefox 20 + browser: chrome
21 position: [0, 0] 21 position: [0, 0]
22 size: [640, 450] 22 size: [640, 450]
23 E-tender_Provider1: 23 E-tender_Provider1:
@@ -174,7 +174,7 @@ def Add_data_for_GUI_FrontEnds(INITIAL_TENDER_DATA): @@ -174,7 +174,7 @@ def Add_data_for_GUI_FrontEnds(INITIAL_TENDER_DATA):
174 INITIAL_TENDER_DATA.data.tenderPeriod['endDate'] = (now + timedelta(minutes=5)).isoformat() 174 INITIAL_TENDER_DATA.data.tenderPeriod['endDate'] = (now + timedelta(minutes=5)).isoformat()
175 return INITIAL_TENDER_DATA 175 return INITIAL_TENDER_DATA
176 176
177 -def local_path_to_file( file_name ): 177 +def local_path_to_file(file_name):
178 path = os.getcwd() 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 return path 180 return path
Please register or login to post a comment