https://github.com/mrblueblue/chowchow
🐶 example of using hound / elixir with browserstack
https://github.com/mrblueblue/chowchow
automation browserstack elixir hound selenium testing
Last synced: about 2 months ago
JSON representation
🐶 example of using hound / elixir with browserstack
- Host: GitHub
- URL: https://github.com/mrblueblue/chowchow
- Owner: mrblueblue
- Created: 2017-04-13T03:06:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T22:31:27.000Z (about 9 years ago)
- Last Synced: 2025-03-30T21:33:10.628Z (about 1 year ago)
- Topics: automation, browserstack, elixir, hound, selenium, testing
- Language: Elixir
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chowchow
Example of how to use Elixir and Hound to run browser automation tests.
These tests are in run in parallel and can be run locally or remotely connecting to Browserstack.
## Running
Install dependencies first using
```bash
mix deps.get
```
Be sure to have Elixir 1.4 or higher.
### Locally
Assuming you have Selenium server with the Chrome driver running on port `4444`:
```bash
WEBDRIVER=selenium ENV=local mix test
```
### Remotely
The script relies on the environmental varialbes `USER` and `KEY`, which represent your Browserstack username and access key.
You can set these variables in an `.env` file like
```bash
export USER="example"
export KEY="example"
export HOST="http://${USER}:${KEY}@hub-cloud.browserstack.com"
```
and then run:
```bash
source .env
```
Once these variables are set, you can run the Browserstack remote tests with:
```bash
WEBDRIVER=selenium ENV=remote mix test
```