Commit 0ac4193caedcccecbd2a24c0313d1424ff184f40

Authored by yboi
1 parent e8188420

тестування_для_chrome_etender

@@ -53,9 +53,11 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx @@ -53,9 +53,11 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx
53 ${enquiry_end_time}= Get From Dictionary ${tender_data.data.enquiryPeriod} endDate 53 ${enquiry_end_time}= Get From Dictionary ${tender_data.data.enquiryPeriod} endDate
54 ${enquiry_end_time}= convert_time_to_etender_format ${enquiry_end_time} 54 ${enquiry_end_time}= convert_time_to_etender_format ${enquiry_end_time}
55 Selenium2Library.Switch Browser ${ARGUMENTS[0]} 55 Selenium2Library.Switch Browser ${ARGUMENTS[0]}
56 - Wait Until Page Contains Мої закупівлі 100 56 + Wait Until Page Contains Мої закупівлі 100
  57 + Sleep 1
57 Click Element xpath=//a[contains(@class, 'ng-binding')][./text()='Мої закупівлі'] 58 Click Element xpath=//a[contains(@class, 'ng-binding')][./text()='Мої закупівлі']
58 Wait Until Page Contains Element xpath=//a[contains(@class, 'btn btn-info')] 59 Wait Until Page Contains Element xpath=//a[contains(@class, 'btn btn-info')]
  60 + Sleep 1
59 Click Element xpath=//a[contains(@class, 'btn btn-info')] 61 Click Element xpath=//a[contains(@class, 'btn btn-info')]
60 Wait Until Page Contains Element id=title 62 Wait Until Page Contains Element id=title
61 Input text id=title ${title} 63 Input text id=title ${title}
@@ -65,7 +67,7 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx @@ -65,7 +67,7 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx
65 Input text id=minimalStep ${step_rate} 67 Input text id=minimalStep ${step_rate}
66 Input text id=itemsDescription ${items_description} 68 Input text id=itemsDescription ${items_description}
67 Input text id=itemsQuantity ${quantity} 69 Input text id=itemsQuantity ${quantity}
68 - Wait Until Page Contains Element xpath=//select[@name="itemsUnit"]/option[@value='kilogram'] 100 70 + Wait Until Page Contains Element xpath=//select[@name="itemsUnit"]/option[@value='kilogram']
69 Click Element xpath=//select[@name="itemsUnit"]/option[@value='kilogram'] 71 Click Element xpath=//select[@name="itemsUnit"]/option[@value='kilogram']
70 Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='enqPEndDate'] ${enquiry_end_date} 72 Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='enqPEndDate'] ${enquiry_end_date}
71 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} 73 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}
@@ -73,21 +75,30 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx @@ -73,21 +75,30 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx
73 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} 75 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}
74 Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='endDate'] ${end_date} 76 Input text xpath=//div[contains(@class, 'form-group col-sm-8')]//input[@name='endDate'] ${end_date}
75 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} 77 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}
  78 + Sleep 2
76 Click Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#classification'] 79 Click Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#classification']
77 Wait Until Element Is Visible xpath=//div[contains(@role,'dialog')] 80 Wait Until Element Is Visible xpath=//div[contains(@role,'dialog')]
  81 + Sleep 1
78 Input text xpath=//div[contains(@class, 'modal-content')]//input[@ng-model='searchstring'] ${cpv} 82 Input text xpath=//div[contains(@class, 'modal-content')]//input[@ng-model='searchstring'] ${cpv}
  83 + Sleep 2
79 Wait Until Page Contains ${cpv} 84 Wait Until Page Contains ${cpv}
80 Click Element xpath=//td[contains(., '${cpv}')] 85 Click Element xpath=//td[contains(., '${cpv}')]
  86 + Sleep 1
81 Click Element xpath=//div[contains(@class, 'modal-content')]//button[@ng-click='choose()'] 87 Click Element xpath=//div[contains(@class, 'modal-content')]//button[@ng-click='choose()']
  88 + Sleep 1
82 Click Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'] 89 Click Element xpath=//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification']
83 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')] 90 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')]
  91 + Sleep 1
84 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc} 92 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc}
85 Wait Until Page Contains ${dkpp_id} 93 Wait Until Page Contains ${dkpp_id}
  94 + Sleep 1
