1 Overview of tests shipped with AFB-Daemon
2 =========================================
5 Author: Manuel Bachmann
11 Here are the tests shipped in the source tree:
13 * **afb-client-demo** (command-line WebSockets)
15 * **token-websock.qml** (Qt/QML WebSockets)
17 * ***.html** (HTML5/JS HTTP-REST & WebSockets)
23 ### afb-client-demo (command-line WebSockets)
25 This clients interactively calls plugins APIs from the command line, using the binder
26 [WebSockets](https://en.wikipedia.org/wiki/WebSocket) facility.
28 If _afb-daemon_ has been launched with the following parameters:
31 $ afb-daemon --port=1234 --token=123456 [...]
34 Then run the client with :
36 afb-client-demo ws://localhost:1234/api?token=123456 [<api> <verb> [<json-data>]]
38 For instance, to initialize the Audio plugin from the command line :
40 afb-client-demo ws://localhost:1234/api?token=123456
42 The command doesn't return. You should type requests of type <api> <verb> [<json-data>].
52 ### token-websock.qml (Qt/QML WebSockets)
54 If _afb-daemon_ has been launched with the following parameters:
56 $ afb-daemon --port=1234 --token=123456 [...]
60 For installing Qt5 on **Ubuntu 16.04**:
62 $ apt-get install qmlscene qml-module-qtwebsockets qml-module-qtquick-controls
64 For installing Qt5 on **Fedora 23** :
66 $ dnf install qt5-qtdeclarative-devel qt5-qtwebsockets-devel qt5-qtquickcontrols
69 Then run the client with :
71 qmlscene test/token-websock.qml
73 and interactively press the buttons, "Connect", "Refresh", "Logout".
78 ### *.html (HTML5/JS HTTP-REST & WebSockets)
80 If _afb-daemon_ has been launched with the following parameters:
82 $ afb-daemon --port=1234 --rootdir=$PWD/test [...]
84 _("$PWD/test_" being the "test" subdirectory of the source tree)_
87 Then open your preferred Web browser, connect to the following URL:
91 and interactively run the various tests.