Skip to content

raiden-network/scenario-player

Repository files navigation

Code Coverage CI Status Docker Cloud Releases License Open Bugs

Raiden Scenario Player

The Raiden Scenario Player is an integration testing tool written in Python 3. It allows testing of various scenarios, and is an integral component of the Raiden test suite.

Installation

For Users

Using git & poetry:

# Clone the scenario-player repository
~/ $ git clone http://github.com/raiden-network/scenario-player && cd scenario-player

# Install the scenario-player.
~/ $ poetry install

# Show available commands:
~/ $ poetry run scenario-player --help

# Show help for subcommand, e.g.:
~/ $ poetry run scenario-player run --help

You can also use make:

make install-dev

For Developers

Note that poetry install installs the latest development version of raiden - if you'd like to run the SP against a local checkout of Raiden:

poetry run pip install -Ue ../path/to/raiden

Usage

Invoking the scenario_player from the cli can be done in one of the following ways, depending on how you installed the tool.

Invoke the command directly on the cli:

$ scenario_player run \
    --keystore-file=/path/to/keystore.file --password=${KEYSTORE_PW} \
    /path/to/scenario.yaml

Reclaiming spent test ether:

$ scenario_player reclaim --chain=goerli:http://geth.goerli.ethnodes.brainbot.com:8545 \
    --keystore-file=/path/to/keystore.file --password=${KEYSTORE_PW}

Scenario Examples

For example scenarios have a look at the Raiden repository's scenarios. These can be found here.

Tools

With the Performance Analysis Tool the logs of the scenario player can be analyzed and visualized.