Superyou: π€ Automated Testing
pip install robotframework
pip install robotframework-selenium2library
- For running in chrome, you need to install chromedriver:
brew cask install chromedriver
- For running in firefox, you need to install geckodriver:
brew cask install geckodriver
- For running in edge, you need to install edge driver:
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
- For running in chrome, you need to install chromedriver:
https://chromedriver.chromium.org/downloads - For running in firefox, you need to install geckodriver:
https://github.com/mozilla/geckodriver/releases - For running in edge, you need to install edge driver in
command prompt (windows)
:
DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
You need to update some variable inside of config.robot
. For basic configuration, you need to change this line:
${SUPERLINK} # Change it with url link, e.g. google.com
${SUPERSAFE} # Activate it if you want to run Super Safe Product
${PH_EMAIL_SUPERSAFE} # Fulfill email for test
For more description, please find detail at Detail Configuration Section
robot run.robot
sh report.sh
Here the list and detail of your config.robot
:
.
βββ ${BROWSER}
β ## which browser do you want to run the testcase ?
β βββ chrome
β βββ firefox
β
βββ ${CLOSE_BROWSER}
β ## do you want close the browser after testcase success ?
β βββ 0 ββ # leave browser open after testcase success
β βββ 1 ββ # close browser after testcase success
β
βββ ${SUPERLINK}
β ## please provide domain link that will be running for automated testcase
β
βββ ${SUPERSAFE}
β ## do you want to running SUPERSAFE product ?
β βββ 0 ββ # don't include SUPERSAFE in testcase
β βββ 1 ββ # do include SUPERSAFE testcase
β
βββ ${SUPERSTRONG}
β ## do you want to running SUPERSTRONG product ?
β βββ 0 ββ # don't include SUPERSTRONG in testcase
β βββ 1 ββ # do include SUPERSTRONG testcase
β
βββ ${SUPERLIFE}
β ## do you want to running SUPERLIFE product ?
β βββ 0 ββ # don't include SUPERLIFE in testcase
β βββ 1 ββ # do include SUPERLIFE testcase
β
βββ ${IS_EXIST}
β ## do you want to run testcase as existing user ?
β β βββ 0 ββ # no, run as New User
β β βββ 1 ββ # yes, I want to use Existing User
β β
β βββ ${EXISTING_USER}
β β ## if IS_EXIST = 1, you need to define username of existing user
β β
β βββ ${EXISTING_PASS}
β ## if IS_EXIST = 1, you need to define password of existing user
β
βββ ${PH_EMAIL_SUPERSAFE}
β ## please provide policy holder Email for Buy a SuperSafe product
β
βββ ${PH_EMAIL_SUPERSTRONG}
β ## please provide policy holder Email for Buy a SuperStrong product
β
βββ ${PH_EMAIL_SUPERLIFE}
β ## please provide policy holder Email for Buy a SuperLife product
β
βββ ${PH_NAME}
β ## please provide policy holder name
β
βββ ${PH_PASS}
β ## please provide policy holder Password
β
βββ ${PH_MOBILE}
β ## please provide policy holder Mobile number
β
βββ ${PH_IDENTITY}
β ## please provide policy holder Identity
β
βββ ${PH_GENDER}
β ## please provide policy holder Gender
β βββ 1 ββ # male
β βββ 2 ββ # female
β
βββ ${PH_IDENTITY}
β ## please provide policy holder Identity number
β
βββ ${PH_ADDRESS}
β ## please provide policy holder Address
β
βββ ${PH_BIRTH_AT}
β ## please provide policy holder Place of Birth
β
βββ ${INSURED_RELATION}
β ## what is insured relation from you ?
β βββ 1 ββ # self
β βββ 2 ββ # wife/husband
β βββ 3 ββ # son
β βββ 4 ββ # daughter
β βββ 5 ββ # father
β βββ 6 ββ # mother
β βββ 7 ββ # brother
β βββ 8 ββ # sister
β
βββ ${INSURED_NAME}
β ## please provide insured name
β
βββ ${INSURED_IDENTITY}
β ## please provide insured identity number
β
βββ ${BENEFICIARY_RELATION}
β ## what is beneficiary relation from insured ?
β βββ 1 ββ # self
β βββ 2 ββ # wife/husband
β βββ 3 ββ # father
β βββ 4 ββ # mother
β βββ 5 ββ # son
β βββ 6 ββ # daughter
β βββ 7 ββ # brother
β βββ 8 ββ # sister
β
βββ ${BENEFICIARY_NAME}
β ## please provide beneficiary name
β
βββ ${BENEFICIARY_IDENTITY}
## please provide beneficiary identity number