Commit a0b69db5b26fc4305b7225962bb240770137ba14

Authored by Andrew Yanovych
1 parent 9f817596

rewritten keywords

@@ -9,7 +9,7 @@ ${question_id} 0 @@ -9,7 +9,7 @@ ${question_id} 0
9 *** Keywords *** 9 *** Keywords ***
10 отримати internal id по UAid 10 отримати internal id по UAid
11 [Arguments] @{ARGUMENTS} 11 [Arguments] @{ARGUMENTS}
12 - [Documentation] 12 + [Documentation]
13 ... ${ARGUMENTS[0]} == username 13 ... ${ARGUMENTS[0]} == username
14 ... ${ARGUMENTS[1]} == tenderid 14 ... ${ARGUMENTS[1]} == tenderid
15 log many @{ARGUMENTS} 15 log many @{ARGUMENTS}
@@ -42,10 +42,11 @@ ${question_id} 0 @@ -42,10 +42,11 @@ ${question_id} 0
42 Log object data ${TENDER_DATA} cteated_tender 42 Log object data ${TENDER_DATA} cteated_tender
43 ${access_token}= Get Variable Value ${TENDER_DATA.access.token} 43 ${access_token}= Get Variable Value ${TENDER_DATA.access.token}
44 Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} access_token ${access_token} 44 Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} access_token ${access_token}
45 - Log access_token: ${access_token}  
46 - Log tender_id: ${TENDER_DATA.data.id}  
47 - Set Global Variable ${TENDER_DATA}  
48 - [return] ${TENDER_DATA.data.tenderID} ${TENDER_DATA.data.id} 45 + Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} TENDER_DATA ${TENDER_DATA}
  46 + Log ${access_token}
  47 + Log ${TENDER_DATA.data.id}
  48 + Log ${USERS.users['${ARGUMENTS[0]}'].TENDER_DATA}
  49 + [return] ${TENDER_DATA.data.tenderID}
49 50
50 Створити багатопредметний тендер 51 Створити багатопредметний тендер
51 [Arguments] @{ARGUMENTS} 52 [Arguments] @{ARGUMENTS}
@@ -66,19 +67,16 @@ ${question_id} 0 @@ -66,19 +67,16 @@ ${question_id} 0
66 [Documentation] 67 [Documentation]
67 ... ${ARGUMENTS[0]} == username 68 ... ${ARGUMENTS[0]} == username
68 ... ${ARGUMENTS[1]} == tenderId 69 ... ${ARGUMENTS[1]} == tenderId
69 - ... ${ARGUMENTS[2]} == id  
70 ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} 70 ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]}
71 ${tender_data}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} 71 ${tender_data}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid}
72 Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} tender_data ${tender_data} 72 Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} tender_data ${tender_data}
73 [return] ${tender_data} 73 [return] ${tender_data}
74 74
75 -  
76 Обновити сторінку з тендером 75 Обновити сторінку з тендером
77 [Arguments] @{ARGUMENTS} 76 [Arguments] @{ARGUMENTS}
78 [Documentation] 77 [Documentation]
79 ... ${ARGUMENTS[0]} == username 78 ... ${ARGUMENTS[0]} == username
80 ... ${ARGUMENTS[1]} == tenderId 79 ... ${ARGUMENTS[1]} == tenderId
81 - ... ${ARGUMENTS[2]} == id  
82 openprocurement_client.Пошук тендера по ідентифікатору @{ARGUMENTS} 80 openprocurement_client.Пошук тендера по ідентифікатору @{ARGUMENTS}
83 81
84 отримати інформацію із тендера 82 отримати інформацію із тендера
@@ -281,48 +279,49 @@ ${question_id} 0 @@ -281,48 +279,49 @@ ${question_id} 0
281 Завантажити документ в ставку 279 Завантажити документ в ставку
282 [Documentation] 280 [Documentation]
283 ... ${ARGUMENTS[0]} == username 281 ... ${ARGUMENTS[0]} == username
284 - ... ${ARGUMENTS[1]} == token  
285 - ... ${ARGUMENTS[2]} == bid_id 282 + ... ${ARGUMENTS[1]} == path
  283 + ... ${ARGUMENTS[2]} == tenderid
286 [Arguments] @{ARGUMENTS} 284 [Arguments] @{ARGUMENTS}
287 log ${ARGUMENTS[0]} 285 log ${ARGUMENTS[0]}
288 log ${ARGUMENTS[1]} 286 log ${ARGUMENTS[1]}
289 -  
290 - # Built-in variables related to the operating system ease making the test data operating-system-agnostic.  
291 - log ${TEMPDIR} # An absolute path to the directory where the test data file is located. This variable is case-sensitive.  
292 - log ${CURDIR} # An absolute path to the system temporary directory. In UNIX-like systems this is typically /tmp, and in Windows c:\Documents and Settings\<user>\Local Settings\Temp.  
293 -  
294 - ${filecontent} = Set Variable somestring  
295 - ${created_file_path}= create_file ${filecontent}  
296 - ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${TENDER_DATA.data.id}  
297 - ${tender}= set_access_key ${tender} ${ARGUMENTS[1]}  
298 - ${responce}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_bid_document ${created_file_path} ${tender} ${ARGUMENTS[2]}  
299 - ${uploaded_file} = Create Dictionary filepath ${created_file_path} filecontent ${filecontent} upload_responce ${responce} 287 + log ${ARGUMENTS[2]}
  288 + ${bid_id}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponces['resp'].data.id}
  289 + ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]}
  290 + ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid}
  291 + ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].bidresponces['resp'].access.token}
  292 + ${responce}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_bid_document ${ARGUMENTS[1]} ${tender} ${bid_id}
  293 + ${uploaded_file} = Create Dictionary filepath ${ARGUMENTS[1]} upload_responce ${responce}
  294 + log ${responce}
