https://github.com/ecency/hivesigner-tests
https://github.com/ecency/hivesigner-tests
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ecency/hivesigner-tests
- Owner: ecency
- Created: 2021-07-25T07:27:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T10:29:27.000Z (almost 5 years ago)
- Last Synced: 2025-06-20T06:11:35.234Z (about 1 year ago)
- Language: Java
- Size: 5.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hivesigner Automated UI testing
### To run tests on local machine you need to:
* 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
### Important note for local testing:
* 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)
### To configure tests
* create `conf.properties` file in `./src/test/resources` folder and add proper environment variables.
### To run tests
* Run `gradlew test` command in terminal
* You also may run all tests from `src/test/java/selenium/tests` folder using `junit` with `Run` command in IDEA context menu
### Structure
* `gradlew` folder contains gradlew v7.2 jar file and wrapper file
* `pages` folder contains classes which describe each web page with elements and methods to work with them
* `handlers` folder contains classes which make work with project easier
* `tests` folder contains tests only
### conf.properties file structure
```
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 =
```