diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-17 10:57:02 +0100 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@digia.com> | 2015-06-03 07:12:49 +0000 |
commit | 150db98da8695f74601b1776742e8284602207fe (patch) | |
tree | 66636cf0934c653776d5db3bd65c5a2eb4cbe481 /tests/doc/README | |
parent | 5edfb3c7ee338c0b562f33a8c4315454bfc18886 (diff) | |
download | qtwebsockets-150db98da8695f74601b1776742e8284602207fe.tar.gz |
Doc: Add documentation on how to test with Autobahn|Testsuite
Change-Id: Ia18acdc3c54e2bb48209406d2a6f9e156b67324c
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Diffstat (limited to 'tests/doc/README')
-rw-r--r-- | tests/doc/README | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/doc/README b/tests/doc/README new file mode 100644 index 0000000..da9b2b5 --- /dev/null +++ b/tests/doc/README @@ -0,0 +1,58 @@ +This directory contains autotests and manual tests for the Qt WebSockets +module. + +In addition, Autobahn|Testsuite, a standard test suite for WebSocket +Protocol (RFC 6455), can be used for testing the conformance of Qt +WebSockets. + +http://autobahn.ws/testsuite/ + +Refer to Autobahn|Testsuite installation documentation at +http://autobahn.ws/testsuite/installation.html + +//! [testsuite] +\section1 Testing Qt WebSockets with Autobahn|Testsuite + + +\section2 wstest - fuzzingserver mode + +\code + cd your_build_dir/tests/manual/compliance + qmake your_src_dir/tests/manual/compliance/compliance.pro + make + + cd ~ + wstest -m fuzzingserver +\endcode + +Then, in another terminal: + +\code + cd your_build_dir/tests/manual/compliance + ./tst_compliance +\endcode + +Test results will be generated under ~/reports/clients directory. +Point your browser to ~/reports/clients/index.html. + + +\section2 wstest - fuzzingclient mode + +\code + cd your_build_dir/examples/websockets/echoserver + qmake your_src_dir/examples/websockets/echoserver/echoserver.pro + make + + ./echoserver -p 9001 +\endcode + +Then, in another terminal: + +\code + cd ~ + wstest -m fuzzingclient +\endcode + +Test results will be generated under ~/reports/servers directory. +Point your browser to ~/reports/servers/index.html. +//! [testsuite] |