Commit 6a191acae21322595890127aca984303c8fbe781

Authored by biviktorqc
2 parents d2dc92a2 1bde8c3b

resulution fixes

@@ -5,6 +5,7 @@ Library DateTime @@ -5,6 +5,7 @@ Library DateTime
5 5
6 *** Variables *** 6 *** Variables ***
7 ${locator.tenderId} jquery=h3 7 ${locator.tenderId} jquery=h3
  8 +${file_path} local_path_to_file("TestDocument.docx")
8 9
9 *** Keywords *** 10 *** Keywords ***
10 Підготувати клієнт для користувача 11 Підготувати клієнт для користувача
@@ -109,6 +110,12 @@ Set Multi Ids @@ -109,6 +110,12 @@ Set Multi Ids
109 ${id}= Get Text xpath=//*/section[6]/table/tbody/tr[1]/td[2] 110 ${id}= Get Text xpath=//*/section[6]/table/tbody/tr[1]/td[2]
110 ${Ids}= Create List ${tender_UAid} ${id} 111 ${Ids}= Create List ${tender_UAid} ${id}
111 112
  113 +Get Rough Copy Tender Id
  114 + [Arguments] @{ARGUMENTS}
  115 + ${tender_id}= Get Text xpath=//*/section[6]/table/tbody/tr[2]/td[2]
  116 + ${tender_UA_ID}= Convert To String ${tender_UAid}
  117 + [return] ${tender_UA_ID}
  118 +
112 Додати предмет 119 Додати предмет
113 [Arguments] @{ARGUMENTS} 120 [Arguments] @{ARGUMENTS}
114 [Documentation] 121 [Documentation]
@@ -189,7 +196,6 @@ Set Multi Ids @@ -189,7 +196,6 @@ Set Multi Ids
189 Switch browser ${ARGUMENTS[0]} 196 Switch browser ${ARGUMENTS[0]}
190 Go to ${BROKERS['${USERS.users['${username}'].broker}'].url} 197 Go to ${BROKERS['${USERS.users['${username}'].broker}'].url}
191 Wait Until Page Contains Держзакупівлі.онлайн 10 198 Wait Until Page Contains Держзакупівлі.онлайн 10
192 -# sleep 1  
193 Click Element xpath=//a[text()='Закупівлі'] 199 Click Element xpath=//a[text()='Закупівлі']
194 sleep 5 200 sleep 5
195 Click Element xpath=//select[@name='filter[object]']/option[@value='tenderID'] 201 Click Element xpath=//select[@name='filter[object]']/option[@value='tenderID']
@@ -214,7 +220,7 @@ Set Multi Ids @@ -214,7 +220,7 @@ Set Multi Ids
214 Click Element xpath=//a[@class='reverse tenderLink'] 220 Click Element xpath=//a[@class='reverse tenderLink']
215 Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20 221 Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20
216 Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 222 Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']]
217 - Wait Until Page Contains Element name=title 223 + Wait Until Page Contains Element name=title 20
218 Input text name=title ${title} 224 Input text name=title ${title}
219 Input text xpath=//textarea[@name='description'] ${description} 225 Input text xpath=//textarea[@name='description'] ${description}
220 Click Element xpath=//div[contains(@class, 'buttons')]//button[@type='submit'] 226 Click Element xpath=//div[contains(@class, 'buttons')]//button[@type='submit']
@@ -230,14 +236,55 @@ Set Multi Ids @@ -230,14 +236,55 @@ Set Multi Ids
230 ... ${ARGUMENTS[3]} = answer_data 236 ... ${ARGUMENTS[3]} = answer_data
231 237
232 ${answer}= Get From Dictionary ${ARGUMENTS[3].data} answer 238 ${answer}= Get From Dictionary ${ARGUMENTS[3].data} answer
  239 + Selenium2Library.Switch Browser ${ARGUMENTS[0]}
  240 + netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
  241 +
  242 + Click Element xpath=//a[@class='reverse tenderLink']
  243 + Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20
  244 + Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']]
  245 + Wait Until Page Contains Element xpath=//textarea[@name='answer'] 20
  246 + Input text xpath=//textarea[@name='answer'] ${answer}
  247 + Click Element xpath=//div[1]/div[3]/form/div/table/tbody/tr/td[2]/button
  248 + Wait Until Page Contains ${answer} 30
  249 + Capture Page Screenshot
  250 +
  251 +Подати скаргу
  252 + [Arguments] @{ARGUMENTS}
  253 + [Documentation]
  254 + ... ${ARGUMENTS[0]} = username
  255 + ... ${ARGUMENTS[1]} = tenderUaId
  256 +
  257 + ${complaint}= Get From Dictionary ${ARGUMENTS[2].data} title
  258 + ${description}= Get From Dictionary ${ARGUMENTS[2].data} description
  259 +