86 Click Element xpath=//td[contains(., '${dkpp_id}')] 95 Click Element xpath=//td[contains(., '${dkpp_id}')]
87 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()'] 96 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
88 Run Keyword if '${mode}' == 'multi' Додати предмет items 97 Run Keyword if '${mode}' == 'multi' Додати предмет items
  98 + Sleep 1
89 Wait Until Page Contains Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit'] 99 Wait Until Page Contains Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit']
90 Click Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit'] 100 Click Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit']
  101 + Sleep 1
91 Wait Until Page Contains [ТЕСТУВАННЯ] 100 102 Wait Until Page Contains [ТЕСТУВАННЯ] 100
92 Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-scope ng-table')]//tr[1]//a 103 Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-scope ng-table')]//tr[1]//a
93 Sleep 5 104 Sleep 5
@@ -116,12 +127,14 @@ Set Multi Ids @@ -116,12 +127,14 @@ Set Multi Ids
116 ${dkpp_id3}= Get From Dictionary ${items[3].additionalClassifications[0]} id 127 ${dkpp_id3}= Get From Dictionary ${items[3].additionalClassifications[0]} id
117 128
118 Wait Until Page Contains Element xpath=.//*[@id='myform']/tender-form/div/button 100 129 Wait Until Page Contains Element xpath=.//*[@id='myform']/tender-form/div/button 100
  130 + Sleep 2
119 Click Element xpath=.//*[@id='myform']/tender-form/div/button 131 Click Element xpath=.//*[@id='myform']/tender-form/div/button
120 Sleep 2 132 Sleep 2
121 Click Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[2] 133 Click Element xpath=(//div[contains(@class, 'col-sm-2')]//input[@data-target='#addClassification'])[2]
122 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')] 134 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')]
123 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc1} 135 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc1}
124 Wait Until Page Contains ${dkpp_id1} 136 Wait Until Page Contains ${dkpp_id1}
  137 + Sleep 1
125 Click Element xpath=//td[contains(., '${dkpp_id1}')] 138 Click Element xpath=//td[contains(., '${dkpp_id1}')]
126 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()'] 139 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
127 Sleep 2 140 Sleep 2
@@ -131,6 +144,7 @@ Set Multi Ids @@ -131,6 +144,7 @@ Set Multi Ids
131 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')] 144 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')]
132 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc2} 145 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc2}
133 Wait Until Page Contains ${dkpp_id2} 146 Wait Until Page Contains ${dkpp_id2}
  147 + Sleep 1
134 Click Element xpath=//td[contains(., '${dkpp_id2}')] 148 Click Element xpath=//td[contains(., '${dkpp_id2}')]
135 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()'] 149 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
136 Sleep 2 150 Sleep 2
@@ -140,6 +154,7 @@ Set Multi Ids @@ -140,6 +154,7 @@ Set Multi Ids
140 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')] 154 Wait Until Element Is Visible xpath=//div[contains(@id,'addClassification')]
141 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc3} 155 Input text xpath=//div[contains(@class, 'modal fade ng-scope in')]//input[@ng-model='searchstring'] ${dkpp_desc3}
142 Wait Until Page Contains ${dkpp_id3} 156 Wait Until Page Contains ${dkpp_id3}
  157 + Sleep 1
143 Click Element xpath=//td[contains(., '${dkpp_id3}')] 158 Click Element xpath=//td[contains(., '${dkpp_id3}')]
144 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()'] 159 Click Element xpath=//div[contains(@class, 'modal fade ng-scope in')]//button[@ng-click='choose()']
145 160
@@ -17,8 +17,8 @@ users: @@ -17,8 +17,8 @@ users:
17 homepage: "http://uat.e-tender.biz/#/profile" 17 homepage: "http://uat.e-tender.biz/#/profile"
18 login: Misha2 18 login: Misha2
19 password: Password1 19 password: Password1
20 - browser: firefox  
21 - position: [0, 0] 20 + browser: chrome
  21 + position: [0, 1000]
22 size: [740, 550] 22 size: [740, 550]
23 E-tender_Provider1: 23 E-tender_Provider1:
24 broker: E-tender 24 broker: E-tender
Please register or login to post a comment