Skip to content

Selenium Tests (Old, Remove when ready)

Mitchell Shiell edited this page Jan 4, 2023 · 1 revision

Selenium Test Infrastructure.

Default

Under the condition of no extra environment variables, the following should execute normally without triggering selenium tests.

mvn clean package

Local Testing

For testing locally on a developer machine. The following environment variables are needed, and will cause the test to be executed:

# Selenium Specific 
SELENIUM_TEST_TYPE=LOCAL
CHROME_DRIVER_PATH=/path/to/chromedriver

# Common for tests
FACEBOOK_CLIENT_CLIENTID=<facebook_client_id>
FACEBOOK_CLIENT_CLIENTSECRET=<facebook_client_secret>
FACEBOOK_USER =<facebook_test_user>
FACEBOOK_PASS=<facebook_test_user_password>

The chrome driver for your platform can be obtained here: http://chromedriver.chromium.org/

Browserstack Testing

For executing tests on browserstack, the following environment variables are needed:

# Selenium Specific 
SELENIUM_TEST_TYPE=BROWSERSTACK
BROWSERSTACK_USERNAME=<browserstack_username>
BROWSERSTACK_ACCESS_KEY=<browserstack_access_key>

# Common for tests
FACEBOOK_CLIENT_CLIENTID=<facebook_client_id>
FACEBOOK_CLIENT_CLIENTSECRET=<facebook_client_secret>
FACEBOOK_USER =<facebook_test_user>
FACEBOOK_PASS=<facebook_test_user_password>

image