Commit 1bde8c3b515ccabeb6fdfcebc0a731fac36c1276
Merge branch 'pc2' of git://github.com/SavchukRoman/robot_tests into pc2r
Conflicts: op_robot_tests/tests_files/brokers/netcast.robot op_robot_tests/tests_files/data/users.yaml
Showing
2 changed files
with
59 additions
and
12 deletions
... | ... | @@ -5,6 +5,7 @@ Library DateTime |
5 | 5 | |
6 | 6 | *** Variables *** |
7 | 7 | ${locator.tenderId} jquery=h3 |
8 | +${file_path} local_path_to_file("TestDocument.docx") | |
8 | 9 | |
9 | 10 | *** Keywords *** |
10 | 11 | Підготувати клієнт для користувача |
... | ... | @@ -109,6 +110,12 @@ Set Multi Ids |
109 | 110 | ${id}= Get Text xpath=//*/section[6]/table/tbody/tr[1]/td[2] |
110 | 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 | 120 | [Arguments] @{ARGUMENTS} |
114 | 121 | [Documentation] |
... | ... | @@ -189,7 +196,6 @@ Set Multi Ids |
189 | 196 | Switch browser ${ARGUMENTS[0]} |
190 | 197 | Go to ${BROKERS['${USERS.users['${username}'].broker}'].url} |
191 | 198 | Wait Until Page Contains Держзакупівлі.онлайн 10 |
192 | -# sleep 1 | |
193 | 199 | Click Element xpath=//a[text()='Закупівлі'] |
194 | 200 | sleep 5 |
195 | 201 | Click Element xpath=//select[@name='filter[object]']/option[@value='tenderID'] |
... | ... | @@ -214,7 +220,7 @@ Set Multi Ids |
214 | 220 | Click Element xpath=//a[@class='reverse tenderLink'] |
215 | 221 | Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20 |
216 | 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 | 224 | Input text name=title ${title} |
219 | 225 | Input text xpath=//textarea[@name='description'] ${description} |
220 | 226 | Click Element xpath=//div[contains(@class, 'buttons')]//button[@type='submit'] |
... | ... | @@ -230,14 +236,55 @@ Set Multi Ids |
230 | 236 | ... ${ARGUMENTS[3]} = answer_data |
231 | 237 | |
232 | 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 | 260 | Selenium2Library.Switch Browser ${ARGUMENTS[0]} |
234 | 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 | 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 | 290 | Capture Page Screenshot |
\ No newline at end of file | ... | ... |
... | ... | @@ -19,7 +19,7 @@ users: |
19 | 19 | password: Password1 |
20 | 20 | browser: firefox |
21 | 21 | position: [0, 0] |
22 | - size: [740, 550] | |
22 | + size: [800, 800] | |
23 | 23 | E-tender_Provider1: |
24 | 24 | broker: E-tender |
25 | 25 | username: E-tendertest |
... | ... | @@ -28,7 +28,7 @@ users: |
28 | 28 | password: 12345678 |
29 | 29 | browser: firefox |
30 | 30 | position: [700, 0] |
31 | - size: [640, 450] | |
31 | + size: [700, 800] | |
32 | 32 | E-tender_Provider2: |
33 | 33 | broker: E-tender |
34 | 34 | username: E-tendertest |
... | ... | @@ -91,7 +91,7 @@ users: |
91 | 91 | password: Password1 |
92 | 92 | browser: chrome |
93 | 93 | position: [0, 0] |
94 | - size: [600, 800] | |
94 | + size: [700, 800] | |
95 | 95 | Netcast_Provider1: |
96 | 96 | broker: Netcast |
97 | 97 | username: Netcasttest |
... | ... | @@ -100,7 +100,7 @@ users: |
100 | 100 | password: JHO5VUp5n |
101 | 101 | browser: chrome |
102 | 102 | position: [0, 0] |
103 | - size: [640, 450] | |
103 | + size: [600, 800] | |
104 | 104 | Publicbid_Owner: |
105 | 105 | broker: Publicbid |
106 | 106 | username: Publicbid | ... | ... |
Please
register
or
login
to post a comment