Coder Social home page Coder Social logo

test-device-manager's Introduction

test-device-manager

Keep alive connections from several browsers being tested, and redirect them to a test server on command.

Usage:

  1. Download zip. You can npm install from the unzipped folder if you like.

  2. 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).
  1. Start up test device manager using either:
    npm start test-device-manager or,
    node server.js

  2. Connect a control client to http://your.server.hostname:listen_port/control i.e. point a browser to the above URL.

  3. 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.

  4. Go to the control client and select one or more of the connected test clients.

  5. Put the URL of your test server in the input box. This could be a Karma server, for example.

  6. Hit GO!

  7. All the selected test clients will be redirected to the test server, with a query parameter: return_url=http://your.server.hostname:listen_port/

  8. 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).

test-device-manager's People

Contributors

gdewan avatar bazilio91 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.