X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=doc%2Fafb-tests-overview.html;h=27231a088339f962826487ed6bdbf821b9b99b8a;hb=91d08eedaa810edfd38dcb8ce67c66813e5e3dce;hp=ce1cba44ccf941c0d55c4ef8ffb4aac3ed0723e3;hpb=8902bb356f6b67c31e54cb23c27cd375f2f4ccdb;p=src%2Fapp-framework-binder.git diff --git a/doc/afb-tests-overview.html b/doc/afb-tests-overview.html index ce1cba44..27231a08 100644 --- a/doc/afb-tests-overview.html +++ b/doc/afb-tests-overview.html @@ -1,106 +1,76 @@ +
- - + + + + + +Version: 1
-Date: 30 mai 2016
-Author: Manuel Bachmann
-
-
-
-Here are the tests shipped in the source tree:
-afb-client-demo (command-line WebSockets)
token-websock.qml (Qt/QML WebSockets)
*.html (HTML5/JS HTTP-REST & WebSockets)
*.html (HTML5/JS HTTP-REST & WebSockets)
This clients interactively calls plugins APIs from the command line, using the binder -WebSockets facility.
- +This clients interactively calls bindings APIs from the command line, using the binder WebSockets facility.
If afb-daemon has been launched with the following parameters:
- -$ afb-daemon --port=1234 --token=123456 [...]
-
-
+$ afb-daemon --port=1234 --token=123456 [...]
Then run the client with :
- -afb-client-demo ws://localhost:1234/api?token=123456 [<api> <verb> [<json-data>]]
-
-
-For instance, to initialize the Audio plugin from the command line :
- -afb-client-demo ws://localhost:1234/api?token=123456
-
-
-The command doesn’t return. You should type requests of type
afb-client-demo ws://localhost:1234/api?token=123456 [<api> <verb> [<json-data>]]
+For instance, to initialize the Audio binding from the command line :
+afb-client-demo ws://localhost:1234/api?token=123456
+The command doesn't return. You should type requests of type
auth connect
-hello pingjson true
-
-
+hello pingjson true
If afb-daemon has been launched with the following parameters:
- -$ afb-daemon --port=1234 --token=123456 [...]
-
-
+$ afb-daemon --port=1234 --token=123456 [...]
and Qt5 is installed.
-For installing Qt5 on Ubuntu 16.04:
- -$ apt-get install qmlscene qml-module-qtwebsockets qml-module-qtquick-controls
-
-
+$ apt-get install qmlscene qml-module-qtwebsockets qml-module-qtquick-controls
For installing Qt5 on Fedora 23 :
- -$ dnf install qt5-qtdeclarative-devel qt5-qtwebsockets-devel qt5-qtquickcontrols
-
-
+$ dnf install qt5-qtdeclarative-devel qt5-qtwebsockets-devel qt5-qtquickcontrols
Then run the client with :
- -qmlscene test/token-websock.qml
-
-
-and interactively press the buttons, “Connect”, “Refresh”, “Logout”.
- +qmlscene test/token-websock.qml
+and interactively press the buttons, "Connect", "Refresh", "Logout".
If afb-daemon has been launched with the following parameters:
- -$ afb-daemon --port=1234 --rootdir=$PWD/test [...]
-
-
-(“$PWD/test” being the “test” subdirectory of the source tree)_
- +$ afb-daemon --port=1234 --rootdir=$PWD/test [...]
+("$PWD/test" being the "test" subdirectory of the source tree)_
Then open your preferred Web browser, connect to the following URL:
- -http://localhost:1234
-
-
+http://localhost:1234
and interactively run the various tests.