...
|
...
|
@@ -15,15 +15,105 @@ ${locator.tenderPeriod.endDate} jquery=tender-procedure-info>div.row:contai |
15
|
15
|
${locator.enquiryPeriod.startDate} jquery=tender-procedure-info>div.row:contains("Початок періоду уточнень:")>:eq(1)>
|
16
|
16
|
${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contains("Завершення періоду уточнень:")>:eq(1)>
|
17
|
17
|
|
18
|
|
-
|
19
|
18
|
*** Keywords ***
|
20
|
19
|
Підготувати клієнт для користувача
|
21
|
|
- [Arguments] ${username}
|
|
20
|
+ [Arguments] @{ARGUMENTS}
|
22
|
21
|
[Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо
|
23
|
|
- Open Browser ${BROKERS['${USERS.users['${username}'].broker}'].url} ${USERS.users['${username}'].browser} alias=${username}
|
24
|
|
- Set Window Position @{USERS.users['${username}'].position}
|
25
|
|
- Set Window Size @{USERS.users['${username}'].size}
|
26
|
|
- Log Variables
|
|
22
|
+ ... ${ARGUMENTS[0]} == username
|
|
23
|
+ Open Browser ${BROKERS['${USERS.users['${ARGUMENTS[0]}'].broker}'].url} ${USERS.users['${ARGUMENTS[0]}'].browser} alias=${ARGUMENTS[0]}
|
|
24
|
+ Set Window Size @{USERS.users['${ARGUMENTS[0]}'].size}
|
|
25
|
+ Set Window Position @{USERS.users['${ARGUMENTS[0]}'].position}
|
|
26
|
+
|
|
27
|
+# login
|
|
28
|
+ Wait Until Page Contains Element name=siteLogin 100
|
|
29
|
+ Input text name=siteLogin ${BROKERS['${USERS.users['${username}'].broker}'].login}
|
|
30
|
+ Input text name=sitePass ${BROKERS['${USERS.users['${username}'].broker}'].password}
|
|
31
|
+ Click Button xpath=.//*[@id='table1']/tbody/tr/td/form/p[3]/input
|
|
32
|
+
|
|
33
|
+ Wait Until Page Contains Element jquery=a[href="/cabinet"]
|
|
34
|
+ Click Element jquery=a[href="/cabinet"]
|
|
35
|
+ Wait Until Page Contains Element name=email 100
|
|
36
|
+ Input text name=email mail
|
|
37
|
+ Sleep 1
|
|
38
|
+ Input text name=email ${USERS.users['${username}'].login}
|
|
39
|
+ Sleep 2
|
|
40
|
+ Input text name=psw ${USERS.users['${username}'].password}
|
|
41
|
+ Wait Until Page Contains Element xpath=//button[contains(@class, 'btn')][./text()='Вхід в кабінет'] 100
|
|
42
|
+ Click Element xpath=//button[contains(@class, 'btn')][./text()='Вхід в кабінет']
|
|
43
|
+
|
|
44
|
+Створити тендер
|
|
45
|
+ [Arguments] @{ARGUMENTS}
|
|
46
|
+ [Documentation]
|
|
47
|
+ ... ${ARGUMENTS[0]} == username
|
|
48
|
+ ... ${ARGUMENTS[1]} == tender_data
|
|
49
|
+
|
|
50
|
+ ${items}= Get From Dictionary ${ARGUMENTS[1].data} items
|
|
51
|
+ ${title}= Get From Dictionary ${ARGUMENTS[1].data} title
|
|
52
|
+ ${description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
|
53
|
+ ${budget}= Get From Dictionary ${ARGUMENTS[1].data.value} amount
|
|
54
|
+ ${step_rate}= Get From Dictionary ${ARGUMENTS[1].data.minimalStep} amount
|
|
55
|
+ ${items_description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
|
56
|
+ ${quantity}= Get From Dictionary ${items[0]} quantity
|
|
57
|
+ ${countryName}= Get From Dictionary ${ARGUMENTS[1].data.procuringEntity.address} countryName
|
|
58
|
+ ${delivery_end_date}= Get From Dictionary ${items[0].deliveryDate} endDate
|
|
59
|
+ ${delivery_end_date}= convert_date_to_slash_format ${delivery_end_date}
|
|
60
|
+ ${cpv}= Get From Dictionary ${items[0].classification} description_ua
|
|
61
|
+ ${cpv_id}= Get From Dictionary ${items[0].classification} id
|
|
62
|
+ ${cpv_id1}= String.Replace String ${cpv_id} - _
|
|
63
|
+ ${dkpp_desc}= Get From Dictionary ${items[0].additionalClassifications[0]} description
|
|
64
|
+ ${dkpp_id}= Get From Dictionary ${items[0].additionalClassifications[0]} id
|
|
65
|
+ ${enquiry_end_date}= Get From Dictionary ${ARGUMENTS[1].data.enquiryPeriod} endDate
|
|
66
|
+ ${enquiry_end_date}= convert_date_to_slash_format ${enquiry_end_date}
|
|
67
|
+ ${end_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} endDate
|
|
68
|
+ ${end_date}= convert_date_to_slash_format ${end_date}
|
|
69
|
+
|
|
70
|
+ Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
|
71
|
+ Wait Until Page Contains Element jquery=a[href="/tenders/new"] 100
|
|
72
|
+ Click Element jquery=a[href="/tenders/new"]
|
|
73
|
+ Wait Until Page Contains Element name=tender_title 100
|
|
74
|
+ Input text name=tender_title ${title}
|
|
75
|
+ Wait Until Page Contains Element name=tender_description 100
|
|
76
|
+ Input text name=tender_description ${description}
|
|
77
|
+ Wait Until Page Contains Element name=tender_value_amount 100
|
|
78
|
+ Input text name=tender_value_amount ${budget}
|
|
79
|
+ Wait Until Page Contains Element name=tender_minimalStep_amount 100
|
|
80
|
+ Input text name=tender_minimalStep_amount ${step_rate}
|
|
81
|
+ Wait Until Page Contains Element name=items[0][item_description] 100
|
|
82
|
+ Input text name=items[0][item_description] ${items_description}
|
|
83
|
+ Wait Until Page Contains Element name=items[0][item_quantity] 100
|
|
84
|
+ Input text name=items[0][item_quantity] ${quantity}
|
|
85
|
+ Wait Until Page Contains Element name=items[0][item_deliveryAddress_countryName] 100
|
|
86
|
+ Input text name=items[0][item_deliveryAddress_countryName] ${countryName}
|
|
87
|
+ Wait Until Page Contains Element name=items[0][item_deliveryDate_endDate] 100
|
|
88
|
+ Input text name=items[0][item_deliveryDate_endDate] ${delivery_end_date}
|
|
89
|
+ Wait Until Page Contains Element xpath=//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'] 100
|
|
90
|
+ Click Element xpath=//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником']
|
|
91
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
|
92
|
+ Input text id=search ${cpv}
|
|
93
|
+ Wait Until Page Contains ${cpv_id}
|
|
94
|
+ Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
|
95
|
+ Click Element xpath=.//*[@id='select']
|
|
96
|
+ Unselect Frame
|
|
97
|
+ Wait Until Page Contains Element xpath=//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'] 100
|
|
98
|
+ Click Element xpath=//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником']
|
|
99
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
|
100
|
+ Input text id=search ${dkpp_desc}
|
|
101
|
+ Wait Until Page Contains ${dkpp_id}
|
|
102
|
+ Click Element xpath=//a[contains(@id,'${dkpp_id}')]
|
|
103
|
+ Click Element xpath=.//*[@id='select']
|
|
104
|
+ Unselect Frame
|
|
105
|
+ Wait Until Page Contains Element name=tender_enquiryPeriod_endDate 100
|
|
106
|
+ Input text name=tender_enquiryPeriod_endDate ${enquiry_end_date}
|
|
107
|
+ Wait Until Page Contains Element name=tender_tenderPeriod_endDate 100
|
|
108
|
+ Input text name=tender_tenderPeriod_endDate ${end_date}
|
|
109
|
+ Wait Until Page Contains Element name=do 100
|
|
110
|
+ Click Element name=do
|
|
111
|
+ Wait Until Page Contains Element xpath=//a[contains(@class, 'button pubBtn')] 100
|
|
112
|
+ Click Element xpath=//a[contains(@class, 'button pubBtn')]
|
|
113
|
+ Wait Until Page Contains Тендер опубліковано 100
|
|
114
|
+ ${tender_UAid}= Get Text xpath=//*/section[6]/table/tbody/tr[2]/td[2]
|
|
115
|
+ ${Ids} Create List ${tender_UAid}
|
|
116
|
+ [return] ${Ids}
|
27
|
117
|
|
28
|
118
|
Пошук тендера по ідентифікатору
|
29
|
119
|
[Arguments] @{ARGUMENTS}
|
...
|
...
|
@@ -46,4 +136,154 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai |
46
|
136
|
Click Link jquery=a[href^="#/tenderDetailes"]
|
47
|
137
|
Wait Until Page Contains ${ARGUMENTS[1]} 10
|
48
|
138
|
sleep 1
|
49
|
|
- Capture Page Screenshot |
|
|
\ No newline at end of file |
|
139
|
+ Capture Page Screenshot
|
|
140
|
+
|
|
141
|
+Багатопредметний тендер
|
|
142
|
+ [Arguments] @{ARGUMENTS}
|
|
143
|
+ [Documentation]
|
|
144
|
+ ... ${ARGUMENTS[0]} == username
|
|
145
|
+ ... ${ARGUMENTS[1]} == tender_data
|
|
146
|
+ ${items}= Get From Dictionary ${ARGUMENTS[1].data} items
|
|
147
|
+ ${title}= Get From Dictionary ${ARGUMENTS[1].data} title
|
|
148
|
+ ${description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
|
149
|
+ ${budget}= Get From Dictionary ${ARGUMENTS[1].data.value} amount
|
|
150
|
+ ${step_rate}= Get From Dictionary ${ARGUMENTS[1].data.minimalStep} amount
|
|
151
|
+ ${items_description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
|
152
|
+ ${quantity}= Get From Dictionary ${items[0]} quantity
|
|
153
|
+ ${countryName}= Get From Dictionary ${ARGUMENTS[1].data.procuringEntity.address} countryName
|
|
154
|
+ ${delivery_end_date}= Get From Dictionary ${items[0].deliveryDate} endDate
|
|
155
|
+ ${delivery_end_date}= convert_date_to_slash_format ${delivery_end_date}
|
|
156
|
+ ${cpv}= Get From Dictionary ${items[0].classification} description_ua
|
|
157
|
+ ${cpv_id}= Get From Dictionary ${items[0].classification} id
|
|
158
|
+ ${cpv_id1}= String.Replace String ${cpv_id} - _
|
|
159
|
+ ${dkpp_desc}= Get From Dictionary ${items[0].additionalClassifications[0]} description
|
|
160
|
+ ${dkpp_desc1}= Get From Dictionary ${items[1].additionalClassifications[0]} description
|
|
161
|
+ ${dkpp_id11}= Get From Dictionary ${items[1].additionalClassifications[0]} id
|
|
162
|
+ ${dkpp_1id}= String.Replace String ${dkpp_id11} - _
|
|
163
|
+ ${dkpp_desc2}= Get From Dictionary ${items[2].additionalClassifications[0]} description
|
|
164
|
+ ${dkpp_id2}= Get From Dictionary ${items[2].additionalClassifications[0]} id
|
|
165
|
+ ${dkpp_id2_1}= String.Replace String ${dkpp_id2} - _
|
|
166
|
+ ${dkpp_desc3}= Get From Dictionary ${items[3].additionalClassifications[0]} description
|
|
167
|
+ ${dkpp_id3}= Get From Dictionary ${items[3].additionalClassifications[0]} id
|
|
168
|
+ ${dkpp_id3_1}= String.Replace String ${dkpp_id3} - _
|
|
169
|
+ ${dkpp_id}= Get From Dictionary ${items[0].additionalClassifications[0]} id
|
|
170
|
+ ${dkpp_id1}= String.Replace String ${dkpp_id} - _
|
|
171
|
+ ${enquiry_end_date}= Get From Dictionary ${ARGUMENTS[1].data.enquiryPeriod} endDate
|
|
172
|
+ ${enquiry_end_date}= convert_date_to_slash_format ${enquiry_end_date}
|
|
173
|
+ ${end_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} endDate
|
|
174
|
+ ${end_date}= convert_date_to_slash_format ${end_date}
|
|
175
|
+
|
|
176
|
+ Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
|
177
|
+ Wait Until Page Contains Element jquery=a[href="/tenders/new"] 100
|
|
178
|
+ Click Element jquery=a[href="/tenders/new"]
|
|
179
|
+ Wait Until Page Contains Element name=tender_title 100
|
|
180
|
+ Input text name=tender_title ${title}
|
|
181
|
+ Wait Until Page Contains Element name=tender_description 100
|
|
182
|
+ Input text name=tender_description ${description}
|
|
183
|
+ Wait Until Page Contains Element name=tender_value_amount 100
|
|
184
|
+ Input text name=tender_value_amount ${budget}
|
|
185
|
+ Wait Until Page Contains Element name=tender_minimalStep_amount 100
|
|
186
|
+ Input text name=tender_minimalStep_amount ${step_rate}
|
|
187
|
+ Wait Until Page Contains Element name=items[0][item_description] 100
|
|
188
|
+ Input text name=items[0][item_description] ${items_description}
|
|
189
|
+ Wait Until Page Contains Element name=items[0][item_quantity] 100
|
|
190
|
+ Input text name=items[0][item_quantity] ${quantity}
|
|
191
|
+ Wait Until Page Contains Element name=items[0][item_deliveryAddress_countryName] 100
|
|
192
|
+ Input text name=items[0][item_deliveryAddress_countryName] ${countryName}
|
|
193
|
+ Wait Until Page Contains Element name=items[0][item_deliveryDate_endDate] 100
|
|
194
|
+ Input text name=items[0][item_deliveryDate_endDate] ${delivery_end_date}
|
|
195
|
+ Wait Until Page Contains Element xpath=//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'] 100
|
|
196
|
+ Click Element xpath=//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником']
|
|
197
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
|
198
|
+ Input text id=search ${cpv}
|
|
199
|
+ Wait Until Page Contains ${cpv_id}
|
|
200
|
+ Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
|
201
|
+ Click Element xpath=.//*[@id='select']
|
|
202
|
+ Unselect Frame
|
|
203
|
+ Wait Until Page Contains Element xpath=//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'] 100
|
|
204
|
+ Click Element xpath=//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником']
|
|
205
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
|
206
|
+ Input text id=search ${dkpp_desc}
|
|
207
|
+ Wait Until Page Contains ${dkpp_id}
|
|
208
|
+ Click Element xpath=//a[contains(@id,'${dkpp_id1}')]
|
|
209
|
+ Click Element xpath=.//*[@id='select']
|
|
210
|
+ Unselect Frame
|
|
211
|
+ Wait Until Page Contains Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
|
212
|
+ Click Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
|
213
|
+ Wait Until Page Contains Element name=items[1][item_description] 100
|
|
214
|
+ Input text name=items[1][item_description] ${description}
|
|
215
|
+ Wait Until Page Contains Element name=items[1][item_quantity] 100
|
|
216
|
+ Input text name=items[1][item_quantity] ${quantity}
|
|
217
|
+ Wait Until Page Contains Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[2] 100
|
|
218
|
+ Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[2]
|
|
219
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
|
220
|
+ Input text id=search ${cpv}
|
|
221
|
+ Wait Until Page Contains ${cpv_id}
|
|
222
|
+ Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
|
223
|
+ Click Element xpath=.//*[@id='select']
|
|
224
|
+ Unselect Frame
|
|
225
|
+ Wait Until Page Contains Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[2] 100
|
|
226
|
+ Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[2]
|
|
227
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
|
228
|
+ Input text id=search ${dkpp_desc1}
|
|
229
|
+ Wait Until Page Contains ${dkpp_id11}
|
|
230
|
+ Click Element xpath=//a[contains(@id,'${dkpp_1id}')]
|
|
231
|
+ Click Element xpath=.//*[@id='select']
|
|
232
|
+ Unselect Frame
|
|
233
|
+ Wait Until Page Contains Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
|
234
|
+ Click Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
|
235
|
+ Wait Until Page Contains Element name=items[2][item_description] 100
|
|
236
|
+ Input text name=items[2][item_description] ${description}
|
|
237
|
+ Wait Until Page Contains Element name=items[2][item_quantity] 100
|
|
238
|
+ Input text name=items[2][item_quantity] ${quantity}
|
|
239
|
+ Wait Until Page Contains Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[3] 100
|
|
240
|
+ Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[3]
|
|
241
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
|
242
|
+ Input text id=search ${cpv}
|
|
243
|
+ Wait Until Page Contains ${cpv_id}
|
|
244
|
+ Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
|
245
|
+ Click Element xpath=.//*[@id='select']
|
|
246
|
+ Unselect Frame
|
|
247
|
+ Wait Until Page Contains Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[3] 100
|
|
248
|
+ Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[3]
|
|
249
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
|
250
|
+ Input text id=search ${dkpp_desc2}
|
|
251
|
+ Wait Until Page Contains ${dkpp_id2}
|
|
252
|
+ Click Element xpath=//a[contains(@id,'${dkpp_id2_1}')]
|
|
253
|
+ Click Element xpath=.//*[@id='select']
|
|
254
|
+ Unselect Frame
|
|
255
|
+ Wait Until Page Contains Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
|
256
|
+ Click Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
|
257
|
+ Wait Until Page Contains Element name=items[3][item_description] 100
|
|
258
|
+ Input text name=items[3][item_description] ${description}
|
|
259
|
+ Wait Until Page Contains Element name=items[3][item_quantity] 100
|
|
260
|
+ Input text name=items[3][item_quantity] ${quantity}
|
|
261
|
+ Wait Until Page Contains Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[4] 100
|
|
262
|
+ Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[4]
|
|
263
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
|
264
|
+ Input text id=search ${cpv}
|
|
265
|
+ Wait Until Page Contains ${cpv_id}
|
|
266
|
+ Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
|
267
|
+ Click Element xpath=.//*[@id='select']
|
|
268
|
+ Unselect Frame
|
|
269
|
+ Wait Until Page Contains Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[4] 100
|
|
270
|
+ Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[4]
|
|
271
|
+ Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
|
272
|
+ Input text id=search ${dkpp_desc3}
|
|
273
|
+ Wait Until Page Contains ${dkpp_id3}
|
|
274
|
+ Click Element xpath=//a[contains(@id,'${dkpp_id3_1}')]
|
|
275
|
+ Click Element xpath=.//*[@id='select']
|
|
276
|
+ Unselect Frame
|
|
277
|
+ Wait Until Page Contains Element name=tender_enquiryPeriod_endDate 100
|
|
278
|
+ Input text name=tender_enquiryPeriod_endDate ${enquiry_end_date}
|
|
279
|
+ Wait Until Page Contains Element name=tender_tenderPeriod_endDate 100
|
|
280
|
+ Input text name=tender_tenderPeriod_endDate ${end_date}
|
|
281
|
+ Wait Until Page Contains Element name=do 100
|
|
282
|
+ Click Element name=do
|
|
283
|
+ Wait Until Page Contains Element xpath=//a[contains(@class, 'button pubBtn')] 100
|
|
284
|
+ Click Element xpath=//a[contains(@class, 'button pubBtn')]
|
|
285
|
+ Wait Until Page Contains Тендер опубліковано 100
|
|
286
|
+ ${tender_UAid}= Get Text xpath=//*/section[6]/table/tbody/tr[2]/td[2]
|
|
287
|
+ ${id}= Get Text xpath=//*/section[6]/table/tbody/tr[1]/td[2]
|
|
288
|
+ ${Ids} Create List ${tender_UAid} ${id}
|
|
289
|
+ [return] ${Ids} |
...
|
...
|
|