Prove of concept of a TestCafe Hub for permanent remote workers.
Of course, there is a lot to improve :)
- Install and start the Hub
You could adjust the port usingPORT
environment variable.
npm install
npm start
-
Open Hub Dashboard:
http://<hub-ip>:8080
-
Connect some Tab-workers: Open
http://<hub-ip>: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.
Use testcafe-browser-provider-hub plugin to run tests on hub nodes.
# 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