Showing
1 changed file
with
30 additions
and
30 deletions
1 | 1 | *** Settings *** |
2 | -Resource resource.robot | |
3 | 2 | Library op_robot_tests.tests_files.service_keywords |
4 | 3 | Library String |
5 | 4 | Library Collections |
... | ... | @@ -7,6 +6,9 @@ Library Selenium2Library |
7 | 6 | Library DateTime |
8 | 7 | Library DebugLibrary |
9 | 8 | |
9 | +Documentation | |
10 | +... This resource file contains keywords that are used directly by | |
11 | +... test suites or by brokers' keyword libraries (also known as drivers). | |
10 | 12 | |
11 | 13 | *** Keywords *** |
12 | 14 | TestSuiteSetup |
... | ... | @@ -27,8 +29,8 @@ Set Suite Variable With Default Value |
27 | 29 | |
28 | 30 | ${file_path}= Get Variable Value ${BROKERS_FILE} brokers.yaml |
29 | 31 | ${BROKERS}= load_initial_data_from ${file_path} |
30 | - log ${BROKERS} | |
31 | - Set Global Variable ${BROKERS} | |
32 | + Log ${BROKERS} | |
33 | + Set Suite Variable ${BROKERS} | |
32 | 34 | |
33 | 35 | ${file_path}= Get Variable Value ${USERS_FILE} users.yaml |
34 | 36 | ${USERS}= load_initial_data_from ${file_path} |
... | ... | @@ -39,19 +41,19 @@ Set Suite Variable With Default Value |
39 | 41 | Set Suite Variable With Default Value provider Tender_User |
40 | 42 | Set Suite Variable With Default Value provider1 Tender_User1 |
41 | 43 | Set Suite Variable With Default Value viewer Tender_Viewer |
42 | - ${active_users}= Create Dictionary tender_owner ${tender_owner} provider ${provider} provider1 ${provider1} viewer ${viewer} | |
44 | + ${active_users}= Create Dictionary tender_owner=${tender_owner} provider=${provider} provider1=${provider1} viewer=${viewer} | |
43 | 45 | |
44 | - ${users_list}= Get Dictionary Items ${USERS.users} | |
45 | - :FOR ${username} ${user_data} IN @{users_list} | |
46 | - \ log ${active_users} | |
47 | - \ log ${username} | |
46 | + ${users_list}= Get Dictionary Items ${USERS.users} | |
47 | + :FOR ${username} ${user_data} IN @{users_list} | |
48 | + \ Log ${active_users} | |
49 | + \ Log ${username} | |
48 | 50 | \ ${munch_dict}= munch_dict data=${True} |
49 | 51 | \ Log Many ${munch_dict} |
50 | - \ ${status}= Run Keyword And Return Status Dictionary Should Contain Value ${active_users} ${username} | |
52 | + \ ${status}= Run Keyword And Return Status Dictionary Should Contain Value ${active_users} ${username} | |
51 | 53 | \ ${keywords_file}= Get Broker Property By Username ${username} keywords_file |
52 | - \ Run Keyword If '${status}' == 'True' Завантажуємо бібліотеку з реалізацією для майданчика ${keywords_file} | |
53 | - \ Run Keyword If '${status}' == 'True' Викликати для учасника ${username} Підготувати клієнт для користувача | |
54 | - \ Run Keyword If '${status}' == 'True' Set To Dictionary ${USERS.users['${username}']} tender_data ${munch_dict} | |
54 | + \ Run Keyword If ${status} Завантажуємо бібліотеку з реалізацією для майданчика ${keywords_file} | |
55 | + \ Run Keyword If ${status} Викликати для учасника ${username} Підготувати клієнт для користувача | |
56 | + \ Run Keyword If ${status} Set To Dictionary ${USERS.users['${username}']} tender_data=${munch_dict} | |
55 | 57 | |
56 | 58 | |
57 | 59 | Get Broker Property |
... | ... | @@ -81,7 +83,7 @@ Get Broker Property By Username |
81 | 83 | @{QUESTIONS}= Create list |
82 | 84 | ${question}= test question data |
83 | 85 | ${question_lot}= test_lot_question_data ${question} |
84 | - Append to list ${QUESTIONS} ${question} ${question_lot} | |
86 | + Append to list ${QUESTIONS} ${question} ${question_lot} | |
85 | 87 | Set Global Variable @{QUESTIONS} |
86 | 88 | @{ANSWERS}= Create list |
87 | 89 | ${answer}= test_question_answer_data |
... | ... | @@ -90,7 +92,7 @@ Get Broker Property By Username |
90 | 92 | @{COMPLAINTS}= Create list |
91 | 93 | ${complaint}= test_complaint_data |
92 | 94 | ${complaint_lot}= test_lot_complaint_data ${complaint} |
93 | - Append to list ${COMPLAINTS} ${complaint} ${complaint_lot} | |
95 | + Append to list ${COMPLAINTS} ${complaint} ${complaint_lot} | |
94 | 96 | Set Global Variable @{COMPLAINTS} |
95 | 97 | @{REPLIES}= Create list |
96 | 98 | ${reply}= test_complaint_reply_data |
... | ... | @@ -197,22 +199,20 @@ Get Broker Property By Username |
197 | 199 | |
198 | 200 | Звірити поля предметів закупівлі багатопредметного тендера |
199 | 201 | [Arguments] ${username} ${tender_data} ${field} |
200 | - Дочекатись синхронізації з майданчиком ${username} | |
201 | 202 | @{items}= Get_From_Object ${tender_data.data} items |
202 | - ${len_of_items}= Get Length ${items} | |
203 | - :FOR ${index} IN RANGE ${len_of_items} | |
204 | - \ Log ${index} | |
205 | - \ Звірити поле тендера ${viewer} ${tender_data} items[${index}].${field} | |
203 | + ${len_of_items}= Get Length ${items} | |
204 | + :FOR ${index} IN RANGE ${len_of_items} | |
205 | + \ Log ${index} | |
206 | + \ Звірити поле тендера ${viewer} ${tender_data} items[${index}].${field} | |
206 | 207 | |
207 | 208 | |
208 | 209 | Звірити дату предметів закупівлі багатопредметного тендера |
209 | 210 | [Arguments] ${username} ${tender_data} ${field} |
210 | - Дочекатись синхронізації з майданчиком ${username} | |
211 | 211 | @{items}= Get_From_Object ${tender_data.data} items |
212 | - ${len_of_items}= Get Length ${items} | |
213 | - :FOR ${index} IN RANGE ${len_of_items} | |
214 | - \ Log ${index} | |
215 | - \ Звірити дату тендера ${viewer} ${tender_data} items[${index}].${field} | |
212 | + ${len_of_items}= Get Length ${items} | |
213 | + :FOR ${index} IN RANGE ${len_of_items} | |
214 | + \ Log ${index} | |
215 | + \ Звірити дату тендера ${viewer} ${tender_data} items[${index}].${field} | |
216 | 216 | |
217 | 217 | |
218 | 218 | Викликати для учасника |
... | ... | @@ -253,29 +253,29 @@ SwitchState |
253 | 253 | |
254 | 254 | Дочекатись дати |
255 | 255 | [Arguments] ${date} |
256 | - ${wait_timeout}= wait_to_date ${date} | |
257 | - Run Keyword If ${wait_timeout}>0 Sleep ${wait_timeout} | |
256 | + ${sleep}= wait_to_date ${date} | |
257 | + Run Keyword If ${sleep} > 0 Sleep ${sleep} | |
258 | 258 | |
259 | 259 | |
260 | 260 | Дочекатись дати початку прийому пропозицій |
261 | 261 | [Arguments] ${username} |
262 | - log ${username} | |
262 | + Log ${username} | |
263 | 263 | Дочекатись дати ${USERS.users['${username}'].tender_data.data.tenderPeriod.startDate} |
264 | 264 | |
265 | 265 | |
266 | 266 | Дочекатись дати закінчення прийому пропозицій |
267 | 267 | [Arguments] ${username} |
268 | - log ${username} | |
268 | + Log ${username} | |
269 | 269 | Дочекатись дати ${USERS.users['${username}'].tender_data.data.tenderPeriod.endDate} |
270 | 270 | |
271 | 271 | |
272 | 272 | Дочекатись дати початку аукціону |
273 | 273 | [Arguments] ${username} |
274 | - log ${username} | |
274 | + Log ${username} | |
275 | 275 | Дочекатись дати ${USERS.users['${username}'].tender_data.data.auctionPeriod.startDate} |
276 | 276 | |
277 | 277 | |
278 | 278 | Дочекатись дати закінчення аукціону |
279 | 279 | [Arguments] ${username} |
280 | - log ${username} | |
280 | + Log ${username} | |
281 | 281 | Дочекатись дати ${USERS.users['${username}'].tender_data.data.auctionPeriod.endDate} | ... | ... |
Please
register
or
login
to post a comment