Commit 9a83cc399ad8a7d789446dbd688eca48419917f7

Authored by yboi
1 parent 0b91c36b

Задати питання

... ... @@ -25,13 +25,13 @@ ${locator.enquiryPeriod.endDate} jquery=tender-procedure-info>div.row:contai
25 25 [Documentation] Відкрити брaвзер, створити обєкт api wrapper, тощо
26 26 ... ${ARGUMENTS[0]} == username
27 27 Open Browser ${USERS.users['${ARGUMENTS[0]}'].homepage} alias=${ARGUMENTS[0]}
28   - Set Window Size @{USERS.users['${ARGUMENTS[0]}'].size}
29   -
30   -Login
  28 + Set Window Position @{USERS.users['${ARGUMENTS[0]}'].position}
  29 + Set Window Size @{USERS.users['${ARGUMENTS[0]}'].size}
31 30 Wait Until Page Contains Element id=inputUsername 100
32   - Input text id=inputUsername ${USERS.users['${username}'].login}
33   - Input text id=inputPassword ${USERS.users['${username}'].password}
  31 + Input text id=inputUsername ${USERS.users['${ARGUMENTS[0]}'].login}
  32 + Input text id=inputPassword ${USERS.users['${ARGUMENTS[0]}'].password}
34 33 Click Button id=btn_submit
  34 + Wait Until Page Contains Ви успішно увійшли в систему! 100
35 35
36 36 Пошук тендера по ідентифікатору
37 37 [Arguments] @{ARGUMENTS}
... ... @@ -192,16 +192,19 @@ Login
192 192 [return] ${return_value}
193 193
194 194 Задати питання
195   - [Arguments] @{QUESTIONS}
  195 + [Arguments] @{ARGUMENTS}
196 196 [Documentation]
197   - ... ${QUESTIONS[0]} == question_data
198   - Login
199   - ${title}= Get From Dictionary ${QUESTIONS[0].data} title
200   - ${description}= Get From Dictionary ${QUESTIONS[0].data} description
  197 + ... ${ARGUMENTS[0]} = username
  198 + ... ${ARGUMENTS[1]}=tenderid
  199 + ... ${ARGUMENTS[2]} = question_data
  200 +
  201 + ${title}= Get From Dictionary ${ARGUMENTS[2].data} title
  202 + ${description}= Get From Dictionary ${ARGUMENTS[2].data} description
  203 +
201 204 Wait Until Page Contains Element jquery=a[href="#/"]
202 205 Click Element jquery=a[href="#/"]
203 206 Wait Until Page Contains Element jquery=input[ng-change='search()']
204   - Input Text jquery=input[ng-change='search()'] UA-2015-06-30-000012 #Так як немає попередніх тестів, використовую хард-код
  207 + Input Text jquery=input[ng-change='search()'] ${tender_id}
205 208 Wait Until Page Contains Element jquery=a[ng-click="search()"]
206 209 Click Element jquery=a[ng-click="search()"]
207 210 Wait Until Page Contains [ТЕСТУВАННЯ] 100
... ...
Please register or login to post a comment