테스트 Qt WebSockets

웹소켓 프로토콜(RFC 6455)을 위한 표준 테스트 스위트인Autobahn|Testsuite는 Qt WebSockets 의 적합성을 테스트하는 데 사용할 수 있습니다. 테스트 스위트를 설정하려면 Autobahn|Testsuite 설치 설명서를 참조하세요.

Autobahn|Testsuite로 Qt WebSockets 테스트하기

wstest - 퍼징 서버 모드

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

cd ~
wstest -m fuzzingserver

그런 다음 다른 터미널에서:

cd your_build_dir/tests/manual/compliance
./tst_compliance

테스트 결과는 ~/reports/clients 디렉토리에 생성됩니다. 브라우저에서 ~/reports/clients/index.html을 가리킵니다.

wstest - 퍼징클라이언트 모드

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

./echoserver -p 9001

그런 다음 다른 터미널에서:

cd ~
wstest -m fuzzingclient

테스트 결과는 ~/reports/servers 디렉토리에 생성됩니다. 브라우저에서 ~/reports/servers/index.html을 가리킵니다.

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