mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-11 11:49:59 +00:00
update README
This commit is contained in:
34
README
34
README
@@ -76,3 +76,37 @@ Option Parameter Description
|
|||||||
|
|
||||||
If you do not provide an ip_address and multiple servers are discovered, the
|
If you do not provide an ip_address and multiple servers are discovered, the
|
||||||
client will prompt you to select a server.
|
client will prompt you to select a server.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
NEW: Node.js tests for DIAL server
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
Node.js tests to test DIAL server implementation are now available under
|
||||||
|
server/tests/js_tests. To run these tests againsts a DIAL server:
|
||||||
|
|
||||||
|
1. Ensure that the DIAL server is discoverable from the test environment
|
||||||
|
2. Install node in the test environment
|
||||||
|
3. From the directory where the package.json is located (server/tests/js_tests),
|
||||||
|
npm install
|
||||||
|
|
||||||
|
The tests themselves are located inside the server/tests/js_tests/tests folder.
|
||||||
|
The file tests.js is a batch runner and will run all the tests serially. It
|
||||||
|
takes the following arguments:
|
||||||
|
|
||||||
|
host: <IP address of host in which DIAL server is running>
|
||||||
|
application: Name of the application to test against(eg: Netflix, YouTube)
|
||||||
|
timeToWaitForStateChange: Some of these tests wait for application state
|
||||||
|
changes before querying for application status. Default is 5000(ms)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
server/tests/js_tests/tests> node tests.js host=<ip of DIAL server>
|
||||||
|
application="Netflix" timeToWaitForStateChange=2000
|
||||||
|
|
||||||
|
To run each test independantly and not through test.js, just call the
|
||||||
|
appropriate test file name instead of test.js.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
server/tests/js_tests/tests> node host=<ip of DIAL server>
|
||||||
|
application="Netflix" timeToWaitForStateChange=2000
|
||||||
|
|
||||||
|
Any application specific setup/requirements should be taken care of before
|
||||||
|
running these tests.
|
||||||
|
|||||||
Reference in New Issue
Block a user