233 Selenium2Library.Switch Browser ${ARGUMENTS[0]} 260 Selenium2Library.Switch Browser ${ARGUMENTS[0]}
234 netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]} 261 netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
  262 + Click Element xpath=//a[@class='reverse tenderLink']
  263 + sleep 5
  264 + Click Element xpath=//a[@class='reverse openCPart'][span[text()='Скарги']]
  265 + Wait Until Page Contains Element name=title 20
  266 + Input text name=title ${complaint}
  267 + Input text xpath=//textarea[@name='description'] ${description}
  268 + Click Element xpath=//div[contains(@class, 'buttons')]//button[@type='submit']
  269 + Wait Until Page Contains ${complaint} 30
  270 + Capture Page Screenshot
235 271
  272 +Внести зміни в тендер
  273 + [Arguments] @{ARGUMENTS}
  274 + [Documentation]
  275 + ... ${ARGUMENTS[0]} = username
  276 + ... ${ARGUMENTS[1]} = tenderUaId
  277 + Selenium2Library.Switch Browser ${ARGUMENTS[0]}
  278 + Click Element xpath=//a[@class='reverse'][./text()='Мої закупівлі']
  279 + Wait Until Page Contains Element xpath=//a[@class='reverse'][./text()='Чернетки'] 30
  280 + Click Element xpath=//a[@class='reverse'][./text()='Чернетки']
  281 + Wait Until Page Contains Element xpath=//a[@class='reverse tenderLink'] 30
236 Click Element xpath=//a[@class='reverse tenderLink'] 282 Click Element xpath=//a[@class='reverse tenderLink']
237 - Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20  
238 - Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']]  
239 - Wait Until Page Contains Element xpath=//textarea[@name='answer'] 20  
240 - Input text xpath=//textarea[@name='answer'] ${answer}  
241 - Click Element xpath=//div[1]/div[3]/form/div/table/tbody/tr/td[2]/button  
242 - Wait Until Page Contains ${answer} 30 283 + sleep 1
  284 + Click Element xpath=//a[@class='button save'][./text()='Редагувати']
  285 + sleep 1
  286 + Input text name=tender_title "Some new title"
  287 + sleep 1
  288 + Click Element xpath=//button[@class='saveDraft']
  289 + Wait Until Page Contains "Some new title" 30
243 Capture Page Screenshot 290 Capture Page Screenshot
@@ -19,7 +19,7 @@ users: @@ -19,7 +19,7 @@ users:
19 password: Password1 19 password: Password1
20 browser: chrome 20 browser: chrome
21 position: [0, 0] 21 position: [0, 0]
22 - size: [640, 450] 22 + size: [800, 800]
23 E-tender_Provider1: 23 E-tender_Provider1:
24 broker: E-tender 24 broker: E-tender
25 username: E-tendertest 25 username: E-tendertest
@@ -28,7 +28,7 @@ users: @@ -28,7 +28,7 @@ users:
28 password: 12345678 28 password: 12345678
29 browser: chrome 29 browser: chrome
30 position: [700, 0] 30 position: [700, 0]
31 - size: [640, 450] 31 + size: [700, 800]
32 E-tender_Provider2: 32 E-tender_Provider2:
33 broker: E-tender 33 broker: E-tender
34 username: E-tendertest 34 username: E-tendertest
@@ -92,7 +92,7 @@ users: @@ -92,7 +92,7 @@ users:
92 password: Password1 92 password: Password1
93 browser: chrome 93 browser: chrome
94 position: [0, 0] 94 position: [0, 0]
95 - size: [600, 800] 95 + size: [700, 800]
96 Netcast_Provider1: 96 Netcast_Provider1:
97 broker: Netcast 97 broker: Netcast
98 username: Netcasttest 98 username: Netcasttest
@@ -101,7 +101,7 @@ users: @@ -101,7 +101,7 @@ users:
101 password: JHO5VUp5n 101 password: JHO5VUp5n
102 browser: chrome 102 browser: chrome
103 position: [0, 0] 103 position: [0, 0]
104 - size: [640, 450] 104 + size: [600, 800]
105 Publicbid_Owner: 105 Publicbid_Owner:
106 broker: Publicbid 106 broker: Publicbid
107 username: Publicbid 107 username: Publicbid
Please register or login to post a comment