Commit 09c7e5abf1066dbce17dbb00f51b979150d81a08
1 parent
847b2c8f
added keywords - get document, get bids
Showing
1 changed file
with
48 additions
and
14 deletions
... | ... | @@ -149,13 +149,13 @@ ${question_id} 0 |
149 | 149 | Set_To_Object ${TENDER_DATA.data} items ${items} |
150 | 150 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
151 | 151 | ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} |
152 | - | |
152 | + | |
153 | 153 | |
154 | 154 | Задати питання |
155 | 155 | [Documentation] |
156 | 156 | ... ${ARGUMENTS[0]} == username |
157 | 157 | ... ${ARGUMENTS[1]} == tender_uid |
158 | - ... ${ARGUMENTS[2]} == bid | |
158 | + ... ${ARGUMENTS[2]} == question | |
159 | 159 | [Arguments] @{ARGUMENTS} |
160 | 160 | log many @{ARGUMENTS} |
161 | 161 | ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} |
... | ... | @@ -163,7 +163,7 @@ ${question_id} 0 |
163 | 163 | log ${USERS.users['${ARGUMENTS[0]}']} |
164 | 164 | ${biddingresponce}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_question ${tender} ${ARGUMENTS[2]} |
165 | 165 | [return] ${biddingresponce} |
166 | - | |
166 | + | |
167 | 167 | Відповісти на питання |
168 | 168 | [Documentation] |
169 | 169 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -192,7 +192,7 @@ ${question_id} 0 |
192 | 192 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} |
193 | 193 | ${complaint}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} _create_tender_resource_item ${tender} ${ARGUMENTS[2]} complaints |
194 | 194 | Log object data ${complaint} complaint |
195 | - | |
195 | + | |
196 | 196 | порівняти скаргу |
197 | 197 | [Documentation] |
198 | 198 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -209,7 +209,7 @@ ${question_id} 0 |
209 | 209 | #:FOR ${element} IN ${ARGUMENTS[2].data} |
210 | 210 | #\ log ${element} |
211 | 211 | #\ Dictionary Should Contain Value ${complaint} ${element} |
212 | - | |
212 | + | |
213 | 213 | Обробити скаргу |
214 | 214 | [Documentation] |
215 | 215 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -238,7 +238,7 @@ ${question_id} 0 |
238 | 238 | log ${tender}отримати |
239 | 239 | ${biddingresponce}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} create_bid ${tender} ${ARGUMENTS[2]} |
240 | 240 | [return] ${biddingresponce} |
241 | - | |
241 | + | |
242 | 242 | Змінити цінову пропозицію |
243 | 243 | [Documentation] |
244 | 244 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -264,7 +264,7 @@ ${question_id} 0 |
264 | 264 | ${changed_bid}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} delete_bid ${tender} ${ARGUMENTS[2]} |
265 | 265 | Log ${changed_bid} |
266 | 266 | [return] ${changed_bid} |
267 | - | |
267 | + | |
268 | 268 | Прийняти цінову пропозицію |
269 | 269 | [Documentation] |
270 | 270 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -286,14 +286,20 @@ ${question_id} 0 |
286 | 286 | [Arguments] @{ARGUMENTS} |
287 | 287 | log ${ARGUMENTS[0]} |
288 | 288 | 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} | |
289 | 296 | ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${TENDER_DATA.data.id} |
290 | 297 | ${tender}= set_access_key ${tender} ${ARGUMENTS[1]} |
291 | - ${filename}= Set Variable file.txt | |
292 | - Set_To_Object ${TENDER_DATA.data} documents.title ${filename} | |
293 | - ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_bid_document ${filename} ${tender} ${ARGUMENTS[2]} | |
294 | - Log object data ${reply} reply | |
295 | - [return] ${reply} | |
298 | + ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_bid_document ${created_file_path} ${tender} ${ARGUMENTS[2]} | |
296 | 299 | |
300 | + Log object data ${reply} reply | |
301 | + [return] ${reply} ${filecontent} | |
302 | + | |
297 | 303 | Змінити документ в ставці |
298 | 304 | [Documentation] |
299 | 305 | ... ${ARGUMENTS[0]} == username |
... | ... | @@ -310,7 +316,7 @@ ${question_id} 0 |
310 | 316 | ${filename}= Set Variable newfile.txt |
311 | 317 | Set_To_Object ${TENDER_DATA.data} documents.title ${filename} |
312 | 318 | ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} update_bid_document ${filename} ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} |
313 | - Log object data ${reply} replyотримати | |
319 | + Log object data ${reply} reply | |
314 | 320 | |
315 | 321 | Завантажити документ |
316 | 322 | [Documentation] |
... | ... | @@ -327,4 +333,32 @@ ${question_id} 0 |
327 | 333 | Set_To_Object ${TENDER_DATA.data} documents.title ${filename} |
328 | 334 | ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} upload_tender_document ${filename} ${tender} |
329 | 335 | Log object data ${reply} reply |
330 | - | |
\ No newline at end of file | ||
336 | + | |
337 | +Отримати пропозиції | |
338 | + [Documentation] | |
339 | + ... ${ARGUMENTS[0]} == username | |
340 | + ... ${ARGUMENTS[1]} == tender_uid | |
341 | + ... ${ARGUMENTS[2]} == bid_id | |
342 | + ... ${ARGUMENTS[3]} == token | |
343 | + [Arguments] @{ARGUMENTS} | |
344 | + ${internalid}= отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | |
345 | + ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${internalid} | |
346 | + ${bids}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_bid ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} | |
347 | + Log ${bids} | |
348 | + [return] ${bids} | |
349 | + | |
350 | +отримати документ | |
351 | + [Documentation] | |
352 | + ... ${ARGUMENTS[0]} == username | |
353 | + ... ${ARGUMENTS[1]} == tenderUaID | |
354 | + ... ${ARGUMENTS[2]} == url | |
355 | + ... ${ARGUMENTS[3]} == token | |
356 | + [Arguments] @{ARGUMENTS} | |
357 | + log ${ARGUMENTS[0]} | |
358 | + log ${ARGUMENTS[1]} | |
359 | + log ${ARGUMENTS[2]} | |
360 | + ${tenderID}= openprocurement_client.отримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]} | |
361 | + ${tender}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_tender ${tenderID} | |
362 | + ${reply}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} get_file ${tender} ${ARGUMENTS[2]} ${ARGUMENTS[3]} | |
363 | + log ${reply} | |
364 | + [return] ${reply} | |
\ No newline at end of file | ... | ... |
Please
register
or
login
to post a comment