X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=doc%2Fafb-tests-overview.html;fp=doc%2Fafb-tests-overview.html;h=0000000000000000000000000000000000000000;hb=71d4728f61f2b650449838a6d96034697a36736d;hp=27231a088339f962826487ed6bdbf821b9b99b8a;hpb=2a2a9835cfe31a495020c79b0eeadbddb70f52ae;p=src%2Fapp-framework-binder.git diff --git a/doc/afb-tests-overview.html b/doc/afb-tests-overview.html deleted file mode 100644 index 27231a08..00000000 --- a/doc/afb-tests-overview.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - Overview of tests shipped with AFB-Daemon - - - - - -
-

Overview of tests shipped with AFB-Daemon

-

Manuel Bachmann

-

José Bollo

-

24 juin 2016

-
- -

Overview of tests shipped with AFB-Daemon

-

List of tests

-

Here are the tests shipped in the source tree:

- -

Detail of tests

-

afb-client-demo (command-line WebSockets)

-

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 [...]
-

Then run the client with :

-
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 []. So, try:

-
auth connect
-hello pingjson true
-


-

token-websock.qml (Qt/QML WebSockets)

-

If afb-daemon has been launched with the following parameters:

-
$ 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
-

For installing Qt5 on Fedora 23 :

-
$ 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".

-


-

*.html (HTML5/JS HTTP-REST & WebSockets)

-

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)_

-

Then open your preferred Web browser, connect to the following URL:

-
http://localhost:1234
-

and interactively run the various tests.

- -