Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 82e3766

Browse files
committed
Conflicts: README.md index.js package.json
2 parents 5e9fb06 + a321c57 commit 82e3766

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TestCafe RPC
22
======
3-
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.
3+
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.
44

55

66
Install
@@ -14,7 +14,7 @@ Running a server
1414
```js
1515
var TestCafeRemote = require('testcafe-rpc');
1616

17-
//Options for TestCafé instance
17+
//Options for TestCafé instance
1818
var opt = {
1919
controlPanelPort: 1337,
2020
servicePort: 1338,
@@ -29,10 +29,10 @@ var opt = {
2929
},
3030
rpcPort = 1339;
3131

32-
//Create TestCafé server instance with given options which can be accessed via RPC on port 1339.
32+
//Create TestCafé server instance with given options which can be accessed via RPC on port 1339.
3333
var testCafeServer = new TestCafeRemote.Server(opt, rpcPort);
3434

35-
//Returned object exposes standard TestCafé API, so you can use it as a regular TestCafé instance.
35+
//Returned object exposes standard TestCafé API, so you can use it as a regular TestCafé instance.
3636
testCafeServer.runTests({ browsers: testCafeServer.listAvailableBrowsers() }, function (errors, taskUid, workers) {
3737
//do smthg...
3838
});
@@ -46,11 +46,11 @@ var TestCafeRemote = require('testcafe-rpc');
4646
var rpcHostname = 'myhostname',
4747
rpcPort = 1339;
4848

49-
//Connect to the existent TestCafé server (if you running both client and server on the same machine
49+
//Connect to the existent TestCafé server (if you running both client and server on the same machine
5050
//hostname-parameter can be ommited).
5151
var testCafeClient = new TestCafeRemote.Client(rpcPort, rpcHostname);
5252

53-
//Client can be used as a regular TestCafé instance with exception that listAvailableBrowsers() and listConnectedWorkers()
53+
//Client can be used as a regular TestCafé instance with exception that listAvailableBrowsers() and listConnectedWorkers()
5454
//are asynchronous methods.
5555
testCafeClient.listAvailableBrowsers(function(browsers) {
5656
testCafeClient.runTests({ browsers: browsers }, function (errors, taskUid, workers) {
@@ -60,7 +60,5 @@ testCafeClient.listAvailableBrowsers(function(browsers) {
6060
```
6161
Need more help to get started?
6262
--------------
63-
Visit 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).
64-
65-
63+
Visit 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).
6664

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
var net = require('net'),
23
dnode = require('dnode'),
34
TestCafe = require('testcafe').TestCafe;
@@ -75,3 +76,4 @@ Client.prototype.on = function (evtName, handler) {
7576
this._rpc('on', [evtName], handler, true);
7677
};
7778

79+

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
3+
14
{
25
"name": "testcafe-rpc",
36
"author": "DevExpress (www.devexpress.com)",
@@ -22,4 +25,4 @@
2225
"node-phantom": "~0.2.3",
2326
"phantomjs": "~1.9.2-0"
2427
}
25-
}
28+
}

0 commit comments

Comments
 (0)