300 Log object data ${uploaded_file} 295 Log object data ${uploaded_file}
301 [return] ${uploaded_file} 296 [return] ${uploaded_file}
302 297
303 Змінити документ в ставці 298 Змінити документ в ставці
304 [Documentation] 299 [Documentation]
305 ... ${ARGUMENTS[0]} == username 300 ... ${ARGUMENTS[0]} == username
306 - ... ${ARGUMENTS[1]} == token  
307 - ... ${ARGUMENTS[2]} == bid_id  
308 - ... ${ARGUMENTS[3]} == file_id 301 + ... ${ARGUMENTS[1]} == path
  302 + ... ${ARGUMENTS[2]} == bidid
  303 + ... ${ARGUMENTS[3]} == docid
309 [Arguments] @{ARGUMENTS} 304 [Arguments] @{ARGUMENTS}
310 log ${ARGUMENTS[0]} 305 log ${ARGUMENTS[0]}
311 log ${ARGUMENTS[1]} 306 log ${ARGUMENTS[1]}
312 log ${ARGUMENTS[2]} 307 log ${ARGUMENTS[2]}
313 - log ${ARGUMENTS[3]}  
314 - ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${TENDER_DATA.data.id}  
315 - ${tender}= set_access_key ${tender} ${ARGUMENTS[1]}  
316 - ${filename}= Set Variable newfile.txt  
317 - Set_To_Object ${TENDER_DATA.data} documents.title ${filename}  
318 - ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} update_bid_document ${filename} ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]}  
319 - Log object data ${reply} reply 308 + ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${TENDER['TENDER_UAID']}
  309 + ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid}
  310 + ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].bidresponces['resp'].access.token}
  311 + ${responce}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} update_bid_document ${ARGUMENTS[1]} ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]}
  312 + ${uploaded_file} = Create Dictionary filepath ${ARGUMENTS[1]} upload_responce ${responce}
  313 + log ${responce}
  314 + Log object data ${uploaded_file}
  315 + [return] ${uploaded_file}
320 316
321 -Завантажити документ 317 +
  318 +
  319 +
  320 +Завантажити документ
322 [Documentation] 321 [Documentation]
323 ... ${ARGUMENTS[0]} == username 322 ... ${ARGUMENTS[0]} == username
324 - ... ${ARGUMENTS[1]} == filename  
325 - ... ${ARGUMENTS[2]} == tenderID 323 + ... ${ARGUMENTS[1]} == filepath
  324 + ... ${ARGUMENTS[2]} == tenderUAID
326 [Arguments] @{ARGUMENTS} 325 [Arguments] @{ARGUMENTS}
327 log ${ARGUMENTS[0]} 326 log ${ARGUMENTS[0]}
328 log ${ARGUMENTS[1]} 327 log ${ARGUMENTS[1]}
@@ -330,10 +329,10 @@ ${question_id} 0 @@ -330,10 +329,10 @@ ${question_id} 0
330 ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} 329 ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]}
331 ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} 330 ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID}
332 ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} 331 ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token}
333 - Set_To_Object ${TENDER_DATA.data} documents.title ${filename}  
334 - ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_tender_document ${filename} ${tender} 332 + ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_document ${tender} ${ARGUMENTS[1]}
335 Log object data ${reply} reply 333 Log object data ${reply} reply
336 - 334 + [return] ${reply}
  335 +
337 Отримати пропозиції 336 Отримати пропозиції
338 [Documentation] 337 [Documentation]
339 ... ${ARGUMENTS[0]} == username 338 ... ${ARGUMENTS[0]} == username
@@ -352,13 +351,13 @@ ${question_id} 0 @@ -352,13 +351,13 @@ ${question_id} 0
352 ... ${ARGUMENTS[0]} == username 351 ... ${ARGUMENTS[0]} == username
353 ... ${ARGUMENTS[1]} == tenderUaID 352 ... ${ARGUMENTS[1]} == tenderUaID
354 ... ${ARGUMENTS[2]} == url 353 ... ${ARGUMENTS[2]} == url
355 - ... ${ARGUMENTS[3]} == token  
356 [Arguments] @{ARGUMENTS} 354 [Arguments] @{ARGUMENTS}
357 log ${ARGUMENTS[0]} 355 log ${ARGUMENTS[0]}
358 log ${ARGUMENTS[1]} 356 log ${ARGUMENTS[1]}
359 log ${ARGUMENTS[2]} 357 log ${ARGUMENTS[2]}
360 ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} 358 ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]}
361 ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} 359 ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID}
  360 + ${token}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponces['resp'].access.token}
362 ${contents} ${filename}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} 361 ${contents} ${filename}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]}
363 log ${contents} 362 log ${contents}
364 log ${filename} 363 log ${filename}
Please register or login to post a comment