Commit 41aa8e4bc8007cbbe838c572d23aa44f2f57d890
1 parent
1067a893
Prom: Export to separate repository
https://github.com/openprocurement/robot_tests.broker.prom
Showing
2 changed files
with
1 additions
and
120 deletions
... | ... | @@ -38,6 +38,7 @@ gh_push = git@github.com: |
38 | 38 | openprocurement_client = git ${remotes:gh}openprocurement/openprocurement.client.python.git |
39 | 39 | robot_tests.broker.etender = git ${remotes:gh}openprocurement/robot_tests.broker.etender.git |
40 | 40 | robot_tests.broker.privatmarket = git ${remotes:gh}openprocurement/robot_tests.broker.privatmarket.git |
41 | +robot_tests.broker.prom = git ${remotes:gh}openprocurement/robot_tests.broker.prom.git | |
41 | 42 | robot_tests.broker.publicbid = git ${remotes:gh}openprocurement/robot_tests.broker.publicbid.git |
42 | 43 | robot_tests.broker.smarttender = git ${remotes:gh}openprocurement/robot_tests.broker.smarttender.git |
43 | 44 | ... | ... |
1 | -*** Settings *** | |
2 | -Library Selenium2Screenshots | |
3 | -Library String | |
4 | -Library DateTime | |
5 | -Library Selenium2Library | |
6 | -Library Collections | |
7 | - | |
8 | -*** Variables *** | |
9 | -${HOMEPAGE} http://my.dz-test.net/cabinet/sign-in?sp=1&next=%2Fcabinet%2Fpurchases%2Fstate_purchase | |
10 | -${BROWSER} chrome | |
11 | -${LOGIN} r.zaporozhets@smartweb.com.ua | |
12 | -${PASSWORD} 1234 | |
13 | - | |
14 | -*** Keywords *** | |
15 | -Підготувати дані для оголошення тендера | |
16 | - ${INITIAL_TENDER_DATA}= prepare_test_tender_data | |
17 | - [return] ${INITIAL_TENDER_DATA} | |
18 | - | |
19 | -Підготувати клієнт для користувача | |
20 | - [Arguments] ${username} | |
21 | - log many @{ARGUMENTS} | |
22 | - log ${username} | |
23 | - [Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо | |
24 | - Open Browser | |
25 | - ... ${USERS.users['${username}'].homepage} | |
26 | - ... ${USERS.users['${username}'].browser} | |
27 | - ... alias=${username} | |
28 | - Set Window Position @{USERS.users['${username}'].position} | |
29 | - #Set Window Size @{USERS.users['${username}'].size} | |
30 | - Log Variables | |
31 | - | |
32 | -Go to homepage | |
33 | - [Arguments] ${username} | |
34 | - Switch Browser ${username} | |
35 | - Go To ${HOMEPAGE} | |
36 | - | |
37 | -Login | |
38 | - Wait Until Page Contains Element id=phone_email 100 | |
39 | - Input text id=phone_email ${LOGIN} | |
40 | - Input text id=password ${PASSWORD} | |
41 | - Click Button id=submit_login_button | |
42 | - | |
43 | -Створити тендер | |
44 | - [Arguments] @{ARGUMENTS} | |
45 | - log many @{ARGUMENTS} | |
46 | - Go to homepage ${ARGUMENTS[0]} | |
47 | - | |
48 | - Login | |
49 | - | |
50 | - ${start_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} startDate | |
51 | - ${start_date}= convert_datetime_to_dot_format ${start_date} | |
52 | - ${end_date}= Get From Dictionary ${ARGUMENTS[1].data.tenderPeriod} endDate | |
53 | - ${end_date}= convert_datetime_to_dot_format ${end_date} | |
54 | - ${enquiry_end_date}= Get From Dictionary ${ARGUMENTS[1].data.enquiryPeriod} endDate | |
55 | - ${enquiry_end_date}= convert_datetime_to_dot_format ${enquiry_end_date} | |
56 | - | |
57 | - ${items}= Get From Dictionary ${ARGUMENTS[1].data} items | |
58 | - ${delivery_date}= Get From Dictionary ${items[0].deliveryDate} endDate | |
59 | - ${title}= Get From Dictionary ${ARGUMENTS[1].data} title | |
60 | - ${description}= Get From Dictionary ${ARGUMENTS[1].data} description | |
61 | - ${quantity}= Get From Dictionary ${items[0]} quantity | |
62 | - ${budget}= Get From Dictionary ${ARGUMENTS[1].data.value} amount | |
63 | - ${step_rate}= Get From Dictionary ${ARGUMENTS[1].data.minimalStep} amount | |
64 | - ${cpv}= Get From Dictionary ${items[0].classification} scheme | |
65 | - ${dkpp}= Get From Dictionary ${items[0].additionalClassifications[0]} scheme | |
66 | - | |
67 | - Wait Until Page Contains Element id=js-btn-0 | |
68 | - Click Element id=js-btn-0 | |
69 | - Wait Until Page Contains Element id=title | |
70 | - Input text id=title ${title} | |
71 | - Input text id=descr ${description} | |
72 | - Input text id=quantity ${quantity} | |
73 | - Input text id=amount ${budget} | |
74 | - Click Element xpath=//a[contains(@data-target, 'container-cpv')] | |
75 | - Click Element xpath=//div[contains(@class, 'qa_container_cpv_popup')]//input[@type='checkbox'][@value='16662'] | |
76 | - Click Element xpath=//div[contains(@class, 'qa_container_cpv_popup')]//a[contains(@data-target, 'classifiers-inputs-cpv')] | |
77 | - | |
78 | - Click Element xpath=//a[contains(@data-target, 'container-dkpp')] | |
79 | - Click Element xpath=//div[contains(@class, 'qa_container_dkpp_popup')]//input[@type='checkbox'][@value='4'] | |
80 | - Click Element xpath=//div[contains(@class, 'qa_container_dkpp_popup')]//a[contains(@data-target, 'classifiers-inputs-dkpp')] | |
81 | - Input text id=dt_enquiry ${enquiry_end_date} | |
82 | - Input text id=dt_tender_start ${start_date} | |
83 | - Input text id=dt_tender_end ${end_date} | |
84 | - Input text id=step ${step_rate} | |
85 | - Click Button id=submit_button | |
86 | - | |
87 | - Wait Until Page Contains Element xpath=//td[@id="qa_state_purchase_id"]/p | |
88 | - | |
89 | - ${id}= Wait Until Keyword Succeeds 240sec 2sec Get tender id | |
90 | - [return] ${id} | |
91 | - | |
92 | -Get tender id | |
93 | - ${id}= Get Text xpath=//td[@id="qa_state_purchase_id"]/p | |
94 | - Should Not Be Equal As Strings ${id} ожидание... | |
95 | - [return] ${id} | |
96 | - | |
97 | -Пошук тендера по ідентифікатору | |
98 | - [Arguments] @{ARGUMENTS} | |
99 | - [Documentation] | |
100 | - ... ${ARGUMENTS[0]} == username | |
101 | - ... ${ARGUMENTS[1]} == tenderId | |
102 | - ... ${ARGUMENTS[2]} == id | |
103 | - Switch browser ${ARGUMENTS[0]} | |
104 | - ${current_location}= Get Location | |
105 | - ${homepage}= Set Variable ${USERS.users['${ARGUMENTS[0]}'].homepage} | |
106 | - Run Keyword If '${homepage}/#/tenderDetailes/${ARGUMENTS[2]}'=='${current_location}' Reload Page | |
107 | - Go To ${homepage} | |
108 | - Wait Until Page Contains Допороговые закупки Украины 10 | |
109 | - sleep 1 | |
110 | - Input Text id=search ${ARGUMENTS[1]} | |
111 | - Click Button id=search_submit | |
112 | - sleep 2 | |
113 | - ${last_note_id}= Add pointy note jquery=a[href^="#/tenderDetailes"] Found tender with tenderID "${ARGUMENTS[1]}" width=200 position=bottom | |
114 | - sleep 1 | |
115 | - Remove element ${last_note_id} | |
116 | - Click Link jquery=a[href^="#/tenderDetailes"] | |
117 | - Wait Until Page Contains ${ARGUMENTS[1]} 10 | |
118 | - sleep 1 | |
119 | - Capture Page Screenshot | |
120 | - |
Please
register
or
login
to post a comment