Commit 79a0ba6ec949108d2d62106c74faa83ff3d34920

Authored by yboi
1 parent cbcf2572

fixed_add_and_answer_question

... ... @@ -90,9 +90,9 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx
90 90 Click Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit']
91 91 Wait Until Page Contains [ТЕСТУВАННЯ] 100
92 92 Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-scope ng-table')]//tr[1]//a
93   - ${tender_UAid}= Wait Until Keyword Succeeds 240sec 2sec get tender UAid
94   -### harcode Idis bacause issues on the E-tender side, to remove, 1 line:
95   - ${tender_UAid}= Convert To String UA-2015-08-03-000025
  93 + Sleep 5
  94 + ${tender_UAid}= Get Text xpath=//div[contains(@class, "panel-heading")]
  95 + ${tender_UAid}= Get Substring ${tender_UAid} 7
96 96 ${Ids}= Convert To String ${tender_UAid}
97 97 Run keyword if '${mode}' == 'multi' Set Multi Ids ${ARGUMENTS[0]} ${tender_UAid}
98 98 [return] ${Ids}
... ... @@ -101,26 +101,9 @@ Set Multi Ids
101 101 [Arguments] @{ARGUMENTS}
102 102 [Documentation]
103 103 ... ${ARGUMENTS[0]} == username
104   - ... ${ARGUMENTS[1]} == ${tender_UAid}
105   - ${id}= Oтримати internal id по UAid ${ARGUMENTS[0]} ${ARGUMENTS[1]}
  104 + ${id}= Get Text xpath=//div[contains(@class, "panel-heading")]
106 105 ${Ids}= Create List ${tender_UAid} ${id}
107 106
108   -get tender UAid
109   - ${tender_UAid}= Get Text xpath=//div[contains(@class, "panel-heading")]
110   - ${tender_UAid}= Get Substring ${tender_UAid} 7 27
111   -
112   -Oтримати internal id по UAid
113   - [Arguments] @{ARGUMENTS}
114   - [Documentation]
115   - ... ${ARGUMENTS[0]} == username
116   - ... ${ARGUMENTS[1]} == ${tender_UAid}
117   - etender.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[1]}
118   - ${current_location}= Get Location
119   - ${tender_id}= Fetch From Right ${current_location} /
120   -## harcode Idis bacause issues on the E-tender side, to remove, 1 line:
121   - ${tender_id}= Convert To String 94ffe180019d459787aafe290cd300e2
122   - [return] ${tender_id}
123   -
124 107 Додати предмет
125 108 [Arguments] @{ARGUMENTS}
126 109 [Documentation]
... ... @@ -361,17 +344,4 @@ Oтримати internal id по UAid
361 344 отримати інформацію про questions[${question_id}].answer
362 345 відмітити на сторінці поле з тендера question answer jquery=tender-questions>div:eq(1)>div:last>
363 346 ${return_value}= Get Text jquery=tender-questions>div:eq(1)>div:last>
364   - [return] ${return_value}
365   -
366   -
367   -Завантажити документ
368   - [Arguments] @{ARGUMENTS}
369   - [Documentation]
370   - ... ${ARGUMENTS[0]} = username
371   - ... ${ARGUMENTS[1]} = filename
372   - ... ${ARGUMENTS[2]} = ${TENDER_ID}
373   -
374   - Selenium2Library.Switch Browser ${ARGUMENTS[0]}
375   - etender.Пошук тендера по ідентифікатору ${ARGUMENTS[0]} ${ARGUMENTS[2]} ${TENDER_ID}
376   - Wait Until Page Contains Element xpath=//button[text()="Завантажити"] 100
377   - Choose File xpath=//button[text()="Завантажити"] ${file_path}
\ No newline at end of file
  347 + [return] ${return_value}
\ No newline at end of file
... ...
... ... @@ -124,4 +124,13 @@ users:
124 124 username: Newtendtest
125 125 browser: firefox
126 126 position: [0, 0]
  127 + size: [640, 450]
  128 + E-tender_Viewer1:
  129 + broker: E-tender
  130 + username: E-tendertest
  131 + homepage: "http://uat.e-tender.biz/#/profile"
  132 + login: provider2
  133 + password: Qa123456
  134 + browser: firefox
  135 + position: [720, 0]
127 136 size: [640, 450]
\ No newline at end of file
... ...
Please register or login to post a comment