update docs on running autobahn tests

This commit is contained in:
Veebs 2012-10-29 03:59:54 -07:00
parent 122051ba44
commit 24678e2d00

View File

@ -18,44 +18,47 @@
* This package is intended for use with testing against the Python * This package is intended for use with testing against the Python
* <a href="http://www.tavendo.de/autobahn/testsuite.html">AutoBahn test suite</a>. * <a href="http://www.tavendo.de/autobahn/testsuite.html">AutoBahn test suite</a>.
* *
* <h3>How to run the tests on Ubuntu</h3> * Autobahn installation documentation can be found <a href="http://autobahn.ws/testsuite/installation">here</a>.
* *
* <p>01. Add <tt>ppa:twisted-dev/ppa</tt> to your system's Software Sources * <h3>How to run the tests on Ubuntu.</h3>
* *
* <p>02. Install Twisted V11: <tt>sudo apt-get install python-twisted</tt> * <p>01. Install <a href="http://python.org/">python</a> (if not already installed).
* *
* <p>03. Intall Python Setup Tools: <tt>sudo apt-get install python-setuptools</tt> * <p>02. Install <a href="http://pypi.python.org/pypi/setuptools">Python Setup Tools</a> if not already
* installed. <tt>sudo apt-get install python-setuptools</tt>
* *
* <p>04. Install AutoBahn: <tt>sudo easy_install Autobahn</tt>. If you already have Autobahn installed, you may need * <p>03. Add <tt>ppa:twisted-dev/ppa</tt> to your system's Software Sources
* to upgrade it: <tt>sudo easy_install --upgrade Autobahn</tt>. Make suer v0.4.10 is installed.
* *
* <p>05. Get AutoBahn testsuite source code: <tt>git clone git@github.com:tavendo/AutobahnPython.git</tt> * <p>04. Install Twisted: <tt>sudo apt-get install python-twisted</tt>
* *
* <p>06. Go to AutoBahn directory: <tt>cd AutobahnPython</tt> * <p>05. Install AutoBahn: <tt>sudo easy_install autobahntestsuite</tt>. Test using <tt>wstest --help<tt>.
* *
* <p>07. Checkout stable version: <tt>git checkout v0.4.10</tt> * <p>06. Create a directory for test configuration and results: <tt>mkdir autobahn</tt> <tt>cd autobahn</tt>.
* *
* <p>08. Go to test suite directory: <tt>cd testsuite/websockets</tt> * <p>07. Create <tt>fuzzing_clinet_spec.json</tt> in the above directory
*
* <p>09. Edit <tt>fuzzing_clinet_spec.json</tt> and set the hybi specification version to 10 or 17 (RFC 6455).
* <code> * <code>
* { * {
* "options": {"failByDrop": false}, * "options": {"failByDrop": false},
* "servers": [{"agent": "Netty", "url": "ws://localhost:9000", "options": {"version": 17}}], * "outdir": "./reports/servers",
*
* "servers": [
* {"agent": "Netty4",
* "url": "ws://localhost:9000",
* "options": {"version": 18}}
* ],
*
* "cases": ["*"], * "cases": ["*"],
* "exclude-cases": [], * "exclude-cases": [],
* "exclude-agent-cases": {"FoobarServer*": ["4.*", "1.1.3"]} * "exclude-agent-cases": {}
* } * }
* </code> * </code>
* *
* <p>10. Run our <tt>AutobahnServer</tt> located in this package. If you are in Eclipse IDE, right click on * <p>08. Run the <tt>AutobahnServer</tt> located in this package. If you are in Eclipse IDE, right click on
* <tt>AutobahnServer.java</tt> and select Run As > Java Application. * <tt>AutobahnServer.java</tt> and select Run As > Java Application.
* *
* <p>11. Run the Autobahn test <tt>python fuzzing_client.py</tt>. Note that the actual test case python code is * <p>09. Run the Autobahn test <tt>wstest -m fuzzingclient -s fuzzingclient.json</tt>.
* located with the easy_install package (e.g. in <tt>/usr/local/lib/python2.7/dist-packages/
* autobahn-0.4.10-py2.7.egg/autobahn/cases</tt>) and not in the checked out git repository.
* *
* <p>12. See the results in <tt>reports/servers/index.html</tt> * <p>10. See the results in <tt>./reports/servers/index.html</tt>
*/ */
package io.netty.example.http.websocketx.autobahn; package io.netty.example.http.websocketx.autobahn;