robotremote
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
@@ -2,0 +3,0 @@ |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"preferGlobal": false, | ||
@@ -41,6 +41,6 @@ "homepage": "https://github.com/comick/node-robotremoteserver", | ||
"xmlrpc": ">=1.0.2", | ||
"promise": ">=6.0.1", | ||
"is-promise": ">=1.0.0" | ||
}, | ||
"devDependencies": { | ||
"promise": ">=6.0.1", | ||
"mocha": ">=1.21.5" | ||
@@ -47,0 +47,0 @@ }, |
@@ -19,2 +19,4 @@ # robotremote | ||
Just little example with main features. Test folder contains better extensive examples for more features. | ||
examplelibrary.js: | ||
@@ -114,2 +116,30 @@ | ||
## Using botclient.js: | ||
The botclient.js command line utility can be useful to test keywords of any compliant running robot remote server. | ||
An example session with the example keywords library follows: | ||
```js | ||
$ node ./bin/botclient.js localhost 8270 | ||
Connected to remote server at "localhost:8270" | ||
Available keywords: stopRemoteServer, countItemsInDirectory, stringsShouldBeEqual | ||
localhost:8270> keywords.countItemsInDirectory | ||
{ [Function] | ||
args: [ 'path' ], | ||
docs: 'Returns the number of items in the directory specified by `path`.' } | ||
localhost:8270> keywords.stringsShouldBeEqual | ||
{ [Function] | ||
args: [ 'str1', 'str2' ], | ||
docs: '' } | ||
localhost:8270> keywords.stringsShouldBeEqual('ciao', 'ciao').done(console.log) | ||
undefined | ||
localhost:8270> { output: '*WARN* Comparing \'ciao\' to \'ciao\'\n', | ||
status: 'PASS', | ||
return: '' } | ||
``` | ||
Keywords are available in context in the keywords dictionary. When called they return an A+ promise. | ||
## License | ||
@@ -116,0 +146,0 @@ |
24969
1
397
168
4
+ Addedpromise@>=6.0.1
+ Addedasap@2.0.6(transitive)
+ Addedpromise@8.3.0(transitive)