...
|
...
|
@@ -9,11 +9,11 @@ ${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}
|
16
|
|
- ${tenders}= get_internal_id ${USERS.users['${ARGUMENTS[0]}'].client.get_tenders} ${USERS.users['${ARGUMENTS[0]}'].creation_date}
|
|
16
|
+ ${tenders}= get_internal_id ${USERS.users['${ARGUMENTS[0]}'].client.get_tenders} ${USERS.users['${ARGUMENTS[0]}'].creation_date}
|
17
|
17
|
:FOR ${tender} IN @{tenders}
|
18
|
18
|
\ log ${tender}
|
19
|
19
|
\ ${internal_id}= Run Keyword And Return If '${tender.tenderID}' == '${ARGUMENTS[1]}' Get Variable Value ${tender.id}
|
...
|
...
|
@@ -25,13 +25,13 @@ ${question_id} 0 |
25
|
25
|
Підготувати клієнт для користувача
|
26
|
26
|
[Arguments] @{ARGUMENTS}
|
27
|
27
|
[Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо
|
28
|
|
- ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} ${api_version}
|
|
28
|
+ ${api_wrapper}= prepare_api_wrapper ${USERS.users['${ARGUMENTS[0]}'].api_key} ${API_HOST_URL} ${api_version}
|
29
|
29
|
${creation_date} = get_date
|
30
|
30
|
Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} creation_date ${creation_date}
|
31
|
31
|
Set To Dictionary ${USERS.users['${ARGUMENTS[0]}']} client ${api_wrapper}
|
32
|
32
|
Log Variables
|
33
|
33
|
|
34
|
|
-Підготувати дані для оголошення тендера
|
|
34
|
+Підготувати дані для оголошення тендера
|
35
|
35
|
${INITIAL_TENDER_DATA}= prepare_test_tender_data
|
36
|
36
|
[return] ${INITIAL_TENDER_DATA}
|
37
|
37
|
|
...
|
...
|
@@ -176,7 +176,7 @@ ${question_id} 0 |
176
|
176
|
${complaint}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} _create_tender_resource_item ${tender} ${ARGUMENTS[2]} complaints
|
177
|
177
|
Log object data ${complaint} complaint
|
178
|
178
|
|
179
|
|
-порівняти скаргу
|
|
179
|
+порівняти скаргу
|
180
|
180
|
[Documentation]
|
181
|
181
|
... ${ARGUMENTS[0]} == username
|
182
|
182
|
... ${ARGUMENTS[1]} == tender_uid
|
...
|
...
|
@@ -184,10 +184,10 @@ ${question_id} 0 |
184
|
184
|
[Arguments] @{ARGUMENTS}
|
185
|
185
|
${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
186
|
186
|
${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid}
|
187
|
|
- ${complaint}= Get Variable Value ${tender.data.complaints[0]}
|
|
187
|
+ ${complaint}= Get Variable Value ${tender.data.complaints[0]}
|
188
|
188
|
log ${complaint}
|
189
|
189
|
log ${ARGUMENTS[2]}
|
190
|
|
- #TODO: COMPARE
|
|
190
|
+ #TODO: COMPARE
|
191
|
191
|
#Dictionary Should Contain Sub Dictionary ${complaint} ${ARGUMENTS[2].data}
|
192
|
192
|
#:FOR ${element} IN ${ARGUMENTS[2].data}
|
193
|
193
|
#\ log ${element}
|
...
|
...
|
@@ -300,9 +300,9 @@ ${question_id} 0 |
300
|
300
|
[return] ${uploaded_file}
|
301
|
301
|
|
302
|
302
|
|
303
|
|
-
|
304
|
303
|
|
305
|
|
-Завантажити документ
|
|
304
|
+
|
|
305
|
+Завантажити документ
|
306
|
306
|
[Documentation]
|
307
|
307
|
... ${ARGUMENTS[0]} == username
|
308
|
308
|
... ${ARGUMENTS[1]} == filepath
|
...
|
...
|
@@ -317,7 +317,7 @@ ${question_id} 0 |
317
|
317
|
${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_document ${tender} ${ARGUMENTS[1]}
|
318
|
318
|
Log object data ${reply} reply
|
319
|
319
|
[return] ${reply}
|
320
|
|
-
|
|
320
|
+
|
321
|
321
|
Отримати пропозиції
|
322
|
322
|
[Documentation]
|
323
|
323
|
... ${ARGUMENTS[0]} == username
|
...
|
...
|
@@ -345,4 +345,4 @@ ${question_id} 0 |
345
|
345
|
${token}= Get Variable Value ${USERS.users['${ARGUMENTS[0]}'].bidresponces['resp'].access.token}
|
346
|
346
|
${contents} ${filename}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${token}
|
347
|
347
|
log ${filename}
|
348
|
|
- [return] ${contents} ${filename} |
|
|
\ No newline at end of file |
|
348
|
+ [return] ${contents} ${filename} |
...
|
...
|
|