- clone the project from git to your local machine
- if IntelliJ IDEA will suggest ==> import gradle project
- if not ==> run
gradlew wrapper
command in terminal to install gradle from the project (current version 7.2) - wait until all dependencies downloaded
- Selenium webdriver uses already installed browser (e.g. Chrome or chromium project) on your operating system. If you want to separate test-run from your local environment, you may run test with a special docker container (example and tutorual here https://www.blazemeter.com/blog/how-to-run-selenium-tests-in-docker)
- create
conf.properties
file in./src/test/resources
folder and add proper environment variables.
- Run
gradlew test
command in terminal - You also may run all tests from
src/test/java/selenium/tests
folder usingjunit
withRun
command in IDEA context menu
gradlew
folder contains gradlew v7.2 jar file and wrapper filepages
folder contains classes which describe each web page with elements and methods to work with themhandlers
folder contains classes which make work with project easiertests
folder contains tests only
GET_STARTED_PAGE = https://your.site.url/
IMPORT_PAGE = https://your.site.url/import?redirect=accounts
LOGIN_PAGE = https://your.site.url/login?redirect=accounts
ACCOUNTS_PAGE = https://your.site.url/accounts
AUTHORITIES_PAGE = https://your.site.url/auths
OAUTH2_URL = https://your.site.url/oauth2/authorize
USER_NAME =
PRIVATE_KEY =
USER_NAME_ALT1 =
PRIVATE_KEY_ALT1 =
USER_NAME_ALT2 =
PRIVATE_KEY_ALT2 =
LOCAL_PASSWORD =
LOCAL_PASSWORD_ALT =
SCREENSHOT_PATH=..//hivesigner-tests/Screenshots/
BROWSER_HEADLESS_MODE=--headless
//leave `=''` if you don't want to run tests in headless mode
BROWSER_WINDOW_SIZE=--window-size=1920x1080
//leave `=''` if you don't want to run tests in headless mode
OWNER_PRIVATE_KEY =
ACTIVE_PRIVATE_KEY =
POSTING_PRIVATE_KEY =
MEMO_PRIVATE_KEY =