update input arg for node.js test in README example

This commit is contained in:
Shruti Ranganathan Jothi
2017-03-01 10:25:56 -08:00
parent 0ab52bdd75
commit 0105397247

6
README
View File

@@ -93,20 +93,20 @@ The file tests.js is a batch runner and will run all the tests serially. It
takes the following arguments: takes the following arguments:
host: <IP address of host in which DIAL server is running> host: <IP address of host in which DIAL server is running>
application: Name of the application to test against(eg: Netflix, YouTube) app: Name of the application to test against (eg: Netflix, YouTube)
timeToWaitForStateChange: Some of these tests wait for application state timeToWaitForStateChange: Some of these tests wait for application state
changes before querying for application status. Default is 5000(ms) changes before querying for application status. Default is 5000(ms)
Example: Example:
server/tests/js_tests/tests> node tests.js host=<ip of DIAL server> server/tests/js_tests/tests> node tests.js host=<ip of DIAL server>
application="Netflix" timeToWaitForStateChange=2000 app="Netflix" timeToWaitForStateChange=2000
To run each test independantly and not through test.js, just call the To run each test independantly and not through test.js, just call the
appropriate test file name instead of test.js. appropriate test file name instead of test.js.
Example: Example:
server/tests/js_tests/tests> node discoverServerUnderTest.js server/tests/js_tests/tests> node discoverServerUnderTest.js
host=<ip of DIAL server> application="Netflix" timeToWaitForStateChange=2000 host=<ip of DIAL server> app="Netflix" timeToWaitForStateChange=2000
Any application specific setup/requirements should be taken care of before Any application specific setup/requirements should be taken care of before
running these tests. running these tests.