2011-10-17 06:12:37 +02:00
|
|
|
/*
|
2012-06-04 22:31:44 +02:00
|
|
|
* Copyright 2012 The Netty Project
|
2011-10-17 06:12:37 +02:00
|
|
|
*
|
2011-12-09 06:18:34 +01:00
|
|
|
* The Netty Project licenses this file to you under the Apache License,
|
|
|
|
* version 2.0 (the "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at:
|
2011-10-17 06:12:37 +02:00
|
|
|
*
|
2020-10-23 14:44:18 +02:00
|
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
2011-10-17 06:12:37 +02:00
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
2011-12-09 06:18:34 +01:00
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
2011-10-17 06:12:37 +02:00
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2012-06-08 04:14:47 +02:00
|
|
|
* This package is intended for use with testing against the Python
|
2011-10-17 06:12:37 +02:00
|
|
|
* <a href="http://www.tavendo.de/autobahn/testsuite.html">AutoBahn test suite</a>.
|
2012-10-30 12:57:26 +01:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* Autobahn installation documentation can be found <a href="http://autobahn.ws/testsuite/installation">here</a>.
|
2012-10-30 12:57:26 +01:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <h3>How to run the tests on Ubuntu.</h3>
|
2011-10-17 06:12:37 +02:00
|
|
|
*
|
2020-10-23 14:44:18 +02:00
|
|
|
* <p>01. Install <a href="https://python.org/">python</a> (if not already installed).
|
2012-10-30 12:57:26 +01:00
|
|
|
*
|
2020-10-23 14:44:18 +02:00
|
|
|
* <p>02. Install <a href="https://pypi.python.org/pypi/setuptools">Python Setup Tools</a> if not already
|
2012-10-29 11:59:54 +01:00
|
|
|
* installed. <tt>sudo apt-get install python-setuptools</tt>
|
2012-10-30 12:57:26 +01:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>03. Add <tt>ppa:twisted-dev/ppa</tt> to your system's Software Sources
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>04. Install Twisted: <tt>sudo apt-get install python-twisted</tt>
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-30 12:57:26 +01:00
|
|
|
* <p>05. Install AutoBahn: <tt>sudo easy_install autobahntestsuite</tt>. Test using <tt>wstest --help</tt>.
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>06. Create a directory for test configuration and results: <tt>mkdir autobahn</tt> <tt>cd autobahn</tt>.
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>07. Create <tt>fuzzing_clinet_spec.json</tt> in the above directory
|
2012-11-12 03:51:23 +01:00
|
|
|
* {@code
|
2012-10-29 11:59:54 +01:00
|
|
|
* {
|
|
|
|
* "options": {"failByDrop": false},
|
|
|
|
* "outdir": "./reports/servers",
|
2012-10-30 12:57:26 +01:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* "servers": [
|
|
|
|
* {"agent": "Netty4",
|
|
|
|
* "url": "ws://localhost:9000",
|
|
|
|
* "options": {"version": 18}}
|
|
|
|
* ],
|
2012-10-30 12:57:26 +01:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* "cases": ["*"],
|
|
|
|
* "exclude-cases": [],
|
|
|
|
* "exclude-agent-cases": {}
|
|
|
|
* }
|
2012-11-12 03:51:23 +01:00
|
|
|
* }
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>08. Run the <tt>AutobahnServer</tt> located in this package. If you are in Eclipse IDE, right click on
|
2015-12-27 07:19:11 +01:00
|
|
|
* <tt>AutobahnServer.java</tt> and select Run As > Java Application.
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>09. Run the Autobahn test <tt>wstest -m fuzzingclient -s fuzzingclient.json</tt>.
|
2012-06-08 04:14:47 +02:00
|
|
|
*
|
2012-10-29 11:59:54 +01:00
|
|
|
* <p>10. See the results in <tt>./reports/servers/index.html</tt>
|
2011-10-17 06:12:37 +02:00
|
|
|
*/
|
2017-02-20 14:06:48 +01:00
|
|
|
package io.netty.testsuite.autobahn;
|
2011-10-17 06:12:37 +02:00
|
|
|
|