Test Qt WebSockets
Autobahn|Testsuite, une suite de tests standard pour le protocole WebSocket(RFC 6455), peut être utilisée pour tester la conformité de Qt WebSockets. Reportez-vous à la documentation d'installation d'Autobahn|Testsuite pour configurer la suite de tests.
Tester Qt WebSockets avec Autobahn|Testsuite
wstest - mode fuzzingserver
cd your_build_dir/tests/manual/compliance qmake your_src_dir/tests/manual/compliance/compliance.pro make cd ~ wstest -m fuzzingserver
Ensuite, dans un autre terminal :
cd your_build_dir/tests/manual/compliance ./tst_compliance
Les résultats des tests seront générés dans le répertoire ~/reports/clients. Pointez votre navigateur sur ~/reports/clients/index.html.
wstest - mode fuzzingclient
cd your_build_dir/examples/websockets/echoserver qmake your_src_dir/examples/websockets/echoserver/echoserver.pro make ./echoserver -p 9001
Ensuite, dans un autre terminal :
cd ~ wstest -m fuzzingclient
Les résultats des tests seront générés dans le répertoire ~/reports/servers. Pointez votre navigateur sur ~/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.