Showing
2 changed files
with
14 additions
and
35 deletions
@@ -90,9 +90,9 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx | @@ -90,9 +90,9 @@ ${file_path} /home/yboi/openprocurement.robottests.buildout/Document.docx | ||
90 | Click Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit'] | 90 | Click Element xpath=//div[contains(@class, 'form-actions')]//button[@type='submit'] |
91 | Wait Until Page Contains [ТЕСТУВАННЯ] 100 | 91 | Wait Until Page Contains [ТЕСТУВАННЯ] 100 |
92 | Click Element xpath=//table[contains(@class, 'table table-hover table-striped table-bordered ng-scope ng-table')]//tr[1]//a | 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 | ${Ids}= Convert To String ${tender_UAid} | 96 | ${Ids}= Convert To String ${tender_UAid} |
97 | Run keyword if '${mode}' == 'multi' Set Multi Ids ${ARGUMENTS[0]} ${tender_UAid} | 97 | Run keyword if '${mode}' == 'multi' Set Multi Ids ${ARGUMENTS[0]} ${tender_UAid} |
98 | [return] ${Ids} | 98 | [return] ${Ids} |
@@ -101,26 +101,9 @@ Set Multi Ids | @@ -101,26 +101,9 @@ Set Multi Ids | ||
101 | [Arguments] @{ARGUMENTS} | 101 | [Arguments] @{ARGUMENTS} |
102 | [Documentation] | 102 | [Documentation] |
103 | ... ${ARGUMENTS[0]} == username | 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 | ${Ids}= Create List ${tender_UAid} ${id} | 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 | [Arguments] @{ARGUMENTS} | 108 | [Arguments] @{ARGUMENTS} |
126 | [Documentation] | 109 | [Documentation] |
@@ -361,17 +344,4 @@ Oтримати internal id по UAid | @@ -361,17 +344,4 @@ Oтримати internal id по UAid | ||
361 | отримати інформацію про questions[${question_id}].answer | 344 | отримати інформацію про questions[${question_id}].answer |
362 | відмітити на сторінці поле з тендера question answer jquery=tender-questions>div:eq(1)>div:last> | 345 | відмітити на сторінці поле з тендера question answer jquery=tender-questions>div:eq(1)>div:last> |
363 | ${return_value}= Get Text jquery=tender-questions>div:eq(1)>div:last> | 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} | ||
347 | + [return] ${return_value} |
@@ -124,4 +124,13 @@ users: | @@ -124,4 +124,13 @@ users: | ||
124 | username: Newtendtest | 124 | username: Newtendtest |
125 | browser: firefox | 125 | browser: firefox |
126 | position: [0, 0] | 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 | size: [640, 450] | 136 | size: [640, 450] |
Please
register
or
login
to post a comment