Showing
1 changed file
with
37 additions
and
38 deletions
... | ... | @@ -9,7 +9,7 @@ ${question_id} 0 |
9 | 9 | *** Keywords *** |
10 | 10 | отримати internal id по UAid |
11 | 11 | [Arguments] @{ARGUMENTS} |
12 | - [Documentation] | |
12 | + [Documentation] | |
13 | 13 | ... ${ARGUMENTS[0]} == username |
14 | 14 | ... ${ARGUMENTS[1]} == tenderid |
15 | 15 | log many @{ARGUMENTS} |
... | ... | @@ -42,10 +42,11 @@ ${question_id} 0 |
42 | 42 | Log object data ${TENDER_DATA} cteated_tender |
43 | 43 | ${access_token}= Get Variable Value ${TENDER_DATA.access.token} |
44 | 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 | 52 | [Arguments] @{ARGUMENTS} |
... | ... | @@ -66,19 +67,16 @@ ${question_id} 0 |
66 | 67 | [Documentation] |
67 | 68 | ... ${ARGUMENTS[0]} == username |
68 | 69 | ... ${ARGUMENTS[1]} == tenderId |
69 | - ... ${ARGUMENTS[2]} == id | |
70 | 70 | ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
71 | 71 | ${tender_data}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
72 | 72 | Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} tender_data ${tender_data} |
73 | 73 | [return] ${tender_data} |
74 | 74 | |
75 | - | |
76 | 75 | Обновити сторінку з тендером |
77 | 76 | [Arguments] @{ARGUMENTS} |
78 | 77 | [Documentation] |
79 | 78 | ... ${ARGUMENTS[0]} == username |
80 | 79 | ... ${ARGUMENTS[1]} == tenderId |
81 | - ... ${ARGUMENTS[2]} == id | |
82 | 80 | openprocurement_client.Пошук тендера по ідентифікатору @{ARGUMENTS} |
83 | 81 | |
84 | 82 | отримати інформацію із тендера |
... | ... | @@ -281,48 +279,49 @@ ${question_id} 0 |
281 | 279 | Завантажити документ в ставку |
282 | 280 | [Documentation] |
283 | 281 | ... ${ARGUMENTS[0]} == username |
284 | - ... ${ARGUMENTS[1]} == token | |
285 | - ... ${ARGUMENTS[2]} == bid_id | |
282 | + ... ${ARGUMENTS[1]} == path | |
283 | + ... ${ARGUMENTS[2]} == tenderid | |
286 | 284 | [Arguments] @{ARGUMENTS} |
287 | 285 | log ${ARGUMENTS[0]} |
288 | 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 | 295 | Log object data ${uploaded_file} |
301 | 296 | [return] ${uploaded_file} |
302 | 297 | |
303 | 298 | Змінити документ в ставці |
304 | 299 | [Documentation] |
305 | 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 | 304 | [Arguments] @{ARGUMENTS} |
310 | 305 | log ${ARGUMENTS[0]} |
311 | 306 | log ${ARGUMENTS[1]} |
312 | 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 | 321 | [Documentation] |
323 | 322 | ... ${ARGUMENTS[0]} == username |
324 | - ... ${ARGUMENTS[1]} == filename | |
325 | - ... ${ARGUMENTS[2]} == tenderID | |
323 | + ... ${ARGUMENTS[1]} == filepath | |
324 | + ... ${ARGUMENTS[2]} == tenderUAID | |
326 | 325 | [Arguments] @{ARGUMENTS} |
327 | 326 | log ${ARGUMENTS[0]} |
328 | 327 | log ${ARGUMENTS[1]} |
... | ... | @@ -330,10 +329,10 @@ ${question_id} 0 |
330 | 329 | ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[2]} |
331 | 330 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} |
332 | 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 | 333 | Log object data ${reply} reply |
336 | - | |
334 | + [return] ${reply} | |
335 | + | |
337 | 336 | Отримати пропозиції |
338 | 337 | [Documentation] |
339 | 338 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -352,13 +351,13 @@ ${question_id} 0 |
352 | 351 | ... ${ARGUMENTS[0]} == username |
353 | 352 | ... ${ARGUMENTS[1]} == tenderUaID |
354 | 353 | ... ${ARGUMENTS[2]} == url |
355 | - ... ${ARGUMENTS[3]} == token | |
356 | 354 | [Arguments] @{ARGUMENTS} |
357 | 355 | log ${ARGUMENTS[0]} |
358 | 356 | log ${ARGUMENTS[1]} |
359 | 357 | log ${ARGUMENTS[2]} |
360 | 358 | ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
361 | 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 | 361 | ${contents} ${filename}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} |
363 | 362 | log ${contents} |
364 | 363 | log ${filename} | ... | ... |
Please
register
or
login
to post a comment