See: Description
Class | Description |
---|---|
AutobahnServer |
A Web Socket echo server for running the autobahn test
suite
|
AutobahnServerHandler |
Handles handshakes and messages
|
AutobahnServerPipelineFactory |
01. Add ppa:twisted-dev/ppa to your system's Software Sources
02. Install Twisted V11: sudo apt-get install python-twisted
03. Intall Python Setup Tools: sudo apt-get install python-setuptools
04. Install AutoBahn: sudo easy_install Autobahn. If you already have Autobahn installed, you may need to upgrade it: sudo easy_install --upgrade Autobahn. Make suer v0.4.10 is installed.
05. Get AutoBahn testsuite source code: git clone git@github.com:tavendo/AutobahnPython.git
06. Go to AutoBahn directory: cd AutobahnPython
07. Checkout stable version: git checkout v0.4.10
08. Go to test suite directory: cd testsuite/websockets
09. Edit fuzzing_clinet_spec.json and set the hybi specification version to 10 or 17 (RFC 6455).
{
"options": {"failByDrop": false},
"servers": [{"agent": "Netty", "url": "ws://localhost:9000", "options": {"version": 17}}],
"cases": ["*"],
"exclude-cases": [],
"exclude-agent-cases": {"FoobarServer*": ["4.*", "1.1.3"]}
}
10. Run our AutobahnServer located in this package. If you are in Eclipse IDE, right click on AutobahnServer.java and select Run As > Java Application.
11. Run the Autobahn test python fuzzing_client.py. Note that the actual test case python code is located with the easy_install package (e.g. in /usr/local/lib/python2.7/dist-packages/ autobahn-0.4.10-py2.7.egg/autobahn/cases) and not in the checked out git repository.
12. See the results in reports/servers/index.html
Copyright © 2008-2012 The Netty Project. All Rights Reserved.