Keep alive connections from several browsers being tested, and redirect them to a test server on command.
Usage:
-
Download zip. You can npm install from the unzipped folder if you like.
-
Edit config.json to match your setup:
- server_name: What you want to call your server (type: string).
- listen_port: port where the Test Device Manager is listening for new connections (type: number, should be a valid tcp_port).
- default_redirect_url: Default URL for your test server where the test clients will be sent (type: string, should be a valid URL).
-
Start up test device manager using either:
npm start test-device-manager or,
node server.js -
Connect a control client to http://your.server.hostname:listen_port/control i.e. point a browser to the above URL.
-
Connect as many test clients as you like to http://your.server.hostname:listen_port/ i.e. point one or more browsers you want to run tests against to the above URL.
-
Go to the control client and select one or more of the connected test clients.
-
Put the URL of your test server in the input box. This could be a Karma server, for example.
-
Hit GO!
-
All the selected test clients will be redirected to the test server, with a query parameter: return_url=http://your.server.hostname:listen_port/
-
After running the tests, your test server should use the return_url to send the clients back to the test device manager. (This functionality is built into recent versions of Karma).