Commit 601fbee2a3cc0cc1679622f781e08ac0bec3d302
1 parent
741ca155
Пошук тендера по ідентифікатору, Задати питання та Відповісти на питання тести були додані
Showing
2 changed files
with
51 additions
and
18 deletions
| @@ -25,15 +25,15 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai | @@ -25,15 +25,15 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai | ||
| 25 | Set Window Position @{USERS.users['${ARGUMENTS[0]}'].position} | 25 | Set Window Position @{USERS.users['${ARGUMENTS[0]}'].position} |
| 26 | 26 | ||
| 27 | # login | 27 | # login |
| 28 | - Wait Until Page Contains Element name=siteLogin 100 | ||
| 29 | - Input text name=siteLogin ${BROKERS['${USERS.users['${username}'].broker}'].login} | ||
| 30 | - Input text name=sitePass ${BROKERS['${USERS.users['${username}'].broker}'].password} | ||
| 31 | - Click Button xpath=.//*[@id='table1']/tbody/tr/td/form/p[3]/input | 28 | +# Wait Until Page Contains Element name=siteLogin 100 |
| 29 | +# Input text name=siteLogin ${BROKERS['${USERS.users['${username}'].broker}'].login} | ||
| 30 | +# Input text name=sitePass ${BROKERS['${USERS.users['${username}'].broker}'].password} | ||
| 31 | +# Click Button xpath=.//*[@id='table1']/tbody/tr/td/form/p[3]/input | ||
| 32 | 32 | ||
| 33 | Wait Until Page Contains Element jquery=a[href="/cabinet"] | 33 | Wait Until Page Contains Element jquery=a[href="/cabinet"] |
| 34 | Click Element jquery=a[href="/cabinet"] | 34 | Click Element jquery=a[href="/cabinet"] |
| 35 | Wait Until Page Contains Element name=email 100 | 35 | Wait Until Page Contains Element name=email 100 |
| 36 | - Input text name=email mail | 36 | +# Input text name=email mail |
| 37 | Sleep 1 | 37 | Sleep 1 |
| 38 | Input text name=email ${USERS.users['${username}'].login} | 38 | Input text name=email ${USERS.users['${username}'].login} |
| 39 | Sleep 2 | 39 | Sleep 2 |
| @@ -187,18 +187,16 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai | @@ -187,18 +187,16 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai | ||
| 187 | ... ${ARGUMENTS[1]} == tenderId | 187 | ... ${ARGUMENTS[1]} == tenderId |
| 188 | ... ${ARGUMENTS[2]} == id | 188 | ... ${ARGUMENTS[2]} == id |
| 189 | Switch browser ${ARGUMENTS[0]} | 189 | Switch browser ${ARGUMENTS[0]} |
| 190 | + | ||
| 190 | ${current_location}= Get Location | 191 | ${current_location}= Get Location |
| 191 | Run keyword if '${BROKERS['${USERS.users['${username}'].broker}'].url}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page | 192 | Run keyword if '${BROKERS['${USERS.users['${username}'].broker}'].url}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page |
| 192 | Go to ${BROKERS['${USERS.users['${username}'].broker}'].url} | 193 | Go to ${BROKERS['${USERS.users['${username}'].broker}'].url} |
| 193 | - Wait Until Page Contains E-TENDER - центр електронної торгівлі 10 | ||
| 194 | - sleep 1 | ||
| 195 | - Input Text jquery=input[ng-change='search()'] ${ARGUMENTS[1]} | ||
| 196 | - Click Link jquery=a[ng-click='search()'] | ||
| 197 | - sleep 2 | ||
| 198 | - ${last_note_id}= Add pointy note jquery=a[href^="#/tenderDetailes"] Found tender with tenderID "${ARGUMENTS[1]}" width=200 position=bottom | ||
| 199 | - sleep 1 | ||
| 200 | - Remove element ${last_note_id} | ||
| 201 | - Click Link jquery=a[href^="#/tenderDetailes"] | 194 | + Wait Until Page Contains Держзакупівлі.онлайн 10 |
| 195 | +# sleep 1 | ||
| 196 | + Click Element xpath=//a[text()='Закупівлі'] | ||
| 197 | + Click Element xpath=//select[@name='filter[object]']/option[@value='tenderID'] | ||
| 198 | + Input text xpath=//input[@name='filter[search]'] ${ARGUMENTS[1]} | ||
| 199 | + Click Element xpath=//button[@class='btn'][./text()='Пошук'] | ||
| 202 | Wait Until Page Contains ${ARGUMENTS[1]} 10 | 200 | Wait Until Page Contains ${ARGUMENTS[1]} 10 |
| 203 | sleep 1 | 201 | sleep 1 |
| 204 | Capture Page Screenshot | 202 | Capture Page Screenshot |
| @@ -215,5 +213,31 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai | @@ -215,5 +213,31 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai | ||
| 215 | Selenium2Library.Switch Browser ${ARGUMENTS[0]} | 213 | Selenium2Library.Switch Browser ${ARGUMENTS[0]} |
| 216 | netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]} ${TENDER_ID} | 214 | netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]} ${TENDER_ID} |
| 217 | 215 | ||
| 218 | - Wait Until Page Contains Element jquery=a[href^="#/addQuestions/"] 30 | ||
| 219 | - Click Element jquery=a[href^="#/addQuestions/"] | 216 | + Click Element xpath=//a[@class='reverse tenderLink'] |
| 217 | + Wait Until Page Contains Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] 20 | ||
| 218 | + Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] | ||
| 219 | + Wait Until Page Contains Element name=title | ||
| 220 | + Input text name=title ${title} | ||
| 221 | + Input text xpath=//textarea[@name='description'] ${description} | ||
| 222 | + Click Element xpath=//div[contains(@class, 'buttons')]//button[@type='submit'] | ||
| 223 | + Wait Until Page Contains ${title} 30 | ||
| 224 | + Capture Page Screenshot | ||
| 225 | + | ||
| 226 | +Відповісти на питання | ||
| 227 | + [Arguments] @{ARGUMENTS} | ||
| 228 | + [Documentation] | ||
| 229 | + ... ${ARGUMENTS[0]} = username | ||
| 230 | + ... ${ARGUMENTS[1]} = ${INTERNAL_TENDER_ID} | ||
| 231 | + ... ${ARGUMENTS[2]} = 0 | ||
| 232 | + ... ${ARGUMENTS[3]} = answer_data | ||
| 233 | + | ||
| 234 | + ${answer}= Get From Dictionary ${ARGUMENTS[3].data} answer | ||
| 235 | + Selenium2Library.Switch Browser ${ARGUMENTS[0]} | ||
| 236 | + netcast.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]} ${TENDER_ID} | ||
| 237 | + | ||
| 238 | + Click Element xpath=//a[@class='reverse tenderLink'] | ||
| 239 | + Click Element xpath=//a[@class='reverse openCPart'][span[text()='Обговорення']] | ||
| 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 | ||
| 243 | + Capture Page Screenshot |
| @@ -81,5 +81,14 @@ users: | @@ -81,5 +81,14 @@ users: | ||
| 81 | login: ovramet.s@gmail.com | 81 | login: ovramet.s@gmail.com |
| 82 | password: Password1 | 82 | password: Password1 |
| 83 | browser: firefox | 83 | browser: firefox |
| 84 | - position: [0, 450] | ||
| 85 | - size: [640, 450] | ||
| 84 | + position: [0, 1080] | ||
| 85 | + size: [1920, 1080] | ||
| 86 | + Netcast_Provider1: | ||
| 87 | + broker: Netcast | ||
| 88 | + username: Netcasttest | ||
| 89 | + homepage: "http://dz2.byustudio.in.ua" | ||
| 90 | + login: halyna.khimka@gmail.com | ||
| 91 | + password: JHO5VUp5n | ||
| 92 | + browser: firefox | ||
| 93 | + position: [0, 1080] | ||
| 94 | + size: [1920, 1080] |
Please
register
or
login
to post a comment