...
|
...
|
@@ -4,18 +4,23 @@ Library String |
4
|
4
|
Library DateTime
|
5
|
5
|
|
6
|
6
|
*** Variables ***
|
7
|
|
-${file_path} local_path_to_file("TestDocument.docx")
|
8
|
7
|
${locator.tenderId} xpath=//td[./text()='TenderID']/following-sibling::td[1]
|
9
|
8
|
${locator.title} xpath=//td[./text()='Загальна назва закупівлі']/following-sibling::td[1]
|
10
|
9
|
${locator.description} xpath=//td[./text()='Предмет закупівлі']/following-sibling::td[1]
|
11
|
10
|
${locator.value.amount} xpath=//td[./text()='Максимальний бюджет']/following-sibling::td[1]
|
12
|
|
-${locator.minimalStep.amount} xpath=//td[./text()='Крок зменшення ціни']/following-sibling::td[1]
|
|
11
|
+${locator.minimalStep.amount} xpath=//td[./text()='Мінімальний крок зменшення ціни']/following-sibling::td[1]
|
13
|
12
|
${locator.enquiryPeriod.endDate} xpath=//td[./text()='Завершення періоду обговорення']/following-sibling::td[1]
|
14
|
13
|
${locator.tenderPeriod.endDate} xpath=//td[./text()='Завершення періоду прийому пропозицій']/following-sibling::td[1]
|
15
|
14
|
${locator.items[0].deliveryAddress.countryName} xpath=//td[@class='nameField'][./text()='Адреса поставки']/following-sibling::td[1]
|
16
|
|
-${locator.items[0].deliveryDate} xpath=//td[./text()='Кінцева дата поставки']/following-sibling::td[1]
|
17
|
|
-${locator.items[0].classification.scheme} xpath=//td[@class = 'nameField'][./text()='Клас CPV']
|
|
15
|
+${locator.items[0].deliveryDate.endDate} xpath=//td[./text()='Кінцева дата поставки']/following-sibling::td[1]
|
|
16
|
+${locator.items[0].classification.scheme} xpath=//td[@class = 'nameField'][./text()='Клас CPV']
|
|
17
|
+${locator.items[0].classification.id} xpath=//td[./text()='Клас CPV']/following-sibling::td[1]/span[1]
|
|
18
|
+${locator.items[0].classification.description} xpath=//td[./text()='Клас CPV']/following-sibling::td[1]/span[2]
|
18
|
19
|
${locator.items[0].additionalClassifications[0].scheme} xpath=//td[@class = 'nameField'][./text()='Клас ДКПП']
|
|
20
|
+${locator.items[0].additionalClassifications[0].id} xpath=//td[./text()='Клас ДКПП']/following-sibling::td[1]/span[1]
|
|
21
|
+${locator.items[0].additionalClassifications[0].description} xpath=//td[./text()='Клас ДКПП']/following-sibling::td[1]/span[2]
|
|
22
|
+${locator.items[0].quantity} xpath=//td[./text()='Кількість']/following-sibling::td[1]/span[1]
|
|
23
|
+${locator.items[0].unit.code} xpath=//td[./text()='Кількість']/following-sibling::td[1]/span[2]
|
19
|
24
|
${locator.questions[0].title} xpath=//div[@class = 'question relative']//div[@class = 'title']
|
20
|
25
|
${locator.questions[0].description} xpath = //div[@class='text']
|
21
|
26
|
${locator.questions[0].date} xpath = //div[@class='date']
|
...
|
...
|
@@ -37,7 +42,6 @@ ${locator.questions[0].answer} xpath=//div[@class = 'answer relative']//di |
37
|
42
|
Login
|
38
|
43
|
[Arguments] @{ARGUMENTS}
|
39
|
44
|
Wait Until Page Contains Element name=email 10
|
40
|
|
- Input text name=email mail
|
41
|
45
|
Sleep 1
|
42
|
46
|
Input text name=email ${USERS.users['${username}'].login}
|
43
|
47
|
Sleep 2
|
...
|
...
|
@@ -65,30 +69,34 @@ Pre Login |
65
|
69
|
${description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
66
|
70
|
${budget}= Get From Dictionary ${ARGUMENTS[1].data.value} amount
|
67
|
71
|
${step_rate}= Get From Dictionary ${ARGUMENTS[1].data.minimalStep} amount
|
|
72
|
+
|
68
|
73
|
${items_description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
69
|
74
|
${quantity}= Get From Dictionary ${items[0]} quantity
|
70
|
75
|
${countryName}= Get From Dictionary ${ARGUMENTS[1].data.procuringEntity.address} countryName
|
71
|
76
|
${delivery_end_date}= Get From Dictionary ${items[0].deliveryDate} endDate
|
72
|
77
|
${delivery_end_date}= convert_date_to_slash_format ${delivery_end_date}
|
73
|
78
|
${cpv}= Convert To String Картонки
|
74
|
|
- ${cpv_id}= Get From Dictionary ${items[0].classification} id
|
75
|
|
- ${cpv_id1}= Replace String ${cpv_id} - _
|
|
79
|
+ ${cpv_id}= Get From Dictionary ${items[0].classification} id
|
|
80
|
+ ${cpv_id1}= Replace String ${cpv_id} - _
|
76
|
81
|
${dkpp_desc}= Get From Dictionary ${items[0].additionalClassifications[0]} description
|
77
|
|
- ${dkpp_id}= Get From Dictionary ${items[0].additionalClassifications[0]} id
|
78
|
|
- ${dkpp_id1}= Replace String ${dkpp_id} - _
|
|
82
|
+ ${dkpp_id}= Get From Dictionary ${items[0].additionalClassifications[0]} id
|
|
83
|
+ ${dkpp_id1}= Replace String ${dkpp_id} - _
|
|
84
|
+
|
79
|
85
|
${enquiry_end_date}= Get From Dictionary ${ARGUMENTS[1].data.enquiryPeriod} endDate
|
80
|
86
|
${enquiry_end_date}= convert_date_to_slash_format ${enquiry_end_date}
|
81
|
87
|
${end_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} endDate
|
82
|
88
|
${end_date}= convert_date_to_slash_format ${end_date}
|
83
|
89
|
|
84
|
90
|
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
85
|
|
- Wait Until Page Contains Element jquery=a[href="/tenders/new"] 100
|
|
91
|
+ Wait Until Page Contains Element jquery=a[href="/tenders/new"] 30
|
86
|
92
|
Click Element jquery=a[href="/tenders/new"]
|
87
|
|
- Wait Until Page Contains Element name=tender_title 100
|
|
93
|
+ Wait Until Page Contains Element name=tender_title 30
|
88
|
94
|
Input text name=tender_title ${title}
|
89
|
95
|
Input text name=tender_description ${description}
|
90
|
96
|
Input text name=tender_value_amount ${budget}
|
91
|
97
|
Input text name=tender_minimalStep_amount ${step_rate}
|
|
98
|
+
|
|
99
|
+# Додати специфікацю початок
|
92
|
100
|
Input text name=items[0][item_description] ${items_description}
|
93
|
101
|
Input text name=items[0][item_quantity] ${quantity}
|
94
|
102
|
Input text name=items[0][item_deliveryAddress_countryName] ${countryName}
|
...
|
...
|
@@ -106,15 +114,20 @@ Pre Login |
106
|
114
|
Wait Until Page Contains ${dkpp_id}
|
107
|
115
|
Click Element xpath=//a[contains(@id,'${dkpp_id1}')]
|
108
|
116
|
Click Element xpath=.//*[@id='select']
|
|
117
|
+# Додати специфікацю кінець
|
|
118
|
+
|
109
|
119
|
Unselect Frame
|
|
120
|
+ Input text name=plan_date ${enquiry_end_date}
|
110
|
121
|
Input text name=tender_enquiryPeriod_endDate ${enquiry_end_date}
|
111
|
122
|
Input text name=tender_tenderPeriod_endDate ${end_date}
|
112
|
|
- Run Keyword if '${mode}' == 'multi' Додати предмет items
|
113
|
|
- Wait Until Page Contains Element name=do 100
|
114
|
|
- Click Element name=do
|
115
|
|
- Wait Until Page Contains Element xpath=//a[contains(@class, 'button pubBtn')] 100
|
116
|
|
- Click Element xpath=//a[contains(@class, 'button pubBtn')]
|
117
|
|
- Wait Until Page Contains Тендер опубліковано 100
|
|
123
|
+
|
|
124
|
+ Додати предмет ${items[0]} 0
|
|
125
|
+ Run Keyword if '${mode}' == 'multi' Додати багато предметів items
|
|
126
|
+ Unselect Frame
|
|
127
|
+
|
|
128
|
+ Click Element xpath= //button[@value='publicate']
|
|
129
|
+ Wait Until Page Contains Тендер опубліковано 30
|
|
130
|
+
|
118
|
131
|
${tender_UAid}= Get Text xpath=//*/section[6]/table/tbody/tr[2]/td[2]
|
119
|
132
|
${Ids}= Convert To String ${tender_UAid}
|
120
|
133
|
Run keyword if '${mode}' == 'multi' Set Multi Ids ${tender_UAid}
|
...
|
...
|
@@ -131,73 +144,84 @@ Set Multi Ids |
131
|
144
|
[Arguments] @{ARGUMENTS}
|
132
|
145
|
[Documentation]
|
133
|
146
|
... ${ARGUMENTS[0]} == items
|
134
|
|
- ${dkpp_desc1}= Get From Dictionary ${items[1].additionalClassifications[0]} description
|
135
|
|
- ${dkpp_id11}= Get From Dictionary ${items[1].additionalClassifications[0]} id
|
|
147
|
+ ... ${ARGUMENTS[1]} == ${INDEX}
|
|
148
|
+ ${dkpp_desc1}= Get From Dictionary ${ARGUMENTS[0].additionalClassifications[0]} description
|
|
149
|
+ ${dkpp_id11}= Get From Dictionary ${ARGUMENTS[0].additionalClassifications[0]} id
|
136
|
150
|
${dkpp_1id}= Replace String ${dkpp_id11} - _
|
137
|
|
- ${dkpp_desc2}= Get From Dictionary ${items[2].additionalClassifications[0]} description
|
138
|
|
- ${dkpp_id2}= Get From Dictionary ${items[2].additionalClassifications[0]} id
|
139
|
|
- ${dkpp_id2_1}= Replace String ${dkpp_id2} - _
|
140
|
|
- ${dkpp_desc3}= Get From Dictionary ${items[3].additionalClassifications[0]} description
|
141
|
|
- ${dkpp_id3}= Get From Dictionary ${items[3].additionalClassifications[0]} id
|
142
|
|
- ${dkpp_id3_1}= Replace String ${dkpp_id3} - _
|
143
|
151
|
|
144
|
152
|
Wait Until Page Contains Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
145
|
153
|
Click Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
146
|
|
- Wait Until Page Contains Element name=items[1][item_description] 100
|
147
|
|
- Input text name=items[1][item_description] ${description}
|
148
|
|
- Input text name=items[1][item_quantity] ${quantity}
|
149
|
|
- Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[2]
|
|
154
|
+ ${index} = Convert To Integer ${ARGUMENTS[1]}
|
|
155
|
+ ${index} = Convert To Integer ${index + 1}
|
|
156
|
+ Wait Until Page Contains Element name=items[${index}][item_description] 30
|
|
157
|
+ Input text name=items[${index}][item_description] ${description}
|
|
158
|
+ Input text name=items[${index}][item_quantity] ${quantity}
|
|
159
|
+
|
|
160
|
+ Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[${index} + 1]
|
150
|
161
|
Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
151
|
162
|
Input text id=search ${cpv}
|
152
|
163
|
Wait Until Page Contains ${cpv_id}
|
153
|
164
|
Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
154
|
165
|
Click Element xpath=.//*[@id='select']
|
155
|
166
|
Unselect Frame
|
156
|
|
- Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[2]
|
|
167
|
+ Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[${index} + 1]
|
157
|
168
|
Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
158
|
169
|
Input text id=search ${dkpp_desc1}
|
159
|
170
|
Wait Until Page Contains ${dkpp_id11}
|
160
|
171
|
Click Element xpath=//a[contains(@id,'${dkpp_1id}')]
|
161
|
172
|
Click Element xpath=.//*[@id='select']
|
162
|
173
|
Unselect Frame
|
163
|
|
- Click Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
164
|
|
- Wait Until Page Contains Element name=items[2][item_description] 100
|
165
|
|
- Input text name=items[2][item_description] ${description}
|
166
|
|
- Input text name=items[2][item_quantity] ${quantity}
|
167
|
|
- Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[3]
|
168
|
|
- Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
169
|
|
- Input text id=search ${cpv}
|
170
|
|
- Wait Until Page Contains ${cpv_id}
|
171
|
|
- Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
172
|
|
- Click Element xpath=.//*[@id='select']
|
173
|
|
- Unselect Frame
|
174
|
|
- Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[3]
|
175
|
|
- Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
176
|
|
- Input text id=search ${dkpp_desc2}
|
177
|
|
- Wait Until Page Contains ${dkpp_id2}
|
178
|
|
- Click Element xpath=//a[contains(@id,'${dkpp_id2_1}')]
|
179
|
|
- Click Element xpath=.//*[@id='select']
|
180
|
|
- Unselect Frame
|
181
|
|
- Click Element xpath=//a[contains(@class, 'addMultiItem')][./text()='Додати предмет закупівлі']
|
182
|
|
- Wait Until Page Contains Element name=items[3][item_description] 100
|
183
|
|
- Input text name=items[3][item_description] ${description}
|
184
|
|
- Input text name=items[3][item_quantity] ${quantity}
|
185
|
|
- Click Element xpath=(//a[contains(@data-class, 'cpv')][./text()='Визначити за довідником'])[4]
|
186
|
|
- Select Frame xpath=//iframe[contains(@src,'/js/classifications/cpv/uk.htm?relation=true')]
|
187
|
|
- Input text id=search ${cpv}
|
188
|
|
- Wait Until Page Contains ${cpv_id}
|
189
|
|
- Click Element xpath=//a[contains(@id,'${cpv_id1}')]
|
190
|
|
- Click Element xpath=.//*[@id='select']
|
191
|
|
- Unselect Frame
|
192
|
|
- Click Element xpath=(//a[contains(@data-class, 'dkpp')][./text()='Визначити за довідником'])[4]
|
193
|
|
- Select Frame xpath=//iframe[contains(@src,'/js/classifications/dkpp/uk.htm?relation=true')]
|
194
|
|
- Input text id=search ${dkpp_desc3}
|
195
|
|
- Wait Until Page Contains ${dkpp_id3}
|
196
|
|
- Click Element xpath=//a[contains(@id,'${dkpp_id3_1}')]
|
197
|
|
- Click Element xpath=.//*[@id='select']
|
198
|
|
- Unselect Frame
|
199
|
|
- Input text name=tender_enquiryPeriod_endDate ${enquiry_end_date}
|
200
|
|
- Input text name=tender_tenderPeriod_endDate ${end_date}
|
|
174
|
+ Capture Page Screenshot
|
|
175
|
+
|
|
176
|
+Додати багато предметів
|
|
177
|
+ [Arguments] @{ARGUMENTS}
|
|
178
|
+ [Documentation]
|
|
179
|
+ ... ${ARGUMENTS[0]} == items
|
|
180
|
+ ${Items_length}= Get Length ${items}
|
|
181
|
+ : FOR ${INDEX} IN RANGE 1 ${Items_length}
|
|
182
|
+ \ Додати предмет ${items[${INDEX}]} ${INDEX}
|
|
183
|
+
|
|
184
|
+додати предмети закупівлі
|
|
185
|
+ [Arguments] @{ARGUMENTS}
|
|
186
|
+ [Documentation]
|
|
187
|
+ ... ${ARGUMENTS[0]} = username
|
|
188
|
+ ... ${ARGUMENTS[1]} = ${TENDER_UAID}
|
|
189
|
+ ... ${ARGUMENTS[2]} = 3
|
|
190
|
+ ${tender_data}= prepare_test_tender_data ${BROKERS['${USERS.users['${tender_owner}'].broker}'].period_interval} multi
|
|
191
|
+
|
|
192
|
+ ${items}= Get From Dictionary ${tender_data.data} items
|
|
193
|
+ ${description}= Get From Dictionary ${tender_data.data} description
|
|
194
|
+ ${quantity}= Get From Dictionary ${items[0]} quantity
|
|
195
|
+ ${cpv}= Convert To String Картонки
|
|
196
|
+ ${cpv_id}= Get From Dictionary ${items[0].classification} id
|
|
197
|
+ ${cpv_id1}= Replace String ${cpv_id} - _
|
|
198
|
+ ${dkpp_desc}= Get From Dictionary ${items[0].additionalClassifications[0]} description
|
|
199
|
+ ${dkpp_id}= Get From Dictionary ${items[0].additionalClassifications[0]} id
|
|
200
|
+ ${dkpp_id1}= Replace String ${dkpp_id} - _
|
|
201
|
+
|
|
202
|
+ Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
|
203
|
+ Run keyword if '${TEST NAME}' == 'Можливість додати позицію закупівлі в тендер' додати позицію
|
|
204
|
+ Run keyword if '${TEST NAME}' != 'Можливість додати позицію закупівлі в тендер' видалити позиції
|
|
205
|
+
|
|
206
|
+додати позицію
|
|
207
|
+ netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
|
208
|
+ Wait Until Page Contains Element xpath=//a[./text()='Редагувати'] 30
|
|
209
|
+ Click Element xpath=//a[./text()='Редагувати']
|
|
210
|
+ Додати багато предметів ${ARGUMENTS[2]}
|
|
211
|
+ Wait Until Page Contains Element xpath=//button[./text()='Зберегти'] 30
|
|
212
|
+ Click Element xpath=//button[./text()='Зберегти']
|
|
213
|
+
|
|
214
|
+видалити позиції
|
|
215
|
+ netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
|
216
|
+ Wait Until Page Contains Element xpath=//a[./text()='Редагувати'] 30
|
|
217
|
+ Click Element xpath=//a[./text()='Редагувати']
|
|
218
|
+ : FOR ${INDEX} IN RANGE 1 ${ARGUMENTS[2]}-1
|
|
219
|
+ \ sleep 5
|
|
220
|
+ \ Click Element xpath=//a[@class='deleteMultiItem'][last()]
|
|
221
|
+ \ sleep 5
|
|
222
|
+ \ Click Element xpath=//a[@class='jBtn green']
|
|
223
|
+ Wait Until Page Contains Element xpath=//button[./text()='Зберегти'] 30
|
|
224
|
+ Click Element xpath=//button[./text()='Зберегти']
|
201
|
225
|
|
202
|
226
|
Пошук тендера по ідентифікатору
|
203
|
227
|
[Arguments] @{ARGUMENTS}
|
...
|
...
|
@@ -226,10 +250,10 @@ Set Multi Ids |
226
|
250
|
${title}= Get From Dictionary ${ARGUMENTS[2].data} title
|
227
|
251
|
${description}= Get From Dictionary ${ARGUMENTS[2].data} description
|
228
|
252
|
|
229
|
|
-
|
230
|
253
|
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
231
|
254
|
netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
232
|
|
-
|
|
255
|
+ sleep 1
|
|
256
|
+ Execute Javascript window.scroll(2500,2500)
|
233
|
257
|
Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20
|
234
|
258
|
Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']]
|
235
|
259
|
Wait Until Page Contains Element name=title 20
|
...
|
...
|
@@ -249,8 +273,9 @@ Set Multi Ids |
249
|
273
|
|
250
|
274
|
${answer}= Get From Dictionary ${ARGUMENTS[3].data} answer
|
251
|
275
|
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
252
|
|
- netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
253
|
276
|
|
|
277
|
+ netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
|
278
|
+ Execute Javascript window.scroll(1500,1500)
|
254
|
279
|
Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20
|
255
|
280
|
Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']]
|
256
|
281
|
Wait Until Page Contains Element xpath=//textarea[@name='answer'] 20
|
...
|
...
|
@@ -271,6 +296,7 @@ Set Multi Ids |
271
|
296
|
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
272
|
297
|
netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
273
|
298
|
sleep 1
|
|
299
|
+ Execute Javascript window.scroll(1500,1500)
|
274
|
300
|
Click Element xpath=//a[@class='reverse openCPart'][span[text()='Скарги']]
|
275
|
301
|
Wait Until Page Contains Element name=title 20
|
276
|
302
|
Input text name=title ${complaint}
|
...
|
...
|
@@ -291,12 +317,11 @@ Set Multi Ids |
291
|
317
|
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
292
|
318
|
netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
293
|
319
|
sleep 1
|
|
320
|
+ Execute Javascript window.scroll(1500,1500)
|
294
|
321
|
Click Element xpath=//a[@class='reverse openCPart'][span[text()='Скарги']]
|
295
|
322
|
Wait Until Page Contains ${complaint} 30
|
296
|
323
|
Capture Page Screenshot
|
297
|
324
|
|
298
|
|
-
|
299
|
|
-
|
300
|
325
|
Внести зміни в тендер
|
301
|
326
|
# Тест написано для уже існуючого тендеру, що знаходиться у чернетках користувача
|
302
|
327
|
[Arguments] @{ARGUMENTS}
|
...
|
...
|
@@ -323,7 +348,7 @@ Set Multi Ids |
323
|
348
|
[Arguments] @{ARGUMENTS}
|
324
|
349
|
[Documentation]
|
325
|
350
|
... ${ARGUMENTS[0]} = username
|
326
|
|
- ... ${ARGUMENTS[1]} = description
|
|
351
|
+ ... ${ARGUMENTS[1]} = tenderUaId
|
327
|
352
|
|
328
|
353
|
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
329
|
354
|
netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
|
...
|
...
|
@@ -340,13 +365,13 @@ Set Multi Ids |
340
|
365
|
|
341
|
366
|
отримати тест із поля і показати на сторінці
|
342
|
367
|
[Arguments] ${fieldname}
|
343
|
|
- sleep 5
|
|
368
|
+ sleep 1
|
344
|
369
|
${return_value}= Get Text ${locator.${fieldname}}
|
345
|
370
|
[return] ${return_value}
|
346
|
371
|
|
347
|
372
|
отримати інформацію про title
|
348
|
373
|
${title}= отримати тест із поля і показати на сторінці title
|
349
|
|
- [return] ${title}
|
|
374
|
+ [return] ${title.split('.')[0]}
|
350
|
375
|
|
351
|
376
|
отримати інформацію про description
|
352
|
377
|
${description}= отримати тест із поля і показати на сторінці description
|
...
|
...
|
@@ -368,10 +393,12 @@ Set Multi Ids |
368
|
393
|
|
369
|
394
|
отримати інформацію про enquiryPeriod.endDate
|
370
|
395
|
${enquiryPeriodEndDate}= отримати тест із поля і показати на сторінці enquiryPeriod.endDate
|
|
396
|
+ ${enquiryPeriodEndDate}= subtract_from_time ${enquiryPeriodEndDate} 6 5
|
371
|
397
|
[return] ${enquiryPeriodEndDate}
|
372
|
398
|
|
373
|
399
|
отримати інформацію про tenderPeriod.endDate
|
374
|
400
|
${tenderPeriodEndDate}= отримати тест із поля і показати на сторінці tenderPeriod.endDate
|
|
401
|
+ ${tenderPeriodEndDate}= subtract_from_time ${tenderPeriodEndDate} 11 0
|
375
|
402
|
[return] ${tenderPeriodEndDate}
|
376
|
403
|
|
377
|
404
|
отримати інформацію про items[0].deliveryAddress.countryName
|
...
|
...
|
@@ -401,6 +428,7 @@ Set Multi Ids |
401
|
428
|
|
402
|
429
|
отримати інформацію про questions[0].date
|
403
|
430
|
${questionsDate}= отримати тест із поля і показати на сторінці questions[0].date
|
|
431
|
+ log ${questionsDate}
|
404
|
432
|
[return] ${questionsDate}
|
405
|
433
|
|
406
|
434
|
отримати інформацію про questions[0].answer
|
...
|
...
|
@@ -410,3 +438,66 @@ Set Multi Ids |
410
|
438
|
Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']]
|
411
|
439
|
${questionsAnswer}= отримати тест із поля і показати на сторінці questions[0].answer
|
412
|
440
|
[return] ${questionsAnswer}
|
|
441
|
+
|
|
442
|
+отримати інформацію про items[0].deliveryDate.endDate
|
|
443
|
+ ${deliveryDateEndDate}= отримати тест із поля і показати на сторінці items[0].deliveryDate.endDate
|
|
444
|
+ ${deliveryDateEndDate}= subtract_from_time ${deliveryDateEndDate} 15 0
|
|
445
|
+ [return] ${deliveryDateEndDate}
|
|
446
|
+
|
|
447
|
+отримати інформацію про items[0].classification.id
|
|
448
|
+ ${classificationId}= отримати тест із поля і показати на сторінці items[0].classification.id
|
|
449
|
+ [return] ${classificationId}
|
|
450
|
+
|
|
451
|
+отримати інформацію про items[0].classification.description
|
|
452
|
+ ${classificationDescription}= отримати тест із поля і показати на сторінці items[0].classification.description
|
|
453
|
+ ${classificationDescription}= Run keyword if '${classificationDescription}' == 'Картонки' Convert To String Cartons
|
|
454
|
+ [return] ${classificationDescription}
|
|
455
|
+
|
|
456
|
+отримати інформацію про items[0].additionalClassifications[0].id
|
|
457
|
+ ${additionalClassificationsId}= отримати тест із поля і показати на сторінці items[0].additionalClassifications[0].id
|
|
458
|
+ [return] ${additionalClassificationsId}
|
|
459
|
+
|
|
460
|
+отримати інформацію про items[0].additionalClassifications[0].description
|
|
461
|
+ ${additionalClassificationsDescription}= отримати тест із поля і показати на сторінці items[0].additionalClassifications[0].description
|
|
462
|
+ ${additionalClassificationsDescription}= Convert To Lowercase ${additionalClassificationsDescription}
|
|
463
|
+ [return] ${additionalClassificationsDescription}
|
|
464
|
+
|
|
465
|
+отримати інформацію про items[0].quantity
|
|
466
|
+ ${itemsQuantity}= отримати тест із поля і показати на сторінці items[0].quantity
|
|
467
|
+ ${itemsQuantity}= Convert To Integer ${itemsQuantity}
|
|
468
|
+ [return] ${itemsQuantity}
|
|
469
|
+
|
|
470
|
+отримати інформацію про items[0].unit.code
|
|
471
|
+ ${unitCode}= отримати тест із поля і показати на сторінці items[0].unit.code
|
|
472
|
+ ${unitCode}= Run keyword if '${unitCode}'== 'кг' Convert To String KGM
|
|
473
|
+ [return] ${unitCode}
|
|
474
|
+
|
|
475
|
+отримати інформацію про procuringEntity.name
|
|
476
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
477
|
+
|
|
478
|
+отримати інформацію про enquiryPeriod.startDate
|
|
479
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
480
|
+
|
|
481
|
+отримати інформацію про tenderPeriod.startDate
|
|
482
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
483
|
+
|
|
484
|
+отримати інформацію про items[0].deliveryLocation.longitude
|
|
485
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
486
|
+
|
|
487
|
+отримати інформацію про items[0].deliveryLocation.latitude
|
|
488
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
489
|
+
|
|
490
|
+отримати інформацію про items[0].deliveryAddress.postalCode
|
|
491
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
492
|
+
|
|
493
|
+отримати інформацію про items[0].deliveryAddress.locality
|
|
494
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
495
|
+
|
|
496
|
+отримати інформацію про items[0].deliveryAddress.streetAddress
|
|
497
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
498
|
+
|
|
499
|
+отримати інформацію про items[0].deliveryAddress.region
|
|
500
|
+ Log | Viewer can't see this information on Netcast console=yes
|
|
501
|
+
|
|
502
|
+отримати інформацію про items[0].unit.name
|
|
503
|
+ Log | Viewer can't see this information on Netcast console=yes |
...
|
...
|
|