Commit 7b383f33 authored by Oleg Kachur's avatar Oleg Kachur 👽
Browse files

Merge branch 'grooming' into 'master'

Remove useless spaces

See merge request !50
parents ec75638a 064f418b
Pipeline #20180 failed with stages
in 23 minutes and 59 seconds
*** Settings ***
Documentation Ініціалізація та проходження аукціону
Library Collections
Library RequestsLibrary
Library SeleniumLibrary timeout=0:00:20
Library DateTime
Library Collections
Library RequestsLibrary
Library SeleniumLibrary timeout=0:00:20
Library DateTime
Variables ../PageObjects/Locators.py
Variables ../Envirment.py
......@@ -12,15 +12,15 @@ Variables ../Envirment.py
*** Keywords ***
Check For Pass Before
Run Keyword If '${PREV TEST STATUS}'=='FAIL' Fail Skip test because fail before
Run Keyword If '${PREV TEST STATUS}'=='FAIL' Fail Skip test because fail before
Open Browser Maximized
[Arguments] ${URL} ${BIDDER_TOKEN}=None
${OPTIONS}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${OPTIONS} add_argument start-maximized
Open Browser ${URL} browser=${BROWSER} alias=chrome_${BIDDER_TOKEN} remote_url=${REMOTE_URL}
... options=${OPTIONS}
[Arguments] ${URL} ${BIDDER_TOKEN}=None
${OPTIONS} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${OPTIONS} add_argument start-maximized
Open Browser ${URL} browser=${BROWSER} alias=chrome_${BIDDER_TOKEN} remote_url=${REMOTE_URL}
... options=${OPTIONS}
Get Request and return participationUrl By
......@@ -74,21 +74,21 @@ Check Action Status
[Documentation] Перевірка статуса акціона
[Arguments] ${CHECK_STATUS}
${RESP}= Get Request and return resp By ${ID} ${WATCHER}
${RESP} = Get Request and return resp By ${ID} ${WATCHER}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal ${CHECK_STATUS} ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal ${CHECK_STATUS} ${STATUS}
Check Action Results For
[Documentation] Перевірка сторінки аукціону після завершення
[Arguments] ${CHECK_STATUS} ${CHECK_AMOUNT}
${RESP}= Get Request and return resp By ${ID} ${WATCHER}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal ${CHECK_STATUS} ${STATUS}
${AMOUNT}= Get From Dictionary ${resp.json()['awards'][0]['value']} amount
Should Be Equal As Strings ${CHECK_AMOUNT} ${AMOUNT}
${RESP} = Get Request and return resp By ${ID} ${WATCHER}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal ${CHECK_STATUS} ${STATUS}
${AMOUNT} = Get From Dictionary ${resp.json()['awards'][0]['value']} amount
Should Be Equal As Strings ${CHECK_AMOUNT} ${AMOUNT}
Accepted Bet
......@@ -98,7 +98,7 @@ Accepted Bet
Check Attention
[Arguments] ${MINIMAL_BET}
${ATTENTION}= Catenate
${ATTENTION} = Catenate
... //div[@class="input-text bidder-input-text" and
... @style="color: red; border-color: red;"]/span[contains(normalize-space(.),
... ('Ставка має бути від ${MINIMAL_BET}.00 грн'))]
......
......@@ -48,44 +48,44 @@ Post Requests
Get Request Watcher
[Documentation] Зробити get Requests ${AUCTION_NAME} в ролі спостерігача
${RESP}= Get Request By ${ID} ${WATCHER}
Status Should Be 200 ${RESP}
${RESP} = Get Request By ${ID} ${WATCHER}
Status Should Be 200 ${RESP}
Get Request Bidder 1
[Documentation] Зробити Get Request для ${AUCTION_NAME} в ролі першого учасника
${RESP}= Get Request By ${ID} ${BIDDER_TOKEN[0]}
Status Should Be 200 ${RESP}
${BIDDER_URL_1}= Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_1} ${BIDDER_URL_1}
${RESP} = Get Request By ${ID} ${BIDDER_TOKEN[0]}
Status Should Be 200 ${RESP}
${BIDDER_URL_1} = Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_1} ${BIDDER_URL_1}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
Get Request Bidder 2
[Documentation] Зробити Get Request для ${AUCTION_NAME} в ролі другого учасника
${RESP}= Get Request By ${ID} ${BIDDER_TOKEN[1]}
Status Should Be 200 ${RESP}
${RESP} = Get Request By ${ID} ${BIDDER_TOKEN[1]}
Status Should Be 200 ${RESP}
${BIDDER_URL_2}= Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_2} ${BIDDER_URL_2}
${BIDDER_URL_2} = Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_2} ${BIDDER_URL_2}
Get Request Bidder 3
[Documentation] Зробити Get Request для ${AUCTION_NAME} в ролі другого учасника
${RESP}= Get Request By ${ID} ${BIDDER_TOKEN[2]}
Status Should Be 200 ${RESP}
${RESP} = Get Request By ${ID} ${BIDDER_TOKEN[2]}
Status Should Be 200 ${RESP}
${BIDDER_URL_3}= Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_3} ${BIDDER_URL_3}
${BIDDER_URL_3} = Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_3} ${BIDDER_URL_3}
Action - allow terms
[Documentation] Погодитися з умовами аукціону
Switch Browser chrome_1
Go To ${BIDDER_URL_1}
Wait Until Page Contains Element ${ASK_DISCLAIMER} 10s
Wait Until Page Contains Element ${ASK_DISCLAIMER} 10s
Wait Until Element Is Visible ${BTN_CANCEL} 10s
Wait Until Element Is Visible ${BTN_ACCEPT} 10s
Click Button ${BTN_ACCEPT}
......@@ -152,52 +152,52 @@ Action - offer of the winner of the Dutch stage
Check action results
[Documentation] Перевірка сторінки аукціону після завершення
Wait Until Page Contains Аукціон завершено 70s
Wait Until Page Contains Аукціон завершено 70s
Wait Until Element Is Visible ${ANNOUNCEMENT_RESULTS}
${WINNER_SEALED_BIDS}= Catenate SEPARATOR=
${WINNER_SEALED_BIDS} = Catenate SEPARATOR=
... //div[@class="results is-winner"]/div[@class="results-wrapper-text"]
... /div[contains(normalize-space(.), concat('1', "'", '200.00'))]
${WINNER_SUM_LAST}= Catenate SEPARATOR=
${WINNER_SUM_LAST} = Catenate SEPARATOR=
... //div[@class="results is-winner"]/div[@class="results-wrapper-text"]
... /div[contains(normalize-space(.), concat('1', "'", '300.00'))]
Wait Until Element Is Visible ${WINNER_SEALED_BIDS}
Wait Until Element Is Visible ${WINNER_SUM_LAST}
${RESP}= Get Request By ${ID} ${WATCHER}
${RESP} = Get Request By ${ID} ${WATCHER}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal active_awarded ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_awarded ${STATUS}
${AMOUNT}= Get From Dictionary ${resp.json()['awards'][0]['value']} amount
Should Be Equal As Strings 1300.0 ${AMOUNT}
${AMOUNT} = Get From Dictionary ${resp.json()['awards'][0]['value']} amount
Should Be Equal As Strings 1300.0 ${AMOUNT}
*** Keywords ***
Open Browser Only
[Arguments] ${URL}
Open Browser ${URL} browser=${BROWSER} alias=chrome_1 remote_url=${REMOTE_URL}
[Arguments] ${URL}
Open Browser ${URL} browser=${BROWSER} alias=chrome_1 remote_url=${REMOTE_URL}
Maximize Browser Window
Open Browser Incognito
[Arguments] ${URL}
${OPTIONS}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${OPTIONS} add_argument incognito
Open Browser ${URL} browser=${BROWSER} alias=chrome_2 remote_url=${REMOTE_URL}
... options=${OPTIONS}
[Arguments] ${URL}
${OPTIONS} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${OPTIONS} add_argument incognito
Open Browser ${URL} browser=${BROWSER} alias=chrome_2 remote_url=${REMOTE_URL}
... options=${OPTIONS}
Maximize Browser Window
Open Browser Maximized
[Arguments] ${URL}
${OPTIONS}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${OPTIONS} add_argument start-maximized
Open Browser ${URL} browser=${BROWSER} alias=chrome_3 remote_url=${REMOTE_URL}
... options=${OPTIONS}
[Arguments] ${URL}
${OPTIONS} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${OPTIONS} add_argument start-maximized
Open Browser ${URL} browser=${BROWSER} alias=chrome_3 remote_url=${REMOTE_URL}
... options=${OPTIONS}
Get Request By
......
*** Settings ***
Documentation Ініціалізація та проходження аукціону
Default Tags dgf
Documentation Ініціалізація та проходження аукціону
Default Tags dgf
Library Collections
Library RequestsLibrary
Library SeleniumLibrary
Library Collections
Library RequestsLibrary
Library SeleniumLibrary
Resource ../fixtures/Resources/auction_conditions.robot
Test Setup Check For Pass Before
......@@ -20,13 +20,13 @@ Prepare browsers
Run Browsers In Blank For 3 Bidders
Post Auction
${ACTION_START_TIME}= Get Time format=timestamp time_=UTC + 2s
Create Session alias https://dgf-procedure-sandbox.prozorro.sale verify=true
&{headers_post}= Create Dictionary Authorization=auction_token Content-Type=application/json
Import Variables ../fixtures/${AUCTION_NAME}.py init_auction
Set To Dictionary ${init_auction["auctionPeriod"]} startDate ${ACTION_START_TIME}
${RESP}= Post Request alias /api/procedures data=${init_auction} headers=${HEADERS_POST}
${ID}= Get From Dictionary ${resp.json()} id
......@@ -35,18 +35,18 @@ Post Auction
Allow Terms for 3 Bidders
${BIDDER_URL_1}= Get DGF Request and return participationUrl By ${ID} ${BIDDER_TOKEN[0]}
${BIDDER_URL_2}= Get DGF Request and return participationUrl By ${ID} ${BIDDER_TOKEN[1]}
${BIDDER_URL_3}= Get DGF Request and return participationUrl By ${ID} ${BIDDER_TOKEN[2]}
${BIDDER_URL_1} = Get DGF Request and return participationUrl By ${ID} ${BIDDER_TOKEN[0]}
${BIDDER_URL_2} = Get DGF Request and return participationUrl By ${ID} ${BIDDER_TOKEN[1]}
${BIDDER_URL_3} = Get DGF Request and return participationUrl By ${ID} ${BIDDER_TOKEN[2]}
${RESP} = Get DGF Request and return resp By ${ID} ${WATCHER}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Allow Terms ${BIDDER_URL_1}
Allow Terms ${BIDDER_URL_1}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Allow Terms ${BIDDER_URL_2}
Allow Terms ${BIDDER_URL_2}
Switch Browser chrome_${BIDDER_TOKEN[2]}
Allow Terms ${BIDDER_URL_3}
......@@ -56,72 +56,72 @@ Action - round 1
[Documentation] Спроба зробити ставку менше за мінімальну, перевірка помилки,
... зробити коректну ставку перевірити наявність підтвердження
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${${AMOUNT} - ${MINIMALSTEP}}
Click Button ${BTN_BET}
Check Attention MINIMAL_BET=${${AMOUNT} + ${MINIMALSTEP}}
Input Text ${NUMBER_INPUT} ${${AMOUNT} - ${MINIMALSTEP}}
Click Button ${BTN_BET}
Check Attention MINIMAL_BET=${${AMOUNT} + ${MINIMALSTEP}}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${${MINIMALSTEP} + ${AMOUNT}}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${2 * ${MINIMALSTEP} + ${AMOUNT}}
Action - round 2
[Documentation] Підвищення ставок та оновлення ставки
Switch Browser chrome_${BIDDER_TOKEN[2]}
Switch Browser chrome_${BIDDER_TOKEN[2]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${3 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${3 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${4 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${REFRESH_BET}
Accepted Bet ${4 * ${MINIMALSTEP} + ${AMOUNT}}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Input Text ${NUMBER_INPUT} ${3 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${3 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${4 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${REFRESH_BET}
Accepted Bet ${4 * ${MINIMALSTEP} + ${AMOUNT}}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${5 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${5 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${5 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${5 * ${MINIMALSTEP} + ${AMOUNT}}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${6 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${6 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${6 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${6 * ${MINIMALSTEP} + ${AMOUNT}}
Action - round 3
[Documentation] Підвищення ставок, перевищення ставки в 10 разів
Switch Browser chrome_${BIDDER_TOKEN[2]}
Switch Browser chrome_${BIDDER_TOKEN[2]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${7 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${7 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${7 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${7 * ${MINIMALSTEP} + ${AMOUNT}}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Switch Browser chrome_${BIDDER_TOKEN[1]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${8 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${8 * ${MINIMALSTEP} + ${AMOUNT}}
Input Text ${NUMBER_INPUT} ${8 * ${MINIMALSTEP} + ${AMOUNT}}
Click Button ${BTN_BET}
Accepted Bet ${8 * ${MINIMALSTEP} + ${AMOUNT}}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Switch Browser chrome_${BIDDER_TOKEN[0]}
Wait Until Element Is Visible ${BTN_BET} 30s
Input Text ${NUMBER_INPUT} ${9 * ${MINIMALSTEP} + ${AMOUNT} * 100}
Click Button ${BTN_BET}
Input Text ${NUMBER_INPUT} ${9 * ${MINIMALSTEP} + ${AMOUNT} * 100}
Click Button ${BTN_BET}
Wait Until Element Is Visible ${MORE_THEN_10_TIME} 30s
Wait Until Element Is Visible ${BTN_ACCEPT_BET} 30s
Click Button ${BTN_ACCEPT_BET}
Click Button ${BTN_ACCEPT_BET}
Check in end
Wait Until Page Contains Аукціон завершено 20s
Wait Until Page Contains Аукціон завершено 20s
Wait Until Element Is Visible ${ANNOUNCEMENT_RESULTS}
Check DGF Action Results For CHECK_STATUS=active_awarded CHECK_AMOUNT=${9 * ${MINIMALSTEP} + ${AMOUNT} * 100}.0
......@@ -145,7 +145,7 @@ Get DGF Request and return resp By
${RESP}= Get Request alias uri=${URI} headers=${HEADERS}
[return] ${RESP}
Check DGF Action Results For
Check DGF Action Results For
[Documentation] Перевірка сторінки аукціону після завершення
[Arguments] ${CHECK_STATUS} ${CHECK_AMOUNT}
......
......@@ -11,7 +11,7 @@ Test Teardown Close All Browsers
... перевірити наявність коду адресі сторінки, посилання учасникам, організаторам,
... як працює англійській аукціон, детальніше про аукціон.
${VIEW_CHECK}= Catenate
${VIEW_CHECK} = Catenate
... //div[@class="card-title h5"]/a[@class="card-link" and contains(text(),
... "Auction")=../following-sibling::p[@class="card-text" and contains(text(),
... "Start Date")=../following-sibling::div/a[@class="btn btn-info" and contains(text(), "View")]]]
......@@ -21,24 +21,24 @@ Test Teardown Close All Browsers
Location Should Contain ${AUCTION_CODE}
Wait Until Page Contains ${AUCTION_CODE}
Page Should Contain Дата проведення:
Wait Until Page Contains Element xpath:.//span[contains(., 'учасникам')]
Wait Until Page Contains Element xpath:.//span[contains(., 'організаторам')]
Wait Until Page Contains Element xpath:.//a[@title='Англійські аукціони ПроЗорро.Продажі']
Wait Until Page Contains Element xpath:.//span[contains(., 'учасникам')]
Wait Until Page Contains Element xpath:.//span[contains(., 'організаторам')]
Wait Until Page Contains Element xpath:.//a[@title='Англійські аукціони ПроЗорро.Продажі']
Wait Until Element Is Visible //i[@class='link link-details' and .="детальніше про аукціон"]
Click Element //i[@class='link link-details' and .="детальніше про аукціон"]
Wait Until Page Contains Element xpath:(.//i[contains(normalize-space(.), 'приховати деталі')])[1]
Element Should Be Visible xpath:.//span[contains(normalize-space(.), 'Номер лоту:')]
Element Should Be Visible xpath:.//span[contains(., 'Організатор:')]
Element Should Be Visible xpath:.//span[contains(normalize-space(.), 'Код ЄДРПОУ:')]
Element Should Be Visible xpath:.//span[contains(normalize-space(.), 'Початкова ціна:')]
Wait Until Page Contains Element xpath:.//h2[contains(., 'Активи')]
Wait Until Page Contains Element xpath:.//span[contains(., 'Кількість:')]
Wait Until Page Contains Element xpath:.//span[contains(., 'Адреса:')]
Wait Until Page Contains Element xpath:(.//i[contains(normalize-space(.), 'приховати деталі')])[last()]
Wait Until Page Contains Element xpath:(.//i[contains(normalize-space(.), 'приховати деталі')])[1]
Element Should Be Visible xpath:.//span[contains(normalize-space(.), 'Номер лоту:')]
Element Should Be Visible xpath:.//span[contains(., 'Організатор:')]
Element Should Be Visible xpath:.//span[contains(normalize-space(.), 'Код ЄДРПОУ:')]
Element Should Be Visible xpath:.//span[contains(normalize-space(.), 'Початкова ціна:')]
Wait Until Page Contains Element xpath:.//h2[contains(., 'Активи')]
Wait Until Page Contains Element xpath:.//span[contains(., 'Кількість:')]
Wait Until Page Contains Element xpath:.//span[contains(., 'Адреса:')]
Wait Until Page Contains Element xpath:(.//i[contains(normalize-space(.), 'приховати деталі')])[last()]
Click Element xpath:(.//i[contains(normalize-space(.), 'приховати деталі')])
Wait Until Page Contains Element //i[@class='link link-details' and .="детальніше про аукціон"]
Wait Until Page Contains Element xpath:.//p[contains(normalize-space(.), 'Аукціон розроблено:')]
Wait Until Page Contains Element xpath:.//img[@alt='ПроЗорро.Продажі']
Wait Until Page Contains Element xpath:.//p[contains(normalize-space(.), 'Аукціон розроблено:')]
Wait Until Page Contains Element xpath:.//img[@alt='ПроЗорро.Продажі']
*** Keywords ***
......
......@@ -13,23 +13,23 @@ ${AUCTION_NAME} timber-english-initial-auction
Перевірити формування в ЦБД публічного та приватних посилань для участі в модулі аукціону.
Post Now ${AUCTION_NAME}
${RESP}= Get Request and return resp By ${ID} ${WATCHER}
Status Should Be 200 ${RESP}
${RESP} = Get Request and return resp By ${ID} ${WATCHER}
Status Should Be 200 ${RESP}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
${AUCTION_URL}= Get From Dictionary ${resp.json()} auctionUrl
${AUCTION_URL} = Get From Dictionary ${resp.json()} auctionUrl
Should Contain ${AUCTION_URL} %{AUCTION_URL}
${BIDDER_URL_1}= Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[0]}
${BIDDER_URL_1} = Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[0]}
Should Contain ${BIDDER_URL_1} %{PROCEDURE_URL}
${BIDDER_URL_2}= Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[1]}
${BIDDER_URL_2} = Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[1]}
Should Contain ${BIDDER_URL_2} %{PROCEDURE_URL}
${BIDDER_URL_3}= Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[2]}
${BIDDER_URL_3} = Get Request and return participationUrl By ${ID} ${BIDDER_TOKEN[2]}
Should Contain ${BIDDER_URL_3} %{PROCEDURE_URL}
......
......@@ -29,22 +29,22 @@ Post Requests
Get Request Bidder 1
[Documentation] Аукціон в статусі active_auction (Аукціон)
${RESP}= Get Request and return resp By ${ID} ${BIDDER_TOKEN[2]}
Status Should Be 200 ${RESP}
${BIDDER_URL_1}= Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_1} ${BIDDER_URL_1}
${RESP} = Get Request and return resp By ${ID} ${BIDDER_TOKEN[2]}
Status Should Be 200 ${RESP}
${BIDDER_URL_1} = Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_1} ${BIDDER_URL_1}
${AUCTIONID}= Get From Dictionary ${resp.json()} auctionId
Set Suite Variable ${AUCTIONID} ${AUCTIONID}
${AUCTION_ID} = Get From Dictionary ${resp.json()} auctionId
Set Suite Variable ${AUCTION_ID} ${AUCTION_ID}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
1. Перейти по приватному посиланню для участі в аукціоні протягом active_auction (Аукціон). Перевірити відображення блоків.
Go To ${BIDDER_URL_1}
Wait Until Page Contains Element //h2[@class="steps-label" and contains(., "Хід аукціону")] 10s
Element Should Contain id:header-block ${AUCTIONID}
Element Should Contain id:header-block ${AUCTION_ID}
Page Should Not Contain Element //div[@class="bidder-info"]
Page Should Not Contain Element id:number-input
......
......@@ -26,32 +26,32 @@ Post Requests
Get Request Bidder 1
[Documentation] Аукціон в статусі active_auction (Аукціон)
${RESP}= Get Request and return resp By ${ID} ${BIDDER_TOKEN[0]}
Status Should Be 200 ${RESP}
${BIDDER_URL_1}= Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_1} ${BIDDER_URL_1}
${RESP} = Get Request and return resp By ${ID} ${BIDDER_TOKEN[0]}
Status Should Be 200 ${RESP}
${BIDDER_URL_1} = Get From Dictionary ${resp.json()['bids'][0]} participationUrl
Set Suite Variable ${BIDDER_URL_1} ${BIDDER_URL_1}
${AUCTION_URL}= Get From Dictionary ${resp.json()} auctionUrl
${AUCTION_URL} = Get From Dictionary ${resp.json()} auctionUrl
Set Suite Variable ${AUCTION_URL} ${AUCTION_URL}
${AUCTIONID}= Get From Dictionary ${resp.json()} auctionId
Set Suite Variable ${AUCTIONID} ${AUCTIONID}
${AUCTION_ID} = Get From Dictionary ${resp.json()} auctionId
Set Suite Variable ${AUCTION_ID} ${AUCTION_ID}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
1. Перейти по приватному посиланню для участі в аукціоні протягом active_auction (Аукціон).
Go To ${BIDDER_URL_1}
Wait Until Page Contains Element //h2[@class="steps-label" and contains(., "Хід аукціону")] 10s
Element Should Contain id:header-block ${AUCTIONID}
Element Should Contain id:header-block ${AUCTION_ID}
Page Should Not Contain Element //div[@class="bidder-info"]
Page Should Not Contain Element id:number-input
2. Перевірити відображення дисклеймера - погодження з умовами проведення аукціону.
Wait Until Page Contains Element ${ASK_DISCLAIMER} 10s
Wait Until Page Contains Element ${ASK_DISCLAIMER} 10s
Wait Until Element Is Visible ${BTN_CANCEL} 10s
......
......@@ -24,14 +24,14 @@ Post Requests
Get Request Watcher
${RESP}= Get Request and return resp By ${ID} ${WATCHER}
Status Should Be 200 ${RESP}
${RESP} = Get Request and return resp By ${ID} ${WATCHER}
Status Should Be 200 ${RESP}
${AUCTION_URL}= Get From Dictionary ${resp.json()} auctionUrl
${AUCTION_URL} = Get From Dictionary ${resp.json()} auctionUrl
Set Suite Variable ${AUCTION_URL} ${AUCTION_URL}
${STATUS}= Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
${STATUS} = Get From Dictionary ${resp.json()} status
Should Be Equal active_auction ${STATUS}
1. Перейти по публічному посиланню в модуль аукціону
......@@ -40,10 +40,10 @@ Get Request Watcher