Suite SetupCreate Sessionapi_procedures%{PROCEDURE_URL}verify=True
Suite TeardownRun KeywordsDelete All SessionsClose All Browsers
Suite TeardownRun KeywordsDelete All SessionsClose All Browsers
*** Variables ***
${AUCTION_NAME}timber-english-initial-auction
${AUCTION_NAME}timber-english-initial-auction
*** Test Cases ***
...
...
@@ -51,27 +51,38 @@ Get Requests
Set Suite Variable\${REGION}
${POSTAL_CODE}=Get From Dictionary${resp.json()['items'][0]['address']}postalCode
Set Suite Variable\${POSTAL_CODE}
${COUNTRY}=Get From Dictionary${resp.json()['items'][0]['address']['countryName']}uk_UA
${COUNTRY}=Get From Dictionary${resp.json()['items'][0]['address']['countryName']}uk_UA
Set Suite Variable\${COUNTRY}
1. Перевiрка вiдображення блоку Details пiд час паузи перед 1 раундом
Open Browser Maximizedabout:blank${BIDDER_TOKEN[0]}
${BIDDER_URL_1}=Get Request and return participationUrl By${ID}${BIDDER_TOKEN[0]}
Allow Terms${BIDDER_URL_1}
Log${BIDDER_URL_1}
Check Details Block Displaying Correctly
Page Should Contain Elementid:participant-id
Page Should Contain Elementid:participant-ip
Open Browser Maximizedabout:blank${BIDDER_TOKEN[1]}
${BIDDER_URL_2}=Get Request and return participationUrl By${ID}${BIDDER_TOKEN[1]}
Allow Terms${BIDDER_URL_2}
Log${BIDDER_URL_2}
Set Suite Variable\${BIDDER_URL_2}
Check Details Block Displaying Correctly
Open Browser Maximizedabout:blank${BIDDER_TOKEN[2]}
${BIDDER_URL_3}=Get Request and return participationUrl By${ID}${BIDDER_TOKEN[2]}
Log${BIDDER_URL_3}
Allow Terms${BIDDER_URL_3}
Set Suite Variable\${BIDDER_URL_3}
Check Details Block Displaying Correctly
Page Should Contain Elementid:participant-id
Page Should Contain Elementid:participant-ip
Open Browser Maximized${AUCTION_URL}${WATCHER}
Check Details Block Displaying Correctly
Page Should Not Contain Elementid:participant-id
...
...
@@ -89,130 +100,168 @@ Get Requests
Element Should Not Be Visible//div[@class='auction-details-text-grey' and .='${DESCRIPTION}']
Element Should Not Be Visible//h3[@class='auction-details-label' and .='${ITEMS_DESCRIPTION}']
Element Should Not Be Visible//li[@class='auction-details-list-item' and contains(span, 'Кількість') and contains(.,':') and contains(., '${QUANTITY}')]
Element Should Not Be Visible
Element Should Not Be Visible
...//li[@class='auction-details-list-item' and contains(span, 'Адреса') and contains(.,':') and contains(., '${STREET_ADDRESS}')and contains(., '${LOCALITY}')]
Element Should Not Be Visible
...//li[@class='auction-details-list-item' and contains(span, 'Адреса') and contains(., '${REGION}') and contains(., '${POSTAL_CODE}') and contains(., '${COUNTRY}')]
3. Перевiрка вiдображення блоку Details пiд час раунду 1
Wait Until Page Contains Element//i[@class='link link-details' and .='детальніше про аукціон']
Click Element//i[@class='link link-details' and .='детальніше про аукціон']
Wait Until Page Contains Elementid:details-block-link
Click Elementid:details-block-link
Page Should Contain Element//a[@class='header-id' and .='${AUCTION_ID}']
Page Should Contain Element//div[@class='auction-details-item' and .='${TITLE}']
Page Should Contain Element//li[@class='auction-details-list-item' and contains(span, 'Організатор') and contains(.,':') and contains(., '${SELLING_ENTITY}')]
Wait Until Element Is Visible//li[@class='auction-details-list-item' and contains(span, 'Початкова ціна') and contains(., ':')]
${EXPECTED_STARTING_VALUE}=Get Text//li[@class='auction-details-list-item' and contains(span, 'Початкова ціна') and contains(., ':')]
${EXPECTED_STARTING_VALUE}=Remove String Using Regexp${EXPECTED_STARTING_VALUE}[^.0-9]
${EXPECTED_STARTING_VALUE}=Remove String Using Regexp${EXPECTED_STARTING_VALUE}[^.0-9]
${EXPECTED_STARTING_VALUE}=Convert To Number${EXPECTED_STARTING_VALUE}
Should Be Equal As Numbers${EXPECTED_STARTING_VALUE}${STARTING_VALUE}
Page Should Contain Element//li[@class='auction-details-list-item' and contains(span, 'Крок аукціону') and contains(.,':') and contains(., '${MINIMAL_STEP}')]
Page Should Contain Element//div[@class='auction-details-text-grey' and .='${DESCRIPTION}']
Page Should Contain Element//h3[@class='auction-details-label' and .='${ITEMS_DESCRIPTION}']
Page Should Contain Element//li[@class='auction-details-list-item' and contains(span, 'Кількість') and contains(.,':') and contains(., '${QUANTITY}')]
Page Should Contain Element
Page Should Contain Element
...//li[@class='auction-details-list-item' and contains(span, 'Адреса') and contains(.,':') and contains(., '${STREET_ADDRESS}')and contains(., '${LOCALITY}')]
Page Should Contain Element
...//li[@class='auction-details-list-item' and contains(span, 'Адреса') and contains(., '${REGION}') and contains(., '${POSTAL_CODE}') and contains(., '${COUNTRY}')]
\ No newline at end of file
...//li[@class='auction-details-list-item' and contains(span, 'Адреса') and contains(., '${REGION}') and contains(., '${POSTAL_CODE}') and contains(., '${COUNTRY}')]