mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
update input arg for node.js test in README example
This commit is contained in:
6
README
6
README
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user