|
...
|
...
|
@@ -3,7 +3,6 @@ Library Selenium2Screenshots |
|
3
|
3
|
Library String
|
|
4
|
4
|
Library DateTime
|
|
5
|
5
|
|
|
6
|
|
-
|
|
7
|
6
|
*** Variables ***
|
|
8
|
7
|
${locator.tenderId} jquery=h3
|
|
9
|
8
|
${locator.title} jquery=tender-subject-info>div.row:contains("Назва закупівлі:")>:eq(1)>
|
|
...
|
...
|
@@ -114,7 +113,7 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai |
|
114
|
113
|
get tender UAid
|
|
115
|
114
|
${tender_UAid}= Get Text xpath=//div[contains(@class, "panel-heading")]
|
|
116
|
115
|
${tender_UAid}= Get Substring ${tender_UAid} 7 27
|
|
117
|
|
- [return] ${tender_UAid}
|
|
|
116
|
+
|
|
118
|
117
|
|
|
119
|
118
|
Oтримати internal id по UAid
|
|
120
|
119
|
[Arguments] @{ARGUMENTS}
|
|
...
|
...
|
@@ -332,3 +331,115 @@ Oтримати internal id по UAid |
|
332
|
331
|
Click Element xpath=//div[div/pre[1]]/div[1]
|
|
333
|
332
|
Input text xpath=//div[textarea]/textarea ${answer}
|
|
334
|
333
|
Click Element xpath=//div[textarea]/span/button[1]
|
|
|
334
|
+
|
|
|
335
|
+Багатопредметний тендер
|
|
|
336
|
+ [Arguments] @{ARGUMENTS}
|
|
|
337
|
+ [Documentation]
|
|
|
338
|
+ ... ${ARGUMENTS[0]} == username
|
|
|
339
|
+ ... ${ARGUMENTS[1]} == tender_data
|
|
|
340
|
+
|
|
|
341
|
+ ${items}= Get From Dictionary ${ARGUMENTS[1].data} items
|
|
|
342
|
+ ${title}= Get From Dictionary ${ARGUMENTS[1].data} title
|
|
|
343
|
+ ${description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
|
|
344
|
+ ${budget}= Get From Dictionary ${ARGUMENTS[1].data.value} amount
|
|
|
345
|
+ ${step_rate}= Get From Dictionary ${ARGUMENTS[1].data.minimalStep} amount
|
|
|
346
|
+ ${items_description}= Get From Dictionary ${ARGUMENTS[1].data} description
|
|
|
347
|
+ ${quantity}= Get From Dictionary ${items[0]} quantity
|
|
|
348
|
+ ${cpv}= Get From Dictionary ${items[0].classification} id
|
|
|
349
|
+ ${dkpp_desc0}= Get From Dictionary ${items[0].additionalClassifications[0]} description
|
|
|
350
|
+ ${dkpp_id0}= Get From Dictionary ${items[0].additionalClassifications[0]} id
|
|
|
351
|
+ ${dkpp_desc1}= Get From Dictionary ${items[1].additionalClassifications[0]} description
|
|
|
352
|
+ ${dkpp_id1}= Get From Dictionary ${items[1].additionalClassifications[0]} id
|
|
|
353
|
+ ${dkpp_desc2}= Get From Dictionary ${items[2].additionalClassifications[0]} description
|
|
|
354
|
+ ${dkpp_id2}= Get From Dictionary ${items[2].additionalClassifications[0]} id
|
|
|
355
|
+ ${dkpp_desc3}= Get From Dictionary ${items[3].additionalClassifications[0]} description
|
|
|
356
|
+ ${dkpp_id3}= Get From Dictionary ${items[3].additionalClassifications[0]} id
|
|
|
357
|
+ ${unit}= Get From Dictionary ${items[0].unit} name
|
|
|
358
|
+ ${start_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} startDate
|
|
|
359
|
+ ${start_date}= convert_date_to_etender_format ${start_date}
|
|
|
360
|
+ ${start_time}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} startDate
|
|
|
361
|
+ ${start_time}= convert_time_to_etender_format ${start_time}
|
|
|
362
|
+ ${end_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} endDate
|
|
|
363
|
+ ${end_date}= convert_date_to_etender_format ${end_date}
|
|
|
364
|
+ ${end_time}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} endDate
|
|
|
365
|
+ ${end_time}= convert_time_to_etender_format ${end_time}
|
|
|
366
|
+ ${enquiry_end_date}= Get From Dictionary ${ARGUMENTS[1].data.enquiryPeriod} endDate
|
|
|
367
|
+ ${enquiry_end_date}= convert_date_to_etender_format ${enquiry_end_date}
|
|
|
368
|
+ ${enquiry_end_time}= Get From Dictionary ${ARGUMENTS[1].data.enquiryPeriod} endDate
|
|
|
369
|
+ ${enquiry_end_time}= convert_time_to_etender_format ${enquiry_end_time}
|
|
|
370
|
+
|
|
|
371
|
+ Selenium2Library.Switch Browser ${ARGUMENTS[0]}
|
|
|
372
|
+ Maximize Browser Window
|
|
|
373
|
+ Wait Until Page Contains Мої закупівлі 100
|
|
|
374
|
+ Click Element xpath=//a[contains(@class, 'ng-binding')][./text()='Мої закупівлі']
|
|
|
375
|
+ Wait Until Page Contains Element xpath=//a[contains(@class, 'btn btn-info')]
|
|
|
376
|
+ Click Element xpath=//a[contains(@class, 'btn btn-info')]
|
|
|
377
|
+ Wait Until Page Contains Element id=title
|
|
|
378
|
+ Input text id=title ${title}
|
|
|
379
|
+ Input text id=description ${description}
|
|
|
380
|
+ Input text id=value ${budget}
|
|
|
381
|
+ Click Element xpath=//div[contains(@class, 'form-group col-sm-6')]//input[@type='checkbox']
|
|
|
382
|
+ Input text id=minimalStep ${step_rate}
|
|
|
383
|
+ Input text id=itemsDescription ${items_description}
|
|
|
384
|
+ Input text id=itemsQuantity ${quantity}
|
|
|
385
|
+ Click Element xpath=//select[@name="itemsUnit"]/option[@value='kilogram']
|
|
|
386
|
+ Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='enqPEndDate'] ${enquiry_end_date}
|
|
|
387
|
+ Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//div[contains(@class, 'col-sm-2')]//input[@ng-model='data.enquiryPeriod.endDate'] ${enquiry_end_time}
|
|
|
388
|
+
|
|
|
389
|
+ Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='startDate'] ${start_date}
|
|
|
390
|
+ Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//div[contains(@class, 'col-sm-2')]//input[@ng-model='data.tenderPeriod.startDate'] ${start_time}
|
|
|
391
|
+ Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='endDate'] ${end_date}
|
|
|
392
|
+ Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//div[contains(@class, 'col-sm-2')]//input[@ng-model='data.tenderPeriod.endDate'] ${end_time}
|
|
|
393
|
+
|
|
|
394
|
+ Click Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#classification']
|
|
|
395
|
+ Wait Until Page Contains Оберіть класифікатор CPV 100
|
|
|
396
|
+ Input text xpath=//div[contains(@class, 'modal-content')]//input[@ng-model='searchstring'] ${cpv}
|
|
|
397
|
+ Wait Until Page Contains Картонки 100
|
|
|
398
|
+ Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-table-rowselected ng-scope ng-table')]//tr[1]//td[1]
|
|
|
399
|
+ Wait Until Page Contains 44617100-9 Картонки 100
|
|
|
400
|
+ Click Element xpath=//div[contains(@class, 'modal-content')]//button[@ng-click='choose()']
|
|
|
401
|
+
|
|
|
402
|
+ Wait Until Page Contains Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification']
|
|
|
403
|
+ Click Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification']
|
|
|
404
|
+ Wait Until Page Contains Класифікатор ДКПП 100
|
|
|
405
|
+ Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc0}
|
|
|
406
|
+ Wait Until Page Contains ${dkpp_id0} 100
|
|
|
407
|
+ Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-table-rowselected ng-scope ng-table')]//tr[2]//td[1]
|
|
|
408
|
+ Wait Until Page Contains 17.29.12-00.00 "Блоки, плити та пластини фільтрувальні, з паперової маси" 100
|
|
|
409
|
+ Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
|
|
|
410
|
+
|
|
|
411
|
+ Wait Until Page Contains Element xpath=.//*[@id='myform']/tender-form/div/button
|
|
|
412
|
+ Click Element xpath=.//*[@id='myform']/tender-form/div/button
|
|
|
413
|
+ Wait Until Page Contains Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[2]
|
|
|
414
|
+ Click Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[2]
|
|
|
415
|
+ Wait Until Page Contains Класифікатор ДКПП 100
|
|
|
416
|
+ Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc1}
|
|
|
417
|
+ Wait Until Page Contains ${dkpp_id1} 100
|
|
|
418
|
+ Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-table-rowselected ng-scope ng-table')]//tr[3]//td[1]
|
|
|
419
|
+ Wait Until Page Contains 17.21.99-00.00 "Роботи субпідрядні як частина виробництва гофрованих паперу й картону, паперової та картонної тари" 100
|
|
|
420
|
+ Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
|
|
|
421
|
+
|
|
|
422
|
+ Wait Until Page Contains Element xpath=.//*[@id='myform']/tender-form/div/button
|
|
|
423
|
+ Click Element xpath=.//*[@id='myform']/tender-form/div/button
|
|
|
424
|
+ Wait Until Page Contains Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[3]
|
|
|
425
|
+ Click Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[3]
|
|
|
426
|
+ Wait Until Page Contains Класифікатор ДКПП 100
|
|
|
427
|
+ Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc2}
|
|
|
428
|
+ Wait Until Page Contains ${dkpp_id2} 100
|
|
|
429
|
+ Click Element xpath=.//*[@id='addClassification']/div/div/div[2]/table/tbody/tr/td[2]
|
|
|
430
|
+ Wait Until Page Contains 17.22.12-40.00 "Вата; вироби з вати, інші" 100
|
|
|
431
|
+ Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
|
|
|
432
|
+
|
|
|
433
|
+ Wait Until Page Contains Element xpath=.//*[@id='myform']/tender-form/div/button
|
|
|
434
|
+ Click Element xpath=.//*[@id='myform']/tender-form/div/button
|
|
|
435
|
+ Wait Until Page Contains Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[4]
|
|
|
436
|
+ Click Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[4]
|
|
|
437
|
+ Wait Until Page Contains Класифікатор ДКПП 100
|
|
|
438
|
+ Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc3}
|
|
|
439
|
+ Wait Until Page Contains ${dkpp_id3} 100
|
|
|
440
|
+ Click Element xpath=.//*[@id='addClassification']/div/div/div[2]/table/tbody/tr/td[2]
|
|
|
441
|
+ Wait Until Page Contains 17.22.12-50.00 "Одяг і речі до одягу з паперової маси, паперу, целюлозної вати чи полотна з целюлозного волокна (крім носових хусточок, наголовних уборів)" 100
|
|
|
442
|
+ Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
|
|
|
443
|
+
|
|
|
444
|
+ Wait Until Page Contains Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit']
|
|
|
445
|
+ Click Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit'] |
...
|
...
|
|