En esta página

Pruebas de Qt WebSockets

Autobahn|Testsuite, un conjunto de pruebas estándar para el protocolo WebSocket(RFC 6455), puede utilizarse para comprobar la conformidad de Qt WebSockets. Consulte la documentación de instalación de Autobahn|Testsuite para configurar el conjunto de pruebas.

Pruebas de Qt WebSockets con Autobahn|Testsuite

wstest - modo fuzzingserver

cd your_build_dir/tests/manual/compliance
qmake your_src_dir/tests/manual/compliance/compliance.pro
make

cd ~
wstest -m fuzzingserver

A continuación, en otro terminal:

cd your_build_dir/tests/manual/compliance
./tst_compliance

Los resultados de las pruebas se generarán en el directorio ~/reports/clients. Dirija su navegador a ~/reports/clients/index.html.

wstest - modo fuzzingclient

cd your_build_dir/examples/websockets/echoserver
qmake your_src_dir/examples/websockets/echoserver/echoserver.pro
make

./echoserver -p 9001

A continuación, en otro terminal:

cd ~
wstest -m fuzzingclient

Los resultados de las pruebas se generarán en el directorio ~/reports/servers. Dirija su navegador a ~/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.