Test Qt WebSockets
Autobahn|Testsuite, una suite di test standard per il protocollo WebSocket (RFC 6455), può essere utilizzata per verificare la conformità di Qt WebSockets. Per configurare la suite di test, consultare la documentazione di installazione di Autobahn|Testsuite.
Test di Qt WebSockets con Autobahn|Testsuite
wstest - modalità fuzzingserver
cd your_build_dir/tests/manual/compliance
qmake your_src_dir/tests/manual/compliance/compliance.pro
make
cd ~
wstest -m fuzzingserverQuindi, in un altro terminale:
cd your_build_dir/tests/manual/compliance
./tst_complianceI risultati dei test verranno generati nella directory ~/reports/clients. Aprire il browser all’indirizzo ~/reports/clients/index.html.
wstest - modalità fuzzingclient
cd your_build_dir/examples/websockets/echoserver
qmake your_src_dir/examples/websockets/echoserver/echoserver.pro
make
./echoserver -p 9001Quindi, in un altro terminale:
cd ~
wstest -m fuzzingclientI risultati dei test verranno generati nella directory ~/reports/servers. Apri il browser all'indirizzo ~/reports/servers/index.html.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.