Commit 4edbd4123c642260f866b53788659cbe9db7115a
1 parent
0e8bb250
added adding and removing items keywords
Showing
3 changed files
with
35 additions
and
7 deletions
... | ... | @@ -90,6 +90,38 @@ Library op_robot_tests.tests_files.brokers.openprocurement_client_helper |
90 | 90 | ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
91 | 91 | Set Global Variable ${TENDER_DATA} |
92 | 92 | |
93 | +відняти предмети закупівлі | |
94 | + [Arguments] @{ARGUMENTS} | |
95 | + [Documentation] | |
96 | + ... ${ARGUMENTS[0]} == username | |
97 | + ... ${ARGUMENTS[1]} == id | |
98 | + ... ${ARGUMENTS[2]} == number | |
99 | + отримати тендер ${ARGUMENTS[0]} ${ARGUMENTS[1]} | |
100 | + ${items}= get from object ${TENDER_DATA.data} items | |
101 | + log ${items} | |
102 | + :FOR ${INDEX} IN RANGE ${ARGUMENTS[2]} | |
103 | + \ Remove From List ${items} 0 | |
104 | + log ${items} | |
105 | + Set_To_Object ${TENDER_DATA.data} items ${items} | |
106 | + ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} | |
107 | + ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} | |
108 | + | |
109 | +додати предмети закупівлі | |
110 | + [Arguments] @{ARGUMENTS} | |
111 | + [Documentation] | |
112 | + ... ${ARGUMENTS[0]} == username | |
113 | + ... ${ARGUMENTS[1]} == id | |
114 | + ... ${ARGUMENTS[2]} == number | |
115 | + отримати тендер ${ARGUMENTS[0]} ${ARGUMENTS[1]} | |
116 | + ${items}= get from object ${TENDER_DATA.data} items | |
117 | + ${item}= get variable value ${items[1]} | |
118 | + log ${items} | |
119 | + :FOR ${INDEX} IN RANGE ${ARGUMENTS[2]} | |
120 | + \ Append To List ${items} ${item} | |
121 | + log ${items} | |
122 | + Set_To_Object ${TENDER_DATA.data} items ${items} | |
123 | + ${TENDER_DATA}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_tender ${TENDER_DATA} | |
124 | + ${TENDER_DATA}= set_access_key ${TENDER_DATA} ${USERS.users['${ARGUMENTS[0]}'].access_token} | |
93 | 125 | |
94 | 126 | Задати питання |
95 | 127 | [Documentation] |
... | ... | @@ -178,6 +210,4 @@ Library op_robot_tests.tests_files.brokers.openprocurement_client_helper |
178 | 210 | ${tender}= set_access_key ${tender} ${USERS.users['${ARGUMENTS[0]}'].access_token} |
179 | 211 | ${award_activeted_response}= Call Method ${USERS.users['${ARGUMENTS[0]}'].client} patch_award ${tender} ${ARGUMENTS[2]} |
180 | 212 | Log object data ${award_activeted_response} award_activeted_response |
181 | - [return] ${award_activeted_response} | |
182 | - | |
183 | -Підписати договір | |
\ No newline at end of file | ||
213 | + [return] ${award_activeted_response} | |
\ No newline at end of file | ... | ... |
... | ... | @@ -43,10 +43,8 @@ TestCaseSetup |
43 | 43 | |
44 | 44 | ${INITIAL_TENDER_DATA}= prepare_test_tender_data |
45 | 45 | Set Global Variable ${INITIAL_TENDER_DATA} |
46 | - | |
47 | 46 | Log ${INITIAL_TENDER_DATA} |
48 | - | |
49 | -Завантажуємо бібліотеку з реалізацією ${keywords_file} площадки | |
47 | + Завантажуємо бібліотеку з реалізацією ${keywords_file} площадки | |
50 | 48 | Import Resource ${CURDIR}/brokers/${keywords_file}.robot |
51 | 49 | |
52 | 50 | ... | ... |
... | ... | @@ -34,7 +34,7 @@ ${provider} Tender User |
34 | 34 | отримати останні зміни в тендері |
35 | 35 | |
36 | 36 | Можливість відхилити скаргу на умови |
37 | - [Tags] ${USERS.users['${USERS.tender_owner}'].broker}: Можливість відхилити скаргу на умови | |
37 | + [Tags] ${USERS.users['${USERS.tender_owner}'].broker}: Можливість відхилити скаргу на умови | |
38 | 38 | Set To Dictionary ${COMPLAINTS[0].data} status declined |
39 | 39 | Викликати для учасника ${USERS.tender_owner} Обробити скаргу ${TENDER_DATA.data.id} 0 ${COMPLAINTS[0]} |
40 | 40 | log many ${COMPLAINTS[0]} | ... | ... |
Please
register
or
login
to post a comment