Skip to main content

Low Latency test case using ByteBlower.

Project description

Prepare runtime environment

We recommend managing the runtime environment in a Python virtual environment. This guarantees proper separation of the system-wide installed Python and pip packages.

Important: Working directory

All the following sections expect that you first moved to the directory where you checked out this project.

On Unix-based systems (Linux, WSL, macOS):

cd '/path/to/project/checkout'

On Windows systems using PowerShell:

cd 'c:\path\to\project\checkout'

Python virtual environment

Prepare the Python virtual environment

On Unix-based systems (Linux, WSL, macOS):

python3 -m venv --clear env
. ./env/bin/activate
pip install -U pip build

On Windows systems using PowerShell:

Note: On Microsoft Windows, it may be required to enable the Activate.ps1 script by setting the execution policy for the user. You can do this by issuing the following PowerShell command:

PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

See About Execution Policies for more information.

python3.8.exe -m venv --clear env
& ".\env\Scripts\activate.ps1"
python -m pip install -U pip build

Project requirements

Install this project as an editable package, including its runtime dependencies.

pip install -U -e .

Run the traffic test

Command-line interface

The test script can be run either as python module or as a command-line script:

For example (to get help for the command-line arguments):

  1. As a python module:

    python -m byteblower.test_cases.low_latency --help
  2. As a command-line script:

    byteblower.test_cases.low_latency --help

Run the traffic test with default/example configuration file (examples/low_latency.json).

The reports will be stored under a subdirectory reports/.

On Unix-based systems (Linux, WSL, macOS):

. ./env/bin/activate

# create the reports directory
mkdir reports

python -m byteblower.test_cases.low_latency --report_path reports

On Windows systems using PowerShell:

& ".\env\Scripts\activate.ps1"
md reports
python -m byteblower.test_cases.low_latency --report_path reports

Integrated

from byteblower.test_cases.low_latency import run

# Defining test configuration, report path and report file name prefix:
test_config = {}
report_path = 'my-output-folder'
report_prefix = 'my-dut-feature-test'

# Run the traffic test:
run(test_config, report_path=report_path, report_prefix=report_prefix)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

byteblower_test_cases_low_latency-1.0.0b2.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file byteblower_test_cases_low_latency-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for byteblower_test_cases_low_latency-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 fe750f2ef7d43c2051fb1164970784e48609620394c2fe3bf2bd16d4d04c6ba5
MD5 04452d4201fa2a5009425fff60de665d
BLAKE2b-256 3f34bb5e73f9dd2ee77196150ee40e3365915d17bcf32aef7ce524b3d418ec21

See more details on using hashes here.

File details

Details for the file byteblower_test_cases_low_latency-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for byteblower_test_cases_low_latency-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c00a6dcc04b048d9749eec44078ed9aa7f0b56c7bfa778dcd01c61d37f63733
MD5 f5e99203fa7437c24ecbf8a3aeeb8e50
BLAKE2b-256 540007fba847da99c8f655ca9f4a9c8161a3e323869dd9a222be84f5cdee83fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page