1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 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]
|