io.netty.testsuite.autobahn.package-info Maven / Gradle / Ivy
/*
* Copyright 2012 The Netty Project
*
* 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
/**
* This package is intended for use with testing against the Python
* AutoBahn test suite.
*
* Autobahn installation documentation can be found here.
*
* How to run the tests on Ubuntu.
*
* 01. Install python (if not already installed).
*
*
02. Install Python Setup Tools if not already
* installed. sudo apt-get install python-setuptools
*
*
03. Add ppa:twisted-dev/ppa to your system's Software Sources
*
*
04. Install Twisted: sudo apt-get install python-twisted
*
*
05. Install AutoBahn: sudo easy_install autobahntestsuite. Test using wstest --help.
*
*
06. Create a directory for test configuration and results: mkdir autobahn cd autobahn.
*
*
07. Create fuzzing_clinet_spec.json in the above directory
* {@code
* {
* "options": {"failByDrop": false},
* "outdir": "./reports/servers",
*
* "servers": [
* {"agent": "Netty4",
* "url": "ws://localhost:9000",
* "options": {"version": 18}}
* ],
*
* "cases": ["*"],
* "exclude-cases": [],
* "exclude-agent-cases": {}
* }
* }
*
*
08. Run the AutobahnServer located in this package. If you are in Eclipse IDE, right click on
* AutobahnServer.java and select Run As > Java Application.
*
*
09. Run the Autobahn test wstest -m fuzzingclient -s fuzzingclient.json.
*
*
10. See the results in ./reports/servers/index.html
*/
package io.netty.testsuite.autobahn;