Initial commit
This commit is contained in:
11
Resources/BackOffice/BackOfficeApp.robot
Normal file
11
Resources/BackOffice/BackOfficeApp.robot
Normal file
@@ -0,0 +1,11 @@
|
||||
*** Settings ***
|
||||
Resource ./PO/BackOffice.Landing.robot
|
||||
Resource ./PO/BackOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
Go to "Home" page
|
||||
BackOffice.Landing.Home Page
|
||||
BackOffice.Landing.Verify Page
|
||||
16
Resources/BackOffice/PO/BackOffice.Landing.robot
Normal file
16
Resources/BackOffice/PO/BackOffice.Landing.robot
Normal file
@@ -0,0 +1,16 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../BackOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${BACK_OFFICE_HOME_PAGE-HEADER} Dashboard
|
||||
${BACK_OFFICE_URL} https://automationplayground.com/back-office/
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
Home Page
|
||||
Go To ${BACK_OFFICE_URL}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${BACK_OFFICE_HOME_PAGE-HEADER}
|
||||
|
||||
31
Resources/BackOffice/PO/BackOffice.TopNav.robot
Normal file
31
Resources/BackOffice/PO/BackOffice.TopNav.robot
Normal file
@@ -0,0 +1,31 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../BackOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${TOP_NAV_ABOUT_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[4]/a
|
||||
${TOP_NAV_CONTACT_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[6]/a
|
||||
${TOP_NAV_PORTOFOLIO_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[3]/a
|
||||
${TOP_NAV_SERVICES_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[2]/a
|
||||
${TOP_NAV_TEAM_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[5]/a
|
||||
|
||||
*** Keywords ***
|
||||
Select "About" Page
|
||||
Click Element ${TOP_NAV_ABOUT_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Contact" Page
|
||||
Click Element ${TOP_NAV_CONTACT_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Portofolio" Page
|
||||
Click Element ${TOP_NAV_PORTOFOLIO_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Services" Page
|
||||
Click Element ${TOP_NAV_SERVICES_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Team" Page
|
||||
Click Element ${TOP_NAV_TEAM_LINK}
|
||||
Sleep 2
|
||||
15
Resources/Common/CommonWeb.robot
Normal file
15
Resources/Common/CommonWeb.robot
Normal file
@@ -0,0 +1,15 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../BackOffice/BackOfficeApp.robot
|
||||
Resource ../FrontOffice/FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${BROWSER} chrome
|
||||
|
||||
*** Keywords ***
|
||||
Begin Web Test
|
||||
Open Browser about:blank ${BROWSER}
|
||||
Maximize Browser Window
|
||||
|
||||
End Web Test
|
||||
Close All Browsers
|
||||
36
Resources/FrontOffice/FrontOfficeApp.robot
Normal file
36
Resources/FrontOffice/FrontOfficeApp.robot
Normal file
@@ -0,0 +1,36 @@
|
||||
*** Settings ***
|
||||
Resource ./PO/FrontOffice.Landing.robot
|
||||
Resource ./PO/About.robot
|
||||
Resource ./PO/Contact.robot
|
||||
Resource ./PO/Portofolio.robot
|
||||
Resource ./PO/Services.robot
|
||||
Resource ./PO/Team.robot
|
||||
Resource ./PO/FrontOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
Go to "Home" page
|
||||
FrontOffice.Landing.Home Page
|
||||
FrontOffice.Landing.Verify Page
|
||||
|
||||
GO to "About" Page
|
||||
FrontOffice.TopNav.Select "About" Page
|
||||
About.Verify Page
|
||||
|
||||
GO to "Contact" Page
|
||||
FrontOffice.TopNav.Select "Contact" Page
|
||||
Contact.Verify Page
|
||||
|
||||
GO to "Portofolio" Page
|
||||
FrontOffice.TopNav.Select "Portofolio" Page
|
||||
Portofolio.Verify Page
|
||||
|
||||
GO to "Services" Page
|
||||
FrontOffice.TopNav.Select "Services" Page
|
||||
Services.Verify Page
|
||||
|
||||
GO to "Team" Page
|
||||
FrontOffice.TopNav.Select "Team" Page
|
||||
Team.Verify Page
|
||||
13
Resources/FrontOffice/PO/About.robot
Normal file
13
Resources/FrontOffice/PO/About.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../PO/FrontOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
${ABOUT_HEADER} About
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_ABOUT_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${ABOUT_HEADER}
|
||||
13
Resources/FrontOffice/PO/Contact.robot
Normal file
13
Resources/FrontOffice/PO/Contact.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../PO/FrontOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
${CONTACT_US} Contact Us
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_CONTACT_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${CONTACT_US}
|
||||
16
Resources/FrontOffice/PO/FrontOffice.Landing.robot
Normal file
16
Resources/FrontOffice/PO/FrontOffice.Landing.robot
Normal file
@@ -0,0 +1,16 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
|
||||
*** Variables ***
|
||||
${FRONT_OFFICE_HOME_PAGE_HEADER} Welcome To Our Studio!
|
||||
${FRONT_OFFICE_URL} https://automationplayground.com/front-office/
|
||||
|
||||
*** Keywords ***
|
||||
Home Page
|
||||
Go To ${FRONT_OFFICE_URL}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${FRONT_OFFICE_HOME_PAGE_HEADER}
|
||||
|
||||
30
Resources/FrontOffice/PO/FrontOffice.TopNav.robot
Normal file
30
Resources/FrontOffice/PO/FrontOffice.TopNav.robot
Normal file
@@ -0,0 +1,30 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
|
||||
*** Variables ***
|
||||
${TOP_NAV_ABOUT_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[4]/a
|
||||
${TOP_NAV_CONTACT_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[6]/a
|
||||
${TOP_NAV_PORTOFOLIO_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[3]/a
|
||||
${TOP_NAV_SERVICES_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[2]/a
|
||||
${TOP_NAV_TEAM_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[5]/a
|
||||
|
||||
*** Keywords ***
|
||||
Select "About" Page
|
||||
Click Element ${TOP_NAV_ABOUT_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Contact" Page
|
||||
Click Element ${TOP_NAV_CONTACT_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Portofolio" Page
|
||||
Click Element ${TOP_NAV_PORTOFOLIO_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Services" Page
|
||||
Click Element ${TOP_NAV_SERVICES_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Team" Page
|
||||
Click Element ${TOP_NAV_TEAM_LINK}
|
||||
Sleep 2
|
||||
13
Resources/FrontOffice/PO/Portofolio.robot
Normal file
13
Resources/FrontOffice/PO/Portofolio.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../PO/FrontOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
${PORTOFOLIO} Portfolio
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_PORTOFOLIO_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${PORTOFOLIO}
|
||||
12
Resources/FrontOffice/PO/Services.robot
Normal file
12
Resources/FrontOffice/PO/Services.robot
Normal file
@@ -0,0 +1,12 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../PO/FrontOffice.TopNav.robot
|
||||
*** Variables ***
|
||||
${SERVICES} Services
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_SERVICES_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${SERVICES}
|
||||
13
Resources/FrontOffice/PO/Team.robot
Normal file
13
Resources/FrontOffice/PO/Team.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../PO/FrontOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
${AMAZING_TEAM} Our Amazing Team
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_TEAM_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${AMAZING_TEAM}
|
||||
Reference in New Issue
Block a user