Nesta página

Testes Qt WebSockets

O Autobahn|Testsuite, um conjunto de testes padrão para o Protocolo WebSocket (RFC 6455), pode ser usado para testar a conformidade de Qt WebSockets. Consulte a documentação de instalação do Autobahn|Testsuite para configurar o conjunto de testes.

Testando Qt WebSockets com o 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

Em seguida, em outro terminal:

cd your_build_dir/tests/manual/compliance
./tst_compliance

Os resultados dos testes serão gerados no diretório ~/reports/clients. Acesse ~/reports/clients/index.html no seu navegador.

wstest - modo fuzzingclient

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

./echoserver -p 9001

Em seguida, em outro terminal:

cd ~
wstest -m fuzzingclient

Os resultados dos testes serão gerados no diretório ~/reports/servers. Acesse ~/reports/servers/index.html no seu navegador.

© 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.