{"_id":"testcafe-rpc","_rev":"42-fb263832d76c6798b4e26ea076b6c8b4","name":"testcafe-rpc","dist-tags":{"latest":"0.6.0"},"versions":{"0.5.0":{"name":"testcafe-rpc","version":"0.5.0","keywords":["TestCafe","RPC","remoting","remote","testing","functional"],"author":{"url":"www.devexpress.com","name":"DevExpress"},"_id":"testcafe-rpc@0.5.0","maintainers":[{"name":"devexpress","email":"ivan.nikulin@devexpress.com"}],"dist":{"shasum":"13152ec092d167bef3eaf67116766b32405f2f4e","tarball":"https://registry.npmjs.org/testcafe-rpc/-/testcafe-rpc-0.5.0.tgz","integrity":"sha512-jpiuIH0mVOJbRgefB7jF0SPoe1bFimpTA4EnwYYgmYO9QjD1l6l+Ti3slrVknlF3uzT2SheItr0qfK1U+CrC8A==","signatures":[{"sig":"MEQCIBA6bxgfRe3lbxmjZlkx7ED7s5UIiSsRCOk1w07ElEmtAiBGClry63OLfCY3crx615iuq/6352RZjS6VNF2FpuqnHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_npmUser":{"name":"devexpress","email":"ivan.nikulin@devexpress.com"},"deprecated":"This package is now deprecated. It will receive no future updates. Please visit https://testcafe.io for instructions about installing and using the most recent TestCafe version.","_npmVersion":"1.2.18","description":"TestCafe RPC\r ======\r RPC library for the [TestCafé](http://testcafe.devexpress.com/). It allows you to create a single TestCafé instance and then interact with it programmatically from any machine in your network.","directories":{},"dependencies":{"dnode":"~1.0.5","testcafe":"~13.1.1"},"devDependencies":{"grunt":"~0.4.1","phantomjs":"~1.9.2-0","node-phantom":"~0.2.3","grunt-contrib-nodeunit":"~0.2.0"}},"0.6.0":{"name":"testcafe-rpc","version":"0.6.0","keywords":["TestCafe","RPC","remoting","remote","testing","functional"],"author":{"url":"www.devexpress.com","name":"DevExpress"},"_id":"testcafe-rpc@0.6.0","maintainers":[{"name":"devexpress","email":"ivan.nikulin@devexpress.com"}],"dist":{"shasum":"1c8c35b6dd929d7dcf5736fcb2c01f739122dfa1","tarball":"https://registry.npmjs.org/testcafe-rpc/-/testcafe-rpc-0.6.0.tgz","integrity":"sha512-QcfzwJ7NjkM6hPA55Spr5J+8jZKaV3rClaqevrnJL3yNe4MX8B0ycvrYEJkdo711hJyqFKoxndLndZg+VEQukw==","signatures":[{"sig":"MEUCIQCoovOO+4yzm/sBmk/T+al/LX6PgLrjF+chp9t/HWcn5QIgRVkBPbEMhMaZV+t7i0ISW7KZsKA9k+cp8Q6pcattG4g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_npmUser":{"name":"devexpress","email":"ivan.nikulin@devexpress.com"},"deprecated":"This package is now deprecated. It will receive no future updates. Please visit https://testcafe.io for instructions about installing and using the most recent TestCafe version.","_npmVersion":"1.2.18","description":"TestCafe RPC\r ======\r RPC library for the [TestCafé](http://testcafe.devexpress.com/). It allows you to create a single TestCafé instance and then interact with it programmatically from any machine in your network.","directories":{},"dependencies":{"dnode":"~1.0.5","testcafe":"~13.1.1"},"devDependencies":{"grunt":"~0.4.1","phantomjs":"~1.9.2-0","node-phantom":"~0.2.3","grunt-contrib-nodeunit":"~0.2.0"}}},"time":{"created":"2013-09-18T14:13:57.072Z","modified":"2026-05-18T16:11:43.410Z","0.5.0":"2013-09-18T14:18:59.813Z","0.6.0":"2013-10-04T09:04:35.528Z"},"author":{"url":"www.devexpress.com","name":"DevExpress"},"keywords":["TestCafe","RPC","remoting","remote","testing","functional"],"description":"TestCafe RPC\r ======\r RPC library for the [TestCafé](http://testcafe.devexpress.com/). It allows you to create a single TestCafé instance and then interact with it programmatically from any machine in your network.","maintainers":[{"email":"romanresh@live.com","name":"romanresh"}],"readme":"TestCafe RPC\r\n======\r\nRPC library for the [TestCafé](http://testcafe.devexpress.com/). It allows you to create a single TestCafé instance and then interact with it programmatically from any machine in your network.\r\n\r\n\r\nInstall\r\n-------\r\n```\r\n$ npm install testcafe-rpc\r\n```\r\n\r\nRunning a server\r\n-------------\r\n```js\r\nvar TestCafeRemote = require('testcafe-rpc');\r\n\r\n//Options for TestCafé instance\r\nvar opt = {\r\n        controlPanelPort: 1337,\r\n        servicePort: 1338,\r\n        testsDir: 'YOUR_TESTS_DIR',\r\n        browsers: {\r\n            'Mozilla Firefox': {\r\n                path: \"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\",\r\n                icon: \"ff\",\r\n                cmd: \"-new-window\"\r\n            }\r\n        }\r\n    },\r\n    rpcPort = 1339;\r\n\r\n//Create TestCafé server instance with given options which can be accessed via RPC on port 1339.\r\nvar testCafeServer = new TestCafeRemote.Server(opt, rpcPort);\r\n\r\n//Returned object exposes standard TestCafé API, so you can use it as a regular TestCafé instance.\r\ntestCafeServer.runTests({ browsers: testCafeServer.listAvailableBrowsers() }, function (errors, taskUid, workers) {\r\n    //do smthg...\r\n});\r\n```\r\n\r\nRunning a client\r\n-------------\r\n```js\r\nvar TestCafeRemote = require('testcafe-rpc');\r\n\r\nvar rpcHostname = 'myhostname',\r\n    rpcPort = 1339;\r\n\r\n//Connect to the existent TestCafé server (if you running both client and server on the same machine\r\n//hostname-parameter can be ommited).\r\nvar testCafeClient = new TestCafeRemote.Client(rpcPort, rpcHostname);\r\n\r\n//Client can be used as a regular TestCafé instance with exception that listAvailableBrowsers() and listConnectedWorkers()\r\n//are asynchronous methods.\r\ntestCafeClient.listAvailableBrowsers(function(browsers) {\r\n    testCafeClient.runTests({ browsers: browsers }, function (errors, taskUid, workers) {\r\n      //do smthg...\r\n    });\r\n});\r\n```\r\nNeed more help to get started?\r\n--------------\r\nVisit TestCafé  [Continuous integration guide](http://testcafe.devexpress.com/Documentation/Tutorial/Continuous_Integration) and [Continuous integration API reference](http://testcafe.devexpress.com/Documentation/ApiReference/Continuous_Integration_API_Reference). If you have any additional questions or suggestions don't hesitate to ask using [DevExpress Support Center](http://www.devexpress.com/Support/Center/Question/ChangeFilterSet/1?FavoritesOnly=False&MyItemsOnly=False&MyTeamItemsOnly=False&TechnologyName=Testing+Tools&PlatformName=AllPlatforms&ProductName=AllProducts&TicketType=All).\r\n\r\n\r\n\r\n","readmeFilename":"README.md","users":{"fgribreau":true}}