https://github.com/psi-4ward/testcafe-hub
TestCafe Hub for running tests against permanent remote nodes
https://github.com/psi-4ward/testcafe-hub
e2e-tests testcafe testcafe-aurelia-selectors
Last synced: 12 months ago
JSON representation
TestCafe Hub for running tests against permanent remote nodes
- Host: GitHub
- URL: https://github.com/psi-4ward/testcafe-hub
- Owner: psi-4ward
- License: mit
- Created: 2018-05-18T18:41:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T15:31:29.000Z (almost 8 years ago)
- Last Synced: 2025-05-06T16:19:28.424Z (12 months ago)
- Topics: e2e-tests, testcafe, testcafe-aurelia-selectors
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TestCafe-Hub
Prove of concept of a [TestCafe](https://github.com/DevExpress/testcafe) Hub for permanent remote workers.
Of course, there is a lot to improve :)
## Setup
1. Install and start the Hub
You could adjust the port using `PORT` environment variable.
```shell
npm install
npm start
```
2. Open Hub Dashboard: `http://:8080`
3. Connect some Tab-workers: Open `http://:8080/worker` in some browsers.
**Important** most browsers block popups triggered by JavaScript so you have to permanently allow opening popups for the Hub URL.
## Usage
Use [testcafe-browser-provider-hub](https://github.com/psi-4ward/testcafe-browser-provider-hub) plugin to run tests on hub nodes.
```bash
# Install (globally)
$ npm install -g testcafe psi-4ward/testcafe-browser-provider-hub
# List browser
$ testcafe -b hub
"hub:Firefox@59.0.0:Linux 0.0.0"
"hub:Chrome@66.0.3359:Linux 0.0.0"
"hub:Chrome Mobile@66.0.3359:Android 7.0.0"
"hub:Edge@12.10240.0:Windows 10.0.0"
# Run tests
testcafe "hub:Firefox,hub:Edge@12:Windows 10" myTest.js
```
## Authors
* [Christoph Wiechert](https://psi.cx)
## License & copyright
* [testcafe-browser-provider-hub](https://github.com/psi-4ward/testcafe-hub/blob/master/LICENSE): MIT